SpikeLLM: Scaling up Spiking Neural Network to Large Language Models via Saliency-based Spiking

Xingrun Xing, Boyan Gao, Zheng Zhang, David A. Clifton, Shitao Xiao +3 more
7/5/2024
cs.LGcs.CLcs.NE

No official code found. Best implementation: Xingrun-Xing2/SpikeLLM (58 stars, last commit 2025-03-02).

Abstract

Recent advancements in large language models (LLMs) with billions of parameters have improved performance in various applications, but their inference processes demand significant energy and computational resources. In contrast, the human brain, with approximately 86 billion neurons, is much more energy-efficient than LLMs with similar parameters. Inspired by this, we redesign 7$\sim$70 billion parameter LLMs using bio-plausible spiking mechanisms, emulating the efficient behavior of the human brain. We propose the first spiking large language model, SpikeLLM. Coupled with the proposed model, two essential approaches are proposed to improve spike training efficiency: Generalized Integrate-and-Fire (GIF) neurons to compress spike length from $T$ to $\frac{T}{L} \log_2 L$ bits, and an Optimal Brain Spiking framework to divide outlier channels and allocate different $T$ for GIF neurons, which further compresses spike length to approximate $log_2T$ bits. The necessity of spike-driven LLM is proved by comparison with quantized LLMs with similar operations. In the OmniQuant pipeline, SpikeLLM reduces 11.01% WikiText2 perplexity and improves 2.55% accuracy of common scene reasoning on a LLAMA-7B W4A4 model. In the GPTQ pipeline, SpikeLLM achieves direct additive in linear layers, significantly exceeding PB-LLMs.

View on arXivView PDF

Code Implementations(1)

This is the implentation of our paper "SpikeLLM: Scaling up Spiking Neural Network to Large Language Models via Saliency-based Spiking" in ICLR 2025.

589Shell, PythonFeb 19, 20251 years ago

Similar Papers

Cite this paper

@article{xing2024spikellm,
  title  = {SpikeLLM: Scaling up Spiking Neural Network to Large Language Models via Saliency-based Spiking},
  author = {Xingrun Xing and Boyan Gao and Zheng Zhang and David A. Clifton and Shitao Xiao and Li Du and Guoqi Li and Jiajun Zhang},
  year   = {2024},
  eprint = {2407.04752},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.04752v3},
  journal = {ICLR 2024 2024}
}

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

Discussion