SpikeLM: Towards General Spike-Driven Language Modeling via Elastic Bi-Spiking Mechanisms

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Xing, Xingrun, Zhang, Zheng, Ni, Ziyi, Xiao, Shitao, Ju, Yiming, Fan, Siqi, Wang, Yequan, Zhang, Jiajun, Li, Guoqi
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866911906089926656
author Xing, Xingrun
Zhang, Zheng
Ni, Ziyi
Xiao, Shitao
Ju, Yiming
Fan, Siqi
Wang, Yequan
Zhang, Jiajun
Li, Guoqi
author_facet Xing, Xingrun
Zhang, Zheng
Ni, Ziyi
Xiao, Shitao
Ju, Yiming
Fan, Siqi
Wang, Yequan
Zhang, Jiajun
Li, Guoqi
contents Towards energy-efficient artificial intelligence similar to the human brain, the bio-inspired spiking neural networks (SNNs) have advantages of biological plausibility, event-driven sparsity, and binary activation. Recently, large-scale language models exhibit promising generalization capability, making it a valuable issue to explore more general spike-driven models. However, the binary spikes in existing SNNs fail to encode adequate semantic information, placing technological challenges for generalization. This work proposes the first fully spiking mechanism for general language tasks, including both discriminative and generative ones. Different from previous spikes with {0,1} levels, we propose a more general spike formulation with bi-directional, elastic amplitude, and elastic frequency encoding, while still maintaining the addition nature of SNNs. In a single time step, the spike is enhanced by direction and amplitude information; in spike frequency, a strategy to control spike firing rate is well designed. We plug this elastic bi-spiking mechanism in language modeling, named SpikeLM. It is the first time to handle general language tasks with fully spike-driven models, which achieve much higher accuracy than previously possible. SpikeLM also greatly bridges the performance gap between SNNs and ANNs in language modeling. Our code is available at https://github.com/Xingrun-Xing/SpikeLM.
format Preprint
id arxiv_https___arxiv_org_abs_2406_03287
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle SpikeLM: Towards General Spike-Driven Language Modeling via Elastic Bi-Spiking Mechanisms
Xing, Xingrun
Zhang, Zheng
Ni, Ziyi
Xiao, Shitao
Ju, Yiming
Fan, Siqi
Wang, Yequan
Zhang, Jiajun
Li, Guoqi
Neural and Evolutionary Computing
Computation and Language
Machine Learning
Towards energy-efficient artificial intelligence similar to the human brain, the bio-inspired spiking neural networks (SNNs) have advantages of biological plausibility, event-driven sparsity, and binary activation. Recently, large-scale language models exhibit promising generalization capability, making it a valuable issue to explore more general spike-driven models. However, the binary spikes in existing SNNs fail to encode adequate semantic information, placing technological challenges for generalization. This work proposes the first fully spiking mechanism for general language tasks, including both discriminative and generative ones. Different from previous spikes with {0,1} levels, we propose a more general spike formulation with bi-directional, elastic amplitude, and elastic frequency encoding, while still maintaining the addition nature of SNNs. In a single time step, the spike is enhanced by direction and amplitude information; in spike frequency, a strategy to control spike firing rate is well designed. We plug this elastic bi-spiking mechanism in language modeling, named SpikeLM. It is the first time to handle general language tasks with fully spike-driven models, which achieve much higher accuracy than previously possible. SpikeLM also greatly bridges the performance gap between SNNs and ANNs in language modeling. Our code is available at https://github.com/Xingrun-Xing/SpikeLM.
title SpikeLM: Towards General Spike-Driven Language Modeling via Elastic Bi-Spiking Mechanisms
topic Neural and Evolutionary Computing
Computation and Language
Machine Learning
url https://arxiv.org/abs/2406.03287