Exploring Runtime-Configurable Piecewise Linear Function Interpolation for FPGA-Based LLM Hardware Acceleration
Patrick Nepveu-Nelson, Fabiola Jiménez-Chacón, Roger Morales-Monge, Luis G. León-Vega, Jorge Castro-Godínez
Abstract
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 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 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.
Create a lesson
Metadata
- Categories
- cs.AR, cs.ET
- Comments
- Pre-print before acceptance in CARLA 2026
Related papers
Sattva: A Hardware-Algorithm Co-Designed SAT Solving Accelerator with Off-Chip Scalability
Shared title terminologycs.ARHuifeng Ke, Michael Lo, Justin Oh et al.
Efficient Scheduling Exploration for Secure DNN Accelerators
Shared title terminologycs.ARWei Xuan, Rongliang Fu, Zihao Xuan et al.
A Vector Metadata-Residency Subsystem for Grouped-Query Attention on FPGA Accelerators
Shared title terminologycs.ARVenkata Sai Rajesh Malladi
FPGA-Based Wi-Fi Channel Estimation with a Reliability-Gated Binary Residual Network
Shared title terminologycs.ARJixing Zhou, Xinming Huang
A Novel FPGA Delay Structure to Improve Ease of Implementation and PUF Metrics for FPGA-Based Arbiter PUFs
Shared title terminologycs.ARSyed Talha Imam, Ayesha Javaid, Arslan Munir
WADJET: Whole-Job Authorization and Dispatch for Job Execution Trust on FPGA System-on-Chip Accelerators
Shared title terminologycs.ARMohamed El-Hadedy