Xpikeformer:用于脉冲Transformer的混合模拟-数字硬件加速
Xpikeformer: Hybrid Analog-Digital Hardware Acceleration for Spiking Transformers
AI总结:
Xpikeformer是一种混合模拟-数字硬件架构,通过集成模拟存内计算和随机脉冲注意力引擎,加速脉冲Transformer,在保持与GPU相当的推理精度的同时,实现高达13倍能耗降低。
摘要:
通过脉冲神经网络(SNN)将神经形态计算与Transformer相结合,为节能序列建模提供了一条有前景的路径,并有可能克服基于人工神经网络(ANN)的Transformer能耗高的特性。然而,由于架构不兼容,基于SNN的Transformer的算法效率无法在GPU上得到充分利用。本文介绍了Xpikeformer,一种旨在加速基于SNN的Transformer模型的混合模拟-数字硬件架构。该架构集成了用于前馈和全连接层的模拟存内计算(AIMC),以及用于高效注意力机制的随机脉冲注意力(SSA)引擎。我们详细介绍了Xpikeformer的设计、实现和评估,展示了其在能耗和计算效率方面的显著改进。通过图像分类任务和无线通信符号检测任务,我们表明Xpikeformer可以达到与基于ANN的Transformer的GPU实现相当的推理精度。评估显示,与最先进的(SOTA)基于ANN的Transformer数字加速器相比,Xpikeformer在吞吐量大致相同的情况下实现了$13\ imes$的能耗降低。此外,与SOTA基于SNN的Transformer的最佳数字ASIC投影相比,Xpikeformer实现了高达$1.9\ imes$的能耗降低。
英文摘要:
The integration of neuromorphic computing and transformers through spiking neural networks (SNNs) offers a promising path to energy-efficient sequence modeling, with the potential to overcome the energy-intensive nature of the artificial neural network (ANN)-based transformers. However, the algorithmic efficiency of SNN-based transformers cannot be fully exploited on GPUs due to architectural incompatibility. This paper introduces Xpikeformer, a hybrid analog-digital hardware architecture designed to accelerate SNN-based transformer models. The architecture integrates analog in-memory computing (AIMC) for feedforward and fully connected layers, and a stochastic spiking attention (SSA) engine for efficient attention mechanisms. We detail the design, implementation, and evaluation of Xpikeformer, demonstrating significant improvements in energy consumption and computational efficiency. Through image classification tasks and wireless communication symbol detection tasks, we show that Xpikeformer can achieve inference accuracy comparable to the GPU implementation of ANN-based transformers. Evaluations reveal that Xpikeformer achieves $13\times$ reduction in energy consumption at approximately the same throughput as the state-of-the-art (SOTA) digital accelerator for ANN-based transformers. Additionally, Xpikeformer achieves up to $1.9\times$ energy reduction compared to the optimal digital ASIC projection of SOTA SNN-based transformers.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。