arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.19764cs.NE
收藏

具有时空注意力的脉冲 Transformer

Spiking Transformer with Spatial-Temporal Attention

Donghyun Lee, Yuhang Li, Youngeun Kim, Shiting Xiao, Priyadarshini Panda

AI总结:

针对现有脉冲Transformer忽略时间依赖性的问题,提出STAtten架构,通过分块计算策略在自注意力机制中高效整合时空信息,在同等计算复杂度下显著提升了模型在静态与神经形态数据集上的性能。

摘要:

基于脉冲的 Transformer 是传统基于人工神经网络 (ANN) 的 Transformer 的一种极具吸引力且节能的替代方案,通过稀疏的二值计算取得了令人瞩目的成果。然而,现有的基于脉冲的 Transformer 主要关注空间注意力,而忽略了基于脉冲处理中固有的关键时间依赖性,导致特征表示欠佳且性能受限。为了解决这一局限性,我们提出了具有时空注意力的脉冲 Transformer (STAtten),这是一种简单直接的架构,可在自注意力机制中高效整合空间和时间信息。STAtten 引入了分块计算策略,以时空块的形式处理信息,在保持与以往纯空间方法相同的计算复杂度的同时,实现了全面的特征捕获。我们的方法可以无缝集成到现有的基于脉冲的 Transformer 中,无需进行架构大修。大量实验表明,STAtten 显著提升了现有基于脉冲的 Transformer 在静态和神经形态数据集上的性能,包括 CIFAR10/100、ImageNet、CIFAR10-DVS 和 N-Caltech101。代码可在 https://github.com/Intelligent-Computing-Lab-Yale/STAtten 获取。

英文摘要:

Spike-based Transformer presents a compelling and energy-efficient alternative to traditional Artificial Neural Network (ANN)-based Transformers, achieving impressive results through sparse binary computations. However, existing spike-based transformers predominantly focus on spatial attention while neglecting crucial temporal dependencies inherent in spike-based processing, leading to suboptimal feature representation and limited performance. To address this limitation, we propose Spiking Transformer with Spatial-Temporal Attention (STAtten), a simple and straightforward architecture that efficiently integrates both spatial and temporal information in the self-attention mechanism. STAtten introduces a block-wise computation strategy that processes information in spatial-temporal chunks, enabling comprehensive feature capture while maintaining the same computational complexity as previous spatial-only approaches. Our method can be seamlessly integrated into existing spike-based transformers without architectural overhaul. Extensive experiments demonstrate that STAtten significantly improves the performance of existing spike-based transformers across both static and neuromorphic datasets, including CIFAR10/100, ImageNet, CIFAR10-DVS, and N-Caltech101. The code is available at https://github.com/Intelligent-Computing-Lab-Yale/STAtten

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

↑