Manuscript Offprint

arXiv:2611.01669

How Much Does Random Rotation Help GPTQ? Sharp Worst-Case Rate Gaps in the High-Rate Regime

Runguo Li

Abstract

GPTQ is Babai's nearest-plane algorithm on the lattice of the Cholesky factor of the layer's input second moment Σ\Sigma. In the high-rate, entropy-coded regime it needs 12log⁡2(AM/GM)\frac{1}{2} \log_2(\text{AM}/\text{GM}) of its Cholesky pivots more bits than WaterSIC, which is within 0.255 bit of the rate-distortion limit for every Σ\Sigma; random rotations close most of this gap in practice, and Ordentlich and Polyanskiy asked for the worst-case gap between rotated GPTQ and WaterSIC. We show that after a Haar rotation the kk-th pivot converges almost surely, uniformly in k≥δnk \geq \delta n and over spectra ν\nu of bounded condition number, to 1/Sν(−k/n)1/S_\nu(-k/n), a classical formula from the theory of Lyapunov exponents, and use it to answer the question. Over spectra with condition number κ\kappa the worst rotated gap is 12log⁡2κ−log⁡2ln⁡κ+12−1ln⁡2+o(1)\frac{1}{2} \log_2 \kappa - \log_2 \ln \kappa + \frac{1}{2} - \frac{1}{\ln 2} + o(1) bits, attained only by two-point spectra, just 12log⁡2ln⁡κ+O(1)\frac{1}{2} \log_2 \ln \kappa + O(1) bits below the worst case without rotation, so rotation cannot replace waterfilling in general. It nearly can on real layers: rotation cuts the cost of an η\eta-fraction of outlier eigenvalues of size μ\mu from about ημ\eta\mu to η2μ/2\eta^2\mu/2 to leading order, but cannot remove spectral spread on a logarithmic scale; for non-Gaussian weights it also adds a weight-side rate cost, which we characterize exactly under a standard high-rate assumption. On 96 Hessians of Qwen3 and Llama-3.1 the rotated gap has median 0.04 bit and maximum 0.36 bit, against 2–5 bits in the worst case for the same condition numbers, and the limit matches it to within 0.009 bit.

1. Introduction

Layerwise post-training quantization replaces a weight matrix WW by W^\hat{W} so as to minimize the output error E∥(W−W^)x∥2=tr((W−W^)Σ(W−W^)⊤)\mathbb{E}\|(W - \hat{W})x\|^2 = \text{tr}\left((W - \hat{W})\Sigma(W - \hat{W})^\top\right), where Σ=E[xx⊤]\Sigma = \mathbb{E}[xx^\top] is estimated on calibration data. GPTQ (Frantar et al., 2023),

which quantizes one input column at a time and feeds the rounding error forward, has recently been shown to be exactly Babai's nearest-plane algorithm (Babai, 1986) on the lattice generated by the Cholesky factor of Σ\Sigma (Chen et al., 2026; Birnick, 2026). Its quality is therefore governed by the Gram–Schmidt lengths of that basis, the Cholesky pivots π1,…,πn\pi_1, \ldots, \pi_n of Σ\Sigma.

Two remedies for the suboptimality of GPTQ are in use. Rotation methods apply an orthogonal transform to weights and activations before running GPTQ, either random (QuIP, QuIP#, QuaRot) or learned (SpinQuant) (Chee et al., 2023; Tseng et al., 2024; Ashkboos et al., 2024; Liu et al., 2025). (An optimal data-dependent rotation can even reach the lattice bound (Keung et al., 2026); we study data-independent random rotations, as in the open problem and in practice.) Waterfilling keeps the basis and assigns every column its own step size: WaterSIC (Lifar et al., 2026) reverse-waterfills the rate across columns. In the high-rate, entropy-coded regime the two can be compared exactly. WaterSIC is within 12log⁡22πe12≈0.255\frac{1}{2} \log_2 \frac{2\pi e}{12} \approx 0.255 bit of the rate-distortion limit for every Σ\Sigma, and GPTQ pays an additional

Δ(Σ)=12log⁡2AM(π1,…,πn)GM(π1,…,πn)(1)\Delta(\Sigma) = \frac{1}{2} \log_2 \frac{\text{AM}(\pi_1, \ldots, \pi_n)}{\text{GM}(\pi_1, \ldots, \pi_n)} \tag{1}

bits per weight (Lifar et al., 2026). The gap Δ\Delta is unbounded over Σ\Sigma, but on Llama-3-8B a random rotation brings it to about 0.1 bit (Ordentlich & Polyanskiy, 2026b). Whether rotation can replace waterfilling in general was left as an open problem:

"It is an interesting open problem to estimate worst possible gap (over possible spectra λj≥ϵ\lambda_j \geq \epsilon) between GPTQ with rotation and WaterSIC" (Ordentlich & Polyanskiy, 2026b, §III-E).

We answer this question in the setting in which it was posed (high rate, per-column entropy coding, Haar rotations), and explain why the gap is nonetheless small on real layers. Fixed-rate formats are outside this setting, and our conclusions should not be read as statements about INT4-style deployment (Section 7).

References (94)