GPTQ: Improving LLM Post-Training Quantization with Generalized Gradient Compensation
Ruikang Liu, Haoli Bai, Yuxuan Sun, Qian Zhang, Wenzheng Cai, Yanqi Hao, Feiyu Wang, Weidong Zhong, Zhuang Wang, Tong Yang, Xiangsheng Zhou
Abstract
Post-training quantization (PTQ) is a practical approach to reducing the memory and computational footprint of large language models (LLMs) without retraining. GPTQ-based methods have become the de facto standard, yet they suffer from two complementary limitations. Methods with local, layer-wise objectives lack global supervision; while methods with global objectives fix their Hessian estimates at the start and ignore first-order gradients, so their guidance grows stale as quantization proceeds. This paper presents GPTQ, a unified PTQ framework with Generalized Gradient Compensation that integrates both first- and second-order information under a globally supervised, block-wise optimization objective. By refreshing gradient and Hessian estimates before quantizing each Transformer block, GPTQ avoids the staleness of prior global methods. Furthermore, to stabilize the exact first-order compensation, we introduce a trust-region scaling mechanism that dynamically bounds the gradient step to prevent exploding weight updates. Finally, we derive efficient implementations for block-wise Hessian approximation and exact gradient compensation. Experimental results on various model families and bit-widths demonstrate that GPTQ enables better alignment with the full-precision model, outperforming state-of-the-art baselines. Code is available at: https://github.com/G2PTQ/G2PTQ.
Create a lesson
Metadata
- Categories
- cs.CL, cs.AI
Related papers
Empirical Margin Sensitivity: An Interventional Neuron-Level Probe of Post-Trained Medical LLMs
Shared title terminologycs.CLAniruddh Shreyas, Aarnav Kembhavi, Minal Moharir
Does Learning to Predict the World Help Agents Act? Auditing World-Model Post-Training
Shared title terminologycs.CLXinyu Che, Hang Yan, Yanchen Liu et al.
The Alignment Paradox: How Post-Training Amplifies Confident Hallucinations in Language Models
Shared title terminologycs.CLQingjia Huang, Yakai Li, Jianguo Wu et al.
Is the Judge Its Twin? Post-training makes a model's writing more predictable but barely moves its taste, as a judge, toward predictable writing
Shared title terminologycs.CLArman Nik Khah, Arvin Bahreini
Rufus-Air: An Open LLM Post-Training Recipe
Shared title terminologycs.CLChia-Yuan Chang, Renyuan Cheng, Rui Feng et al.
Post-Training Leaves Behavioral Shadows on Unrelated Decisions
Shared title terminologycs.CLZiyang Zhang, Yubin Jing, Yuanhao Zeng et al.