HeRo-Q: 通过Hessian条件化实现稳定低比特量化的通用框架
HeRo-Q: A General Framework for Stable Low Bit Quantization via Hessian Conditioning
AI总结:
针对后训练量化中“低误差、高损失”的矛盾,提出HeRo-Q算法,通过轻量可学习的旋转压缩矩阵重塑损失景观,降低最大Hessian特征值,增强对量化噪声的鲁棒性,在Llama和Qwen模型上优于现有方法。
摘要:
后训练量化(PTQ)是一种主流的模型压缩技术,但由于其仅专注于最小化量化误差,常常导致矛盾的“低误差、高损失”现象。根本原因在于LLM损失景观的Hessian矩阵:少数高曲率方向对扰动极其敏感。为了解决这个问题,我们提出了Hessian鲁棒量化(HeRo Q)算法,该算法在量化前对权重空间应用一个轻量级、可学习的旋转压缩矩阵。这个联合框架通过降低最大的Hessian特征值并减小其最大特征值来重塑损失景观,从而显著增强对量化噪声的鲁棒性。HeRo-Q不需要修改架构,计算开销可忽略不计,并且可以无缝集成到现有的PTQ流程中。在Llama和Qwen模型上的实验表明,HeRo Q在标准W4A8设置下不仅持续优于包括GPTQ、AWQ和SpinQuant在内的最先进方法,而且在极具挑战性的W3A16超低比特场景中表现出色,将Llama3 8B在GSM8K上的准确率提升至70.15%,并有效避免了激进量化中常见的逻辑崩溃。
英文摘要:
Post Training Quantization (PTQ), a mainstream model compression technique, often leads to the paradoxical 'low error, high loss' phenomenon because it focuses solely on minimizing quantization error. The root cause lies in the Hessian matrix of the LLM loss landscape: a few high curvature directions are extremely sensitive to perturbations. To address this, we propose the Hessian Robust Quantization (HeRo Q) algorithm, which applies a lightweight, learnable rotation-compression matrix to the weight space prior to quantization. This joint framework reshapes the loss landscape by reducing the largest Hessian eigenvalue and reducing its max eigenvalue, thereby significantly enhancing robustness to quantization noise. HeRo-Q requires no architectural modifications, incurs negligible computational overhead, and integrates seamlessly into existing PTQ pipelines. Experiments on Llama and Qwen models show that HeRo Q consistently outperforms state of the art methods including GPTQ, AWQ, and SpinQuant not only achieving superior performance under standard W4A8 settings, but also excelling in the highly challenging W3A16 ultra low bit regime, where it boosts GSM8K accuracy on Llama3 8B to 70.15\% and effectively avoids the logical collapse commonly seen in aggressive quantization.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。