arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2604.16475cs.NEcs.AI
收藏

基于脉冲的大型语言模型

Spike-driven Large Language Model

Institute of Automation, Chinese Academy of Sciences, Beijing 100190, China;School of Artificial Intelligence, University of Chinese Academy of Sciences, Beijing 100049, China;Brain-Inspired Models Group, Beijing Academy of Artificial Intelligence, Beijing 100862, China;School of Future Technology, University of Chinese Academy of Sciences, Beijing 101408, China;Zhongguancun Academy, Beijing 100094, China;Pengcheng Laboratory, Guangdong 518055, China;School of Advanced Inter-disciplinary Sciences, University of Chinese Academy of Sciences, Beijing 101408, China;School of Computer Science, Peking University, Beijing 100871, China;Key Laboratory of Brain Cognition;Spiking Intelligence Lab, Tianqiao \& Chirssy Chen Institute, Shanghai 201203, China

Han Xu, Xuerui Qiu, Baiyu Chen, Xinhao Luo, Xingrun Xing, Jiahong Zhang, Bo Lei, Tiejun Huang, Bo Xu, Guoqi Li

AI总结:

本文提出SDLLM,通过稀疏加法替代密集矩阵乘法,结合gamma-SQP编码和对称量化机制,有效降低脉冲 firing 率并提升性能,实验表明在脉冲基础上实现更高效且准确的大型语言模型。

摘要:

当前大型语言模型(LLMs)主要基于大规模密集矩阵乘法。受大脑信息处理机制启发,本文探讨如何有效整合大脑脉冲驱动特性到LLM推理中。脉冲神经网络(SNNs)具有脉冲驱动特性,已有研究尝试将SNNs与Transformer结合。然而,仅依靠稀疏加法实现数十亿参数的脉冲驱动LLMs仍是一个挑战。为解决现有脉冲编码方案在LLM层面的表示能力有限和稀疏性问题,我们提出SDLLM,通过稀疏加法操作消除密集矩阵乘法。具体而言,我们使用插件式gamma-SQP两步脉冲编码方法,确保量化过程与模型语义空间对齐,缓解二进制脉冲导致的表示退化。此外,我们引入双向编码和对称量化及膜电位截断机制,导致脉冲序列中无或低 firing 计数主导,显著降低模型的脉冲 firing 率,同时将时间步数减半。实验结果表明,SDLLM不仅显著降低推理成本,而且在脉冲基础上实现了最先进的任务性能。例如,与先前脉冲驱动的LLMs相比,SDLLM将能耗降低7倍,准确率提高4.2%。我们的模型为下一代事件驱动神经形态芯片的架构设计提供了启示。

英文摘要:

Current Large Language Models (LLMs) are primarily based on large-scale dense matrix multiplications. Inspired by the brain's information processing mechanism, we explore the fundamental question: how to effectively integrate the brain's spiking-driven characteristics into LLM inference. Spiking Neural Networks (SNNs) possess spike-driven characteristics, and some works have attempted to combine SNNs with Transformers. However, achieving spike-driven LLMs with billions of parameters, relying solely on sparse additions, remains a challenge in the SNN field. To address the issues of limited representational capacity and sparsity in existing spike encoding schemes at the LLM level, we propose SDLLM, a spike-driven large language model that eliminates dense matrix multiplications through sparse addition operations. Specifically, we use the plug-and-play gamma-SQP two-step spike encoding method to ensure that the quantization process aligns with the model's semantic space, mitigating representation degradation caused by binary spikes. Furthermore, we introduce bidirectional encoding under symmetric quantization and membrane potential clipping mechanisms, leading to spike trains with no or low firing counts dominating, significantly reducing the model's spike firing rate, while halving the number of time steps. Experimental results show that SDLLM not only significantly reduces inference costs but also achieves state-of-the-art task performance under the spike-based paradigm. For example, compared to previous spike-based LLMs, SDLLM reduces energy consumption by 7x and improves accuracy by 4.2%. Our model provides inspiration for the architecture design of the next generation of event-driven neuromorphic chips.

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

↑