The Geometry of LLM Quantization: GPTQ as Babai's Nearest Plane Algorithm
Jiale Chen, Yalda Shabanzadeh, Elvir Crnčević, Torsten Hoefler, Dan Alistarh
摘要
Quantizing the weights of large language models (LLMs) from 16-bit to lower bitwidth is the de facto approach to deploy massive transformers onto more affordable accelerators. While GPTQ emerged as one of the standard methods for one-shot post-training quantization at LLM scale, its inner workings are described as a sequence of algebraic updates that obscure geometric meaning or worst-case guarantees. In this work, we show that, when executed back-to-front (from the last to first dimension) for a linear layer, GPTQ is mathematically identical to Babai's nearest plane algorithm for the classical closest vector problem (CVP) on a lattice defined by the Hessian matrix of the layer's inputs. This equivalence is based on a sophisticated mathematical argument, and has two analytical consequences: first, the GPTQ error propagation step gains an intuitive geometric interpretation; second, GPTQ inherits the error upper bound of Babai's algorithm under the assumption that no weights are clipped. Leveraging this bound, we design post-training quantization methods that avoid clipping, and outperform the original GPTQ. In addition, we provide efficient GPU inference kernels for the resulting representation. Taken together, these results place GPTQ on a firm theoretical footing and open the door to importing decades of progress in lattice algorithms towards the design of future quantization algorithms for billion-parameter models. Source code is available at https://github.com/IST-DASLab/GPTQ-Babai .
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 6 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- SpQR: A Sparse-Quantized Representation for Near-Lossless LLM Weight Compression 引用了 Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and Pruning
- WUSH: Near-Optimal Adaptive Transforms for LLM Quantization 引用了 SpQR: A Sparse-Quantized Representation for Near-Lossless LLM Weight Compression
- WUSH: Near-Optimal Adaptive Transforms for LLM Quantization 引用了 QuIP#: Even Better LLM Quantization with Hadamard Incoherence and Lattice Codebooks
- WUSH: Near-Optimal Adaptive Transforms for LLM Quantization 引用了 QuIP: 2-Bit Quantization of Large Language Models With Guarantees
- WUSH: Near-Optimal Adaptive Transforms for LLM Quantization 引用了 Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and Pruning
- The Lattice Geometry of Neural Network Quantization: A Short Equivalence Proof of GPTQ and Babai's Algorithm 引用了 Qronos: Correcting the Past by Shaping the Future... in Post-Training Quantization
- Qronos: Correcting the Past by Shaping the Future... in Post-Training Quantization 引用了 The Lattice Geometry of Neural Network Quantization: A Short Equivalence Proof of GPTQ and Babai's Algorithm
- The Lattice Geometry of Neural Network Quantization: A Short Equivalence Proof of GPTQ and Babai's Algorithm 引用了 Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and Pruning
- WaterSIC: information-theoretically (near) optimal linear layer quantization 引用了 The Lattice Geometry of Neural Network Quantization: A Short Equivalence Proof of GPTQ and Babai's Algorithm
- WaterSIC: information-theoretically (near) optimal linear layer quantization 引用了 Qronos: Correcting the Past by Shaping the Future... in Post-Training Quantization
- WaterSIC: information-theoretically (near) optimal linear layer quantization 引用了 QuIP#: Even Better LLM Quantization with Hadamard Incoherence and Lattice Codebooks
- WaterSIC: information-theoretically (near) optimal linear layer quantization 引用了 Extreme Compression of Large Language Models via Additive Quantization
- WaterSIC: information-theoretically (near) optimal linear layer quantization 引用了 QuIP: 2-Bit Quantization of Large Language Models With Guarantees
- Qronos: Correcting the Past by Shaping the Future... in Post-Training Quantization 引用了 QuIP: 2-Bit Quantization of Large Language Models With Guarantees
- Qronos: Correcting the Past by Shaping the Future... in Post-Training Quantization 引用了 Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and Pruning
- QuIP#: Even Better LLM Quantization with Hadamard Incoherence and Lattice Codebooks 引用了 SpQR: A Sparse-Quantized Representation for Near-Lossless LLM Weight Compression
- QuIP#: Even Better LLM Quantization with Hadamard Incoherence and Lattice Codebooks 引用了 Extreme Compression of Large Language Models via Additive Quantization
- Extreme Compression of Large Language Models via Additive Quantization 引用了 QuIP#: Even Better LLM Quantization with Hadamard Incoherence and Lattice Codebooks
- QuIP#: Even Better LLM Quantization with Hadamard Incoherence and Lattice Codebooks 引用了 QuIP: 2-Bit Quantization of Large Language Models With Guarantees
- Extreme Compression of Large Language Models via Additive Quantization 引用了 QuIP: 2-Bit Quantization of Large Language Models With Guarantees
- Extreme Compression of Large Language Models via Additive Quantization 引用了 Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and Pruning
- Why Do Some Inputs Break Low-Bit LLM Quantization? 引用了 QuIP: 2-Bit Quantization of Large Language Models With Guarantees
- QuIP: 2-Bit Quantization of Large Language Models With Guarantees 引用了 Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and Pruning
引用它的顶会 Paper6
- Qronos: Correcting the Past by Shaping the Future... in Post-Training QuantizationShihao Zhang, Haoyu Zhang, Ian Colbert, Rayan SaabICLR 2026 · 27 次引用
- The Lattice Geometry of Neural Network Quantization: A Short Equivalence Proof of GPTQ and Babai's AlgorithmJohann BirnickICLR 2026 · 12 次引用
- WUSH: Near-Optimal Adaptive Transforms for LLM QuantizationJiale Chen, Vage Egiazarian, Roberto Castro, Torsten Hoefler 等ICML 2026 · 7 次引用
- WaterSIC: information-theoretically (near) optimal linear layer quantizationEgor Lifar, Semyon Savkin, Or Ordentlich, Yury PolyanskiyICML 2026 · 5 次引用
- Why Do Some Inputs Break Low-Bit LLM Quantization?Ting-Yun Chang, Muru Zhang, Jesse Thomason, Robin JiaEMNLP 2025 · 1 次引用
它引用的 Paper10
- QuIP: 2-Bit Quantization of Large Language Models With GuaranteesJerry Chee, Yaohui Cai, Volodymyr Kuleshov, Christopher De SaNeurIPS 2023 · 503 次引用
- Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and PruningElias Frantar, Dan AlistarhNeurIPS 2022 · 440 次引用
- SpQR: A Sparse-Quantized Representation for Near-Lossless LLM Weight CompressionTim Dettmers, Ruslan Svirschevski, Vage Egiazarian, Denis Kuznedelev 等ICLR 2024 · 392 次引用
- QuIP#: Even Better LLM Quantization with Hadamard Incoherence and Lattice CodebooksAlbert Tseng, Jerry Chee, Qingyao Sun, Volodymyr Kuleshov 等ICML 2024 · 295 次引用
- Extreme Compression of Large Language Models via Additive QuantizationVage Egiazarian, Andrei Panferov, Denis Kuznedelev, Elias Frantar 等ICML 2024 · 187 次引用
相关 Paper
- Learning Grouped Lattice Vector Quantizers for Low-Bit LLM CompressionXi Zhang, Xiaolin Wu, Jiamang Wang, Weisi LinNeurIPS 2025 · 4 次引用
- NestQuant: nested lattice quantization for matrix products and LLMsSemyon Savkin, Eitan Porat, Or Ordentlich, Yury PolyanskiyICML 2025
- UniSVQ: 2-bit Unified Scalar-Vector QuantizationHaoyu Wang, Haiyan Zhao, Xingyu Yu, Zhangyang Yao 等ICML 2026 · 2 次引用
- LeanQuant: Accurate and Scalable Large Language Model Quantization with Loss-error-aware GridTianyi Zhang, Anshumali ShrivastavaICLR 2025
- TurboBoA: Faster and Exact Attention-aware Quantization without BackpropagationJunhan Kim, Yeo Jeong Park, Seungwoo Son, Chungman Lee 等ICLR 2026 · 3 次引用
