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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Xing, Xingrun, Gao, Boyan, Zhang, Zheng, Clifton, David A., Xiao, Shitao, Du, Li, Li, Guoqi, Zhang, Jiajun
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910907823554560
author Xing, Xingrun
Gao, Boyan
Zhang, Zheng
Clifton, David A.
Xiao, Shitao
Du, Li
Li, Guoqi
Zhang, Jiajun
author_facet Xing, Xingrun
Gao, Boyan
Zhang, Zheng
Clifton, David A.
Xiao, Shitao
Du, Li
Li, Guoqi
Zhang, Jiajun
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2407_04752
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle SpikeLLM: Scaling up Spiking Neural Network to Large Language Models via Saliency-based Spiking
Xing, Xingrun
Gao, Boyan
Zhang, Zheng
Clifton, David A.
Xiao, Shitao
Du, Li
Li, Guoqi
Zhang, Jiajun
Machine Learning
Computation and Language
Neural and Evolutionary Computing
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.
title SpikeLLM: Scaling up Spiking Neural Network to Large Language Models via Saliency-based Spiking
topic Machine Learning
Computation and Language
Neural and Evolutionary Computing
url https://arxiv.org/abs/2407.04752