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

脉冲神经网络自注意力机制用于脉冲变换器

Neural Dynamics Self-Attention for Spiking Transformers

University of Electronic Science and Technology of China(电子科技大学);Shenzhen Loop Area Institute(深圳河套学院);The Chinese University of Hong Kong (Shenzhen)(香港中文大学(深圳))

Dehao Zhang, Fukai Guo, Shuai Wang, Jingya Wang, Jieyuan Zhang, Yimeng Shan, Malu Zhang, Yang Yang, Haizhou Li

AI总结:

本文提出LRF-Dyn机制,通过局部感受野和膜电位动态减少内存开销并提升性能,验证了其在视觉任务中的有效性。

摘要:

将脉冲神经网络(SNN)与变换器架构结合,为边缘视觉应用提供了在能效和性能之间平衡的有前途的路径。然而,现有脉冲变换器面临两大挑战:(i)与人工神经网络(ANN)相比性能差距较大;(ii)推理时内存开销高。通过理论分析,我们将这两种限制归因于脉冲自注意力(SSA)机制:缺乏局部偏差和需要存储大注意力矩阵。受生物视觉神经元局部感受野(LRF)和膜电位动态的启发,我们提出了LRF-Dyn,利用具有局部感受野的脉冲神经元计算注意力并减少内存需求。具体而言,我们引入LRF方法到SSA中,以赋予邻近区域更高的权重,加强局部建模并提升性能。在此基础上,我们通过电荷-放电-重置动态近似得到的注意力计算,消除显式存储注意力矩阵的需求,从而减少推理时间的内存。在视觉任务中的广泛实验证实,我们的方法在减少内存开销的同时,带来了显著的性能提升。这些结果证明了其作为实现高效能脉冲变换器的关键单元。

英文摘要:

Integrating Spiking Neural Networks (SNNs) with Transformer architectures offers a promising pathway to balance energy efficiency and performance, particularly for edge vision applications. However, existing Spiking Transformers face two critical challenges: (i) a substantial performance gap compared to their Artificial Neural Networks (ANNs) counterparts and (ii) high memory overhead during inference. Through theoretical analysis, we attribute both limitations to the Spiking Self-Attention (SSA) mechanism: the lack of locality bias and the need to store large attention matrices. Inspired by the localized receptive fields (LRF) and membrane-potential dynamics of biological visual neurons, we propose LRF-Dyn, which uses spiking neurons with localized receptive fields to compute attention while reducing memory requirements. Specifically, we introduce a LRF method into SSA to assign higher weights to neighboring regions, strengthening local modeling and improving performance. Building on this, we approximate the resulting attention computation via charge-fire-reset dynamics, eliminating explicit attention-matrix storage and reducing inference-time memory. Extensive experiments on visual tasks confirm that our method reduces memory overhead while delivering significant performance improvements. These results establish it as a key unit for achieving energy-efficient Spiking Transformers.

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

↑