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

BETA:面向边缘的二值化高能效Transformer加速器

BETA: Binarized Energy-Efficient Transformer Accelerator at the Edge

School of Electronic Science and Engineering, Nanjing University(南京大学电子科学与工程学院);School of Integrated Circuits, Sun Yat-sen University(中山大学集成电路学院)

Yuhao Ji, Chao Fang, Zhongfeng Wang

AI总结:

针对二值化Transformer在边缘部署时量化矩阵乘法效率低、多精度激活能耗高的问题,提出计算流抽象方法与可配置QMM引擎的BETA加速器,在ZCU102 FPGA上能效达174 GOPS/W,优于现有方案。

摘要:

现有的二值化Transformer凭借紧凑的模型尺寸、较低的计算复杂度和可观的推理精度,在边缘部署中颇具前景。然而,由于量化矩阵乘法(QMM)执行效率低下,以及多精度激活带来的能耗开销,在现有处理器上部署二值化Transformer面临诸多挑战。为解决上述问题,我们首先提出一种二值化Transformer的计算流抽象方法,通过优化计算顺序提升QMM的执行效率。此外,我们提出了一款二值化高能效Transformer加速器,即BETA,以推动其在边缘的高效部署。值得注意的是,BETA配备可配置的QMM引擎,可适配二值化Transformer的不同激活精度,为QMM提供高并行度、高速的计算能力,且能效表现优异。在ZCU102 FPGA上的实验结果表明,BETA的平均能效达到174 GOPS/W,比现有基于FPGA的加速器高出1.76~21.92倍,彰显了BETA在边缘Transformer加速方面的良好潜力。

英文摘要:

Existing binary Transformers are promising in edge deployment due to their compact model size, low computational complexity, and considerable inference accuracy. However, deploying binary Transformers faces challenges on prior processors due to inefficient execution of quantized matrix multiplication (QMM) and the energy consumption overhead caused by multi-precision activations. To tackle the challenges above, we first develop a computation flow abstraction method for binary Transformers to improve QMM execution efficiency by optimizing the computation order. Furthermore, a binarized energy-efficient Transformer accelerator, namely BETA, is proposed to boost the efficient deployment at the edge. Notably, BETA features a configurable QMM engine, accommodating diverse activation precisions of binary Transformers and offering high-parallelism and high-speed for QMMs with impressive energy efficiency. Experimental results evaluated on ZCU102 FPGA show BETA achieves an average energy efficiency of 174 GOPS/W, which is 1.76~21.92x higher than prior FPGA-based accelerators, showing BETA's good potential for edge Transformer acceleration.

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

↑