STAA-SNN:用于脉冲神经网络的空间-时间注意力聚合器
STAA-SNN: Spatial-Temporal Attention Aggregator for Spiking Neural Networks
AI总结:
本文提出STAA-SNN框架,通过引入脉冲驱动自注意力、位置编码、步注意力和时间步随机dropout策略,有效捕获时空依赖,在多个数据集上取得SOTA性能。
摘要:
脉冲神经网络(SNNs)因其生物合理性和能效而备受关注,使其成为人工神经网络(ANNs)的有前途的替代方案。然而,SNNs与ANNs之间的性能差距仍然是一个重大挑战,阻碍了SNNs的广泛应用。在本文中,我们提出了一个空间-时间注意力聚合器SNN(STAA-SNN)框架,该框架动态地关注并捕获空间和时间依赖关系。首先,我们引入了一种专为SNNs设计的脉冲驱动自注意力机制。此外,我们开创性地引入了位置编码,将潜在的时间关系整合到输入特征中。对于空间-时间信息聚合,我们采用步注意力来选择性地放大不同步骤中的相关特征。最后,我们实施了时间步随机dropout策略以避免局部最优。因此,STAA-SNN有效地捕获了空间和时间依赖关系,使模型能够分析复杂模式并做出准确预测。该框架在多个数据集上表现出色,并展现出强大的泛化能力。值得注意的是,STAA-SNN在神经形态数据集CIFAR10-DVS上取得了最先进的结果,在静态数据集CIFAR-10、CIFAR-100和ImageNet上的准确率分别达到97.14%、82.05%和70.40%。此外,我们的模型在更少时间步的情况下,性能提升了0.33%至2.80%。该模型的代码可在GitHub上获取。
英文摘要:
Spiking Neural Networks (SNNs) have gained significant attention due to their biological plausibility and energy efficiency, making them promising alternatives to Artificial Neural Networks (ANNs). However, the performance gap between SNNs and ANNs remains a substantial challenge hindering the widespread adoption of SNNs. In this paper, we propose a Spatial-Temporal Attention Aggregator SNN (STAA-SNN) framework, which dynamically focuses on and captures both spatial and temporal dependencies. First, we introduce a spike-driven self-attention mechanism specifically designed for SNNs. Additionally, we pioneeringly incorporate position encoding to integrate latent temporal relationships into the incoming features. For spatial-temporal information aggregation, we employ step attention to selectively amplify relevant features at different steps. Finally, we implement a time-step random dropout strategy to avoid local optima. As a result, STAA-SNN effectively captures both spatial and temporal dependencies, enabling the model to analyze complex patterns and make accurate predictions. The framework demonstrates exceptional performance across diverse datasets and exhibits strong generalization capabilities. Notably, STAA-SNN achieves state-of-the-art results on neuromorphic datasets CIFAR10-DVS, with remarkable performances of 97.14%, 82.05% and 70.40% on the static datasets CIFAR-10, CIFAR-100 and ImageNet, respectively. Furthermore, our model exhibits improved performance ranging from 0.33\% to 2.80\% with fewer time steps. The code for the model is available on GitHub.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。