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.


翻译:暂无翻译

0
下载
关闭预览

相关内容

基于机器学习的FPGA电子设计自动化技术研究综述
专知会员服务
22+阅读 · 2022年11月22日
面向FPGA的布局与布线技术研究综述
专知会员服务
26+阅读 · 2022年9月3日
深度神经网络 FPGA 设计进展、实现与展望
专知会员服务
59+阅读 · 2022年3月26日
深度神经网络FPGA设计进展、实现与展望
专知会员服务
36+阅读 · 2022年3月21日
FPGA加速系统开发工具设计:综述与实践
专知会员服务
69+阅读 · 2020年6月24日
专知会员服务
82+阅读 · 2020年6月20日
Hierarchically Structured Meta-learning
CreateAMind
27+阅读 · 2019年5月22日
硬件加速神经网络综述
计算机研究与发展
26+阅读 · 2019年2月1日
A Technical Overview of AI & ML in 2018 & Trends for 2019
待字闺中
18+阅读 · 2018年12月24日
超全总结:神经网络加速之量化模型 | 附带代码
动手写机器学习算法:SVM支持向量机(附代码)
七月在线实验室
12+阅读 · 2017年12月5日
【论文】变分推断(Variational inference)的总结
机器学习研究会
39+阅读 · 2017年11月16日
From Softmax to Sparsemax-ICML16(1)
KingsGarden
74+阅读 · 2016年11月26日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
6+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
2+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
1+阅读 · 2014年12月31日
VIP会员
最新内容
《评估人机编队性能的标准指标》
专知会员服务
11+阅读 · 11月30日
《美陆军装甲排的自动化任务分配模型》59页
专知会员服务
10+阅读 · 11月30日
乌克兰海陆空无人力量
专知会员服务
6+阅读 · 11月30日
超越技术:美战争部的AI变革管理
专知会员服务
10+阅读 · 11月27日
北约400亿美元反无人机能力投资建设
专知会员服务
8+阅读 · 11月25日
反小型无人机系统方案评估(27页)
专知会员服务
17+阅读 · 11月25日
相关VIP内容
基于机器学习的FPGA电子设计自动化技术研究综述
专知会员服务
22+阅读 · 2022年11月22日
面向FPGA的布局与布线技术研究综述
专知会员服务
26+阅读 · 2022年9月3日
深度神经网络 FPGA 设计进展、实现与展望
专知会员服务
59+阅读 · 2022年3月26日
深度神经网络FPGA设计进展、实现与展望
专知会员服务
36+阅读 · 2022年3月21日
FPGA加速系统开发工具设计:综述与实践
专知会员服务
69+阅读 · 2020年6月24日
专知会员服务
82+阅读 · 2020年6月20日
相关资讯
Hierarchically Structured Meta-learning
CreateAMind
27+阅读 · 2019年5月22日
硬件加速神经网络综述
计算机研究与发展
26+阅读 · 2019年2月1日
A Technical Overview of AI & ML in 2018 & Trends for 2019
待字闺中
18+阅读 · 2018年12月24日
超全总结:神经网络加速之量化模型 | 附带代码
动手写机器学习算法:SVM支持向量机(附代码)
七月在线实验室
12+阅读 · 2017年12月5日
【论文】变分推断(Variational inference)的总结
机器学习研究会
39+阅读 · 2017年11月16日
From Softmax to Sparsemax-ICML16(1)
KingsGarden
74+阅读 · 2016年11月26日
相关基金
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
6+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
2+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
1+阅读 · 2014年12月31日
Top
微信扫码咨询专知VIP会员