计算机科学 > 硬件体系结构
[提交于 2026年11月29日]
标题:Exploring Runtime-Configurable Piecewise Linear Function Interpolation for FPGA-Based LLM Hardware Acceleration
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Non-linear functions constitute a significant computational cost in modern Transformer-based AI inference. While FPGAs improve efficiency through custom numerical representations, most implementations rely on function-specific hardware that limits flexibility and cross-model reuse. This work presents an FPGA accelerator featuring a specialized hardware datapath that evaluates multiple non-linear functions (exponential, GELU, ReLU, Sigmoid, Swish (SiLU), and tanh) via runtime coefficient configuration. Implemented on an AMD Alveo U55C FPGA, the architecture achieves fixed-point approximation errors on the order of $10^{-3}$ at 24-bit and 32-bit precisions. Integrating the framework into the \texttt{Qwen2.5-0.5B-Instruct} inference pipeline demonstrates that Q16.16, Q8.16, and Q8.8 configurations preserve stable language generation behavior, increasing cross-entropy loss by $\approx 0.083$ and perplexity from 11.31 to 12.29 relative to the FP32 baseline, while Q4.4 causes numerical failure. The results demonstrate that the proposed non-uniform piecewise-linear approach provides a practical balance between numerical fidelity, resource utilization, and architectural flexibility for reusable neural network acceleration.
提交历史
来自:Luis G. Leon-Vega[v1] 2026年11月29日 星期日 23:54:57 UTC (8,653 KB)