Manuscript Offprint
arXiv:2610.20303SpectrumQuant: Spectrum Alignment for LLM Quantization
Dwaipayan Haldar
Indian Institute of Science
Bengaluru-560012, Karnataka, India
Indranil Patra
Indian Institute of Science
Bengaluru-560012, Karnataka, India
Azhar Yousuf
Indian Institute of Science
Bengaluru-560012, Karnataka, India
Chandra Sekhar Seelamantula
Indian Institute of Science
Bengaluru-560012, Karnataka, India
Abstract
Orthogonal transforms have emerged as an effective tool for low-bit quantization of large language models (LLMs), as they reshape activation distributions without changing the underlying model function. Existing approaches typically rely either on fixed data-agnostic transforms, such as Hadamard rotations, or on calibration-time optimization of learned rotations. We study rotation selection from first principles and show that maximizing covariance leads to spectral alignment and provides a principled criterion for constructing quantization-friendly orthogonal transforms. Based on this insight, we propose SpectrumQuant, a closed-form rotation method that estimates activation covariance from calibration data and uses it to construct a covariance-aware orthogonal transform for post-training quantization. Our formulation characterizes quantization-friendly rotations as compositions of alignment and mixing components, while recovering Hadamard matrices as a special case. Interestingly, a class of butterfly matrices belongs to this category. In the realm of LLM quantization, SpectrumQuant bridges the gap between data-agnostic structured rotations and learned rotations, providing an effective and efficient data-aware alternative for post-training quantization. Experiments on Llama and Mistral models show that SpectrumQuant is competitive with state-of-the-art rotation strategies while requiring less than one-third of the GPU memory and significantly less time than learned rotations approaches like SpinQuant and DartQuant.
These authors contributed equally to this work.
1 Introduction
Large language models (LLMs) have demonstrated exceptional proficiency across a broad range of natural language processing applications, driving rapid growth in model scale. While this scaling has enabled strong capabilities, it has also created a major deployment bottleneck due to the high cost of inference. To improve inference efficiency, a variety of approaches have been explored, including pruning, distillation, and quantization (Han et al., 2016; Hinton et al., 2015; Ma et al., 2023; Yao et al., 2022). Among these, post-training quantization (PTQ) is particularly attractive because it reduces memory usage and inference cost by mapping weights and activations to low-precision representations, without requiring expensive retraining or fine-tuning. However, activation outliers remain a fundamental obstacle to accurate low-bit quantization in LLMs. Because a small number of extreme values can dominate the activation dynamic range, they substantially degrade low-bit quantization accuracy, motivating methods that explicitly reshape activations into more quantization-friendly representations.
Activation quantization is typically more challenging than weight quantization in LLMs because extreme outliers can substantially distort the quantization range and degrade low-bit accuracy. Addressing this challenge, previous work has proposed several outlier-mitigation techniques, including mixed-precision models (Zhao et al., 2024) and shifting the quantization burden from activations to weights (Lin et al., 2024; Xiao et al., 2023). Very recently, rotation-based methods have proved to be a particularly effective approach (Chee et al., 2023; Tseng et al., 2024). Such methods rely on rotational invariance, which allows rotation matrices to be integrated into nearby weights without altering the original network outputs. The resulting rotated basis disperses outlier magnitude across dimensions, leading to smoother activations and improved quantizability (Ashkboos et al., 2024; Liu et al., 2025; Shao et al., 2026).
Despite the empirical effectiveness of rotation-based quantization, current methods exhibit a clear trade-off. Fixed rotations such as the Hadamard transform (Chee et al., 2023; Ashkboos et al., 2024; Tseng et al., 2024) are simple as well as efficient, but data-agnostic: they apply the same transform to every model, even though activation outliers differ across models and layers. On the other hand, learned rotations (Hu et al., 2025; Liu et al., 2025; Shao et al., 2026; Xu et al., 2026) adapt to the activation statistics of each model, but they rely on iterative optimization, which is computationally expensive and lacks theoretical guarantees. Nevertheless, learned rotation approaches require specialized procedures to enforce orthogonality constraints, and the underlying search-based approximation does not assure convergence to a global optimum. Additionally, such learned rotations introduce a substantial calibration cost in terms of memory and time requirement. Calibration costs are difficult to reconcile with the practical appeal of post-training quantization, whose main advantage lies in enabling fast and lightweight deployment.
To address this gap, we propose SpectrumQuant, a data-aware and mathematically grounded approach to LLM post training quantization. Instead than relying on either data-agnostic rotations or empirically learned rotations with no theoretical guarantees, SpectrumQuant derives quantization-friendly orthogonal transforms from first principles via a well-motivated covariance-based objective. The resulting formulation yields a closed-form hybrid rotation that combines a Hadamard backbone (mixing component) with an adaptive (alignment) component estimated from calibration data. Experiments across multiple prominent LLM architectures demonstrate that the proposed transform dramatically reduces the calibration costs while yielding on-par quantization performance.
Our main contributions are two-fold:
• We formulate a novel and theoretically well-motivated covariance-based objective for rotation design and derive a closed-form family of hybrid orthogonal transforms that unifies fixed or data-independent structured rotations and data-dependent alignment within a single framework, which we use for LLM PTQ.
- The proposed method SpectrumQuant delivers high accuracy while reducing the calibration cost by a significant margin. For instance, for the 70B model, SpectrumQuant completes calibration in 43 minutes on a single A6000 GPU with pre-saved activations. It achieves a speedup in total calibration time and a reduction in memory usage relative to the state-of-the-art
(SOTA) methods like SpinQuant(Liu et al., 2025) while giving on-par or better accuracy. Notably, SpectrumQuant can also be calibrated efficiently on CPU unlike prior learned rotation methods.
2.1 Non-orthogonal Transforms
Existing scaling-based transforms such as SmoothQuant (Xiao et al., 2023) address activation outliers by shifting the outliers from activations to weights, reducing activation quantization errors. OmniQuant (Shao et al., 2024) proposes learnable weight clipping and uses block-wise error minimization to fine-tune quantization errors. Although these methods reduce activation quantization errors, they shift the difficulty to weight quantization, creating problems in the presence of extreme activation outliers. Very recent methods, such as WUSH (Chen et al., 2026) and CAT (Federici et al., 2026), focus on weight and activation quantization as a pair to reduce the quantization error. However, unlike orthogonal transforms, any non-orthogonal transform is not invariant to RMSNorm computation, which requires online matrix multiplication and introduce additional inference overhead depending on the implementation. Details about the implementation can be found in Section 5.
2.2 Rotation-based Transforms
Among rotation-based quantization approaches, QuIP (Chee et al., 2023) proposes incoherent processing for reducing the impact of outliers in both the weight and activation spaces. As an extension, QuIP# (Tseng et al., 2024) improves speed by using random Hadamard transforms. Building on these methods, which are primarily meant for weight-only quantization, QuaRot (Ashkboos et al., 2024) extends it to activation and KV-cache quantization, relying purely on random Hadamard rotations and incoherence processing to reduce outliers.
SpinQuant (Liu et al., 2025) demonstrates that certain random rotations significantly outperform others during LLM quantization, and introduces a method that optimizes rotation matrices to maximize network accuracy. Similar to SpinQuant, OSTQuant (Hu et al., 2025) treats the rotation along with scaling matrices as network parameters and fine-tunes them in an end-to-end fashion, resulting in the transformations becoming non-orthogonal. In contrast, DartQuant (Shao et al., 2026) optimizes orthogonal rotations through a calibration-time loss, making it a calibration-based alternative rather than an end-to-end fine-tuned one. ButterflyQuant (Xu et al., 2026) trains to find the parameters of butterfly matrices rather than to reduce calibration cost. In a nutshell, the existing orthogonal rotation methods can be broadly divided into two classes: data-agnostic random transforms, such as Hadamard-based approaches (Chee et al., 2023; Ashkboos et al., 2024; Tseng et al., 2024), and data-dependent optimized transforms, either through end-to-end fine-tuning as in SpinQuant or through calibration-time loss optimization as in DartQuant. In contrast to these methods, COAT (Patra et al.) introduces upon a correlation-aware orthogonal transform and demonstrates application to LLM quantization. The proposed SpectrumQuant strikes a balance by adopting a first-principles approach to seek a data-aware orthogonal transform and constructing it in closed-form from calibration statistics, without iterative optimization. A qualitative characterization of different LLM quantization methods is given in Table 1.
Table 1: Qualitative characterization of different LLM quantization methods.
| Data-Agnostic Rotation(QuaRot, QuIP#) | Learned Rotation(SpinQuant, OSTQuant) | Calibration-Optimized Rotation(DartQuant, ButterflyQuant) | Non-Orthogonal Transform(SmoothQuant, WUSH, CAT) | SpectrumQuant(Ours) | |
|---|---|---|---|---|---|
| Closed-form | ✓ | ✕ | ✕ | ✓ | ✓ |
| Data-aware | ✕ | ✓ | ✓ | ✓ | ✓ |
| Zero inference overhead | ✓ | ✓ | ✓ | ✕ | ✓ |
3 Motivation
SpectrumQuant is directly motivated by the following open question in the field of rotation-based quantization (Liu et al., 2025): given an activation distribution with known outlier axes and magnitudes, can a closed-form solution for the optimal rotation matrix that evenly distributes magnitude across different axes be derived? It turns out that starting from a covariance-maximization objective leads to a principled derivation of the optimal rotation matrix for this task. The initial intuition for the covariance-maximization approach came from a toy example in the two-dimensional case as depicted in Figure 1. Under shared-scale quantization, the step size is dictated by the highest-variance coordinate, so a low-variance coordinate is coarsely binned and its values collapse to zero; ideally, the data should therefore have equal variance in both coordinates, that is, its principal axis should lie along the (or, equivalently, ) line. Since a 2D Hadamard matrix is a reflection across the line , it transforms a principal axis at angle to ; it thus achieves the ideal alignment only if the data is already axis-aligned ( ), which motivates first aligning the data with U, which is the eigenbasis of the covariance matrix, or simply the Karhunen–Loève Transform (KLT) (Fleury et al., 1997). This justifies the use of U as the alignment component before applying the Hadamard transform, resulting in a perfect mixing. This is exactly the idea behind SpectrumQuant, which is a quantization-friendly transform that consists of an

(a) R = I
(b) R = H
(c) R = UH

VALUE
VALUE
VALUE
Figure 1: Geometric intuition for covariance-aware rotation design. The top row shows the original distribution, a fixed Hadamard rotation, and the proposed hybrid rotation transform, while the bottom row shows the corresponding marginals.
alignment component and a mixing component. Our intuition is further supported with the analysis that covariance-maximization over the Stiefel manifold yields a variance-equalizing transform in SpectrumQuant that turns out to be optimal for quantization under a shared scale (see Section 4.3, particularly equation 4.16 and equation 4.17).
4 Method
In this section, we propose the SpectrumQuant transform using a first-principles approach, yielding a closed-form expression of the optimal transform. This closed-form formulation distinguishes SpectrumQuant from existing methods, which are either data-agnostic or fully trained using gradient descent.
4.1 Covariance Maximization
Under the standard assumption that the data is mean-centred, the sample covariance matrix is given by . For a orthogonal matrix , consider the transformation . Because is an orthogonal matrix, it preserves the zero mean of the data. Then, the covariance matrix of the transformed data is given by
The normalized Hadamard matrix has the form of a reflection matrix with , that is, a reflection across the line through the origin at angle . A reflection across the line at angle maps a direction at angle to the direction at angle . Hence an axis-aligned principal axis is mapped to (for ) or to (for ), whereas any other yields an angle different from and .
where denotes the transpose of . Since our goal is to maximize the off-diagonal elements of the matrix , we take into consideration the following optimization problem:
where denotes the identity matrix. We convert the above maximization problem into a minimization one by invoking invariance of the Frobenius norm to orthogonal transformations. Denote as the Frobenius norm of the covariance matrix , then
Consequently, it follows that the optimization problem in equation 4.2 can be recast in the following fashion:
The last equation follows because the term is just a constant and has no effect on the optimization, which allows us to write from equation 4.2 solely as a minimization problem. The fact that is actually a constant can simply be verified by writing the Frobenius norm in terms of the trace as and then invoking cyclic property of the trace operator. Hence, equation 4.4 serves as the desired minimization problem equivalent to the maximization problem in equation 4.2.
4.2 Construction of Solution
In this section, we first solve the optimization problem formulated in equation 4.4. We show that the desired solution corresponds to a variance-equalizing orthogonal transform. Additionally, from our construction, we show that such a family of variance-equalizing orthogonal transforms exists.
Proposition 4.1. The minimization problem given in equation 4.4 has a lower bound, and that is attained if and only if the diagonal elements of are all equal and equal to the average trace of the same covariance matrix .
Proof. To solve the minimization problem , , we need to lower bound the sum . Recall that for any and , the Cauchy-Schwarz inequality asserts that , with the equality if and only if and are scalar multiples of each other, that is, , for some scalar . In particular, if , we have the following useful inequality: , with the equality if and only if . Accordingly, as a consequence of this inequality, we have that
with equality holding in inequality 4.5 if and only if the diagonal elements of are all equal; that is, . In other words, the minimum in equation 4.4 is achieved for a orthogonal matrix satisfying the following:
Under the trace preservation property of orthogonal matrices, we have , where is the -th eigenvalue of the sample covariance matrix . Thus for , equation 4.6 yields that problem equation 4.4 is optimized for a orthogonal matrix satisfying the following:
That is, all diagonal elements of are equal to the average trace of . This completes the proof of Proposition 4.1.
4.2.1 Family of Solutions
The proposed covariance maximization problem admits multiple solutions, not a unique one. This is quite evident by observing that the number of degrees of freedom in describing a -dimensional orthogonal matrix is . Moreover, in view of Proposition 4.1, we want our desired orthogonal matrix to be such that covariance matrix has all the diagonal elements equal to (see equation 4.7). That is, we are setting diagonal elements of equal to ; however, because orthogonal transformations preserve the trace, fixing the first elements to automatically forces the -th element to . Therefore, the total number of degrees of freedom in choosing the desired orthogonal matrix is .
Furthermore, Proposition 4.1 only specifies the desired orthogonal matrix . It doesn’t give a procedure to construct one! Below, we pursue the construction of solutions of the form , where is obtained from the eigen-decomposition of the sample covariance matrix , with being the diagonal matrix of the eigenvalues of , and is an orthogonal matrix. Henceforth, we call the alignment component and the rotation or mixing component of . Then, we observe that . Therefore, our task reduces to finding the appropriate matrix in accordance with Proposition 4.1. We write
where denotes the -th element of the orthogonal matrix V in the decomposition . From equation 4.7, we see that the optimal solution must satisfy that
Hence, it follows that for every spectrum , the condition on the mixing component ensures that equation 4.9 is satisfied by our orthogonal transform . Formally, we have the following proposition:
Proposition 4.2. Given any orthogonal matrix V, the following statement are equivalent:
(i) For every spectrum , the matrix satisfies
(ii) The -th element of the orthogonal matrix V obeys , for all .
This is because, out of the entries, the unit length of the column vectors imposes d constraints, and orthogonality of these column vectors imposes an additional constraints, so .
Proof. We begin by proving the assertion (i) (ii). Since equation 4.10 holds for any admissible spectrum, we can choose a spectrum that consists of m number of 1 elements and number of 0 elements as follows:
From equation 4.10, under this particular choice of the spectrum with , we get . Similarly, for any , we would get
The assertion (ii) (i) is straightforward. If , for all and any particular , then we observe that
holds for every spectrum . This completes the proof of Proposition 4.2.
4.2.2 Hadamard Solutions
The class of Hadamard matrices constitutes a simple and elegant family of solutions to our covariance maximization problem in equation 4.4. From Proposition 4.2, we infer that a necessary and sufficient condition for an orthogonal matrix V to be admissible as a mixing component in the decomposition of the optimal solution is that its -th element satisfies , where . Therefore, any orthogonal matrix with entries as serves as our desired mixing component in . Interestingly, such a class of matrices is just the family of Hadamard matrices. However, as there is no single construction that yields a Hadamard matrix of any order, several approaches have been proposed for constructing such matrices in different dimensions, including Sylvester's construction (for power-of-2 dimensions), Kronecker products, etc. The class of butterfly matrices is a more general framework for constructing Hadamard matrices that subsumes Sylvester-Hadamard matrices (Dao et al., 2019; Trogdon, 2019), as depicted in Figure 2.

Figure 2: Structure of the solution space of the mixing component V in our solution . By Proposition 4.2, the data-independent mixing components are exactly the normalized Hadamard matrices. Butterflies with angles in are a subset of solutions; this subset admits multiplications and contains the Sylvester-Hadamard matrix.
In Sylvester's construction of Hadamard matrices , where , we have , and , where and denotes the Kronecker product.
Such a class of matrices is subsumed by the family of butterfly matrices obtained via the "butterfly computations" (Dao et al., 2019; Trogdon, 2019). A butterfly computation is a kind of mixing operation which takes
A Hadamard matrix, named after the French mathematician Jacques Hadamard, is an orthogonal matrix whose entries are either +1 or -1. We emphasize that though the general Haar matrix is also an orthogonal matrix with entries +1, -1, or 0, it doesn’t appear as solution to our problem for reasons clear from Proposition 4.2. Nonetheless, a Haar matrix of dimension resembles to that of the Hadamard matrix.
two inputs and and gives two outputs and , where is some appropriate twiddle factor. The computation draws its name from the fact that in the data-flow diagram for this pair of operations, lines cross and resemble the wings of a butterfly. A general butterfly matrix is expressed as a sparse hierarchical factorization:
where each is a sparse orthogonal matrix consisting of independent Givens rotations as defined by
or their reflection counterparts .
Explicitly, we have that
where is a permutation matrix determining the butterfly connectivity pattern by pairing indices at stage . Crucially, the choice of index pairings across stages is not unique: while the standard dyadic stride pattern, that is, pairing indices separated by stride at stage , represents a canonical choice, any sequence of stage permutations whose pairing rules allow every index/channel to interact with every other index/channel yields a valid butterfly matrix. Note that, while the block-diagonal matrix of Givens rotations can only apply 2D rotations to adjacent indices/channels like , the permutation matrices and play a structural role. The matrix does reshuffling so that pairs separated by a stride pattern at stage are moved into adjacent positions , , to be amenable to the action of the block-diagonal matrix of Givens rotations .
It can be shown that by choosing the angle of rotation in each of the Givens blocks as , any butterfly matrix from equation 4.11 satisfies the variance equalization criterion in equation 4.7. For any fixed evaluation at , the butterfly matrix yields a matrix with entries . For , the -th element of the butterfly matrix is . Any such butterfly matrix satisfies:
This shows that each such butterfly matrix offers a solution to our final optimization problem from equation 4.4 in the sense that we can choose the desired matrix simply as .
Moreover, using the fact that the Kronecker product of any two Hadamard matrices is again a Hadamard matrix, it is possible to construct more general Hadamard matrices. For instance, if is a Hadamard matrix of some known dimension (Sloane, 2024), then we can construct another Hadamard matrix of dimension via the Kronecker product as . Analogously, if is a butterfly matrix of order with angles in , then is a (mixed-radix) butterfly matrix of dimension that is again a Hadamard matrix. In both cases, we can apply the matrix in operations without forming the Kronecker product.
4.3 Optimal Rotation Under Shared-Scale Quantization
Theoretically, it can be shown that among all orthogonal rotations, the total quantization error under shared-scale quantization is minimized if and only if the rotation equalises per-coordinate variance. It is

Figure 3: Placement of the rotations to in a Transformer block. Operations outlined in black are in FP16 and those outlined in blue are in INT4; dashed lines indicate read and write operation to the KV cache.
pertinent to mention that the shared-scale quantization regime is used by all the modern quantization methods where a single scale is applied per quantization group. Each quantization group is assigned a single dynamic range , where with as a constant determined by the desired coverage probability and is independent of both the transformation and the coordinate (for instance, as used for the 99% coverage rule, the constant is specified as ). We consider the bit scalar uniform quantizer with step-size . The resulting quantization noise variance is under the standard high-rate approximation. Since the scale is shared across all coordinates, every coordinate incurs identical noise power:
for all , where . Accordingly, the total distortion is given by
Now, observe that
Therefore, it follows that with equality if and only if the diagonal elements of are all equal: . Hence, we conclude that among all orthogonal rotations, the total quantization error is minimized if and only if the rotation equalizes the marginal variances. Experiments with gaussian distributed data is given in Appendix C.
5 Experiments
The Transformer architecture, common in LLMs, is composed of multi-head self-attention and feedforward network modules. Following the standard notations, denote the output of a layer as , with as the input activation, and as the weight matrix. Based on rotational invariance, an orthogonal transformation is inserted into the linear layer without altering the output, yielding . We can commute with RMSNorm block since for a orthogonal matrix . Thus, we can combine with the previous weight matrix and with the weight matrix of the current layer. Consequently, the activations are transformed without incurring any additional inference cost.
Without altering the output of the model, we can insert four orthogonal matrices , , , within the Transformer block as in Fig. 3 (adapted from (Liu et al., 2025)). Multiplying on the left side of , , , , , and on the right side of and , an equivalent transformation is achieved.
The rotation is inserted in-between and , whereas is put between the rotated encodings of Query and Key, and can be inserted before . Finally, is multiplied on the right by , and is multiplied on the left of , completing all equivalent transformations. This inference framework follows the rotational transformation framework used in the other baselines SpinQuant (Liu et al., 2025) and DartQuant (Shao et al., 2026).
5.1 Implementation Details
Rotations and are calibrated using SpectrumQuant with the random Sylvester-Hadamard matrix () and random butterfly matrix () as the mixing component (that is, and as calibrated matrices). and are left online as random Hadamard matrices, as is the case with other baselines. Since acts as a single global rotation on the residual stream, is calibrated once per model from activations pooled across all layers. Our orthogonal matrices are computed offline from activation covariance statistics estimated on 128 WikiText2 calibration samples using the Welford algorithm (Welford, 1962) (Chan et al., 1983), which provides a numerically stable unbiased online covariance estimator. Detailed algorithm is given in Appendix A.
5.2 Main Results
We evaluate SpectrumQuant on Llama-family models, including Llama-2 (7B, 13B, and 70B) (Touvron et al., 2023), Llama-3 (8B) and Mistral-family models, Mistral 7B v0.3 (Jiang et al., 2023). We report perplexity (PPL) on WikiText2 (Merity et al., 2016), C4 (Raffel et al., 2020), and PTB (Marcus et al., 1993), and further measure zero-shot performance on eight downstream tasks: WinoGrande (Sakaguchi et al., 2021), SIQA (Sap et al., 2019), PIQA (Bisk et al., 2020), OpenBookQA (Mihaylov et al., 2018), LAM-BADA (Radford et al., 2019), HellaSwag (Zellers et al., 2019), ARC-E, and ARC-C (Boratko et al., 2018).
Table 2: Comparison of calibration cost. SpectrumQuant requires less than one-tenth the memory of SpinQuant and less than one-sixth the memory of DartQuant at 70B scale, while also being the fastest to calibrate across all model sizes.
| Cost | Method | 7B | 13B | 70B |
|---|---|---|---|---|
| GPU hour (h) | SpinQuant | 0.41 | 0.84 | 46.40 |
| DartQuant | 0.32 | 0.57 | 3.74 | |
| SpectrumQuant | 0.26 | 0.35 | 2.25 | |
| Mem (GiB) | SpinQuant | 18.23 | 32.21 | 218.72 |
| DartQuant | 15.79 | 27.80 | 128.21 | |
| SpectrumQuant | 4.51 | 7.05 | 22.42 |
We compare our method with existing rotation-based quantization methods, including Hadamard rotations in QuaRot (Ashkboos et al., 2024), end-to-end learned rotations in SpinQuant (Liu et al., 2025) and DartQuant (Shao et al., 2026). In our implementation, we quantize weights with GPTQ (Frantar et al., 2023) under the standard setup using 128 WikiText2 calibration samples, each of length 2048, and quantize activations with per-token asymmetric quantization.
A comparison of rotation matrix computation time and memory cost of SpinQuant and SpectrumQuant on an Nvidia A6000 GPU server is shown in Table 2. SpectrumQuant is a simple calibration method, which has a significant reduction in compute cost across various models. For the 70B model, after pre-saving activations, SpectrumQuant completes calibration in 43 minutes on a single GPU and can also calibrate on CPU in 51 minutes, achieving a speedup of in calibration and in memory usage compared to SpinQuant. While DartQuant calibration time is relatively low, with only 10 epochs, calibration memory requirement is significantly higher. All competing baseline models are reproduced from their publicly available codebases.
Table 3 compares our 4-bit weight, activation and KV cache method against FloatingPoint, QuaRot, SpinQuant and DartQuant on three WikiText-style PPL evaluations and the average accuracy over eight zero-shot commonsense reasoning tasks. Across all five LLM architectures, our approach matches or outperforms SpinQuant on all five models, with the clearest gains on Llama-2 7B and Llama-3 8B and on par with DartQuant on four of five models, with DartQuant ahead on Llama-2 7B. In our SpectrumQuant implementation, we have demonstrated that all the solutions obtained in Section 4.2.1 perform almost equally, which further
Table 3: Comparison of average PPL across three datasets and average accuracy on eight zero-shot commonsense reasoning tasks (0-shot), over 5 seeds, under W4-A4-KV4 quantization. SpectrumQuant matches or outperforms SpinQuant on all five models and shows no statistically significant difference from DartQuant on four of five models, while being constructed without iterative optimization. Detailed results are in Appendix B.
| Method | Llama-2 7B | Llama-2 13B | Llama-3 8B | Mistral 7B | Llama-2 70B | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| PPL↓ | 0-shot↑ | PPL↓ | 0-shot↑ | PPL↓ | 0-shot↑ | PPL↓ | 0-shot↑ | PPL↓ | 0-shot↑ | |
| FP16 | 16.88 | 61.16 | 20.85 | 64.28 | 8.92 | 66.04 | 17.04 | 67.74 | 11.09 | 69.53 |
| QuaRot | ||||||||||
| SpinQuant | ||||||||||
| DartQuant | ||||||||||
| SpectrumQuant (UH) | ||||||||||
| SpectrumQuant (UB) | ||||||||||
solidifies our theoretical contribution. In fact, our theoretical results also eloquently explain why butterfly or Hadamard matrices are effective as the mixing component for quantization theory.
Compared to QuaRot, our method reduces PPL by 16.1% on Llama-2 7B 3.6% on Llama-2 13B, 9.5% on Llama-3 8B and 5.6% on Mistral-v0.3 7B on an average while improving zero-shot accuracy by 0.96 percentage points on Llama-2 7B, 0.78 percentage points on Llama-2 13B, 3.14 percentage points on Llama-3 8B, 1.17 percentage points on Mistral-v0.3 7B, 0.3 percentage points on Llama-2 70B on an average. QuaRot uses Hadamard matrix for all of and . We have also shown that our closed-form solution is consistently better than the Hadamard in Section 5.4.3 in terms of Mean Squared quantization Error (MSE).
5.3 Inference Cost Analysis
Due to the commutativity of the RMSNorm block and an orthogonal transform, rotations can be absorbed into the weights in the LLM architecture, requiring essentially the same inference cost for all these rotation matrices as the baseline without rotation. To validate this argument, we took all the quantized models and ran them on a local MacBook Air M4. Table 4 demonstrates that the inference cost of all the models is essentially the same as that of the no-transform regime since the rotation matrices are taken into the weights.
Table 4: Real-time inference cost measurement of Llama-3 8B on MacBook Air M4. All rotation-based methods including SpectrumQuant show no statistically significant difference in inference throughput compared to the no-transform baseline, confirming that the rotation matrices are fully absorbed into the weights with zero additional inference cost.
| No Transform (Baseline) | SpinQuant | DartQuant | SpectrumQuant | |
|---|---|---|---|---|
| Decode Tokens/sec ↑ | 18.330 | 18.337 | 18.246 | 18.397 |
| Decode ms/Token ↓ | 54.6 | 54.5 | 54.8 | 54.4 |
5.4 Ablation Studies
To better understand the contribution of each component of our proposed method, we conduct some ablation studies below.
5.4.1 Calibration with different datasets
To study sensitivity of the calibration-data, we construct SpectrumQuant using WikiText2, PTB, and C4 samples and evaluate the resulting quantized models. As shown in Table 5 below, the results are broadly consistent across calibration datasets for both Llama-2 7B and Mistral 7B v0.3, suggesting that SpectrumQuant is robust to the choice of calibration data.
Table 5: Comparison of PPL of SpectrumQuant across various calibration datasets for 5 seeds. SpectrumQuant shows no statistically significant difference across calibration datasets for Mistral 7B v0.3, and remains competitive across all choices for Llama-2 7B, suggesting the method is generally robust to calibration data selection.
| Model | Dataset | WikiText2 | PTB | C4 |
|---|---|---|---|---|
| Llama-2 7B | WikiText2 | |||
| PTB | ||||
| C4 | ||||
| Mistral 7B v0.3 | WikiText2 | |||
| PTB | ||||
| C4 |
5.4.2 Calibration with different sample sizes
To study sensitivity to the sample size of the calibration data, we took different numbers of samples from the WikiText2 Dataset for the Llama-2 7B model and analyzed the PPL scores. As shown in Table 6 below, the results are broadly consistent across the choice of number of calibration samples, suggesting that SpectrumQuant is robust to the choice of sample size. By default, in the rest of the paper, we have used the sample size of 128, consistent with the other calibrated methods like SpinQuant and DartQuant.
Table 6: PPL comparison of SpectrumQuant across sample sizes for Llama-2 7B. SpectrumQuant shows no statistically significant difference in performance from 64 to 256 calibration samples, suggesting that the dominant covariance structure is reliably captured even at modest sample counts.
| No. of Samples | WikiText2 | PTB | C4 | Avg. PPL↓ |
|---|---|---|---|---|
| 64 | ||||
| 128 | ||||
| 256 |
5.4.3 Comparison with Hadamard case
Figure 4 shows the MSE due to quantization across different latent dimensions of the LLM architecture. This is shown for layer 10 of the Llama-2 7B model. We can see that projections in our case have lower MSE than those in the Hadamard case. For down proj, both competing methods use the same matrix. On average, we have 2% less MSE than Hadamard across almost all layers. Appendix D shows the MSE for many more layers. The improvement is observed in both intermediate and deeper layers, suggesting SpectrumQuant remain stable across network depths and projection types.

LATENT DIMENSION INDEX
Figure 4: Comparison of mean squared quantization error across hidden dimensions for different projection activations in Llama-2 7B at layers 10.
5.4.4 Butterfly as a replacement for Hadamard matrix
Throughout the literature, the Hadamard matrix is considered the default for , but as per our analysis, any Butterfly, as in 4.13, will have the equalizing property, and any butterfly multiplication is of the order , which implies that we can replace the matrix used during the online multiplication and will still have results in the on-par results with similar inference cost. To test this hypothesis, we replaced in different LLM architectures with random butterfly instead of random Hadamard. Table 7 gives the PPL and -shot for different models with as the calibrated and as . The performance is within the same statistical boundary as our methods in Table 3.
Table 7: PPL and average accuracy for Zero-shot commonsense reasoning task with calibrated as and as random butterfly matrices. Replacing the standard Hadamard matrices in R3 and R4 with random butterfly matrices shows no statistically significant difference in results, confirming that any member of the butterfly family is a valid mixing component as predicted by our theory.
| Model | WikiText2 ↓ | PTB ↓ | C4 ↓ | Avg. PPL ↓ | 0-shot ↑ |
|---|---|---|---|---|---|
| Llama-2 7B | 6.21 | 49.93 | 8.49 | 21.54 | 60.26 |
| Llama-3 8B | 7.74 | 13.34 | 12.57 | 11.22 | 62.85 |
| Mistral 7B v0.3 | 5.66 | 43.03 | 9.01 | 19.23 | 64.56 |
6 Conclusion
We presented SpectrumQuant, a principled framework for post-training quantization of LLMs. Starting from a first-principles objective over the Stiefel manifold, we derived a closed-form solution for covariance maximization, leading to variance equalization. Our analysis reveals a family of optimal rotations for faithful LLM quantization, and also serves as a justification to the effectiveness of the Hadamard and Butterfly rotations in the LLM quantization literature. Empirical results across diverse LLMs showed consistent gains over purely data-agnostic baselines while being competitive with end-to-end learned baselines.
References
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. Advances in Neural Information Processing Systems, 37:100213–100240, 2024.
Yonatan Bisk, Rowan Zellers, Jianfeng Gao, Yejin Choi, et al. Piqa: Reasoning about physical commonsense in natural language. In Proceedings of the AAAI conference on artificial intelligence, volume 34, pp. 7432–7439, 2020.
Michael Boratko, Harshit Padigela, Divyendra Mikkilineni, British Yuvraj, Rajarshi Das, Andrew McCallum, Maria Chang, Achille Fokoue-Nkoutche, Pavan Kapanipathi, Nicholas Mattei, et al. A systematic classification of knowledge, reasoning, and context within the arc dataset. In Proceedings of the Workshop on Machine Reading for Question Answering, pp. 60–70, 2018.
Tony F. Chan, Gene H. Golub, and Randall J. LeVeque. Algorithms for computing the sample variance: Analysis and recommendations. The American Statistician, 37:242–247, 1983. URL https://api.semanticscholar.org/CorpusID:3593421.
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.
Jiale Chen, Vage Egiazarian, Roberto L. Castro, Torsten Hoefler, and Dan Alistarh. Wush: Near-optimal adaptive transforms for llm quantization, 2026. URL https://arxiv.org/abs/2512.00956.
Tri Dao, Albert Gu, Matthew Eichhorn, Atri Rudra, and Christopher Ré. Learning fast algorithms for linear transforms using butterfly factorizations. In International conference on machine learning, pp. 1517–1527. PMLR, 2019.
Marco Federici, Boris van Breugel, Paul Whatmough, and Markus Nagel. Dissecting quantization error: A concentration-alignment perspective, 2026. URL https://arxiv.org/abs/2603.04359.
Martin Fleury, Andy C. Downton, and Adrian F. Clark. Karhünen-loève transform: An exercise in simple image-processing parallel pipelines. In Proceedings of the Third International Euro-Par Conference on Parallel Processing, Euro-Par '97, pp. 815–819, Berlin, Heidelberg, 1997. Springer-Verlag. ISBN 3540634401.
Elias Frantar, Saleh Ashkboos, Torsten Hoefler, and Dan Alistarh. Gptq: Accurate post-training quantization for generative pre-trained transformers, 2023. URL https://arxiv.org/abs/2210.17323.
Song Han, Huizi Mao, and William J. Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding, 2016. URL https://arxiv.org/abs/1510.00149.
Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network, 2015. URL https://arxiv.org/abs/1503.02531.
Xing Hu, Yuan Cheng, Dawei Yang, Zukang Xu, Zhihang Yuan, Jiangyong Yu, Chen Xu, Zhe Jiang, and Sifan Zhou. Ostquant: Refining large language model quantization with orthogonal and scaling transformations for better distribution fitting, 2025. URL https://arxiv.org/abs/2501.13987.
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. CoRR, abs/2310.06825, 2023. URL https://arxiv.org/abs/2310.06825.
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. Proceedings of machine learning and systems, 6:87–100, 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 International Conference on Learning Representations, volume 2025, pp. 92009–92032, 2025.
Xinyin Ma, Gongfan Fang, and Xinchao Wang. LLM-pruner: On the structural pruning of large language models. Advances in neural information processing systems, 36:21702–21720, 2023.
Mitch Marcus, Beatrice Santorini, and Mary Ann Marcinkiewicz. Building a large annotated corpus of english: The penn treebank. Computational linguistics, 19(2):313–330, 1993.
Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. Pointer sentinel mixture models, 2016. URL https://arxiv.org/abs/1609.07843.
Todor Mihaylov, Peter Clark, Tushar Khot, and Ashish Sabharwal. Can a suit of armor conduct electricity? a new dataset for open book question answering. In Proceedings of the 2018 conference on empirical methods in natural language processing, pp. 2381–2391, 2018.
Indranil Patra, Azhar Yousuf, Manu Mathew, and Chandra Sekhar Seelamantula. Coat: Correlation-aware orthogonal transform for llm quantization. In AdaptFM: Resource-Adaptive Foundation Model Inference.
Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. OpenAI, 2019. URL https://cdn.openai.com/better-language-models/language_models_are_unsupervised_multitask_learners.pdf. Accessed: 2024-11-15.
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.
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.
Maarten Sap, Hannah Rashkin, Derek Chen, Ronan Le Bras, and Yejin Choi. Social iqa: Commonsense reasoning about social interactions. In Proceedings of the 2019 conference on empirical methods in natural language processing and the 9th international joint conference on natural language processing (EMNLP-IJCNLP), pp. 4463–4473, 2019.
Wenqi Shao, Mengzhao Chen, Zhaoyang Zhang, Peng Xu, Lirui Zhao, Zhiqian Li, Kaipeng Zhang, Gao Peng, Yu Qiao, and Ping Luo. Omniquant: Omnidirectionally calibrated quantization for large language models. In International Conference on Learning Representations, volume 2024, pp. 45472–45496, 2024.
Yuantian Shao, Yuanteng Chen, Peisong Wang, Jianlin Yu, Jing Lin, Yiwu Yao, Zhihui Wei, and Jian Cheng. Dartquant: Efficient rotational distribution calibration for LLM quantization. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2026. URL https://openreview.net/forum?id=LfcfwlLCHM.
Sloane. A library of hadamard matrices. http://neilsloane.com/hadamard/, 2024. Accessed: 2026-06-10.
Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, et al. Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971, 2023.
Thomas Trogdon. On spectral and numerical properties of random butterfly matrices. Applied Mathematics Letters, 95:48–58, 2019.
Albert Tseng, Jerry Chee, Qingyao Sun, Volodymyr Kuleshov, and Christopher De Sa. QuIP: Even better LLM quantization with hadamard incoherence and lattice codebooks. In Forty-first International Conference on Machine Learning, 2024. URL https://openreview.net/forum?id=9BrydUVcoe.
B. P. Welford. Note on a method for calculating corrected sums of squares and products. Technometrics, 4(3):419–420, 1962. doi: 10.1080/00401706.1962.10490022. URL https://www.tandfonline.com/doi/abs/10.1080/00401706.1962.10490022.
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 International conference on machine learning, pp. 38087–38099. PMLR, 2023.
Bingxin Xu, Zhen Dong, Oussama Elachqar, and Yuzhang Shang. Butterflyquant: Ultra-low-bit llm quantization through learnable orthogonal butterfly transforms, 2026. URL https://arxiv.org/abs/2509.09679.
Zhewei Yao, Reza Yazdani Aminabadi, Minjia Zhang, Xiaoxia Wu, Conglong Li, and Yuxiong He. Zero-quant: Efficient and affordable post-training quantization for large-scale transformers. Advances in neural information processing systems, 35:27168–27183, 2022.
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, pp. 4791–4800, 2019.
Yilong Zhao, Chien-Yu Lin, Kan Zhu, Zihao Ye, Lequn Chen, Size Zheng, Luis Ceze, Arvind Krishnamurthy, Tianqi Chen, and Baris Kasikci. Atom: Low-bit quantization for efficient and accurate LLM serving. Proceedings of Machine Learning and Systems, 6:196–209, 2024.
Appendix
For the sake of brevity, we only presented a summary of our experimental outcomes in the main paper. A detailed per-task comparison of the obtained results is presented in this section. In our experiments, we evaluate SpectrumQuant and the baselines on Llama-family models, including Llama-2 (7B, 13B, and 70B) (Touvron et al., 2023), Llama-3 (8B) and Mistral-family models, Mistral 7B v0.3 (Jiang et al., 2023).
A Welford Algorithm for Covariance Estimation
Our orthogonal matrices are computed offline from activation covariance statistics estimated on the same 128 WikiText2 calibration samples using the Welford algorithm (Welford, 1962) (Chan et al., 1983) below:
Algorithm 1 Welford covariance estimation for calibration activations
Require: Calibration samples , where
Ensure: Mean and covariance estimate
1:
2:
3:
4: for to do
5:
6:
7:
8:
9:
10: end for
11:
12: return
B Detailed Results Pertaining to Table 3
This section reports perplexity on each of the three evaluation corpora and accuracy on each of the eight commonsense benchmarks, for both the Llama and Mistral families. Interestingly, all our experiments suggest that the proposed SpectrumQuant shows statistically similar performance across different settings of the mixing component in the underlying transformation . This shows that our empirical outcomes are consistent with the theoretical claims about SpectrumQuant. Furthermore, it is observed that SpectrumQuant outperforms both the baselines QuaRot and SpinQuant across different metrics. Additionally, SpectrumQuant outcomes show no statistically significant difference from DartQuant, despite being constructed entirely without iterative optimization and at a fraction of the calibration memory cost.
Table 8: Perplexity of each method on WikiText2, PTB and C4 for Llama-2 7B. The two SpectrumQuant variants (, ) are statistically indistinguishable from each other on every dataset and lie between QuaRot and DartQuant, indicating that the choice of mixing component does not affect performance.
| Bits (W-A-KV) | Method | Wiki | PTB | C4 | Avg |
|---|---|---|---|---|---|
| 16 | Full Precision | 5.47 | 37.91 | 7.26 | 16.88 |
| 4-4-4 | QuaRot | ||||
| SpinQuant | |||||
| DartQuant | |||||
| SpectrumQuant () | |||||
| SpectrumQuant () |
Table 9: Accuracy on each of the eight commonsense benchmarks for Llama-2 7B, evaluated without in-context examples. In average accuracy, both SpectrumQuant variants (, ) are statistically indistinguishable from DartQuant and ahead of SpinQuant.
| Bits (W-A-KV) | Method | WG | SIQA | PIQA | OBQA | LAMB | HS | ARC-E | ARC-C | Avg |
|---|---|---|---|---|---|---|---|---|---|---|
| 16 | Full Precision | 69.06 | 46.16 | 79.05 | 44.20 | 73.90 | 76.02 | 74.54 | 46.33 | 63.66 |
| 4-4-4 | QuaRot | |||||||||
| SpinQuant | ||||||||||
| DartQuant | ||||||||||
| SpectrumQuant () | ||||||||||
| SpectrumQuant () |
Table 10: Perplexity of each method on WikiText2, PTB and C4 for Llama-2 13B. SpectrumQuant () attains the lowest average perplexity of all methods, and both variants (, ) improve on QuaRot and SpinQuant.
| Bits (W-A-KV) | Method | Wiki | PTB | C4 | Avg |
|---|---|---|---|---|---|
| 16 | Full Precision | 4.88 | 50.94 | 6.73 | 20.85 |
| 4-4-4 | QuaRot | ||||
| SpinQuant | |||||
| DartQuant | |||||
| SpectrumQuant () | |||||
| SpectrumQuant () |
Table 11: Accuracy on each of the eight commonsense benchmarks for Llama-2 13B, evaluated without in-context examples. SpectrumQuant () matches DartQuant in average accuracy within statistical error, without any iterative optimization and at a small fraction of its calibration memory.
| Bits (W-A-KV) | Method | WG | SIQA | PIQA | OBQA | LAMB | HS | ARC-E | ARC-C | Avg |
|---|---|---|---|---|---|---|---|---|---|---|
| 16 | Full Precision | 72.14 | 47.39 | 80.52 | 45.20 | 76.73 | 79.38 | 77.44 | 49.15 | 65.99 |
| 4-4-4 | QuaRot | |||||||||
| SpinQuant | ||||||||||
| DartQuant | ||||||||||
| SpectrumQuant () | ||||||||||
| SpectrumQuant () |
Table 12: Perplexity of each method on WikiText2, PTB and C4 for Llama-3 8B. Both SpectrumQuant variants (, ) match DartQuant in average perplexity within statistical error and improve on QuaRot and SpinQuant.
| Bits (W-A-KV) | Method | Wiki | PTB | C4 | Avg |
|---|---|---|---|---|---|
| 16 | Full Precision | 6.14 | 11.18 | 9.45 | 8.92 |
| 4-4-4 | QuaRot | ||||
| SpinQuant | |||||
| DartQuant | |||||
| SpectrumQuant () | |||||
| SpectrumQuant () |
Table 13: Accuracy on each of the eight commonsense benchmarks for Llama-3 8B, evaluated without in-context examples. Both SpectrumQuant variants (, ) match DartQuant in average accuracy within statistical error and exceed SpinQuant on every individual benchmark, while requiring far less calibration memory.
| Bits (W-A-KV) | Method | WG | SIQA | PIQA | OBQA | LAMB | HS | ARC-E | ARC-C | Avg |
|---|---|---|---|---|---|---|---|---|---|---|
| 16 | Full Precision | 73.32 | 47.19 | 80.96 | 45.00 | 75.63 | 79.14 | 77.82 | 53.24 | 66.54 |
| 4-4-4 | QuaRot | |||||||||
| SpinQuant | ||||||||||
| DartQuant | ||||||||||
| SpectrumQuant () | ||||||||||
| SpectrumQuant () |
Table 14: Perplexity of each method on WikiText2, PTB and C4 for Mistral 7B v0.3. SpectrumQuant () matches DartQuant within statistical error on all three datasets, showing that the closed-form alignment carries over to a model family beyond Llama.
| Bits (W-A-KV) | Method | Wiki | PTB | C4 | Avg |
|---|---|---|---|---|---|
| 16 | Full Precision | 5.32 | 37.34 | 8.48 | 17.04 |
| 4-4-4 | QuaRot | ||||
| SpinQuant | |||||
| DartQuant | |||||
| SpectrumQuant () | |||||
| SpectrumQuant () |
Table 15: Accuracy on each of the eight commonsense benchmarks for Mistral 7B v0.3, evaluated without in-context examples. SpectrumQuant () achieves the highest average accuracy of all methods, statistically tied with DartQuant, further supporting generalization across architectures.
| Bits (W-A-KV) | Method | WG | SIQA | PIQA | OBQA | LAMB | HS | ARC-E | ARC-C | Avg |
|---|---|---|---|---|---|---|---|---|---|---|
| 16 | Full Precision | 74.74 | 47.65 | 82.05 | 47.60 | 75.00 | 80.67 | 80.01 | 54.18 | 67.74 |
| 4-4-4 | QuaRot | |||||||||
| SpinQuant | ||||||||||
| DartQuant | ||||||||||
| SpectrumQuant () | ||||||||||
| SpectrumQuant () |
Table 16: Perplexity of each method on WikiText2, PTB and C4 for Llama-2 70B. At this scale, both SpectrumQuant variants (, ) match or improve on DartQuant in average perplexity, while using less than one-sixth of its calibration memory and finishing calibration in under 43 minutes on one GPU with pre-saved activations.
| Bits (W-A-KV) | Method | Wiki | PTB | C4 | Avg |
|---|---|---|---|---|---|
| 16 | Full Precision | 3.32 | 24.25 | 5.71 | 11.09 |
| 4-4-4 | QuaRot | ||||
| SpinQuant | |||||
| DartQuant | |||||
| SpectrumQuant () | |||||
| SpectrumQuant () |
Table 17: Accuracy on each of the eight commonsense benchmarks for Llama-2 70B, evaluated without in-context examples. SpectrumQuant () obtains the highest average accuracy of all methods, statistically tied with DartQuant, with calibration completed on a single GPU in under 43 minutes with pre-saved activations.
| Bits (W-A-KV) | Method | WG | SIQA | PIQA | OBQA | LAMB | HS | ARC-E | ARC-C | Avg |
|---|---|---|---|---|---|---|---|---|---|---|
| 16 | Full Precision | 77.98 | 49.13 | 82.75 | 48.80 | 79.58 | 83.80 | 81.02 | 57.51 | 69.53 |
| 4-4-4 | QuaRot | |||||||||
| SpinQuant | ||||||||||
| DartQuant | ||||||||||
| SpectrumQuant () | ||||||||||
| SpectrumQuant () |
C Experiments on Gaussian distributed data
We consider a synthetic multivariate Gaussian experiment to isolate the effect of rotation on quantization distortion. Specifically, we construct a covariance matrix , where , is a random orthogonal matrix, and is diagonal with exponentially decaying eigenvalues. We then draw 10,000 samples from , and compare three quantization pipelines: direct quantization in the original basis, quantization after a Hadamard transform, and quantization after the proposed rotation . For each bit-width, we uniformly quantize the transformed samples, reconstruct them back to the original space when needed, and report the resulting mean squared reconstruction error.
A key detail in this experiment is the quantizer calibration rule. For a b-bit uniform quantizer with dynamic range , the quantization step size is , so a smaller range directly yields a smaller step size and typically lower MSE. In the transformed cases, the range is chosen from the transformed sample statistics as (from the percentile theorem, of values lie within this range) where denotes the corresponding transformed vector. Therefore, a transform that better reduces the worst-coordinate variance also receives a smaller quantization step, which is precisely why the proposed rotation achieves lower distortion in this Gaussian setting. can also be chosen according to the AbsMax scaler quantizer, where for the symmetric case. The distortion across bit widths is shown in Figure 5.


Figure 5: Quantization distortion across bit widths in a synthetic multivariate Gaussian experiment under two scale calibration rules. The left panel uses AbsMax scaling, , and the right panel uses a variance-based scale, .
D Comparison of Layerwise Quantization Error
HADAMARD SPECTRUMQUANT

LATENT DIMENSION INDEX
Figure 6: Comparison of mean squared quantization error across hidden dimensions for different projection activations in Llama-2 7B at layers 2,5,8,15,21,27,30 from top to bottom.