Spatial–Temporal Spiking Feature Pruning in Spiking Transformer
Spiking neural networks (SNNs) are known for brain-inspired architecture and low power consumption. Leveraging biocompatibility and self-attention mechanism, Spiking Transformers become the most promising SNN architecture with high accuracy. However, Spiking Transformers still faces the challenge of high training costs, such as a 51<inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><tex-math notation="LaTeX">$M$</tex-math></inline-formula> network requiring 181 training hours on ImageNet. In this work, we explore feature pruning to reduce training costs and overcome two challenges: high pruning ratio and lightweight pruning methods. We first analyze the spiking features and find the potential for a high pruning ratio. The majority of information is concentrated on a part of the spiking features in spiking transformer, which suggests that we can keep this part of the tokens and prune the others. To achieve lightweight, a parameter-free spatial–temporal spiking feature pruning method is proposed, which uses only a simple addition-sorting operation. The spiking features/tokens with high spike accumulation values are selected for training. The others are pruned and merged through a compensation module called Softmatch. Experimental results demonstrate that our method reduces training costs without compromising image classification accuracy. On ImageNet, our approach reduces the training time from 181 to 128 h while achieving comparable accuracy (83.13% versus 83.07%).
Authors
- Zhaokun Zhou (ORCID: https://orcid.org/0000-0003-4454-6630)
- Guoqi Li (ORCID: https://orcid.org/0000-0002-8994-431X)
- Guibo Luo (ORCID: https://orcid.org/0000-0002-1709-1207)
- Kaiwei Che
- Man Yao (ORCID: https://orcid.org/0000-0002-7322-9258)
- Yuan Li (ORCID: https://orcid.org/0000-0002-2747-0649)
- Yuesheng Zhu
- Jun Niu (ORCID: https://orcid.org/0000-0001-8332-0269)
Institutions
- Chinese Academy of Sciences (CN)
- Peking University (CN)
- Shandong Institute of Automation (CN)
Publication Details
- Journal
- IEEE Transactions on Cognitive and Developmental Systems
- Published
- 2024-11-19
- DOI
- https://doi.org/10.1109/tcds.2024.3500018
- Citations
- 4
- Primary Topic
- Advanced Memory and Neural Computing
- Type
- article
- Field-Weighted Citation Impact
- 0.83