arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2607.03652cs.ARcs.AI
收藏

ELiTeFormer:一种用于FPGA的高效Transformer

ELiTeFormer: An Efficient Transformer for FPGAs

Oregon State University(俄勒冈州立大学);Pacific Northwest National Laboratory(太平洋西北国家实验室)

Victor Agostinelli, Nicolas Bohm Agostini, Antonino Tumeo

AI总结:

研究针对Transformer在FPGA部署的挑战,提出ELiTeFormer架构,统一混合线性注意力与超低精度线性投影,通过新微架构减少资源利用,实现模型和缓存压缩,模拟部署显示有加速效果。

摘要:

Transformer模块在大语言模型中普遍存在,但因其计算和内存需求面临部署挑战。先前工作通常分别优化注意力机制或前馈网络,很少有硬件架构联合解决这两个组件。我们提出ELiTeFormer,首个统一混合线性注意力与超低精度(三元)线性投影的Transformer模型架构,专为FPGA部署设计……

英文摘要:

Transformer blocks are prevalent in large language model (LLM) but present deployment challenges due to their challenging computational and memory demands. While prior work has typically optimized attention mechanisms or feed-forward networks (FFNs) separately, few hardware (HW) architecture have jointly addressed both components with co-designed hardware acceleration. We present ELiTeFormer (Efficient Linear Ternary Transformer), the first Transformer model architecture that unifies hybrid linear attention with ultra-low-precision (ternary) linear projections, specifically co-designed for field-programmable gate array (FPGA) deployment. ELiTeFormer achieves 10x model weight compression and 12.8x key-value (KV) cache compression compared to LLaMA 3, while maintaining competitive accuracy (31.9% on the MMLU benchmark, within 3.0% of BitNet b1.58). Our key architectural contribution is a novel processing element (PE) micro-architecture that eliminates all multiplications in ternary linear projections through bitmasking operations, significantly reducing resource utilization by completely avoiding dedicated digital signal processing (DSP) blocks. We simulate, synthesize, and deploy ELiTeFormer targeting a Xilinx VCK5000 Versal board using high-level synthesis (HLS) flows. Block-level simulations show 9.6x speedup for FFN operations and 4.4x speedup for attention compared to standard implementations. End-to-end deployment achieves up to 3.9x lower latency and 3.2x better energy efficiency than LLaMA 3 on an NVIDIA A100 graphics processing unit (GPU) at long context lengths. This represents the first FPGA realization combining linear attention with ternary quantization, demonstrating the viability of algorithm-architecture co-design for next-generation LLM acceleration.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑