Training-Free ANN-to-SNN Conversion for High-Performance Spiking Transformer

Jingya Wang, Xin Deng, Wenjie Wei, Dehao Zhang, Shuai Wang +5 more
8/11/2025
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

Leveraging the event-driven paradigm, Spiking Neural Networks (SNNs) offer a promising approach for energy-efficient Transformer architectures.While ANN-to-SNN conversion avoids the high training cost of directly trained Spiking Transformers, existing approaches still struggle to handle the nonlinear operations within Transformer blocks, and often require additional fine-tuning of pretrained ANNs.To address these limitations, we propose a training-free and high-performance ANN-to-SNN conversion framework tailored for Transformer architectures. Specifically, we introduce a Multi-basis Exponential Decay (MBE) neuron that combines exponential decay with a multi-basis encoding strategy to effectively approximate nonlinear operations, eliminating the need for weight modifications in pretrained ANNs.Extensive experiments across diverse tasks (CV, NLU, NLG) and mainstream Transformer architectures (ViT, RoBERTa, GPT-2) demonstrate that our method achieves near-lossless conversion accuracy with significantly lower latency. This provides a promising pathway for the efficient and scalable deployment of Spiking Transformers in real-world applications.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wang2025trainingfree,
  title  = {Training-Free ANN-to-SNN Conversion for High-Performance Spiking Transformer},
  author = {Jingya Wang and Xin Deng and Wenjie Wei and Dehao Zhang and Shuai Wang and Qian Sun and Jieyuan Zhang and Hanwen Liu and Ning Xie and Malu Zhang},
  year   = {2025},
  eprint = {2508.07710},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2508.07710v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2508.07710.svg)](https://codeofpaper.com/paper/2508.07710)

Discussion