LAS: Loss-less ANN-SNN Conversion for Fully Spike-Driven Large Language Models

Long Chen, Xiaotian Song, Yanan Sun
5/14/2025
cs.LGcs.CL

Official code: lc783/LAS (7 stars, last commit 2025-12-05).

Abstract

Spiking Large Language Models (LLMs) have emerged as an energy-efficient alternative to conventional LLMs through their event-driven computation. To effectively obtain spiking LLMs, researchers develop different ANN-to-SNN conversion methods by leveraging pre-trained ANN parameters while inheriting the energy efficiency of SNN. However, existing conversion methods struggle with extreme activation outliers and incompatible nonlinear operations of ANN-based LLMs. To address this, we propose a loss-less ANN-SNN conversion for fully spike-driven LLMs, termed LAS. Specifically, LAS introduces two novel neurons to convert the activation outlier and nonlinear operation of ANN-based LLMs. Moreover, LAS tailors the spike-equivalent Transformer components for spiking LLMs, which can ensure full spiking conversion without any loss of performance. Experimental results on six language models and two vision-language models demonstrate that LAS achieves loss-less conversion. Notably, on OPT-66B, LAS even improves the accuracy of 2\% on the WSC task. In addition, the parameter and ablation studies further verify the effectiveness of LAS. The source code is available at https://github.com/lc783/LAS

View on arXivView PDF

Code Implementations(1)

lc783/LASOfficial100%
72Shell, PythonMay 14, 202510 months ago

Similar Papers

Cite this paper

@article{chen2025las,
  title  = {LAS: Loss-less ANN-SNN Conversion for Fully Spike-Driven Large Language Models},
  author = {Long Chen and Xiaotian Song and Yanan Sun},
  year   = {2025},
  eprint = {2505.09659},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.09659v1}
}

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

Discussion