HeRo-Q: A General Framework for Stable Low Bit Quantization via Hessian Conditioning
Jinhao Zhang Yunquan Zhang, Zicheng yan, Boyang Zhang, Jun Sun, Daning Cheng
TL;DR
This work tackles the instability of post-training quantization (PTQ) for large language models by linking quantization sensitivity to the Hessian geometry of the loss landscape. It introduces HeRo-Q, a lightweight, architecture-agnostic preconditioning transform that combines diagonal smoothing $\mathbf{D}_{\alpha}$ and an orthogonal rotation $\mathbf{R}$ to form $\mathbf{T} = \mathbf{D}_{\alpha}^{-1}\mathbf{R}$, reducing the Hessian's spectral radius and rebalancing quantization noise. The authors provide theoretical justification via a spectral error bound and demonstrate empirically that HeRo-Q outperforms GPTQ, AWQ, SpinQuant, SmoothQuant, and OmniQuant across Llama and Qwen models, especially in ultra low-bit regimes like W3A16, with negligible inference overhead due to fusion and efficient online rotation. The approach enables reliable, high-fidelity quantization suitable for deploying large language models on more affordable hardware, with meaningful implications for energy efficiency and accessibility.
Abstract
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.
