Reproduce “FAS: Fast ANN-SNN Conversion for Spiking Large Language Models” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Long Chen, Xiaotian Song, Andy Song, BaDong Chen, Jiancheng Lv, Yanan Sun

FAS presents a two-stage method for converting Large Language Models (LLMs) into energy-efficient Spiking Large Language Models (SLLMs) by mitigating conversion errors. The strategy enabled an up to 96.63% reduction in energy consumption for models like OPT-7B, while preserving or improving performance compared to original ANNs across various tasks at low inference timesteps.

Key insights

  • Temporal errors, caused by disordered spike sequences, are a dominant source of performance degradation in deep converted SLLMs, necessitating specific calibration.
  • Leveraging full-parameter fine-tuning of pre-trained LLMs with SNN-compatible QCFS activation functions can efficiently mitigate initial quantization and clipping errors.
  • A coarse-to-fine calibration strategy (Layer-wise followed by Neuron-wise) effectively reduces accumulated temporal errors, enabling high performance at low inference timesteps for complex LLM architectures.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.