Manuscript Offprint
arXiv:2609.11687Structured Transforms for Low-Overhead Quantization of Language Models
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 to . 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- 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 is factorized as , where is a random orthogonal matrix, and 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 distribution could collapse rather than separate into the four symmetric modes (Figure 3(a)); Third, the four cluster centers were recovered with multi-restart -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 - and -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 cost and zero stored matrix.
• Closed-form cluster centers (Section 3.1). The greedy updates change the factors by some value at each step, so after two updates the four peak locations are exactly , known analytically from the residual norm. We initialize -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.
The fastest and easiest-to-implement PTQ schemes rely on simple heuristics, such as uniform round-to-nearest or stochastic rounding applied per layer or per row Dettmers et al. [2022], or assume a particular activation/weight distribution, as in NormalFloat 4-bit (NF4) quantization Dettmers et al. [2023]. Activation- and outlier-aware methods reduce the dynamic range that scalar quantization must cover, either by smoothing the activation/weight magnitudes [Xiao et al., 2023], by scaling salient channels [Lin et al., 2024a], by jointly learning weight clipping ranges and equivalent transformations [Shao et al., 2024], or by routing outliers to a dense non-uniform codebook [Kim et al., 2024].
Recent state-of-the-art methods use second-order information to minimize the quantization-induced error in the layer outputs. OPTQ Frantar et al. [2023] sequentially quantizes chunks of layer weights while compensating for the accumulated error through corrections to the yet-to-be-quantized parameters of the layer. QuIP [Chee et al., 2023] shows that OPTQ is a special case of LDLQ adaptive quantization, essentially the method introduced in QuIP without incoherence processing, in which the correction to the yet-to-be-quantized rows of the weight matrix is a linear combination of the quantization errors of the already-quantized rows. Authors further propose incoherence pre- and post-processing to bring weight matrices into the conditions of their theorem, which establishes that LDLQ quantization is a lower bound on nearest and stochastic rounding.
QuIP# [Tseng et al., 2024a] replaces multiplication by random orthogonal matrices with randomized Hadamard transforms for incoherence processing, which yields better incoherence properties and faster runtime. However, QuIP#
A PREPRINT

Figure 1: The proposed quantization pipeline consists of several stages: (a) move to the next column to quantize; (b) decompose with the proposed Greedy Algorithm with Alternating Updates (Algorithm 1) into and ; (c) quantize each factor to 2 bits via 4-peak clustering; (d) stack the quantized vectors into the output matrices and ; then add error compensation to the unquantized weights and return to (a).
uses vector quantization and resorts to fine-tuning. The same randomized-rotation idea is the basis for a parallel line of activation-quantization methods: QuaRot [Ashkboos et al., 2024] fuses Hadamard rotations into the residual stream so that both weights and activations are quantized in the rotated basis, SpinQuant [Liu et al., 2025] learns the rotation matrices on the calibration distribution, and DuQuant [Lin et al., 2024b] composes block-rotations with permutations to suppress outliers further.
Beyond QuIP#, a substantial line of work pushes weight compression further by switching from scalar to vector codebooks. AQLM [Egiazarian et al., 2024] learns an additive composition of small codebooks per group of weights; GPTVQ [van Baalen et al., 2024] extends OPTQ-style error compensation to multi-dimensional codebooks; and QTIP [Tseng et al., 2024b] replaces QuIP#’s lattice codebook with trellis-coded quantization on top of the same incoherence processing. These methods achieve very strong sub-4-bit compression ratios, but share two practical costs: each layer must store learned codebook entries alongside the integer indices, and reaching the reported quality typically requires gradient-based fine-tuning or extensive calibration sweeps. The Kashin decomposition we revisit in this work, by contrast, retains scalar 2-bit clusters and incurs only a handful of centroids per column (Section 3.1), with no fine-tuning step.
3 Problem Setting
The work of Kashin [1977] has introduced the following theorem.
Theorem 1. For each and for each orthogonal transformation , with the exception of a set , , the following inequality holds:
where is an absolute constant.
Using (1), for each , a greedy algorithm [Temlyakov, 2011] was constructed such that, for every , after steps, it produces vectors and that satisfy
(2)
where and are absolute constants. See Appendix B for full algorithm. The algorithm requires storing entries of the matrix and entails a computational complexity of operations per iteration.
A PREPRINT

Figure 2: Convergence and factor-distribution comparison on a single random vector with drawn from . Left: residual norm versus the number of greedy updates for the original greedy algorithm of Kashin [1977] (Algorithm 2 in Appendix B, violet) and our partitioned variant of Algorithm 1 (yellow). Center, right: empirical densities of and at convergence; the partitioned schedule produces four sharp symmetric peaks, while the original schedule leaves the second factor unimodal.
The upper bounds on the infinity norm in (2) naturally lead to using this factorization for quantization of neural network weights, since the most common uniform quantization suffers severely from outliers [Nagel et al., 2021]. An even more interesting phenomenon is that the distributions of both and often form four distinctive symmetric peaks [Merkulov et al., 2024], which enables straightforward clustering-based quantization. The former work used this factorization to quantize the weights of an LLM. Their approach reformulated Kashin's theorem for the matrix case but failed to provide a rigorous convergence analysis for that reformulation. Consequently, the approach encountered convergence failures and ill-defined peaks on a fraction of layers. Moreover, the clustering process relied on the k-means algorithm with multiple restarts, which significantly slowed quantization.
In this work, we retain the vector formulation, for which rigorous proofs are available, while alleviating the large size of the matrix Q noted in Merkulov et al. [2024] by using a sign-randomized Discrete Cosine Transform (DCT) as the orthogonal transformation, leveraging the recent acceleration of Kashin et al. [2025]; we then partition the greedy schedule so that the dominant updates land at analytically known centroid locations, which removes the multi-restart k-means step. The proposed Greedy Algorithm with Alternating Updates and its convergence analysis are presented in Section 4; the closed-form k-means initialization derived from this schedule is described in Section 3.1 below. We further combine Kashin quantization with adaptive quantization methods that quantize model weights chunk by chunk, compensating for the introduced error by adaptively updating the yet-to-be-quantized weights, in the spirit of OPTQ and QuIP; experimental details are provided in Section 5.
3.1 Closed-form k-means initialization
Previous work [Merkulov et al., 2024] applied k-means clustering to the four-peak distributions of u and Pv with random centroid initialization and multiple restarts ( in their reported configuration), which dominated quantization wall-clock time. We exploit the structure of the updates in Algorithm 2: at iteration k, the update of the vector u is , which corresponds to adding where is a residual at iteration k. After two such updates, the marginal distribution of u contains four peaks at exactly , known analytically from the residual norms. Because the residual norm decreases rapidly across iterations, these early updates already provide accurate approximations of the peak locations in the final distribution; in practice the first four iterations are sufficient. The fixed schedule of Algorithm 1 (Section 4) ensures that exactly two updates per factor land at the analytic centroids. After decomposition converges, the analytic values are used to initialize the cluster centers and a small number of k-means refinement iterations are run; no multi-restart outer loop is required. The quantization procedure for follows the same strategy. The closed-form initialization removes the multi-restart loop entirely, reducing the clustering wall-clock time by roughly relative to the multi-restart 2-D k-means baseline of [Merkulov et al., 2024] on medium-sized models.
A PREPRINT
4 The Greedy Algorithm with Alternating Updates
4.1 Background
Let be an orthonormal basis in such that , . For the orthonormal DCT-II used throughout this paper, for , so and the constant in our analysis equals , i.e. a small absolute constant independent of . As in Kashin et al. [2025], we consider the orthogonal operator , where the orthogonal operator acts in according to the rule , let be the inverse of , and let the operator be defined for a given random set of signs , , by the relation .
In Kashin et al. [2025], the authors leveraged the fact that for most sign sets , the following relation holds:
where , and is an absolute constant. Throughout the rest of the paper we instantiate as the orthonormal DCT-II and write ; with the operator admits the FFT-fast realization used in Algorithm 1.
The authors of Kashin et al. [2025], using the result from Guédon et al. [2008], propose a greedy algorithm in N-dimensional Euclidean space with the dictionary , where is the set of vertices of the cube (i.e., the set of vectors of the form with , ). It is shown that if (3) holds for a sign set , then for an arbitrary vector with , this greedy algorithm constructs vectors and from in steps such that:
(4)
In this paper, based on numerical experiments, we propose a modification of the algorithm from Kashin et al. [2025] that offers several advantages over the original method. Notably, while the modification provides practical benefits, the resulting theoretical bound on the convergence rate for the new algorithm is slightly weaker than the estimate provided in Kashin et al. [2025].
4.2 Proposed Algorithm
The proposed modification retains the dictionary of Kashin et al. [2025], but replaces the single-step global greedy selection with a partitioned scheme that alternates between the two halves in blocks of four greedy steps: within each block, the first two atomic greedy steps draw from (and accumulate into ), while the last two draw from (and accumulate into ); see Algorithm 1. The slowdown established in Proposition 1 is the explicit price of fixing this schedule rather than letting each step adaptively choose the better half as in Kashin et al. [2025]; in exchange, the dominant updates of and land at the analytic centroid locations used by the closed-form -means initialization of Section 3.1. By symmetry of the convergence argument the reverse schedule yields the same residual norm at every block of 4 iterations.
4.3 Convergence Analysis
We now estimate the convergence rate of Algorithm 1. Proposition 1 below shows that one block of four atomic greedy steps contracts the residual norm by a factor with ; iterating yields the geometric residual decay of Theorem 2. Reaching a target residual norm therefore takes polylogarithmic factor of iteration steps of the unconstrained algorithm of Kashin et al. [2025].
Proposition 1. Let and . For any with , one block of the partitioned greedy algorithm produces a residual satisfying
Throughout this paper we use the orthonormal DCT-II (the norm='ortho' convention), under which
A PREPRINT
(a) Matrix

(b) Vector, original
(c) Vector, updated
Figure 3: Joint value distribution of u and for the fc2 layer weights of the third decoder block of OPT-125m, decomposed by three algorithms. Red crosses indicate the cluster centers found by k-means after factorization. (a) Matrix reformulation of Merkulov et al. [2024]: the matrix-wise greedy iteration drops the per-vector convergence guarantee and the joint distribution collapses, leaving cluster centers ill-defined. (b) Original vector greedy algorithm [Kashin, 1977] (Algorithm 2): per-vector convergence is restored but the -axis remains spread-out, so 2-bit clustering of is degenerate. (c) Proposed Algorithm 1: the partitioned schedule and DCT-based P produce four-peaked marginals along both axes, yielding well-separated cluster centers.
Theorem 2. Let and . For any with , the partitioned greedy algorithm after blocks of iterations constructs such that
where is an absolute constant.
Proof sketch. The inequality (3) guarantees that, for any residual , at least one of the two dictionary halves or is the “good” half, in the sense that a single greedy step from it contracts the squared norm by a factor . The unconstrained algorithm of Kashin et al. [2025] picks the good half adaptively at every step. The partitioned algorithm cannot: it is forced to spend steps 1, 2 on regardless. Proposition 1 reduces to two cases. (i) If is the good half for the block’s input residual , step 1 alone already gives , which is stronger than the claim; steps 2–4 are non-expansive. (ii) If is the good half, steps 1, 2 on are “wasted” but, by orthogonality of consecutive greedy updates, their combined contribution has norm . Step 3 from is then at least as good as the best one-shot approximation of from that half, which by the one-step estimate satisfies . The triangle inequality combines these into , where the final step is exactly the algebraic identity that fixes the constant . Theorem 2 then iterates Proposition 1 over blocks for the bound, and bounds and by summing the per-step coefficients across blocks; the geometric residual decay makes that sum a convergent series of order . Full proofs of Proposition 1 and Theorem 2 can be found in Appendix E.
5 Experiments
We conduct experiments on the OPT [Zhang et al., 2022], Llama-2 [Touvron et al., 2023], Mistral [Jiang et al., 2023], and Pythia [Biderman et al., 2023] families of models. We use WikiText-2 [Merity et al., 2017] and C4 [Raffel et al., 2020] for measuring perplexity, and HellaSwag [Zellers et al., 2019], PiQA [Bisk et al., 2020], and Winogrande [Sakaguchi et al., 2021] for zero-shot accuracy. All evaluations are run through the lm-evaluation-harness framework for reproducible and reliable results, with maximum sequence length set to 2048. For all adaptive methods, the per-layer Hessian is estimated on 1000 sequences of length 2048 drawn from the WikiText-2 (wikitext-2-raw-v1)
https://github.com/EleutherAI/lm-evaluation-harness
A PREPRINT
Algorithm 1 Greedy Algorithm with Alternating Updates (DCT-based realization).
1: Input: Vector , sign mask , number of blocks 2: Output: Vectors such that
,
where the orthogonal operator is defined by
.
3: Initialize , , 4: for do 5: , , 6: for do 7: // two greedy steps from 8: 9: , 10: end for 11: for do 12: // two greedy steps from 13: 14: , 15: end for 16: , , 17: end for 18: Return: , , (and if needed, by symmetry )
training split, and the same calibration set is used across all baselines. Unless stated otherwise, each row in Table 1 reports mean ± standard deviation over three random seeds; the seed determines the calibration data shuffle for all methods, the sign set for our Kashin-DCT pipeline, and the random incoherence rotation for any method that uses one. All quantization and evaluation runs are performed on a single NVIDIA H100 GPU; per-method end-to-end quantization wall-clock times are reported in Appendix D, and an inference-time analysis for the Kashin representation is given in Appendix C.
First, we demonstrate the advantages of our Greedy Algorithm with Alternating Updates over the original greedy algorithm. Figure 2 shows that, on a random vector drawn from , Algorithm 1 attains nearly the same convergence rate as the original vector greedy algorithm while producing markedly sharper peak definition.
Second, we show that our method does not fail on layers where the previous Kashin-decomposition-based approach encountered problems. Figure 3 compares the joint u and distributions for the matrix reformulation of Merkulov et al. [2024], the original greedy algorithm, and our updated algorithm. The proposed approach is the only one that produces distinctive peaks in both the u and Pv value distributions, enabling stable cluster quantization.
Finally, we compare our quantization pipelines with other PTQ methods, namely Round-To-Nearest (RTN), OPTQ [Frantar et al., 2023], QuIP [Chee et al., 2023] (with two decomposition variants, LDLQ and LDLQ-RG), and a fine-tuning- and vector-quantization-free variant of QuIP# [Tseng et al., 2024a]. For all methods, the per-output-channel target is 4 bits per weight. The rows of Table 1 correspond to the following configurations: QuIP = LDLQ with Kronecker-of-rotations incoherence preprocessing; QuIP-RG = LDLQ-RG with Kronecker-of-rotations incoherence preprocessing; QuIP# = LDLQ-RG with a randomized Hadamard transform for incoherence preprocessing, with end-to-end fine-tuning and the E8 lattice vector codebook of the original method disabled, since we only consider PTQ value quantization methods that do not require fine-tuning. Kashin-DCT+K and Kashin-DCT+H is Kashin decomposition with OPTQ-style sequential error compensation with the Kronecker and randomized-Hadamard incoherence preprocessing, respectively. Results are presented in Table 1.
We note that the LDLQ + Kronecker configurations (rows “QuIP” / “QuIP-RG”) exhibit larger variance and a perplexity regression on Pythia-1.4B and Llama-2-7B (marked in Table 1), and the QuIP# row, which uses the randomized Hadamard variant, recovers the expected behavior. This QuIP instability also appears on Pythia-6.9B, where all three
A PREPRINT
Table 1: Perplexity (PPL) on WikiText-2 / C4 and accuracy (acc_norm for HellaSwag and PiQA, acc for Winogrande) at 4-bit per-output-channel weight quantization. Best quantization result per column in bold, second best underlined (FP16 and RTN excluded from ranking). Context length 2048; each cell is mean ± std over 3 random seeds (except for FP16 and RTN). †LDLQ (QuIP) and LDLQ-RG (QuIP-RG) are unstable on Pythia-1.4B and Llama-2-7B in our reruns; see Section 5. Pythia-6.9B stress test in Appendix A.
| Method | Pythia-1.4B | OPT-1.3B | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Wiki-2 ↓ | C4 ↓ | Hella ↑ | PiQA ↑ | Wino ↑ | Wiki-2 ↓ | C4 ↓ | Hella ↑ | PiQA ↑ | Wino ↑ | |
| FP16 | 14.72 | 38.76 | 52.12 | 71.16 | 57.30 | 16.47 | 39.41 | 41.36 | 71.00 | 59.75 |
| RTN | 18.73 | 49.99 | 49.72 | 69.42 | 55.33 | 29.46 | 73.25 | 34.31 | 67.52 | 53.59 |
| OPTQ | ||||||||||
| QuIP | ||||||||||
| QuIP-RG | ||||||||||
| QuIP # | ||||||||||
| Kashin-DCT+K | ||||||||||
| Kashin-DCT+H | ||||||||||
| Method | Llama-2-7B | Llama-2-13B | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Wiki-2 ↓ | C4 ↓ | Hella ↑ | PiQA ↑ | Wino ↑ | Wiki-2 ↓ | C4 ↓ | Hella ↑ | PiQA ↑ | Wino ↑ | |
| FP16 | 9.20 | 19.40 | 76.14 | 78.73 | 69.46 | 8.11 | 17.59 | 79.64 | 80.36 | 72.53 |
| RTN | 10.56 | 22.78 | 74.43 | 78.56 | 68.75 | 8.74 | 18.71 | 78.80 | 79.65 | 70.88 |
| OPTQ | ||||||||||
| QuIP | ||||||||||
| QuIP-RG | ||||||||||
| QuIP # | ||||||||||
| Kashin-DCT+K | ||||||||||
| Kashin-DCT+H | ||||||||||
QuIP variants we ran fail catastrophically – QuIP and QuIP-RG diverge to > 2000 WikiText-2 PPL, and even QuIP# blows up to ~ 325 PPL – while OPTQ stays close to its baseline at 12.02 PPL. “Kashin-DCT+H” recovers to WikiText-2 PPL, more than an order of magnitude better than QuIP# at the same bit budget; full per-task numbers are reported in Appendix A (Table 2). On Mistral-7B v0.1 the failure is sharper still: all four QuIP variants abort with NaN in the LDL back-substitution on the SwiGLU m1p. down_proj layer, and OPTQ itself degrades to Wiki-2 PPL, while Kashin-DCT remains numerically stable and stays within Wiki-2 PPL of the FP16 reference of 8.63 (Table 3; full diagnostic in Appendix A). Across the four stress configurations we encountered — elevated variance on Llama-2-7B and Pythia-1.4B, catastrophic divergence on Pythia-6.9B, and NaN abort on Mistral-7B — Kashin-DCT is the only pipeline that remains numerically stable on every layer, which we read as evidence that the bounded- factor decomposition with an adaptive per-column codebook is structurally more robust to weight-distribution outliers than fixed-grid rounding driven through an ill-conditioned Hessian inverse.
6 Conclusion
We revisited Kashin-decomposition quantization for LLMs and resolved the three weaknesses that had limited its prior application: weak convergence under matrix reformulation, the cost of an explicit random orthogonal transform, and slow multi-restart k-means clustering. The proposed Greedy Algorithm with Alternating Updates retains the dictionary but fixes the order of u- and -updates in blocks of four, which places the dominant updates of each factor at known centroid locations and produces the empirically four-peaked distributions that 2-bit clustering exploits; the analysis in Section 4 establishes geometric residual decay at per-block rate with , and an bound of order , i.e. within polylogarithmic factors of the unconstrained scheme of Kashin et al. [2025]. Replacing the random orthogonal Q with a sign-randomized DCT removes the dense matrix entirely and brings the per-iteration cost to , while closed-form initialization of cluster centers from the residual norms removes the k-means multi-restart outer loop, reducing k-means clustering wall-clock time. Composed with OPTQ-style 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-1.3B, Llama-2-7B/13B and Pythia-1.4B/6.9B, while admitting an inference-time decomposition into two 2-bit factor codes per channel that is structurally well-suited to native-2-bit hardware (Appendix C). The favorable scaling of Kashin-DCT+H from 7B to 13B (Appendix D) further suggests that the relative cost of the proposed pipeline becomes more attractive as model size grows, even before any kernel-level optimization is applied. A second, less expected property emerges from the stress tests: on configurations
A PREPRINT
where the QuIP family diverges into four-digit perplexities (Pythia-6.9B) or aborts with NaNs in LDL back-substitution (Mistral-7B v0.1), and where OPTQ itself silently saturates to 380 Wiki-2 PPL on the same layer, Kashin-DCT+H is the only pipeline that produces robust results (Appendix A); the bounded- factor decomposition with an adaptive per-column codebook is structurally more robust to weight-distribution outliers than fixed-grid rounding driven through an ill-conditioned Hessian inverse.
Limitations. Our results do not cover activation-aware baselines such as AWQ [Lin et al., 2024a], OmniQuant [Shao et al., 2024] or rotation-based methods [Ashkboos et al., 2024, Liu et al., 2025]. That said, rotation-based methods are orthogonal to our weight decomposition rather than competing with it: the rotation is applied to the weight matrix prior to factorization, and our Kashin-DCT+K and Kashin-DCT+H variants are already exactly this composition with Kronecker and randomized-Hadamard rotations, so substituting any other orthogonal preprocessing (e.g. the learned rotations of Liu et al. [2025] or QuaRot's residual-stream rotation [Ashkboos et al., 2024]) leaves the rest of the pipeline unchanged. This is left for future work.
Future work. Two directions stand out. First, implementing the fused 2-bit GEMM with shared- DCT kernel described in Appendix C and benchmarking end-to-end latency against a tuned 4-bit baseline such as Marlin [Frantar et al., 2025] would convert the asymptotic bandwidth and arithmetic advantages of the decomposed form into a measured serving benefit, particularly on accelerators with native 2-bit tensor cores. Second, extending the decomposition beyond per-channel 4-bit — to sub-4-bit budgets via vector-quantization codebooks, or to weight-and-activation quantization by composing with learned rotations [Liu et al., 2025].
References
Tim Dettmers, Mike Lewis, Younes Belkada, and Luke Zettlemoyer. Llm.int8(): 8-bit matrix multiplication for transformers at scale. In Proceedings of the 36th International Conference on Neural Information Processing Systems, NIPS '22, Red Hook, NY, USA, 2022. Curran Associates Inc. ISBN 9781713871088.
Tim Dettmers, Artidoro Pagnoni, Ari Holtzman, and Luke Zettlemoyer. QLoRA: Efficient finetuning of quantized LLMs. In Thirty-seventh Conference on Neural Information Processing Systems, 2023. URL https://openreview.net/forum?id=0UIFPHEgJU.
Elias Frantar, Saleh Ashkboos, Torsten Hoefler, and Dan Alistarh. OPTQ: Accurate quantization for generative pre-trained transformers. In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=tcbBPnfwxS.
Elias Frantar and Dan Alistarh. Optimal brain compression: A framework for accurate post-training quantization and pruning. In Alice H. Oh, Alekh Agarwal, Danielle Belgrave, and Kyunghyun Cho, editors, Advances in Neural Information Processing Systems, 2022. URL https://openreview.net/forum?id=ksVGC010Eba.
Jerry Chee, Yaohui Cai, Volodymyr Kuleshov, and Christopher De Sa. QuIP: 2-bit quantization of large language models with guarantees. In Thirty-seventh Conference on Neural Information Processing Systems, 2023. URL https://openreview.net/forum?id=xrk9g5vcXR.
Albert Tseng, Jerry Chee, Qingyao Sun, Volodymyr Kuleshov, and Christopher De Sa. QuIP#: even better llm quantization with hadamard incoherence and lattice codebooks. In Proceedings of the 41st International Conference on Machine Learning, ICML'24. JMLR.org, 2024a.
Vage Egiazarian, Andrei Panferov, Denis Kuznedelev, Elias Frantar, Artem Babenko, and Dan Alistarh. Extreme compression of large language models via additive quantization. In Proceedings of the 41st International Conference on Machine Learning, ICML'24, 2024.
Mart van Baalen, Andrey Kuzmin, Markus Nagel, Peter Couperus, Cedric Bastoul, Eric Mahurin, Tijmen Blankevoort, and Paul Whatmough. GPTVQ: The blessing of dimensionality for LLM quantization. arXiv preprint arXiv:2402.15319, 2024.
Albert Tseng, Qingyao Sun, David Hou, and Christopher De Sa. QTIP: Quantization with trellises and incoherence processing. In Advances in Neural Information Processing Systems, 2024b.
Daniil Merkulov, Daria Cherniuk, Alexander Rudikov, Ivan Oseledets, Ekaterina Muravleva, Aleksandr Mikhalev, and Boris Kashin. Quantization of large language models with an overdetermined basis. In Negar Kiyavash and Joris M. Mooij, editors, Proceedings of the Fortieth Conference on Uncertainty in Artificial Intelligence, volume 244 of Proceedings of Machine Learning Research, pages 2527–2536. PMLR, 15–19 Jul 2024. URL https://proceedings.mlr.press/v244/merkulov24a.html.
Boris Sergeevich Kashin. Diameters of some finite-dimensional sets and classes of smooth functions. Izvestiya Rossiiskoi Akademii Nauk. Seriya Matematicheskaya, 41(2):334–351, 1977.
A PREPRINT
Boris Kashin, Ivan Oseledets, and Alexander Rudikov. Accelerated algorithm for splitting a vector into two vectors with small uniform norm. Matematicheskie Zametki, 118(3):434–442, 2025.
Guangxuan Xiao, Ji Lin, Mickael Seznec, Hao Wu, Julien Demouth, and Song Han. SmoothQuant: Accurate and efficient post-training quantization for large language models. In Proceedings of the 40th International Conference on Machine Learning, ICML'23, 2023.
Ji Lin, Jiaming Tang, Haotian Tang, Shang Yang, Wei-Ming Chen, Wei-Chen Wang, Guangxuan Xiao, Xingyu Dang, Chuang Gan, and Song Han. AWQ: Activation-aware weight quantization for on-device LLM compression and acceleration. In Proceedings of Machine Learning and Systems, 2024a.
Wenqi Shao, Mengzhao Chen, Zhaoyang Zhang, Peng Xu, Lirui Zhao, Zhiqian Li, Kaipeng Zhang, Peng Gao, Yu Qiao, and Ping Luo. OmniQuant: Omnidirectionally calibrated quantization for large language models. In The Twelfth International Conference on Learning Representations, 2024.
Sehoon Kim, Coleman Hooper, Amir Gholami, Zhen Dong, Xiuyu Li, Sheng Shen, Michael W. Mahoney, and Kurt Keutzer. SqueezeLLM: Dense-and-sparse quantization. In Proceedings of the 41st International Conference on Machine Learning, ICML'24, 2024.
Saleh Ashkboos, Amirkeivan Mohtashami, Maximilian L. Croci, Bo Li, Pashmina Cameron, Martin Jaggi, Dan Alistarh, Torsten Hoefler, and James Hensman. QuaRot: Outlier-free 4-bit inference in rotated LLMs. In Advances in Neural Information Processing Systems, 2024.
Zechun Liu, Changsheng Zhao, Igor Fedorov, Bilge Soran, Dhruv Choudhary, Raghuraman Krishnamoorthi, Vikas Chandra, Yuandong Tian, and Tijmen Blankevoort. Spinquant: LLM quantization with learned rotations. In The Thirteenth International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=og06DGE6FZ.
Haokun Lin, Haobo Xu, Yichen Wu, Jingzhi Cui, Yingtao Zhang, Linzhan Mou, Linqi Song, Zhenan Sun, and Ying Wei. DuQuant: Distributing outliers via dual transformation makes stronger quantized LLMs. In Advances in Neural Information Processing Systems, 2024b.
Vladimir Temlyakov. Greedy approximation, volume 20. Cambridge University Press, 2011.
Markus Nagel, Marios Fournarakis, Rana Ali Amjad, Yelysei Bondarenko, Mart van Baalen, and Tijmen Blankevoort. A white paper on neural network quantization. ArXiv, abs/2106.08295, 2021. URL https://api.semanticscholar.org/CorpusID:235435934.
Olivier Guédon, Shahar Mendelson, Alain Pajor, and Nicole Tomczak-Jaegermann. Majorizing measures and proportional subsets of bounded orthonormal systems. Revista Matemática Iberoamericana, 24:1075–1095, 02 2008. doi:10.4171/RMI/567.
Susan Zhang, Stephen Roller, Naman Goyal, Mikel Artetxe, Moya Chen, Shuohui Chen, Christopher Dewan, Mona Diab, Xian Li, Xi Victoria Lin, Todor Mihaylov, Myle Ott, Sam Shleifer, Kurt Shuster, Daniel Simig, Punit Singh Koura, Anjali Sridhar, Tianlu Wang, and Luke Zettlemoyer. OPT: Open pre-trained transformer language models, 2022.
Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, et al. Llama 2: Open foundation and fine-tuned chat models, 2023.
Albert Q. Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, Lélio Renard Lavaud, Marie-Anne Lachaux, Pierre Stock, Teven Le Scao, Thibaut Lavril, Thomas Wang, Timothée Lacroix, and William El Sayed. Mistral 7B, 2023.
Stella Biderman, Hailey Schoelkopf, Quentin Gregory Anthony, Herbie Bradley, Kyle O'Brien, Eric Hallahan, Mohammad Aflah Khan, Shivanshu Purohit, USVSN Sai Prashanth, Edward Raff, Aviya Skowron, Lintang Sutawika, and Oskar van der Wal. Pythia: A suite for analyzing large language models across training and scaling. In Proceedings of the 40th International Conference on Machine Learning, ICML'23, 2023.
Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. Pointer sentinel mixture models. In International Conference on Learning Representations, 2017.
Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J. Liu. Exploring the limits of transfer learning with a unified text-to-text transformer. Journal of Machine Learning Research, 21(140):1–67, 2020.
Rowan Zellers, Ari Holtzman, Yonatan Bisk, Ali Farhadi, and Yejin Choi. HellaSwag: Can a machine really finish your sentence? In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, 2019.
A PREPRINT
Yonatan Bisk, Rowan Zellers, Ronan Le Bras, Jianfeng Gao, and Yejin Choi. PIQA: Reasoning about physical commonsense in natural language. In Proceedings of the AAAI Conference on Artificial Intelligence, 2020.
Keisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, and Yejin Choi. WinoGrande: An adversarial Winograd schema challenge at scale. Communications of the ACM, 64(9):99–106, 2021.
Elias Frantar, Roberto L. Castro, Jiale Chen, Torsten Hoefler, and Dan Alistarh. MARLIN: Mixed-precision autoregressive parallel inference on large language models. In Proceedings of the 30th ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming, PPoPP'25, 2025.
A Stress Tests on Pythia-6.9B and Mistral-7B
Pythia-6.9B. Table 2 reports the full numbers for the Pythia-6.9B stress-test referenced in Section 5. Calibration setup is identical to the main table (1000 WikiText-2 train samples, sequence length 2048, three random seeds; mean ± std reported). The QuIP family fails catastrophically on this model (perplexities in the hundreds-to-thousands), while Kashin-DCT+H stays within an order of magnitude of OPTQ.
Table 2: Pythia-6.9B at 4-bit per channel. WikiText-2 / C4 perplexity (lower is better), HellaSwag / PiQA / Winogrande accuracy (higher is better). Best quantization result in bold, second best underlined (FP16/RTN excluded).
| Method | Wiki-2 ↓ | C4 ↓ | Hella ↑ | PiQA ↑ | Wino ↑ |
|---|---|---|---|---|---|
| FP16 | 11.41 | 30.11 | 63.87 | 76.44 | 61.40 |
| RTN | 17.55 | 44.59 | 58.86 | 73.01 | 59.12 |
| OPTQ | |||||
| QuIP | |||||
| QuIP-RG | |||||
| QuIP # | |||||
| Kashin-DCT+K | |||||
| Kashin-DCT+H |
Mistral-7B v0.1. Table 3 reports per-method results on Mistral-7B v0.1 at 4-bit per channel under the same calibration setup as Table 2 (Kashin rows averaged over two seeds, GPTQ over three). The QuIP family fails to produce any output on Mistral, for the reason explained in the next paragraph. GPTQ runs to completion but degrades catastrophically (Wiki-2 PPL ≈ 380, more than 40× above the FP16 reference of 8.63), while Kashin-DCT+K and Kashin-DCT+H remain numerically stable at 0.32 and 0.29 Wiki-2 PPL above the FP16 baseline, respectively.
Table 3: Mistral-7B v0.1 at 4-bit per channel. WikiText-2 / C4 perplexity, HellaSwag / PiQA / Winogrande accuracy. “aborts” = produces NaNs and fails to complete; see paragraph below. Best non-aborting quantization result per column in bold, second best underlined.
| Method | Wiki-2 ↓ | C4 ↓ | Hella ↑ | PiQA ↑ | Wino ↑ |
|---|---|---|---|---|---|
| FP16 | 8.63 | 21.42 | 81.23 | 82.75 | 75.14 |
| GPTQ | |||||
| QuIP / QuIP-RG / QuIP# | aborts (NaN in LDL decomposition; see below) | ||||
| Kashin-DCT+K | |||||
| Kashin-DCT+H |
Why all OPTQ-family methods fail on Mistral. Both failures share a root cause: the SwiGLU input to Mistral's mlp.down_proj produces extreme channel-wise outliers, leaving the calibration Hessian ill-conditioned with several eigenvalues orders of magnitude below the largest; randomized rotations do not change the spectrum, so the conditioning survives the OPTQ-default diagonal damping. QuIP (LDLQ) aborts: the Cholesky factor has near-zero diagonals, LDLQ's unit-diagonal normalization amplifies off-diagonals, and the back-substitution overflows to NaN at mlp.down_proj on both v0.1 and v0.3 (all four had/kron ldlq/ldlqRG
A PREPRINT
variants). OPTQ runs to completion but silently destroys the model: the residual update
uses the same ill-conditioned , swinging the yet-to-be-quantized columns far outside their pre-calibrated per-channel grid; the subsequent round-to-grid step saturates them at the endpoints (--act-order mitigates this only marginally). Kashin-DCT remains robust: the analytic centroids scale with the actual residual norm , so the codebook follows the inflated magnitude, and the bounded- factor decomposition keeps -means well-conditioned on the same calibration data. The same mechanism is the source of stability we observe in Table 1 on the Llama-2-7B columns where LDLQ+Kron variance blows up (the daggered cells), and in Table 2 on Pythia-6.9B where all three QuIP variants diverge into the hundreds-to-thousands PPL range while Kashin-DCT+H stays within an order of magnitude of the OPTQ baseline.
B Original Kashin Greedy Algorithm
For completeness, we restate the original Kashin vector-decomposition greedy algorithm, on which the matrix reformulation of Merkulov et al. [2024] and our partitioned variant in Section 4 build.
Algorithm 2 Vector Decomposition Greedy Algorithm
Input: Vector , Orthogonal matrix , Tolerance
Output: Vectors such that , and both and have small infinity norm.
Initialize ,
Define projection
while do
if then
else
end if
end while
Return:
C Inference
The Kashin representation stores each layer as two 2-bit factor matrices together with the per-layer sign mask that defines the orthogonal operator . Because is shared across all columns of a layer (generated once from a fixed seed), a single acts on every column of . With the orthonormal DCT-II , is a symmetric involution ( and , since is diagonal with ). Associativity of the matmul then gives the folding identity
where XP is computed by applying the same FFT-fast ‘iDCT ○ sign-mask ○ DCT’ pipeline used for during quantization, just to each row of X rather than to a column of .
Compute. The right path through (8) depends on hardware. Without native 2-bit GEMM support, it is more efficient to reconstitute the dense weight once at load time and run a standard fp16 (or 4-bit-dequant) matmul
Throughout this paper we use the orthonormal DCT-II (IDCT = DCT ); the unscaled type-II DCT does not satisfy this identity and the involution below would not hold.
A PREPRINT
XW. With native 2-bit GEMM (e.g. Hopper-class FP4/INT2 tensor cores), the fused form of (8) is preferable: keeping and in their 2-bit storage and computing as a single 2N-K-dimension 2-bit GEMM avoids the fp16 expansion of the weight body and preserves the on-chip footprint advantage of 2-bit codes. In both regimes the DCT cost is for activation rows, several orders of magnitude below the matmul.
Native 2-bit hardware. On accelerators with native 2-bit tensor cores, the decomposed form gains two kernel-level advantages over a standard 4-bit per-channel kernel: (i) codebook dequantization maps cleanly to the 2-bit addressing unit – the lookup replaces operation of uniform quantization; (ii) each 2-bit code is the natural register-packing and shared-memory granule, so the centroid table loads contiguously without the cross-lane shuffles a 4-bit dequant with zero-point typically requires.
Memory bandwidth. At 4-bit per channel, each layer stores 4NM weight bits (2NM for each of and ). Symmetric centroids about zero in both factors permit the per-column metadata to be reduced to two signed magnitudes per factor (4M fp16 values per layer), plus a layer-shared sign vector , which can be recovered from the seed rather than stored. The effective bits-per-weight is therefore ; for typical LLM hidden dimensions this metadata adds at most 64/4096 0.016 bits per weight on top of the 4-bit weight body. By comparison, standard 4-bit per-channel quantization stores one fp16 scale per column and (optionally) one fp16 zero-point, yielding bits per weight without zero-point and with it – equivalently, an additional 0.004 and 0.008 bits per weight at .
D Quantization Runtime
Table 4 reports the end-to-end wall-clock time required to quantize Llama-2-7B and Llama-2-13B at 4 bits per channel for the three methods we ran on identical hardware: OPTQ, the fine-tuning- and vector-quantization-free variant of QuIP# (LDLQ-RG with randomized Hadamard incoherence preprocessing), and our Kashin-DCT+H pipeline. All measurements are taken on a single NVIDIA H100 GPU; mean standard deviation is computed over three random seeds. The reported time does not include Hessian estimation.
Table 4: Quantization wall-clock time at 4 bits per channel. Single NVIDIA H100 GPU; mean std over three random seeds.
| Method | Llama-2-7B (s) | Llama-2-13B (s) |
|---|---|---|
| OPTQ | ||
| QuIP# (LDLQ-RG + Hadamard) | ||
| Kashin-DCT+H |
Scaling 7B → 13B. Going from Llama-2-7B to Llama-2-13B (a parameter increase), OPTQ and QuIP# wall-clock times scale roughly proportionally and , respectively – whereas Kashin-DCT+H grows only . Concretely, doubling the model roughly doubles the OPTQ and QuIP# quantization budget but adds only to Kashin-DCT+H, so the relative cost of the proposed method becomes more favorable as model size grows.
E Proof of Proposition 1
The dictionary is partitioned into two halves:
The partitioned greedy algorithm alternates between these halves: within each block, the first two steps use vectors from , and the next two steps use vectors from . To establish the convergence rate, it suffices to analyze the error reduction over a single block.
Fix one such block and denote by the residual at its start; thus and . For , let be the residual after the -th step inside this block. In the notation of Proposition 1 we have .
A PREPRINT
By (3), for at least one of the following conditions holds:
We first record the standard estimate used in Kashin et al. [2025]. Suppose . For any we have , and the maximum is attained by . Hence the greedy step satisfies
Since (as is orthogonal transformation, is diagonal, ), we have for any , so an identical argument applies to when condition (10) holds.
Case 1: condition (9) holds. By (11), the first greedy step (from ) gives . The remaining three steps are non-expansive (each is an orthogonal projection onto a one-dimensional subspace), so
Case 2: condition (9) fails. By (3), condition (10) must then hold.
Sub-case 2a: . The third and fourth steps are non-expansive, hence , and (5) holds.
Sub-case 2b: . By the property of the pure greedy algorithm at each step ,
Combining with and yields
so the triangle inequality gives
Let be the best approximation of from . Since condition (10) holds, the one-step estimate gives . Because the actual greedy choice at the third step is at least as good as , the triangle inequality yields
(12)
The fourth step is non-expansive, hence
In all cases (5) is established, completing the proof.
F Proof of Theorem 2
We prove
by induction on . The case is immediate: .
A PREPRINT
Assume (14) holds for some and consider the -th block, which starts from and produces . Setting in Proposition 1, we obtain
which closes the induction and proves the first line of (6).
Recall that within the -th block the algorithm performs four atomic steps: two from (contributing to ) and two from (contributing to ). Let and denote the dictionary elements chosen in block , with corresponding coefficients . By construction,
Coefficient bound. At every greedy step the chosen atom satisfies and the associated coefficient equals , where is the residual entering that step. Hence by Cauchy–Schwarz,
where is the residual just before step of block . Since atomic steps are non-expansive, , and by part 1, . Therefore
Summing the contributions. Every atom has . By (15) and (17),
(18)
The same bound holds for since implies that the action of on the second sum in (15) produces atoms in with the same -norm bound.
Combining (15) with the fact that for every and substituting , we conclude
where is an absolute constant. This is exactly the second line of (6).