The Geometry of LLM Quantization: GPTQ as Babai's Nearest Plane Algorithm
Jiale Chen, Yalda Shabanzadeh, Elvir Crnčević, Torsten Hoefler, Dan Alistarh
Abstract
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 .
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
6 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- SpQR: A Sparse-Quantized Representation for Near-Lossless LLM Weight Compression cites Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and Pruning
- WUSH: Near-Optimal Adaptive Transforms for LLM Quantization cites SpQR: A Sparse-Quantized Representation for Near-Lossless LLM Weight Compression
- WUSH: Near-Optimal Adaptive Transforms for LLM Quantization cites QuIP#: Even Better LLM Quantization with Hadamard Incoherence and Lattice Codebooks
- WUSH: Near-Optimal Adaptive Transforms for LLM Quantization cites QuIP: 2-Bit Quantization of Large Language Models With Guarantees
- WUSH: Near-Optimal Adaptive Transforms for LLM Quantization cites 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 cites Qronos: Correcting the Past by Shaping the Future... in Post-Training Quantization
- Qronos: Correcting the Past by Shaping the Future... in Post-Training Quantization cites 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 cites Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and Pruning
- WaterSIC: information-theoretically (near) optimal linear layer quantization cites 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 cites Qronos: Correcting the Past by Shaping the Future... in Post-Training Quantization
- WaterSIC: information-theoretically (near) optimal linear layer quantization cites QuIP#: Even Better LLM Quantization with Hadamard Incoherence and Lattice Codebooks
- WaterSIC: information-theoretically (near) optimal linear layer quantization cites Extreme Compression of Large Language Models via Additive Quantization
- WaterSIC: information-theoretically (near) optimal linear layer quantization cites QuIP: 2-Bit Quantization of Large Language Models With Guarantees
- Qronos: Correcting the Past by Shaping the Future... in Post-Training Quantization cites QuIP: 2-Bit Quantization of Large Language Models With Guarantees
- Qronos: Correcting the Past by Shaping the Future... in Post-Training Quantization cites Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and Pruning
- QuIP#: Even Better LLM Quantization with Hadamard Incoherence and Lattice Codebooks cites SpQR: A Sparse-Quantized Representation for Near-Lossless LLM Weight Compression
- QuIP#: Even Better LLM Quantization with Hadamard Incoherence and Lattice Codebooks cites Extreme Compression of Large Language Models via Additive Quantization
- Extreme Compression of Large Language Models via Additive Quantization cites QuIP#: Even Better LLM Quantization with Hadamard Incoherence and Lattice Codebooks
- QuIP#: Even Better LLM Quantization with Hadamard Incoherence and Lattice Codebooks cites QuIP: 2-Bit Quantization of Large Language Models With Guarantees
- Extreme Compression of Large Language Models via Additive Quantization cites QuIP: 2-Bit Quantization of Large Language Models With Guarantees
- Extreme Compression of Large Language Models via Additive Quantization cites Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and Pruning
- Why Do Some Inputs Break Low-Bit LLM Quantization? cites QuIP: 2-Bit Quantization of Large Language Models With Guarantees
- QuIP: 2-Bit Quantization of Large Language Models With Guarantees cites Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and Pruning
Cited by top-tier papers6
- Qronos: Correcting the Past by Shaping the Future... in Post-Training QuantizationShihao Zhang, Haoyu Zhang, Ian Colbert, Rayan SaabICLR 2026 · 27 citations
- The Lattice Geometry of Neural Network Quantization: A Short Equivalence Proof of GPTQ and Babai's AlgorithmJohann BirnickICLR 2026 · 12 citations
- WUSH: Near-Optimal Adaptive Transforms for LLM QuantizationJiale Chen, Vage Egiazarian, Roberto Castro, Torsten Hoefler et al.ICML 2026 · 7 citations
- WaterSIC: information-theoretically (near) optimal linear layer quantizationEgor Lifar, Semyon Savkin, Or Ordentlich, Yury PolyanskiyICML 2026 · 5 citations
- Why Do Some Inputs Break Low-Bit LLM Quantization?Ting-Yun Chang, Muru Zhang, Jesse Thomason, Robin JiaEMNLP 2025 · 1 citation
Builds on10
- QuIP: 2-Bit Quantization of Large Language Models With GuaranteesJerry Chee, Yaohui Cai, Volodymyr Kuleshov, Christopher De SaNeurIPS 2023 · 503 citations
- Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and PruningElias Frantar, Dan AlistarhNeurIPS 2022 · 440 citations
- SpQR: A Sparse-Quantized Representation for Near-Lossless LLM Weight CompressionTim Dettmers, Ruslan Svirschevski, Vage Egiazarian, Denis Kuznedelev et al.ICLR 2024 · 392 citations
- QuIP#: Even Better LLM Quantization with Hadamard Incoherence and Lattice CodebooksAlbert Tseng, Jerry Chee, Qingyao Sun, Volodymyr Kuleshov et al.ICML 2024 · 295 citations
- Extreme Compression of Large Language Models via Additive QuantizationVage Egiazarian, Andrei Panferov, Denis Kuznedelev, Elias Frantar et al.ICML 2024 · 187 citations
Related papers
- Learning Grouped Lattice Vector Quantizers for Low-Bit LLM CompressionXi Zhang, Xiaolin Wu, Jiamang Wang, Weisi LinNeurIPS 2025 · 4 citations
- 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 et al.ICML 2026 · 2 citations
- 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 et al.ICLR 2026 · 3 citations
