High-Rate Quantized Matrix Multiplication II

Or Ordentlich, Yury PolyanskiyarXiv 2026

TL;DR

This paper establishes the information-theoretic limits of weight-only post-training quantization (PTQ) for Large Language Models (LLMs) when activation covariance data is available. By framing quantization as a Weighted Mean Squared Error (WMSE) problem, the authors show that a variable-rate allocation scheme ("WaterSIC") achieves near-optimal distortion, while standard GPTQ with a random rotation can closely approach this bound in the high-rate regime.

What Problem Does This Paper Address?

LLM inference is heavily bottlenecked by memory bandwidth—specifically, the time it takes to load massive weight matrices from High Bandwidth Memory (HBM) to the GPU's compute cores. Weight-only post-training quantization (PTQ) alleviates this by compressing weights to lower bit-widths (e.g., INT4 or INT8) before storing them, then dequantizing them on-the-fly during inference.

To minimize accuracy loss, practical quantization algorithms use a small "calibration" dataset to collect activation statistics, specifically the covariance matrix ($\Sigma_X$) of the inputs. Current state-of-the-art methods like GPTQ utilize this covariance matrix but allocate a fixed, equal number of bits to every single weight element. This paper tackles a fundamental question: What are the theoretical limits of calibration-aided weight quantization, and can we do better by dynamically allocating bits to different coordinates based on activation variance?

Methods

The authors approach weight quantization through the lens of information theory, specifically Weighted Mean Squared Error (WMSE) source coding.

  1. Reverse Waterfilling: The authors apply the classical information-theoretic concept of "waterfilling" to determine the optimal bit allocation. Coordinates that experience high activation variance (corresponding to large eigenvalues of $\Sigma_X$) are allocated more bits, while insignificant coordinates receive fewer or zero bits.
  2. The WaterSIC Algorithm: The authors introduce and analyze "WaterSIC," a practical, low-complexity algorithm that implements variable-rate scalar quantization. Instead of performing an expensive Singular Value Decomposition (SVD) of the covariance matrix, WaterSIC utilizes a Cholesky decomposition ($\Sigma_X = U^\top U$) and adjusts the quantization step size (and thus the bit-rate) for each coordinate based on the diagonal elements of $U$.
  3. Successive Interference Cancellation (SIC) Framework: The paper unifies the analysis of GPTQ and WaterSIC by demonstrating that GPTQ is equivalent to a uniform-rate version of Successive Interference Cancellation (or Babai's nearest plane algorithm), whereas WaterSIC optimizes the rate per channel.

Datasets

The theoretical models and practical algorithms were evaluated using real-world activation statistics extracted from:

  • Llama-3-8B (evaluating various linear layers)
  • Wikitext-2 (wiki2) used as the calibration dataset to compute the empirical covariance matrices ($\Sigma_X$).

Key Insights and Ideas

  • The AM-GM Gap Dictates Savings: Uniform quantization performance is bounded by the arithmetic mean (AM) of the activation variances, whereas optimal waterfilling pushes this bound down to the geometric mean (GM). The gap between the arithmetic and geometric means of $\Sigma_X$'s eigenvalues represents the maximum theoretical rate savings available.
  • Basis-Free Quantization: WaterSIC is "basis-free," meaning its performance depends purely on the determinant of $\Sigma_X$. As a result, it is completely immune to coordinate rotations.
  • LLMs Have a "Privileged Basis": In raw LLM activations, features are not distributed isotropically; instead, they contain axis-aligned outliers (often caused by network optimizers like Adam). Because of this, vanilla GPTQ actually performs worst in the PCA (diagonalized) basis. Applying a random rotation redistributes this energy, significantly boosting GPTQ's performance and bringing it within 0.1 bits of the variable-rate WaterSIC algorithm at high rates.

Key Results

  • Proximity to the Shannon Bound: In the high-rate regime, the WaterSIC algorithm with entropy coding is proven to be within $\frac{2\pi e}{12}$ (approximately 0.25 bits per entry) of the absolute information-theoretic distortion limit.
  • GPTQ + Rotation is Near-Optimal: While vanilla GPTQ falls short of optimal waterfilling on raw activations, combining GPTQ with a random rotation closes the gap significantly, landing within 0.1 bits of WaterSIC for Llama-3-8B layers.

Limitations and Future Work

  • The High-Rate Assumption: The tight bounds and clean proofs in this paper rely on high-rate approximations (i.e., a relatively high number of bits per weight). At ultra-low rates (0.5 to 2 bits per entry), non-asymptotic effects like the Johnson-Lindenstrauss dimensionality reduction and advanced structural shaping become dominant.
  • Hardware Bottlenecks of Entropy Coding: WaterSIC relies on entropy coding (variable-length bitstreams) to achieve its theoretical gains. However, entropy decoding on modern GPUs is currently an order of magnitude slower than loading uncompressed data, making it impractical for real-time acceleration without specialized hardware support.
  • Shaping Suboptimality: Simple shaping methods (like rectangular bounding boxes) are hardware-friendly but highly suboptimal. Developing hardware-amenable shaping regions that can be efficiently decoded on GPUs remains an open challenge.

Summary updated

BibTeX
@misc{ordentlich2026high,
  author = {Or Ordentlich and Yury Polyanskiy},
  title = {{High-Rate Quantized Matrix Multiplication II}},
  year = {2026},
  eprint = {2605.13768},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.13768},
}
Figure