FAS: Fast ANN-SNN Conversion for Spiking Large Language Models

Long Chen, Xiaotian Song, Andy Song, BaDong Chen, Jiancheng Lv +1 more
2/6/2025
cs.LGcs.AIcs.CL

Official code: lc783/FAS (3 stars, last commit 2025-06-03).

Abstract

Spiking Large Language Models have been shown as a good alternative to LLMs in various scenarios. Existing methods for creating Spiking LLMs, i.e., direct training and ANN-SNN conversion, often suffer from performance degradation and relatively high computational costs. To address these issues, we propose a novel Fast ANN-SNN conversion strategy (FAS) that transforms LLMs into spiking LLMs in two stages. The first stage employs a full-parameter fine-tuning of pre-trained models, so it does not need any direct training from scratch. The second stage introduces a coarse-to-fine calibration method to reduce conversion errors and improve accuracy. Experiments on both language and vision-language tasks across four different scales of LLMs demonstrate that FAS can achieve state-of-the-art performance yet with significantly reduced inference latency and computational costs. Notably, FAS only takes eight timesteps to achieve an accuracy of 3\% higher than that of the OPT-7B model, while reducing energy consumption by 96.63\%. The source code is available at https://github.com/lc783/FAS

View on arXivView PDF

Code Implementations(1)

lc783/FASOfficial100%
32PythonMay 14, 20251 years ago

Similar Papers

Cite this paper

@article{chen2025fas,
  title  = {FAS: Fast ANN-SNN Conversion for Spiking Large Language Models},
  author = {Long Chen and Xiaotian Song and Andy Song and BaDong Chen and Jiancheng Lv and Yanan Sun},
  year   = {2025},
  eprint = {2502.04405},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.04405v2}
}

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/2502.04405.svg)](https://codeofpaper.com/paper/2502.04405)

Discussion