高能效且无需反量化的量化大语言模型:一种用于缓解显著值问题的脉冲神经网络方法
Energy-Efficient and Dequantization-Free Q-LLMs: A Spiking Neural Network Approach to Salient Value Mitigation
AI总结:
针对量化大语言模型部署中的乘累加能耗高、反量化开销大、显著值易被截断的问题,提出基于脉冲神经网络的SpikeQuant方法,实现无需反量化的高能效量化部署,W4A4下困惑度接近FP16,能耗最高降低4.6倍。
摘要:
在大语言模型(LLM)时代,权重-激活量化通过降低内存和计算位宽,助力模型适配边缘设备。但在能源受限硬件上仍存在三大挑战:(1)即便经过量化,乘累加(MAC)运算仍不可避免,且持续主导能耗;(2)反量化(或逐张量/通道重缩放)会引入额外算术运算和数据移动,增加延迟与能耗;(3)统一的参数字宽会截断显著值,而通道内混合精度在当前矩阵硬件和内存上通常难以实现。与之不同,受脑启发的脉冲神经网络(SNNs)凭借基于二进制脉冲的信息表示和积分放电(IF)范式,用时间累加(ACCs)替代复杂的乘累加运算,天然支持混合精度存储和高能效计算。受这一特性启发,我们提出SpikeQuant,对含显著值的激活选择性应用混合精度量化,并将其重新编码为二进制脉冲计数,从而实现不同位宽的动态混合存储。此外,通过将量化尺度嵌入积分放电机制的阈值中,我们的方法可对权重和激活执行高能效线性变换,同时避免显式反量化。实验结果表明,在W4A4量化下,SpikeQuant的困惑度始终接近FP16精度水平,同时与现有方法相比能耗最高降低4.6倍,彰显了其在实现准确且高能效的大语言模型部署方面的有效性。
英文摘要:
In the era of large language models (LLMs), weight-activation quantization helps fit models on edge device by reducing memory and compute bit-widths. However, three challenges persist for energy constrained hardware: (1) even after quantization, multiply-accumulate (MAC) operations remain unavoidable and continue to dominate energy consumption; (2) dequantization (or per-tensor/channel rescaling) introduces extra arithmetic and data movement, increasing latency and energy; (3) uniform parameters bit widths clip salient values-while intra-channel mixed precision is generally impractical on current matrix hardware and memory. In contrast, brain-inspired Spiking Neural Networks (SNNs), owing to their binary spike-based information representation and the Integrate-and-Fire (IF) paradigm, naturally support mixed-precision storage and energy-efficient computation by replacing complex MACs with temporal Accumulate (ACCs). Motivated by this property, we propose SpikeQuant, which selectively applies mixed-precision quantization to activations with salient values and re-encodes them into binary spike counts, thereby enabling dynamic mixed storage of different bitwidths. Furthermore, by embedding the quantization scale into the threshold of the IF mechanism, our approach performs energy-efficient linear transformations on weights and activations while avoiding explicit dequantization. Experimental results demonstrate that SpikeQuant consistently achieves near-FP16 perplexity under W4A4 quantization while reducing energy cost by up to 4.6 times compared to existing methods, highlighting its effectiveness for accurate and energy-efficient LLM deployment.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。