Spiking Transformer with Spatial-Temporal Spiking Self-Attention
Spiking Neural Networks are celebrated for energy efficiency and biological plausibility. Building on Spiking Self-Attention (SSA), Spiking Transformers are extensively studied due to their exceptional performance. However, SSA focuses solely on spatial dimension at each time step, overlooking the crucial features across temporal dimension. To address this, we propose the Spatial-Temporal Spiking Self-Attention (STSSA), a spike-driven mechanism that leverages both spatial and temporal information with negligible additional computational overhead. Specifically, we extract the Representative Spiking Temporal Tokens (RSTT) and apply temporal window masking to the RSTT. These tokens are inserted between the Query and Key to integrate temporal features. Furthermore, we design a Multi-dimensional Learnable Scaling Factor (MLSF) to adapt to STSSA. Our results consistently demonstrate that STSSA outperforms SSA across extensive experiments on sequential, neuromorphic, and static datasets. Notably, STSSA achieves performance improvements of 5.7% and 2.9% over SSA on Sequential CIFAR-100 and CIFAR-10DVS, respectively. STSSA provides a powerful alternative within the family of Spiking Self-Attention mechanisms.
Authors
- Yuesheng Zhu (ORCID: https://orcid.org/0000-0003-2524-6800)
- Zhaokun Zhou (ORCID: https://orcid.org/0000-0002-0023-526X)
- Yang Zhang (ORCID: https://orcid.org/0000-0003-2615-3585)
- Jun Niu (ORCID: https://orcid.org/0000-0001-8332-0269)
- Yuan Li (ORCID: https://orcid.org/0000-0002-1938-8856)
Institutions
- Peking University (CN)
Publication Details
- Published
- 2025-03-12
- DOI
- https://doi.org/10.1109/icassp49660.2025.10890026
- Citations
- 1
- Primary Topic
- Advanced Memory and Neural Computing
- Type
- article
- Field-Weighted Citation Impact
- 0.73
Funders
- National Natural Science Foundation of China
- Natural Science Foundation of Hunan Province