Author:
Che Kaiwei,Zhou Zhaokun,Niu Jun,Ma Zhengyu,Fang Wei,Chen Yanqi,Shen Shuaijie,Yuan Li,Tian Yonghong
Abstract
IntroductionThe integration of self-attention mechanisms into Spiking Neural Networks (SNNs) has garnered considerable interest in the realm of advanced deep learning, primarily due to their biological properties. Recent advancements in SNN architecture, such as Spikformer, have demonstrated promising outcomes. However, we observe that Spikformer may exhibit excessive energy consumption, potentially attributable to redundant channels and blocks.MethodsTo mitigate this issue, we propose a one-shot Spiking Transformer Architecture Search method, namely Auto-Spikformer. Auto-Spikformer extends the search space to include both transformer architecture and SNN inner parameters. We train and search the supernet based on weight entanglement, evolutionary search, and the proposed Discrete Spiking Parameters Search (DSPS) methods. Benefiting from these methods, the performance of subnets with weights inherited from the supernet without even retraining is comparable to the original Spikformer. Moreover, we propose a new fitness function aiming to find a Pareto optimal combination balancing energy consumption and accuracy.Results and discussionOur experimental results demonstrate the effectiveness of Auto-Spikformer, which outperforms the original Spikformer and most CNN or ViT models with even fewer parameters and lower energy consumption.
Reference80 articles.
1. “Optimal ann-snn conversion for high-accuracy and ultra-low-latency spiking neural networks,”;Bu;International Conference on Learning Representations,2021
2. Spiking deep convolutional neural networks for energy-efficient object recognition;Cao;Int. J. Comput. Vis,2015
3. “End-to-end object detection with transformers,”;Carion,2020
4. Brains and algorithms partially converge in natural language processing;Caucheteux;Commun. Biol,2022
5. “Differentiable hierarchical and surrogate gradient search for spiking neural networks,”;Che;Advances in Neural Information Processing Systems,2022