arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.03287cs.NEcs.CLcs.LG
收藏

SpikeLM:通过弹性双脉冲机制迈向通用脉冲驱动语言建模

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

Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);Beijing Academy of Artificial Intelligence(北京智源人工智能研究院)

Xingrun Xing, Zheng Zhang, Ziyi Ni, Shitao Xiao, Yiming Ju, Siqi Fan, Yequan Wang, Jiajun Zhang, Guoqi Li

AI总结:

本文提出首个全脉冲驱动语言建模机制SpikeLM,通过引入双向、弹性幅度与频率编码的弹性双脉冲机制,有效解决了二值脉冲语义信息不足的问题,大幅提升了通用语言任务准确率并缩小了SNN与ANN的性能差距。

摘要:

为了实现类似人脑的节能人工智能,生物启发的脉冲神经网络(SNNs)具有生物合理性、事件驱动稀疏性和二值激活的优势。近期,大规模语言模型展现出良好的泛化能力,使得探索更通用的脉冲驱动模型成为一个有价值的课题。然而,现有SNNs中的二值脉冲无法编码充足的语义信息,给泛化带来了技术挑战。本工作提出了首个用于通用语言任务(包括判别式和生成式任务)的全脉冲机制。不同于以往具有{0,1}电平的脉冲,我们提出了一种更通用的脉冲公式,具备双向、弹性幅度和弹性频率编码,同时仍保持SNNs的加法本质。在单个时间步内,脉冲通过方向和幅度信息得到增强;在脉冲频率方面,设计了一种控制脉冲发放率的策略。我们将这种弹性双脉冲机制引入语言建模,命名为SpikeLM。这是首次利用全脉冲驱动模型处理通用语言任务,其准确率远超以往水平。SpikeLM也极大地缩小了语言建模中SNNs与ANNs之间的性能差距。代码可在 https://github.com/Xingrun-Xing/SpikeLM 获取。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑