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

具有扫视注意力的脉冲视觉Transformer

Spiking Vision Transformer with Saccadic Attention

University of Electronic Science and Technology of China(电子科技大学);Northumbria University(诺森比亚大学);Liaoning Technical University(辽宁工程技术大学)

Shuai Wang, Malu Zhang, Dehao Zhang, Ammar Belatreche, Yichen Xiao, Yu Liang, Yimeng Shan, Qian Sun, Enqi Zhang, Yang Yang

AI总结:

针对基于SNN的ViT中自注意力与时空脉冲序列不匹配的问题,本文提出受生物扫视启发的SSSA机制并构建SNN-ViT,在多种视觉任务上以线性复杂度达到SOTA。

摘要:

脉冲神经网络(SNN)与视觉Transformer(ViT)的结合有望同时实现能效和高性能,尤其适用于边缘视觉应用。然而,基于SNN的ViT与其对应的人工神经网络(ANN)之间仍存在显著性能差距。本文首先分析了基于SNN的ViT性能受限的原因,并指出普通自注意力机制与时空脉冲序列之间存在不匹配。这种不匹配会导致空间相关性下降以及时间交互受限。为解决这些问题,我们受生物扫视注意力机制启发,提出了一种创新的扫视脉冲自注意力(Saccadic Spike Self-Attention,SSSA)方法。具体而言,在空间域中,SSSA采用一种新颖的基于脉冲分布的方法,以有效评估基于SNN的ViT中Query与Key对之间的相关性。在时间维度上,SSSA采用扫视交互模块,在每个时间步动态关注选定的视觉区域,并通过时间交互显著增强对整个场景的理解。基于SSSA机制,我们开发了一种基于SNN的视觉Transformer(SNN-ViT)。在多种视觉任务上的大量实验表明,SNN-ViT以线性计算复杂度实现了最先进的性能。SNN-ViT的有效性和效率凸显了其在功耗关键型边缘视觉应用中的潜力。

英文摘要:

The combination of Spiking Neural Networks (SNNs) and Vision Transformers (ViTs) holds potential for achieving both energy efficiency and high performance, particularly suitable for edge vision applications. However, a significant performance gap still exists between SNN-based ViTs and their ANN counterparts. Here, we first analyze why SNN-based ViTs suffer from limited performance and identify a mismatch between the vanilla self-attention mechanism and spatio-temporal spike trains. This mismatch results in degraded spatial relevance and limited temporal interactions. To address these issues, we draw inspiration from biological saccadic attention mechanisms and introduce an innovative Saccadic Spike Self-Attention (SSSA) method. Specifically, in the spatial domain, SSSA employs a novel spike distribution-based method to effectively assess the relevance between Query and Key pairs in SNN-based ViTs. Temporally, SSSA employs a saccadic interaction module that dynamically focuses on selected visual areas at each timestep and significantly enhances whole scene understanding through temporal interactions. Building on the SSSA mechanism, we develop a SNN-based Vision Transformer (SNN-ViT). Extensive experiments across various visual tasks demonstrate that SNN-ViT achieves state-of-the-art performance with linear computational complexity. The effectiveness and efficiency of the SNN-ViT highlight its potential for power-critical edge vision applications.

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

↑