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

面向压缩脉冲大语言模型的时空剪枝

Spatio-Temporal Pruning for Compressed Spiking Large Language Models

School of Electrical Engineering and Computer Science(电气工程与计算机科学学院)

Yi Jiang, Malyaban Bal, Brian Matejek, Susmit Jha, Adam Cobb, Abhronil Sengupta

AI总结:

针对脉冲大语言模型的高效部署问题,提出联合空间剪枝、时间剪枝、极端量化与知识蒸馏的压缩框架,并在 GLUE 上验证其可降低计算量与延迟。

摘要:

大语言模型(LLM)由于模型规模庞大且推理延迟较高,在能源受限环境中的部署面临重大挑战。脉冲神经网络(SNN)受大脑中稀疏、事件驱动的神经处理以及高能效信息传输启发,为实现低功耗计算提供了一种颇具前景的替代方案。将脉冲神经元的事件驱动效率与 LLM 的先进能力相结合,代表着构建高能效 LLM 的一个有希望方向。本研究专门深入探讨压缩脉冲 LLM 的设计。在此,我们从 SNN 的视角重新审视空间剪枝与时间剪枝,并提出一种新颖的脉冲 LLM 时空剪枝框架,以在保持高性能的同时优化计算效率。我们的空间剪枝技术减少活跃神经元和注意力头的数量,从而有效降低模型的计算复杂度。同时,时间剪枝通过动态调整不同层所需的时间步数量,最大限度降低推理延迟。通过将这些方法与其他压缩技术相结合,我们提出了脉冲 LLM 领域首个联合探索空间剪枝、时间剪枝、极端量化和知识蒸馏策略的工作。在大规模 GLUE 基准上对所提出的 SpikingBERT 框架进行的广泛实验评估,从计算操作量和推理延迟方面证明了本方法的有效性。本方法为实时、低功耗自然语言处理应用提供了一种具有吸引力的解决方案,使脉冲 LLM 更适合部署在边缘设备和功耗受限场景中。

英文摘要:

Large Language Models (LLMs) present significant challenges for deployment in energy-constrained environments due to their large model sizes and high inference latency. Spiking Neural Networks (SNNs), inspired by the sparse event-driven neural processing and energy-efficient information transmission in the brain, offer a promising alternative for achieving low-power computing. Integrating the event-driven efficiency of spiking neurons with the advanced capabilities of LLMs represents a promising direction for power-efficient LLMs. This work specifically delves into the design of compressed spiking LLMs. Here, we revisit spatial and temporal pruning from the perspective of SNNs and propose a novel spatio-temporal pruning framework for Spiking LLMs to optimize computational efficiency while preserving high performance. Our spatial pruning technique reduces the number of active neurons and attention heads, effectively lowering the computational complexity of the model. Meanwhile, temporal pruning minimizes inference latency by dynamically adjusting the number of timesteps required for different layers. By combining these approaches with other compression techniques, we present the first work in the domain of Spiking LLMs to jointly explore spatial pruning, temporal pruning, extreme quantization and knowledge distillation strategies. Extensive experimental evaluation of our proposed framework for SpikingBERT on the large-scale GLUE benchmark demonstrates the efficacy of our approach in terms of computational operations and inference latency. Our approach offers a compelling solution for real-time, low-power natural language processing applications, making Spiking LLMs more practical for deployment on edge devices and in power-constrained settings.

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

↑