Lune

ACM MM2024Top-tier venue

Towards High-performance Spiking Transformers from ANN to SNN Conversion

Zihan Huang, Xinyu Shi, Zecheng Hao, Tong Bu, Jianhao Ding, Zhaofei Yu, Tiejun Huang

Abstract

Spiking neural networks (SNNs) show great potential due to their energy efficiency, fast processing capabilities, and robustness. There are two main approaches to constructing SNNs. Direct training methods require much memory, while conversion methods offer a simpler and more efficient option. However, current conversion methods mainly focus on converting convolutional neural networks (CNNs) to SNNs. Converting Transformers to SNN is challenging because of the presence of non-linear modules. In this paper, we propose an Expectation Compensation Module to preserve the accuracy of the conversion. The core idea is to use information from the previous T time-steps to calculate the expected output at time-step T. We also propose a Multi-Threshold Neuron and the corresponding Parallel Parameter normalization to address the challenge of large time steps needed for high accuracy, aiming to reduce network latency and power consumption. Our experimental results demonstrate that our approach achieves state-of-the-art performance. For example, we achieve a top-1 accuracy of 88.60% with only a 1% loss in accuracy using 4 time steps while consuming only 35% of the original power of the Transformer. To our knowledge, this is the first successful Artificial Neural Network (ANN) to SNN conversion for Spiking Transformers that achieves high accuracy, low latency, and low power consumption on complex datasets. The source codes of the proposed method are available at https://github.com/h-z-h-cell/Transformer-to-SNN-ECMT.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

15 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Training-Free ANN-to-SNN Conversion for High-Performance Spiking Transformers cites Optimal ANN-SNN Conversion for High-accuracy and Ultra-low-latency Spiking Neural Networks
  • Optimal ANN-SNN Conversion for High-accuracy and Ultra-low-latency Spiking Neural Networks cites Deep Residual Learning in Spiking Neural Networks
  • SpikePack: Enhanced Information Flow in Spiking Neural Networks with High Hardware Compatibility cites Deep Residual Learning in Spiking Neural Networks
  • SpikePack: Enhanced Information Flow in Spiking Neural Networks with High Hardware Compatibility cites Spike-driven Transformer
  • Neural Dynamics Self-Attention for Spiking Transformers cites Deep Residual Learning in Spiking Neural Networks
  • Neural Dynamics Self-Attention for Spiking Transformers cites Spike-driven Transformer
  • Spike-driven Transformer cites Deep Residual Learning in Spiking Neural Networks
  • Error Amplification Limits ANN-to-SNN Conversion in Continuous Control cites Optimal ANN-SNN Conversion for High-accuracy and Ultra-low-latency Spiking Neural Networks
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers15

  1. Error Amplification Limits ANN-to-SNN Conversion in Continuous ControlZijie Xu, Zihan Huang, Yiting Dong, Kang Chen et al.ICML 2026 · 2 citations
  2. Training-Free ANN-to-SNN Conversion for High-Performance Spiking TransformersJingya Wang, Xin Deng, Wenjie Wei, Dehao Zhang et al.AAAI 2026 · 1 citation
  3. SpikePack: Enhanced Information Flow in Spiking Neural Networks with High Hardware CompatibilityGuobin Shen, Jindong Li, Tenglong Li, Dongcheng Zhao et al.ICCV 2025 · 1 citation
  4. SpikeVLA: Vision-Language-Action Models with Spiking Neural NetworksRuiqi Song, Dujun Nie, Siyu Teng, Baiyong Ding et al.ICML 2026 · 1 citation
  5. Neural Dynamics Self-Attention for Spiking TransformersDehao Zhang, Fukai Guo, Shuai Wang, Jingya Wang et al.ICLR 2026 · 1 citation

Builds on24

  1. Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
  2. Learned Step Size quantizationSteven K. Esser, Jeffrey L. McKinstry, Deepika Bablani, Rathinakumar Appuswamy et al.ICLR 2020 · 1,037 citations
  3. Deep Residual Learning in Spiking Neural NetworksWei Fang, Zhaofei Yu, Yanqi Chen, Tiejun Huang et al.NeurIPS 2021 · 857 citations
  4. Spike-driven TransformerMan Yao, Jiakui Hu, Zhaokun Zhou, Li Yuan et al.NeurIPS 2023 · 368 citations
  5. Optimal ANN-SNN Conversion for High-accuracy and Ultra-low-latency Spiking Neural NetworksTong Bu, Wei Fang, Jianhao Ding, Penglin Dai et al.ICLR 2022 · 272 citations

Related papers

  1. SpikeZIP-TF: Conversion is All You Need for Transformer-based SNNKang You, Zekai Xu, Chen Nie, Zhijie Deng et al.ICML 2024 · 20 citations
  2. Generalized Threshold Optimization with Harmony Multi-Threshold Neurons for Accurate ANN-to-SNN ConversionWenhan Zhang, Zihan Huang, Tong Bu, Tiejun Huang et al.AAAI 2026
  3. Efficient ANN-SNN Conversion with Error Compensation LearningChang Liu, Jiangrong Shen, Xuming Ran, Mingkun Xu et al.ICML 2025
  4. Optimized Potential Initialization for Low-Latency Spiking Neural NetworksTong Bu, Jianhao Ding, Zhaofei Yu, Tiejun HuangAAAI 2022 · 112 citations
  5. TTFSFormer: A TTFS-based Lossless Conversion of Spiking TransformerLusen Zhao, Zihan Huang, Jianhao Ding, Zhaofei YuICML 2025
Dusk over the sea between two cliffs drawn in fine vertical lines