arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2501.07825cs.AR
收藏

一种面向脉冲驱动Transformer的高效稀疏硬件加速器

An Efficient Sparse Hardware Accelerator for Spike-Driven Transformer

Zhengke Li, Wendong Mao, Siyu Zhang, Qiwei Dong, Zhongfeng Wang

AI总结:

针对大模型硬件实现功耗高的问题,本文提出面向脉冲驱动Transformer的高效稀疏硬件加速器,通过新型位置编码与双脉冲自注意力模块充分利用稀疏性,实现吞吐量与能效的显著提升。

摘要:

近年来,Vision Transformer、BERT等大模型凭借卓越性能受到广泛关注,但其庞大的计算需求会造成显著的功耗与硬件资源消耗。以脉冲驱动方法为核心特征的类脑计算,已成为低功耗硬件实现的一种极具前景的方案。本文提出一种面向脉冲驱动Transformer的高效稀疏硬件加速器。我们首先设计了一种新型编码方法,该方法对有效激活的位置信息进行编码,并跳过非脉冲值,可利用编码后的脉冲执行线性层、最大池化以及脉冲驱动自注意力的计算。传统脉冲神经网络(SNN)加速器的单脉冲输入设计主要聚焦于基于卷积的脉冲计算,与之相比,本文专为脉冲驱动自注意力设计的模块具备处理双脉冲输入的独特能力。通过仅利用被激活的脉冲,本设计充分挖掘了脉冲驱动Transformer的稀疏性,可减少冗余运算、降低功耗并最小化计算延迟。实验结果表明,与现有SNN加速器相比,本文设计在吞吐量和能效方面分别实现了最高13.24倍与1.33倍的提升。

英文摘要:

Recently, large models, such as Vision Transformer and BERT, have garnered significant attention due to their exceptional performance. However, their extensive computational requirements lead to considerable power and hardware resource consumption. Brain-inspired computing, characterized by its spike-driven methods, has emerged as a promising approach for low-power hardware implementation. In this paper, we propose an efficient sparse hardware accelerator for Spike-driven Transformer. We first design a novel encoding method that encodes the position information of valid activations and skips non-spike values. This method enables us to use encoded spikes for executing the calculations of linear, maxpooling and spike-driven self-attention. Compared with the single spike input design of conventional SNN accelerators that primarily focus on convolution-based spiking computations, the specialized module for spike-driven self-attention is unique in its ability to handle dual spike inputs. By exclusively utilizing activated spikes, our design fully exploits the sparsity of Spike-driven Transformer, which diminishes redundant operations, lowers power consumption, and minimizes computational latency. Experimental results indicate that compared to existing SNNs accelerators, our design achieves up to 13.24$\times$ and 1.33$\times$ improvements in terms of throughput and energy efficiency, respectively.

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

↑