arXiv:2609.11687cs.CLSep 2026

Manuscript Offprint

arXiv:2609.11687

Structured Transforms for Low-Overhead Quantization of Language Models

Daria Cherniuk, Alexander Rudikov, Boris Kashin, Ivan Oseledets

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

We revisit Kashin-decomposition-based weight quantization for large language models and propose an improved algorithm with stronger convergence properties and structured, efficient orthogonal transforms. The method retains the core factorization of each weight into two components – one with bounded infinity norm and the other with bounded infinity norm after an orthogonal transformation – but replaces the dense random orthogonal matrix with a sign-randomized Discrete Cosine Transform (DCT), reducing the per-iteration cost from O(N2)\mathcal{O}(N^2) to O(Nlog⁡N)\mathcal{O}(N \log N). The proposed greedy algorithm with alternating updates guarantees the four-peak distribution required for stable 2-bit clustering of each factor and admits closed-form initialization of cluster centers, removing the multi-restart k-means bottleneck of prior work. Composed with OPTQ-style sequential error compensation and QuIP-style incoherence preprocessing, the resulting JAX pipeline is competitive with OPTQ, QuIP, QuIP-RG and a fine-tuning- and vector-quantization-free variant of QuIP# at 4-bit per channel on OPT, Llama-2 and Pythia, with favorable wall-clock scaling. The bounded- ℓ∞\ell_\infty factorization is also notably robust: on stress configurations where QuIP variants diverge to four-digit perplexity (Pythia-6.9B) or abort with NaNs in LDL back-substitution (Mistral-7B), Kashin-DCT remains numerically stable and stays close to FP16 baseline. At inference time, each weight decomposes into two 2-bit factor codes per channel that are structurally suited to native-2-bit hardware.

Keywords Post-training quantization · Large language models · Kashin decomposition · Discrete cosine transform · Greedy algorithms

1 Introduction

Modern Large Language Models (LLMs) achieve their capabilities at the cost of weight tensors that dominate memory bandwidth and footprint at inference time. Post-training quantization (PTQ) compresses these weights to low bit-widths without re-training, making it the practical choice when the training pipeline and large-scale compute are unavailable. Lower inference precision also translates into lower energy draw per query and a correspondingly smaller carbon footprint. In deployment, the dominant scheme remains plain uniform scalar quantization with per-channel or per-group scales [Dettmers et al., 2022], sometimes with a non-uniform grid such as NF4 [Dettmers et al., 2023]. The research literature improves on this baseline first via second-order error compensation [Frantar et al., 2023, Frantar and Alistarh, 2022] and incoherence preprocessing [Chee et al., 2023, Tseng et al., 2024a], and most recently via vector quantization (VQ): AQLM [Egiazarian et al., 2024], GPTVQ [van Baalen et al., 2024], and QTIP [Tseng et al., 2024b] currently lead sub-4-bit benchmarks. VQ comes with three practical costs, however: each layer must store learned codebook entries alongside the integer indices, the strongest results require gradient-based fine-tuning, and codebook lookups do not fuse into standard matmul kernels as cleanly as scalar dequantization.

∗^{*}Corresponding author.

A PREPRINT

A complementary line of work [Merkulov et al., 2024] approaches low-bit quantization through Kashin decomposition: each vectorized weight matrix ww is factorized as w=u+PTv^w = u + P^T \hat{v}, where PP is a random orthogonal matrix, uu and v^=Pv\hat{v} = Pv separately have small infinity norms. Empirically, the components produced by Kashin's greedy algorithm form distributions with four sharp symmetric peaks [Merkulov et al., 2024], which is a near-ideal target for 2-bit clustering. Despite this attractive structure, the prior application of Kashin decomposition to LLMs [Merkulov et al., 2024] suffered from three weaknesses. First, to amortize cost the authors reformulated the algorithm matrix-wise, which dropped the per-vector convergence guarantees of the original theorem [Kashin, 1977]; on a non-trivial fraction of layers the iteration failed to converge. Second, even on layers where the iteration did converge, the four-peak structure that 2-bit clustering relies on was not consistently produced: the joint u−v^u-\hat{v} distribution could collapse rather than separate into the four symmetric modes (Figure 3(a)); Third, the four cluster centers were recovered with multi-restart kk-means, an unstructured search that dominated quantization wall-clock time.

Contributions. We revisit Kashin-decomposition-based quantization end-to-end and address all three weaknesses, while keeping the analysis at the vector level where rigorous convergence proofs are available.

• A partitioned greedy algorithm with guaranteed peaks and a structured DCT transform (Section 4). Building on the recent acceleration of Kashin's theorem in [Kashin et al., 2025], we propose a Greedy Algorithm with Alternating Updates (Algorithm 1) that fixes the order of uu- and v^\hat{v}-updates in blocks of four. The schedule guarantees four-peak distributions in both factors, and we prove the conversion guarantees. We further replace the dense random orthogonal Q by a sign-randomized Discrete Cosine Transform with O(Nlog⁡N)\mathcal{O}(N \log N) cost and zero stored matrix.

• Closed-form cluster centers (Section 3.1). The greedy updates change the factors by some value ±ck(rk)\pm c_k(r_k) at each step, so after two updates the four peak locations are exactly ±c1±c2\pm c_1 \pm c_2, known analytically from the rkr_k residual norm. We initialize kk-means with these centers and run only a handful of refinement iterations, eliminating multi-restart search and reducing quantization time.

• Adaptive integration and a JAX pipeline (Section 5). We compose Kashin decomposition with OPTQ-style sequential error compensation and QuIP-style incoherence preprocessing (Hadamard or Kronecker), and implement the full pipeline in compile-friendly JAX with multi-GPU pmap support. On OPT, Pythia, and Llama-family models at 4-bit per channel, the method matches or surpasses OPTQ, QuIP, QuIP-RG, and (fine-tuning-free, vector-quantization-free) QuIP# on WikiText-2 and C4 perplexity and on HellaSwag, PiQA, and Winogrande accuracy.

References (35)