English

Auto-Spikformer: Spikformer Architecture Search

Neural and Evolutionary Computing 2023-06-02 v1

Abstract

The 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 by leveraging Spiking Self-Attention (SSA) and Spiking Patch Splitting (SPS) modules. However, we observe that Spikformer may exhibit excessive energy consumption, potentially attributable to redundant channels and blocks. To mitigate this issue, we propose Auto-Spikformer, a one-shot Transformer Architecture Search (TAS) method, which automates the quest for an optimized Spikformer architecture. To facilitate the search process, we propose methods Evolutionary SNN neurons (ESNN), which optimizes the SNN parameters, and apply the previous method of weight entanglement supernet training, which optimizes the Vision Transformer (ViT) parameters. Moreover, we propose an accuracy and energy balanced fitness function FAEB\mathcal{F}_{AEB} that jointly considers both energy consumption and accuracy, and aims to find a Pareto optimal combination that balances these two objectives. Our experimental results demonstrate the effectiveness of Auto-Spikformer, which outperforms the state-of-the-art method including CNN or ViT models that are manually or automatically designed while significantly reducing energy consumption.

Keywords

Cite

@article{arxiv.2306.00807,
  title  = {Auto-Spikformer: Spikformer Architecture Search},
  author = {Kaiwei Che and Zhaokun Zhou and Zhengyu Ma and Wei Fang and Yanqi Chen and Shuaijie Shen and Li Yuan and Yonghong Tian},
  journal= {arXiv preprint arXiv:2306.00807},
  year   = {2023}
}
R2 v1 2026-06-28T10:53:31.373Z