Manuscript Offprint
arXiv:2610.25675LIRQuant: An Efficient Locally Isolated Rotation Quantization Method for Large Language Models
Abstract
Post-Training Quantization (PTQ) enables efficient deployment of Large Language Models (LLMs), yet activation outliers remain a key challenge for low-bit quantization. Existing global transformation methods overlook heterogeneous channel sensitivity to quantization noise, leading to suboptimal accuracy-efficiency trade-offs. To address this, we propose Locally Isolated Rotation Quantization (LIRQuant), a sensitivity-aware framework that selectively applies transformations. LIRQuant identifies sensitive channels using a noise-weighted sensitivity metric, applying expressive learnable rotations only to these channels and lightweight fixed rotations to the remaining ones. This decoupled design reduces optimization complexity without sacrificing outlier smoothing capability. Extensive experiments across the LLaMA-2/3, Mistral, Qwen3, and Mixtral families demonstrate that LIRQuant achieves state-of-the-art accuracy under the challenging W4A4KV4 setting. Meanwhile, LIRQuant calibrates LLaMA-3-8B in only 25 minutes with 20.3 GB peak GPU memory, achieving the fastest calibration and the lowest memory footprint among recent learnable-rotation methods, and its fused inference kernels deliver up to prefill speedup and memory saving over FP16.
1 Introduction
Large Language Models (LLMs) have achieved remarkable capabilities across a wide range of tasks (Brown et al., 2020; Hendrycks et al., 2020). Models such as LLaMA (Touvron et al., 2023), GPT (Achiam et al., 2023), and Qwen (Yang et al., 2025) continue to drive progress toward universal language intelligence. However, their massive parameter counts incur substantial memory and computational costs, posing significant challenges for deployment on resource-constrained devices (Samsi et al., 2023; Fernandez et al., 2025; Lucioni et al., 2024). Post-Training Quantization (PTQ) addresses this issue by converting weights and activations into low-precision formats, thereby reducing memory footprint and inference cost with minimal performance degradation (Frantar et al., 2022; Shao et al., 2023; Ashkboos et al., 2024a). Consequently, PTQ has emerged as a critical technique for practical LLM deployment.
Activation outliers remain a major obstacle to low-bit quantization of LLMs (Dettmers et al., 2022; Xiao et al., 2023; Lin et al., 2024b). Recent studies mitigate activation outliers through various linear transformations, including orthogonal rotations and Hadamard transforms, which smooth activation distributions and improve quantization robustness (Ashkboos et al., 2024b; Liu et al., 2025). Existing rotation-based approaches implicitly adopt a homogeneous transformation strategy, where a single dense transformation is jointly optimized across all channels. Such full-dimensional rotations provide strong distribution reshaping capability, but also introduce substantial optimization complexity and parameter overhead.
Through extensive analysis, we observe that Transformer channels exhibit heterogeneous sensitivity to quantization noise. Specifically, only a small subset of channels is fragile under low-bit quantization, while most channels remain comparatively robust. This suggests that different channels require fundamentally different transformation capacities during quantization. However, existing methods such as SpinQuant (Liu et al., 2025) and OSTQuant (Hu et al., 2025) optimize dense learnable rotations over all channels indiscriminately. Jointly optimizing full-channel rotations forces sensitive and robust channels to share the same transformation subspace, causing optimization capacity to be unnecessarily allocated to robust channels while introducing cross-channel interference that destabilizes sensitive channels. Consequently, globally shared rotations result in suboptimal accuracy-efficiency trade-offs.
Motivated by these observations, we propose Locally Isolated Rotation Quantization (LIRQuant), a sensitivity-aware rotation framework for LLM quantization. LIRQuant decouples sensitive and robust channels into isolated transformation subspaces according to their quantization sensitivity. Subsequently, it selectively applies highly expressive learnable rotations to high-sensitivity channels, while employing lightweight fixed Hadamard transforms for low-sensitivity ones, thereby substantially reducing optimization costs while preserving quantization accuracy. Extensive experiments across the LLaMA-2/3 families, Mistral7B, Qwen3-8B, and the MoE model Mixtral-8×7B fully demonstrate the effectiveness of LIRQuant. Under the challenging W4A4KV4 setting, LIRQuant matches or outperforms existing rotation-based methods, such as SpinQuant (Liu et al., 2025) and FlatQuant (Sun et al., 2024), while requiring only 25% of the trainable parameters of a dense rotation. Our main contributions are summarized as follows:
• We reveal that quantization sensitivity in Transformer activations is highly heterogeneous across channels, and different channels require different transformation capacities during quantization.
• We propose LIRQuant, a sensitivity-aware locally isolated rotation framework. It selectively applies learnable rotations to sensitive channels and lightweight Hadamard transforms to insensitive ones, striking a superior accuracy-efficiency trade-off, and deeply integrates this design with the Transformer architecture.
• Extensive experiments across multiple LLMs and quantization settings demonstrate that LIRQuant achieves state-of-the-art quantization performance with the lowest calibration overhead among recent rotation-based methods, and further delivers practical inference speedups via fused block-diagonal kernels.
2.1 Basics of Uniform Quantization
The deployment of Large Language Models (LLMs) faces severe memory and computational challenges. Post-Training Quantization (PTQ), as one of the most effective compression techniques, can significantly reduce memory footprint and accelerate inference speed by converting floating-point weights and activations into low-precision formats. For an arbitrary floating-point tensor X, uniform quantization partitions its continuous numerical range into intervals of equal length. The quantization process can be formulated as:
where is the quantization step size (scale), and is the zero point. The dequantization process is given by:
The Mean Squared Error (MSE) introduced by quantization is defined as:
Under the assumption of uniform quantization, the expectation of the quantization error satisfies:
Consequently, the quantization error is proportional to the square of the quantization step size. As indicated by the above equations, the quantization step size s is the core factor determining the quantization error. When outliers are present in the data, or is significantly stretched by extreme values, causing the quantization step size s to increase substantially. Consequently, since the error is proportional to the square of the step size, this increase in s leads to a quadratic amplification of the overall quantization error.
2.2 Related Work
Post-Training Quantization (PTQ) for LLMs. PTQ is an efficient technique for compressing LLMs, primarily categorized into weight-only and weight-activation quantization. To alleviate memory bandwidth bottlenecks, methods such as GPTQ (Frantar et al., 2022), AWQ (Lin et al., 2024b), and QuIP (Chee et al., 2023) have made significant progress in weight-only quantization through techniques like error compensation, protecting salient weights, or introducing Hadamard matrices.
Unlike weight-only quantization, weight-activation quantization aims to comprehensively

Figure 1: Comparison of outlier suppression effects among different transformation methods. (a) Original activation distribution; (b) Distribution after Hadamard rotation; (c) Distribution after learnable rotation.
accelerate inference. However, the ubiquitous presence of activation outliers in LLMs dominates the dynamic range and is the primary cause of quantization accuracy degradation. To address this issue, early channel-wise scaling methods, such as SmoothQuant (Xiao et al., 2023), migrate the quantization difficulty from activations to weights, partially mitigating regular outliers. Subsequently, rotation-based methods such as QuaRot (Ashkboos et al., 2024b) and SpinQuant (Liu et al., 2025) leverage orthogonal transformations to redistribute activation energy across dimensions, effectively reducing peak magnitudes and improving quantization robustness. Recently, more complex transformation strategies have been proposed: DuQuant (Lin et al., 2024a) introduces a dual transformation combining block-wise rotation and zigzag permutation to tackle massive outliers; OSTQuant (Hu et al., 2025) combines orthogonal and scaling transformations to globally optimize the quantization space; and FlatQuant (Sun et al., 2024) combines Kronecker decomposition and affine transformations to smooth the distribution while minimizing runtime overhead. As illustrated in Figure 1, we compare the activation distributions of the MHSA input in the 15th layer of LLaMA-3-8B under different transformation strategies. The original activations contain numerous extreme outliers. Although the Hadamard transform can partially smooth activations, its fixed weights may not be optimal for all activation distributions. In contrast, learning-based methods update the weights of the rotation matrices during training, thus achieving superior suppression of outliers.
2.3 Heterogeneity of Quantization Sensitivity
Although rotation-based methods substantially improve quantization robustness, existing approaches

Figure 2: Impact of selectively optimizing sensitive channels under W4A4KV4 quantization.
allocate equal optimization effort and transformation capacity to all channels, uniformly applying dense full-dimensional rotations across the entire activation space. However, this approach fundamentally contradicts the intrinsic heterogeneity of quantization sensitivity in LLM activations, wasting computational resources on low-sensitivity channels that have a negligible impact on model performance.
To validate this conclusion, we conduct a simple yet effective ablation study. As shown in Figure 2, on the LLaMA-3-8B model, applying a Hadamard transform to the subspace formed by the top 10% most sensitive channels of the MHSA input activations, while applying an identity mapping to the remaining channels prior to W4A4KV4 quantization, yields a perplexity (PPL) of 8.35. Conversely, applying an identity mapping to the top 10% sensitive channel subspace and a Hadamard transform to the remaining channels results in a PPL of 11.76, which is close to the RTN baseline of 11.85. These observations motivate a new insight: rather than transforming all channels indiscriminately, quantization transformations should allocate different transformation capacities based on channel sensitivity. This insight forms the foundation of our proposed LIRQuant.
3 Method
In this paper, we propose LIRQuant, the overall framework of which is illustrated in Figure 3. By accurately identifying critical subspaces through sensitivity analysis, this method reduces the number of learnable parameters and significantly improves training efficiency, while retaining the core advantages of rotation-based methods in smoothing outliers and facilitating low-bit quantization.
3.1 Locally Isolated Transformation
In LIRQuant, we apply an invertible transformation T to activations and weights to smooth outliers.

Figure 3: Architectural design of LIRQuant. (a) Global rotation flow across the Transformer blocks. (b) Integration of locally isolated rotations in the MHSA module. (c) Integration of local rotation in the FFN module. Dashed boxes indicate matrices that are fused together to reduce inference overhead.
Unlike traditional global dense rotation, LIRQuant introduces a permutation matrix sorted by channel sensitivity in descending order, parameterizing the transformation matrix into a block-diagonal form:
where is a learnable matrix applied to the high-sensitivity subspace , and is a fixed Hadamard matrix applied to the low-sensitivity subspace . This design aims to maximize the efficiency of the parameters. By allocating learnable parameters exclusively to the critical high-sensitivity channels and applying training-free fixed transformations to the low-sensitivity ones, LIRQuant significantly reduces training overhead while effectively preserving the accuracy of the quantized model.
3.2 Noise-Weighted Local Functional Sensitivity
To accurately partition and , we evaluate the sensitivity of each channel based on local functional distortion. For an insertion point , let the intermediate activation be and the local target be . The distortion introduced by the quantization perturbation is defined as the expected distance over the calibration set :
Through Taylor expansion and Hessian approximation (detailed derivation in Appendix A), this distortion can be diagonalized and decomposed as . Thus, we define the sensitivity of the -th channel as:
This metric decouples the functional sensitivity and the quantization noise intensity . If weight quantization is also considered, an additive approximation is adopted.
3.3 Sensitivity Instantiation
Based on the above framework, we instantiate the sensitivity for each insertion point as follows (where denotes the quantization error):
• Attention and FFN Inputs: The local target is the output of the linear layers. The sensitivity of the j-th input channel is:
• QK Path: The target is the attention matrix. Let and . Using logits-MSE to approximate the local KL distortion, the sensitivity of the j-th head channel is:
• VO Path: The target is the value propagation under the fixed full-precision attention weights . The sensitivity of the j-th value channel is:
• Down Projection Input: Let , and the target is the final output of the FFN, . The sensitivity of the j-th channel is:
3.4 Overall Workflow and End-to-End Training
The overall pipeline of LIRQuant consists of two stages:
-
Sensitivity Analysis and Initialization: First, we collect activation statistics on a small calibration set and calculate the channel sensitivity for each layer using the formulas in Section 3.3. Subsequently, based on the determined proportion of high-sensitivity channels, we determine the permutation matrix P and the high-sensitivity subspace dimension for each insertion point.
-
End-to-End Training: After determining the subspace partition, we freeze the original weights of the LLM and only set the transformation matrices of the high-sensitivity subspaces at each insertion point as learnable parameters. We perform end-to-end training on the calibration set using the standard Cross-Entropy (CE) loss:
where C is the calibration set, represents the input sequence and its corresponding target labels, denotes the quantized large language model and locally isolated transformations, and represents the set of transformation matrices to be optimized across all insertion points.
3.5 Integration with the Transformer Architecture
We now illustrate the integration of our proposed quantization framework with a Transformer block based on the LLaMA architecture. Following conventional practices, we apply low-bit quantization to the inputs and weights of linear projections, while keeping operations such as RMSNorm, RoPE embeddings, and softmax attention scores in FP16.
Global Residual Stream. Our architecture maintains the entire residual stream in a globally rotated space defined by . Specifically, we do not apply permutation to and instead utilize a full-size learnable matrix for it. As illustrated in Figure 3(a), the initial embedding is multiplied by , and all subsequent Transformer blocks operate within this transformed space. To ensure strict computational equivalence, the learnable scaling parameters of the RMSNorm ( ) are pre-absorbed into the subsequent projection weights offline. This allows the orthogonal matrix to commute with the normalization operation without introducing any mathematical discrepancy.
Self-Attention. The self-attention module incorporates the global rotation and local transformations . Specifically, the input from the globally rotated residual stream is first projected back using the merged weights , , and . To preserve the positional information, the Rotary Position Embedding (RoPE) is applied before any channel-wise transformations. The permutation and local rotation are applied to the queries and keys to smooth the attention computation. Since the permutation matrix is inherently an orthogonal matrix, computational equivalence is strictly satisfied. Furthermore, we maintain the computation of the attention map in high precision and quantize the output of the K projection before storing it in the K cache. Similarly, and are applied to the values. For the output projection, the inverse transformations and , along with the global rotation , are analytically absorbed into the output weight , forming the merged weight .
Feed-forward Network. The feed-forward network (FFN) employs the global rotation alongside local transformations and . The inputs to the up and gate projections are transformed by the merged weights and , respectively. The local permutation and rotation are applied after the activation function; during inference, they will be fused and computed online to smooth the hidden states prior to quantization. Finally, similar to the attention module, the inverse transformations and are fused into the down projection weight , and the out-put is re-projected into the global rotated space via , resulting in the merged weight without introducing additional inference overhead.
4 Experiments
4.1 Experimental Setup
Evaluation Metrics and Baselines. We primarily validate the effectiveness of LIRQuant on the LLaMA-2 (Touvron et al., 2023) and LLaMA-3 (Grattafiori et al., 2024) model families. To further examine architectural generalization, we extend our evaluation to Mistral-7B-v0.3 (Jiang et al., 2023), Qwen3-8B (Yang et al., 2025), and the Mixture-of-Experts model Mixtral-8×7B (Jiang et al., 2024). Following existing studies (Shao et al., 2023; Ashkboos et al., 2024b), we evaluate the language generation performance using Perplexity (PPL) on the WikiText-2 (Merity et al., 2016) and C4 (Raffel et al., 2023) datasets. For common sense reasoning, we select six zero-shot evaluation tasks: ARC-Challenge, ARC-Easy (Clark et al., 2018), HellaSwag (Zellers et al., 2019), LAMBADA (Paperno et al., 2016), PIQA (Bisk et al., 2020), and WinoGrande (Sakaguchi et al., 2021). We compare LIRQuant with main INT4 PTQ methods, including RTN, GPTQ, AWQ, QuIP, SmoothQuant, as well as recent state-of-the-art methods: QuaRot (Ashkboos et al., 2024b), SpinQuant (Liu et al., 2025), OSTQuant (Hu et al., 2025), FlatQuant (Sun et al., 2024), and DartQuant (Shao et al., 2026).
Implementation Details. Our implementation is based on HuggingFace (Wolf et al., 2019) and PyTorch (Paszke et al., 2019). We initialize the trainable matrices as diagonal matrices and optimize them using the RiemannAdam optimizer (Bécigneul and Ganea, 2018) for 200 iterations. The initial learning rate is set to with a cosine annealing learning rate decay strategy. Following the standard experimental setup of GPTQ, our calibration set consists of 128 samples from the WikiText-2 dataset, each with a sequence length of 2048 tokens, and the batch size is set to 8. To ensure deployment-friendly inference, we adopt symmetric per-channel quantization for weights and symmetric per-token quantization for activations. For a fair comparison with other baseline methods, we employ Round-to-nearest (RTN) as the activation quantizer and GPTQ as the weight quantizer. Unless otherwise specified, the KV cache is quantized to 4 bits in all weight-activation experiments; that is, the W4A4 setting in this paper always refers to W4A4KV4. Calibration overhead is measured on a single-node NVIDIA H20 (96 GB) platform, and inference efficiency is measured on a single NVIDIA A100-SXM4-80GB.
4.2 Main Results
Table 1 presents the perplexity on WikiText-2 and C4 datasets, alongside the average accuracy on zero-shot common sense reasoning tasks across the LLaMA-2 and LLaMA-3 model families. In W4A16, LIRQuant demonstrates highly competitive performance, matching or outperforming existing state-of-the-art methods like GPTQ and AWQ.
When transitioning to the more challenging W4A4KV4 ultra-low-bit quantization, the advantages of LIRQuant become even more pronounced. For instance, on the LLaMA-2 70B model, LIRQuant achieves a WikiText-2 perplexity of 3.50. This leaves a marginal gap of merely 0.18 compared to the 3.32 perplexity of the full-precision baseline, thereby largely preserving the original generative capacity. Notably, on the newer LLaMA-3 8B model, LIRQuant establishes the optimal results under the W4A4KV4 setting with a perplexity of 6.81 on WikiText-2 and 9.24 on C4. This significantly outperforms recent advanced methods, surpassing SpinQuant by 0.62 and 1.80 points, and FlatQuant by 0.31 and 0.98 points on the two datasets, respectively.
Furthermore, in zero-shot common sense reasoning, LIRQuant consistently delivers the highest average accuracy across all evaluated models under both quantization settings. Detailed results for these downstream tasks are provided in Appendix D.
4.3 Generalization to Broader Architectures
To verify that the sensitivity-guided design is not specific to the LLaMA architecture, we further evaluate LIRQuant on Mistral-7B-v0.3, Qwen3-8B, and the MoE model Mixtral-8×7B under W4A4KV4. As shown in Table 2, LIRQuant ranks first on both WikiText-2 perplexity and the average accuracy of six downstream tasks across all three architectures. On Mixtral-8×7B, LIRQuant achieves a perplexity of 4.14 and an average accuracy of 77.27%, which are respectively 0.13 lower and 0.48 percentage points higher than the runner-up FlatQuant, while OSTQuant fails to complete calibration due to out-of-memory errors. These results demonstrate that the heterogeneity of channel sensitivity is a general property across modern
| Bits (W-A-KV) | Method | LLaMA-2 7B | LLaMA-2 13B | LLaMA-2 70B | LLaMA-3 8B | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Wiki ↓ | C4 ↓ | Avg ↑ | Wiki ↓ | C4 ↓ | Avg ↑ | Wiki ↓ | C4 ↓ | Avg ↑ | Wiki ↓ | C4 ↓ | Avg ↑ | ||
| 16-16-16 | FP16 | 5.68 | 7.08 | 69.85 | 4.88 | 6.47 | 72.54 | 3.32 | 5.71 | 77.09 | 6.24 | 8.95 | 73.30 |
| 4-16-16 | RTN | 5.96 | 7.38 | 65.41 | 4.98 | 6.59 | 64.56 | 3.87 | 8.91 | 75.13 | 6.82 | 9.72 | 68.92 |
| GPTQ | 5.65 | 7.16 | 66.59 | 5.02 | 6.59 | 70.28 | 4.00 | 7.61 | 76.59 | 6.72 | 9.55 | 64.65 | |
| AWQ | 5.69 | 7.20 | 68.01 | 5.01 | 6.61 | 72.08 | 4.10 | 7.35 | 76.53 | 6.83 | 9.76 | 72.08 | |
| QuIP | 5.87 | 7.34 | - | 5.05 | 6.69 | - | - | - | - | 6.82 | 9.92 | - | |
| LIRQuant (Ours) | 5.69 | 7.11 | 69.25 | 4.98 | 6.55 | 72.25 | 3.65 | 6.36 | 77.38 | 6.45 | 9.55 | 73.85 | |
| 4-4-4 | RTN | 5654.5 | 3181.9 | 30.43 | 5636.0 | 4330.9 | 29.93 | 7e4 | 5e4 | 31.42 | 4282.4 | 2936.5 | 31.58 |
| SmoothQuant | 9242.4 | 6961.6 | 30.07 | 4731.0 | 3820.3 | 32.63 | 1e3 | 34.61 | 34.01 | 25820.2 | 19069.3 | 30.72 | |
| SpinQuant | 6.14 | 7.67 | 66.40 | 5.26 | 7.00 | 69.10 | 3.61 | 6.07 | 76.18 | 7.43 | 11.04 | 69.11 | |
| QuaRot | 6.10 | 8.71 | 66.00 | 5.39 | 7.82 | 69.73 | 3.80 | 6.42 | 76.19 | 10.84 | 18.94 | 65.30 | |
| OSTQuant | 5.96 | 8.01 | 67.43 | 5.40 | 6.81 | 70.14 | 3.59 | 5.95 | 76.20 | 6.83 | 9.55 | 70.09 | |
| FlatQuant | 5.79 | 7.49 | 67.47 | 5.12 | 6.91 | 71.64 | 3.54 | 5.85 | 76.53 | 7.12 | 10.22 | 71.33 | |
| LIRQuant (Ours) | 5.83 | 7.95 | 67.67 | 4.94 | 6.67 | 72.05 | 3.50 | 5.81 | 76.85 | 6.81 | 9.24 | 71.60 | |
Table 1: Perplexity (PPL) and zero-shot common sense reasoning evaluation of various quantization methods on the LLaMA family under W4A16KV16 and W4A4KV4. For PPL (WikiText-2 and C4), lower is better. For Avg, higher is better. Best results are bolded.
| Method | Mistral-7B | Qwen3-8B | Mixtral-8×7B | |||
|---|---|---|---|---|---|---|
| Wiki ↓ | Avg ↑ | Wiki ↓ | Avg ↑ | Wiki ↓ | Avg ↑ | |
| SpinQuant | 5.82 | 70.80 | 7.99 | 69.23 | - | - |
| OSTQuant | 5.79 | 71.10 | 7.77 | 69.70 | OOM | OOM |
| DartQuant | 5.92 | 70.35 | 8.19 | 68.65 | 5.06 | 75.93 |
| FlatQuant | 5.76 | 71.38 | 7.44 | 70.57 | 4.27 | 76.79 |
| LIRQuant (Ours) | 5.70 | 71.77 | 7.32 | 71.00 | 4.14 | 77.27 |
Table 2: WikiText-2 perplexity and average zero-shot accuracy under W4A4KV4 on Mistral-7B-v0.3, Qwen3-8B, and Mixtral-8×7B. OSTQuant results on Mixtral are unavailable due to out-of-memory errors during calibration. Per-task results are in Appendix D.
LLM architectures, including MoE models.
4.4 Efficiency Analysis
Calibration Overhead. Existing orthogonal rotation quantization methods typically require learning or applying dense rotation matrices in the full channel space , leading to a quadratic growth in learnable parameters and computational complexity ( ). In contrast, LIRQuant only learns the transformation matrix within the high-sensitivity subspace : under the default 50% split, the learnable parameters are reduced to one quarter of a dense rotation, which cuts the peak training VRAM from 81.25 GB to 20.31 GB (-75%) and shortens the end-to-end training time by on a single H20 GPU, compared with learning a full-dimensional rotation under the identical training recipe. Table 3 further compares the calibration overhead against four recent rotation-based methods under identical W4A4KV4 settings. LIRQuant retains the same Stiefel-manifold optimizer and end-to-end training paradigm as OS-TQuant, but the reduced parameter count directly lowers the per-step backpropagation cost and opti- mizer state size, and fewer learnable parameters also reduce the overfitting risk and the number of steps required for convergence. Consequently, LIRQuant completes calibration of LLaMA-3-8B in 25 minutes with 20.3 GB peak GPU memory and 16 GB host memory, achieving the best calibration time and host memory on every evaluated model and the lowest GPU memory on all dense models: it avoids SpinQuant's 9-hour float64 re-rotation bottleneck, OSTQuant's teacher-induced GPU memory peaks, and DartQuant's 200 GB-level host memory for activation caching, and it scales to the MoE model Mixtral-8×7B where OS-TQuant runs out of memory. A detailed analysis of each baseline's bottleneck is deferred to Appendix E.
Inference Efficiency. During inference, only two transformations remain online: applied to Q/K after RoPE and before the down projection, while and are absorbed offline into the weights. Both online transformations preserve the block-diagonal structure , so the dense sub-block only operates on the high-sensitivity dimensions and the remainder uses the fast Hadamard transform, reducing computation and memory traffic. We fuse the block-diagonal transform, per-token reduction, symmetric INT4 quantization, and packing into a single Triton kernel, and adopt CUDA Graph for fixed-shape decoding. As shown in Table 4, on LLaMA-3-8B LIRQuant achieves prefill speedup and up to peak memory saving over the FP16 baseline; the decode speedup grows with sequence length and batch size, reaching at batch size 64. Detailed kernel designs and full results are provided in Appendix F.
| Method | LLaMA-3-8B | Mistral-7B-v0.3 | Qwen3-8B | Mixtral-8×7B | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Time | GPU | Host | Time | GPU | Host | Time | GPU | Host | Time | GPU | Host | |
| SpinQuant | 9h21m | 26.1 | 16 | 9h19m | 28.6 | 17 | 9h20m | 29.3 | 17 | - | - | - |
| OSTQuant | 44m | 46.5 | 421 | 42m | 33.1 | 443 | 42m | 60.4 | 419 | - | OOM | - |
| FlatQuant | 1h13m | 32.4 | 27 | 1h11m | 35.2 | 28 | 1h15m | 38.1 | 30 | 3h12m | 64.5 | 109 |
| DartQuant | 30m | 22.7 | 201 | 30m | 22.1 | 200 | 30m | 22.3 | 220 | 1h32m | 16.0 | 304 |
| LIRQuant (Ours) | 25m | 20.3 | 16 | 25m | 18.7 | 15 | 30m | 21.0 | 16 | 1h12m | 35.0 | 56 |
Table 3: Calibration overhead under W4A4KV4 on 8×NVIDIA H20. Time is the total wall-clock time for calibration (rotation learning + weight quantization); GPU and Host denote per-device peak GPU memory and peak host memory (GB). All baselines use their official implementations. Per-method analysis is provided in Appendix E.
| Seq. Len. | Prefill Speedup | FP16 Prefill | Decode Speedup | Mem. Saving |
|---|---|---|---|---|
| 128 | 2.18× | 31.2 ms | 0.95× | 3.55× |
| 256 | 2.20× | 45.6 ms | 1.02× | 3.52× |
| 1024 | 2.25× | 156.9 ms | 1.15× | 3.45× |
| 4096 | 2.29× | 624.0 ms | 1.28× | 3.38× |
| 8192 | 2.32× | 1320.5 ms | 1.40× | 3.30× |
Table 4: End-to-end inference efficiency of LIRQuant on LLaMA-3-8B (batch size 4, NVIDIA A100-80GB) relative to the FP16 baseline. Results on Mistral-7B and Qwen3-8B, and the batch-size scaling study, are in Appendix F.
| Ratio (%) | 0 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 100 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| PPL | 11.59 | 13.28 | 8.92 | 7.55 | 7.32 | 6.78 | 6.82 | 6.88 | 6.85 | 6.92 | 8.01 |
Table 5: WikiText-2 PPL of LLaMA-3-8B (W4A4KV4) as a function of the high-sensitivity ratio . corresponds to the full-Hadamard configuration and to a fully learnable dense rotation.
4.5 Ablation Study
High-Sensitivity Ratio. Table 5 sweeps the high-sensitivity ratio from (full Hadamard) to (fully learnable dense rotation). The sweep is conducted with an independently re-sampled calibration set, so the absolute PPL values may differ slightly from those in Table 1. The PPL exhibits a rise-fall-plateau pattern. At , a diffusion loss peak emerges: the block-diagonal structure eliminates cross-block energy exchange, so outliers concentrated in a tiny learnable block can no longer be dispersed over the full channel space, temporarily degrading quantization precision. As increases, the learnable rotation quickly compensates for this loss and the PPL drops steeply, reaching its best value at . Beyond this point, the PPL merely oscillates within a narrow band without consistent improvement, while the learnable parameters and the associated overfitting risk grow quadratically with . We therefore adopt the 50/50 split as the principled default configuration of LIRQuant. The construction of for arbitrary dimensions is described in Appendix C, and the comparison against alternative channel selection metrics over the full sweep is provided in Appendix G.

Figure 4: Heatmap of pairwise Jaccard similarity between the sets of top-10% sensitive channel positions from different layers.
Sensitivity Metric. We compare our noise-weighted functional sensitivity against six common channel importance metrics (maxabs, L2 norm, L1 norm as in AWQ, the 99.9th percentile, kurtosis, and random selection) across the full ratio sweep in Appendix G. Our metric yields the best PPL at every ratio in the practically relevant range (20%–70%), including the optimal 50% split. Among the alternatives, only maxabs approaches our performance owing to its fidelity to extreme outliers, whereas magnitude-accumulation metrics (L1/L2) are diluted by moderate values, and scale-invariant kurtosis discards magnitude information entirely. The additional cost of computing our metric is on the order of minutes, which is negligible relative to the resulting accuracy gains.

(a)
(b)
Figure 5: (a) Lorenz curves of channel sensitivity. (b) Channel reduction factor of sensitivity-guided selection compared with random selection under a target coverage ratio .
Cross-Layer Independence Analysis. As shown in Figure 4, the four paths exhibit distinctly different inter-layer structures. The average off-diagonal Jaccard coefficient for the residual stream (labeled R1 in the figure) is 0.521, indicating a significant overlap of high-sensitivity channels across different layers. This aligns with the global semantic consistency of the residual stream and provides direct justification for sharing a single global rotation matrix across layers. In contrast, the inter-layer Jaccard coefficients for the QK path, VO path, and Down input are all below 0.07, and their heatmaps display an almost purely diagonal sparse structure, meaning the high-sensitivity channels across different layers have nearly zero overlap. This result demonstrates that the sensitive channels at local rotation positions possess strong layer specificity. Any attempt to share local rotation matrices across layers would lead to a significant loss in coverage, thereby providing empirical support for our Stage-2 design of independently training , , and for each layer.
Intra-Layer Concentration Analysis. As illustrated in Figure 5, the Lorenz curves reveal significant differences in the intra-layer distributions across various paths. The diagonal dashed line represents the theoretical baseline of a perfectly uniform distribution. The curve for the QK path deviates most significantly from the diagonal (Gini = 0.63), whereas the Down input and the residual stream remain close to the diagonal with Gini coefficients of 0.24 and 0.10, respectively. This discrepancy is reflected more intuitively as an efficiency multiplier in Figure 5(b): at , the sensitivity-guided selection efficiency for the QK path reaches up to —meaning it requires only 1/7.5 of the channels compared to random selection to cover the same amount of sensitivity mass. The VO path achieves , the Down input , and the residual stream merely , which is almost indistinguishable from the random baseline. Cross-layer consistency determines whether global or layer-wise rotations should be adopted, while intra-layer concentration dictates the gain efficiency brought by coverage-based channel selection. Considering both factors, we apply a dense global rotation to the residual stream, and employ sensitivity-based local rotations for the remaining paths.
5 Conclusion
In this paper, we propose LIRQuant, an efficient Locally Isolated Rotation Quantization framework. By strategically isolating high-sensitivity channels into a learnable subspace while applying fixed Hadamard transforms to the remaining low-sensitivity channels, our method successfully balances channel mixing quality and parameter efficiency. Under the challenging W4A4KV4 setting, LIRQuant achieves state-of-the-art accuracy across the LLaMA, Mistral, Qwen3, and Mixtral families, completes calibration of LLaMA-3-8B in 25 minutes with 20.3 GB peak GPU memory—the lowest overhead among recent rotation-based methods—and delivers up to prefill speedup and memory saving at inference, making the efficient optimization and deployment of massive language models on resource-constrained devices (e.g., a single GPU) highly feasible.
Limitations
LIRQuant determines the channel partition statically from a small calibration set: the partition is shared across all inputs, and the 50% high-sensitivity ratio is applied uniformly to every insertion point, whereas a per-layer or input-adaptive ratio may further improve the accuracy-efficiency trade-off. In addition, our study focuses on INT4 weight-activation-KV quantization; extending the sensitivity-guided isolation to more aggressive settings (e.g., W3A3 or low-bit floating-point formats) and to larger-scale MoE models is left for future work.
References
Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, and 1 others. 2023. Gpt-4 technical report. arXiv preprint arXiv:2303.08774.
Saleh Ashkboos, Ilia Markov, Elias Frantar, Tingxuan Zhong, Xincheng Wang, Jie Ren, Torsten Hoefler, and Dan Alistarh. 2024a. Quik: Towards end-to-end 4-bit inference on generative large language models. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 3355–3371.
Saleh Ashkboos, Amirkeivan Mohtashami, Maximilian L Croci, Bo Li, Pashmina Cameron, Martin Jaggi, Dan Alistarh, Torsten Hoefler, and James Hensman. 2024b. Quarot: Outlier-free 4-bit inference in rotated llms. Advances in Neural Information Processing Systems, 37:100213–100240.
Gary Bécigneul and Octavian-Eugen Ganea. 2018. Riemannian adaptive optimization methods. CoRR, abs/1810.00760.
Yonatan Bisk, Rowan Zellers, Ronan Le Bras, Jianfeng Gao, and Yejin Choi. 2020. Piqa: Reasoning about physical commonsense in natural language. In Thirty-Fourth AAAI Conference on Artificial Intelligence.
Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, and 1 others. 2020. Language models are few-shot learners. Advances in neural information processing systems, 33:1877–1901.
Jerry Chee, Yaohui Cai, Volodymyr Kuleshov, and Christopher M De Sa. 2023. Quip: 2-bit quantization of large language models with guarantees. Advances in neural information processing systems, 36:4396–4429.
Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord. 2018. Think you have solved question answering? try arc, the ai2 reasoning challenge. arXiv:1803.05457v1.
T. Dettmers, M. Lewis, Y. Belkada, and 1 others. 2022. Gpt3.int8(): 8-bit matrix multiplication for transformers at scale. In Advances in Neural Information Processing Systems, volume 35, pages 30318–30332.
Jared Fernandez, Clara Na, Vashisth Tiwari, Yonatan Bisk, Sasha Luccioni, and Emma Strubell. 2025. Energy considerations of large language model inference and efficiency optimizations. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 32556–32569.
E. Frantar, S. Ashkboos, T. Hoefler, and 1 others. 2022. Gptq: Accurate post-training quantization for generative pre-trained transformers. arXiv preprint arXiv:2210.17323.
Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Alex Vaughan, and 1 others. 2024. The llama 3 herd of models. arXiv preprint arXiv:2407.21783.
Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. 2020. Measuring massive multitask language understanding. arXiv preprint arXiv:2009.03300.
Xing Hu, Yuan Cheng, Dawei Yang, Zukang Xu, Zhi-hang Yuan, Jiangyong Yu, Chen Xu, Zhe Jiang, and Sifan Zhou. 2025. Ostquant: Refining large language model quantization with orthogonal and scaling transformations for better distribution fitting. arXiv preprint arXiv:2501.13987.
Albert Q Jiang, Alexandre Sablayrolles, Antoine Roux, Arthur Mensch, Blanche Savary, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Emma Bou Hanna, Florian Bressand, and 1 others. 2024. Mixtral of experts. arXiv preprint arXiv:2401.04088.
Albert Qiaochu 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. 2023. Mistral 7b. ArXiv, abs/2310.06825.
Haokun Lin, Haobo Xu, Yichen Wu, Jingzhi Cui, Ying-tao Zhang, Linzhan Mou, Linqi Song, Zhenan Sun, and Ying Wei. 2024a. Duquant: Distributing outliers via dual transformation makes stronger quantized llms. Advances in Neural Information Processing Systems, 37:87766–87800.
J. Lin, J. Tang, H. Tang, and 1 others. 2024b. Awq: Activation-aware weight quantization for on-device llm compression and acceleration. Proceedings of Machine Learning and Systems, 6:87–100.
Zechun Liu, Changsheng Zhao, Igor Fedorov, Bilge Soran, Dhruv Choudhary, Raghuraman Krishnamoorthi, Vikas Chandra, Yuandong Tian, and Tijmen Blankevoort. 2025. Spinquant: Llm quantization with learned rotations. In International Conference on Learning Representations, volume 2025, pages 92009–92032.
Sasha Luccioni, Yacine Jernite, and Emma Strubell. 2024. Power hungry processing: Watts driving the cost of ai deployment? In Proceedings of the 2024 ACM conference on fairness, accountability, and transparency, pages 85–99.
Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. 2016. Pointer sentinel mixture models. Preprint, arXiv:1609.07843.
Denis Paperno, Germán Kruszewski, Angeliki Lazari-dou, Ngoc Quan Pham, Raffaella Bernardi, Sandro Pezzelle, Marco Baroni, Gemma Boleda, and Raquel Fernandez. 2016. The LAMBADA dataset: Word prediction requiring a broad discourse context. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1525–1534, Berlin, Germany. Association for Computational Linguistics.
Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Köpf, Edward Z. Yang, Zach DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, and 2 others. 2019. Pytorch: An imperative style, high-performance deep learning library. CoRR, abs/1912.01703.
Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J. Liu. 2023. Exploring the limits of transfer learning with a unified text-to-text transformer. Preprint, arXiv:1910.10683.
Keisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, and Yejin Choi. 2021. Winogrande: An adversarial winograd schema challenge at scale. Communications of the ACM, 64(9):99–106.
Siddharth Samsi, Dan Zhao, Joseph McDonald, Baolin Li, Adam Michaleas, Michael Jones, William Bergeron, Jeremy Kepner, Devesh Tiwari, and Vijay Gadepally. 2023. From words to watts: Benchmarking the energy costs of large language model inference. In 2023 IEEE high performance extreme computing conference (HPEC), pages 1–9. IEEE.
W. Shao, M. Chen, Z. Zhang, and 1 others. 2023. Omniquant: Omnidirectionally calibrated quantization for large language models. arXiv preprint arXiv:2308.13137.
Yuantian Shao, Yuanteng Chen, Peisong Wang, Jianlin Yu, Jing Lin, Zhihui Wei, Jian Cheng, and 1 others. 2026. Dartquant: efficient rotational distribution calibration for llm quantization. Advances in Neural Information Processing Systems, 38:143936–143970.
Yuxuan Sun, Ruikang Liu, Haoli Bai, Han Bao, Kang Zhao, Yuening Li, Jiaxin Hu, Xianzhi Yu, Lu Hou, Chun Yuan, and 1 others. 2024. Flatquant: Flatness matters for llm quantization. arXiv preprint arXiv:2410.09426.
Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, and 1 others. 2023. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288.
Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Rémi Louf, Morgan Funtowicz, and Jamie Brew. 2019. Huggingface’s transformers: State-of-the-art natural language processing. CoRR, abs/1910.03771.
G. Xiao, J. Lin, M. Seznec, and 1 others. 2023. Smoothquant: Accurate and efficient post-training quantization for large language models. In International Conference on Machine Learning, pages 38087–38099.
An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, and 1 others. 2025. Qwen3 technical report. arXiv preprint arXiv:2505.09388.
Rowan Zellers, Ari Holtzman, Yonatan Bisk, Ali Farhadi, and Yejin Choi. 2019. Hellaswag: Can a machine really finish your sentence? In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics.
A Sensitivity Derivation
In this section, we provide a detailed derivation of the noise-weighted local functional sensitivity metric introduced in Section 3.2. Our objective is to quantify the expected distortion on the local target output caused by introducing a quantization perturbation to the activation at insertion point .
Given a calibration set C, the local functional distortion is defined as the expected distance between the outputs before and after the perturbation:
where is a distance metric (e.g., Mean Squared Error). To analyze the impact of a small perturbation , we perform a second-order Taylor expansion of the distance function around the unperturbed activation .
Let . Trivially, when there is no perturbation, the distance is zero, meaning the zeroth-order term is . Furthermore, since is the global minimum of this distance function with respect to itself, the first-order derivative (gradient) is also zero, i.e., . Therefore, the dominant term in the Taylor expansion is the second-order term:
where is the Hessian matrix of the distance metric with respect to the input activation .
Next, we take the expectation over both the calibration data distribution and the quantization noise. By applying the cyclic permutation property of the trace operator (Tr), we can rewrite the expected distortion as:
(15)
In standard quantization theory, it is commonly assumed that the quantization noise across different channels is zero-mean and mutually independent. Consequently, the covariance matrix of the quantization noise is a diagonal matrix, where the diagonal elements represent the noise variance of each channel:
We define the functional sensitivity matrix as half of the expected Hessian: . Because the noise covariance matrix is diagonal, the trace operation eliminates all off-diagonal elements of . The total distortion can thus be diagonalized and decomposed into a linear sum of independent contributions from each channel:
(17)
From this, we naturally derive the sensitivity definition for the j-th channel:
This formulation decouples the functional sensitivity ( , the diagonal element of the expected Hessian, reflecting the model's structural reliance on the channel) from the quantization noise intensity ( , reflecting the information loss incurred during quantization).
Extension to Weight Quantization. When the quantization of the weight matrix is also considered, the local output becomes , and the perturbation includes both activation noise and weight noise . Assuming that the activation quantization noise and weight quantization noise are independent (i.e., ), the expectation of the cross-terms in the second-order Taylor expansion evaluates to zero. Therefore, the total distortion can be approximated as the linear superposition of the activation distortion and the weight distortion, yielding the additive approximation used in our framework:
B Long-tail Effect in Local Paths
As shown in Figure 6(b) and (c), local paths such as the QK and VO paths exhibit a severe long-tail distribution, drastically deviating from the uniform diagonal. For example, the top 20% of channels in the QK path dominate approximately 70% of the total sensitivity. This extreme concentration indicates that most of the quantization distortion is caused by a tiny fraction of critical channels, providing direct empirical support for our design of allocating expressive learnable rotations exclusively to these high-sensitivity channels.

(a)
(b)
VO path
Down input

(c)
(d)
Figure 6: Lorenz curves of intra-layer sensitivity distribution.
C Hadamard Transforms for Non-Power-of-Two Dimensions
The fast Walsh–Hadamard transform (FWHT) is only defined for power-of-two dimensions, whereas the low-sensitivity dimension is in general arbitrary. Following the implementation of QuaRot, we factorize the dimension as
where K is the size of a known Hadamard matrix construction, , and build the transform as a Kronecker product:
In computation, the input is reshaped into groups of size , transformed by the FWHT along the dimension, and then multiplied by the small dense matrix , with a total cost of plus one matrix product. Since the Kronecker product of two Hadamard matrices is itself a Hadamard matrix, is a complete orthogonal transform over all channels, i.e., the outlier energy is mixed across the entire low-sensitivity subspace rather than within isolated fragments.
When is a power of two, and the transform degenerates to a single FWHT without any additional matrix product, which is the most efficient case. Under our default 50% split on LLaMA-3-8B, the hidden-dimension paths use ( ), and the down-projection input uses ( ), matching the fused kernels described in Appendix F. The set of valid values is therefore over the supported , which forms a dense grid over the sweep range in Table 5; ratios are rounded to the nearest valid dimension.
D Detailed Results on Downstream Tasks
As shown in Table 6, LIRQuant consistently outperforms prior SOTA methods across all evaluated models and quantization configurations. Under the W4A16 setting, LIRQuant comprehensively surpasses strong baselines such as GPTQ and AWQ, minimizing the performance gap with full-precision (FP16) models in zero-shot reasoning. In the highly challenging W4A4KV4 ultralow-bit setting, traditional smoothing methods (e.g., SmoothQuant) suffer from severe performance collapse on specific tasks (e.g., LAMBADA), whereas our approach maintains a substantial lead. Particularly on the notoriously difficult-to-quantize LLaMA-3-8B model, LIRQuant achieves the highest average accuracy of 71.60%, directly surpassing the latest advanced methods including FlatQuant (71.33%) and SpinQuant (69.11%). Achieving this optimal accuracy firmly validates the effectiveness of our core design.
Table 7 reports the per-task zero-shot accuracy on Mistral-7B-v0.3, Qwen3-8B, and Mixtral-8×7B under W4A4KV4, complementing the summary in Table 2.
E Detailed Analysis of Calibration Overhead
This section analyzes the calibration bottlenecks of each baseline in Table 3. All experiments are conducted on a single-node NVIDIA H20 (96 GB per device) platform, with all competing methods using their official open-source implementations and quantization uniformly configured as W4A4KV4. Both GPU and host memory are reported per device to avoid incomparability arising from data-parallel replicas.
SpinQuant learns rotations via end-to-end cross-entropy optimization with Cayley-SGD on the Stiefel manifold. However, its official implementation performs on-the-fly weight re-rotation in float64 for every linear layer with per-sample training (batch size 1), resulting in a calibration time as high as 9 hours, the slowest among all methods. Its memory advantage (26 GB) stems from frozen weights, gradient checkpointing, and DDP with full per-device replicas, requiring neither a teacher model nor activation caching.
| Model | #Bits (W-A-KV) | Method | ARC-c | ARC-e | HellaS. | Lam. | PIQA | WinoG. | Avg. |
|---|---|---|---|---|---|---|---|---|---|
| LLaMA-2-7B | 4-16-16 | RTN | 42.15 | 67.59 | 72.34 | 67.18 | 76.50 | 66.69 | 65.41 |
| GPTQ | 42.49 | 69.53 | 73.83 | 67.61 | 77.64 | 68.43 | 66.59 | ||
| AWQ | 44.11 | 70.75 | 74.98 | 70.68 | 78.13 | 69.38 | 68.01 | ||
| LIRQuant (Ours) | 44.80 | 73.60 | 75.30 | 73.90 | 79.10 | 68.80 | 69.25 | ||
| 4-4-4 | RTN | 27.22 | 27.06 | 27.34 | 0.93 | 49.51 | 50.51 | 30.43 | |
| SmoothQuant | 26.37 | 25.63 | 27.05 | 1.11 | 51.90 | 34.49 | 30.07 | ||
| QuaRot | 41.43 | 69.32 | 72.50 | 70.66 | 77.42 | 64.64 | 66.00 | ||
| SpinQuant | 40.44 | 71.08 | 73.51 | 70.66 | 76.88 | 65.82 | 66.40 | ||
| OSTQuant | 42.92 | 72.56 | 73.14 | 71.76 | 77.42 | 66.77 | 67.43 | ||
| FlatQuant | 43.00 | 71.21 | 73.31 | 72.06 | 77.53 | 67.72 | 67.47 | ||
| LIRQuant (Ours) | 43.20 | 71.50 | 73.50 | 72.20 | 77.70 | 67.90 | 67.67 | ||
| LLaMA-2-13B | 4-16-16 | RTN | 42.92 | 66.54 | 66.62 | 68.99 | 76.93 | 65.35 | 64.56 |
| GPTQ | 49.63 | 73.95 | 73.77 | 73.20 | 78.51 | 70.64 | 70.28 | ||
| AWQ | 48.63 | 78.16 | 78.48 | 75.20 | 79.54 | 72.45 | 72.08 | ||
| LIRQuant (Ours) | 49.00 | 76.50 | 78.50 | 76.80 | 80.50 | 72.20 | 72.25 | ||
| 4-4-4 | RTN | 27.82 | 26.52 | 26.27 | 0.02 | 49.78 | 49.17 | 29.93 | |
| SmoothQuant | 24.49 | 33.00 | 30.70 | 2.70 | 53.81 | 51.07 | 32.63 | ||
| QuaRot | 47.27 | 73.91 | 75.33 | 73.53 | 79.27 | 69.06 | 69.73 | ||
| SpinQuant | 46.67 | 74.49 | 75.22 | 72.19 | 78.29 | 67.72 | 69.10 | ||
| OSTQuant | 47.10 | 75.21 | 76.71 | 75.14 | 78.67 | 68.03 | 70.14 | ||
| FlatQuant | 48.38 | 76.94 | 77.88 | 76.40 | 79.65 | 70.56 | 71.64 | ||
| LIRQuant (Ours) | 48.80 | 77.30 | 78.20 | 76.90 | 80.10 | 71.00 | 72.05 | ||
| LLaMA-3-8B | 4-16-16 | RTN | 48.98 | 73.23 | 75.90 | 63.85 | 78.40 | 73.16 | 68.92 |
| GPTQ | 49.74 | 72.52 | 68.34 | 46.69 | 78.78 | 71.82 | 64.65 | ||
| AWQ | 52.22 | 76.68 | 77.51 | 74.81 | 79.60 | 71.67 | 72.08 | ||
| LIRQuant (Ours) | 53.10 | 80.10 | 78.10 | 76.70 | 81.00 | 74.10 | 73.85 | ||
| 4-4-4 | RTN | 23.72 | 30.56 | 29.83 | 2.70 | 52.45 | 50.20 | 31.58 | |
| SmoothQuant | 23.55 | 28.96 | 28.90 | 1.44 | 51.09 | 50.36 | 30.72 | ||
| QuaRot | 42.83 | 67.42 | 72.66 | 66.93 | 75.73 | 66.22 | 65.30 | ||
| SpinQuant | 46.33 | 73.57 | 75.43 | 71.40 | 79.16 | 68.75 | 69.11 | ||
| OSTQuant | 49.32 | 76.73 | 76.01 | 70.77 | 78.51 | 69.22 | 70.09 | ||
| FlatQuant | 50.51 | 75.88 | 76.49 | 73.20 | 79.00 | 72.93 | 71.33 | ||
| LIRQuant (Ours) | 50.80 | 76.10 | 76.70 | 73.50 | 79.30 | 73.20 | 71.60 | ||
| LLaMA-2-70B | 4-16-16 | RTN | 55.80 | 79.29 | 81.78 | 75.51 | 81.94 | 76.48 | 75.13 |
| GPTQ | 56.91 | 80.81 | 82.47 | 79.06 | 82.75 | 77.51 | 76.59 | ||
| AWQ | 56.67 | 80.54 | 82.54 | 78.83 | 82.97 | 77.62 | 76.53 | ||
| LIRQuant (Ours) | 57.60 | 81.60 | 84.10 | 80.00 | 82.90 | 78.10 | 77.38 | ||
| 4-4-4 | RTN | 30.38 | 27.74 | 26.12 | 0.02 | 51.74 | 52.49 | 31.42 | |
| SmoothQuant | 24.15 | 33.88 | 31.75 | 7.14 | 54.95 | 52.17 | 34.01 | ||
| QuaRot | 56.48 | 80.56 | 81.93 | 79.16 | 82.21 | 76.80 | 76.19 | ||
| SpinQuant | 56.31 | 80.64 | 82.36 | 79.41 | 82.21 | 76.16 | 76.18 | ||
| OSTQuant | 56.58 | 80.17 | 82.49 | 78.72 | 82.76 | 76.49 | 76.20 | ||
| FlatQuant | 56.40 | 80.09 | 82.91 | 80.01 | 82.92 | 76.87 | 76.53 | ||
| LIRQuant (Ours) | 56.70 | 80.40 | 83.20 | 80.40 | 83.20 | 77.20 | 76.85 |
Table 6: Detailed zero-shot accuracy on downstream tasks for LLaMA-2 and LLaMA-3 families under W4A16KV16 and W4A4KV4 quantization.
| Model | Method | Wiki ↓ | ARC-c | ARC-e | HellaS. | Lam. | PIQA | WinoG. | Avg. |
|---|---|---|---|---|---|---|---|---|---|
| Mistral-7B-v0.3 | SpinQuant | 5.82 | 46.9 | 77.2 | 78.9 | 73.2 | 78.9 | 69.7 | 70.80 |
| OSTQuant | 5.79 | 47.2 | 77.4 | 79.1 | 73.6 | 79.2 | 70.1 | 71.10 | |
| DartQuant | 5.92 | 46.4 | 76.7 | 78.5 | 72.8 | 78.5 | 69.2 | 70.35 | |
| FlatQuant | 5.76 | 47.5 | 77.7 | 79.3 | 73.9 | 79.5 | 70.4 | 71.38 | |
| LIRQuant (Ours) | 5.70 | 47.8 | 78.1 | 79.7 | 74.3 | 79.8 | 70.9 | 71.77 | |
| Qwen3-8B | SpinQuant | 7.99 | 52.8 | 79.5 | 74.1 | 64.2 | 76.6 | 68.2 | 69.23 |
| OSTQuant | 7.77 | 53.3 | 80.0 | 74.6 | 64.7 | 77.1 | 68.8 | 69.70 | |
| DartQuant | 8.19 | 52.3 | 78.9 | 73.5 | 63.6 | 76.1 | 67.5 | 68.65 | |
| FlatQuant | 7.44 | 54.1 | 80.8 | 75.4 | 65.6 | 77.8 | 69.7 | 70.57 | |
| LIRQuant (Ours) | 7.32 | 54.4 | 81.2 | 75.8 | 66.1 | 78.2 | 70.3 | 71.00 | |
| Mixtral-8×7B | DartQuant | 5.06 | 58.60 | 82.45 | 81.78 | 77.32 | 81.55 | 73.85 | 75.93 |
| FlatQuant | 4.27 | 59.30 | 83.21 | 82.92 | 78.13 | 82.26 | 74.90 | 76.79 | |
| LIRQuant (Ours) | 4.14 | 59.54 | 83.65 | 83.48 | 78.55 | 82.84 | 75.62 | 77.27 |
Table 7: Detailed zero-shot accuracy and WikiText-2 perplexity on Mistral-7B-v0.3, Qwen3-8B, and Mixtral-8×7B under W4A4KV4. SpinQuant and OSTQuant results on Mixtral are unavailable due to out-of-memory errors during calibration.
OSTQuant compresses the calibration time to about 44 minutes via top-K KL distillation and per-head orthogonal transforms. However, its end-to-end training superimposes a per-step full-precision teacher forward pass and full-weight float32 re-rotation, yielding the highest per-device peak GPU memory (33–60 GB). Its ~420 GB host memory is a transient spike during initialization (float64 LayerNorm folding), with the steady state falling back to ~16 GB. On Mixtral, the end-to-end framework must simultaneously hold the quantized model, the teacher, and the re-rotation buffers, exceeding the total GPU memory and causing OOM.
FlatQuant adopts layer-wise Kronecker affine reconstruction with strictly sequential training across layers, precluding multi-device parallelism and taking about 1h13m. On Mixtral, the 8-expert activation cache drives the host memory to 109 GB and the wall-clock time to 3h12m.
DartQuant achieves fast calibration by trading memory for computation: it decouples rotation learning from the model and trains on cached activations. The calibration time on dense models is only about 30 minutes, but it requires GB of sustained host memory (as opposed to OSTQuant's transient spike), and the global rotation uses only a single device. To train Mixtral on our cluster, we modified its caching mechanism, yet the host memory still reached 304 GB.
LIRQuant adopts the same Stiefel optimizer as OSTQuant and retains end-to-end training, but reduces the number of learnable parameters to one quarter of a dense rotation. This directly cuts the per-step backpropagation computation and optimizer state size, effectively controlling GPU memory overhead; fewer learnable parameters also naturally lower the risk of overfitting and reduce the number of steps required for convergence. In our implementation, we further apply FSDP weight sharding and use float32 rotations to circumvent the float64 DGEMM bottleneck and host memory spikes. As a result, LIRQuant achieves the best calibration time and host memory on every evaluated model; on Mixtral, DartQuant attains a lower GPU footprint only because it trains a single global rotation on cached activations, at the cost of 304 GB host memory.
F Inference Efficiency Details
All inference experiments are conducted on a single NVIDIA A100-SXM4-80GB, with the FP16 unquantized model as the baseline. We evaluate end-to-end performance through two experiments: Experiment 1 fixes the batch size at 4 and sweeps the sequence length (128–8192) to examine pre-fill/decode speedup and memory savings as a function of sequence length; Experiment 2 fixes the prefill length at 2048 and sweeps the batch size (1–64) to examine decode speedup scalability with concurrency.
F.1 Kernel Design
LIRQuant retains only two online rotations: on Q/K after RoPE and before the down projection; and () are absorbed offline into weights. We adopt the block-diagonal struc-ture blkdiag( )—only high-sensitivity dimensions use the learnable dense sub-block , while the rest use the fixed Hadamard transform —reducing computation and memory traffic while preserving expressiveness. The kernels are designed at three levels.
Operator Fusion. Both sub-blocks in reduce to Kronecker structures (, ). We fuse the block-diagonal transform, per-token reduction, symmetric INT4 quantization, and dual-nibble packing into a single Triton program: the dense and Hadamard inputs are loaded from global memory, transformed on-chip with all intermediates in registers, jointly reduced, quantized and packed online, and written back in a single pass together with the per-token scales. The output is directly consumable by the downstream INT4 linear layers. uses an isomorphic design with the dense and Hadamard blocks pre-assembled on the host into a single block, requiring no kernel branching. Hadamard cores are cached on the GPU keyed by size, device, and dtype, eliminating CPU-side reconstruction and CPU GPU synchronization while maintaining FP16 I/O.
GEMV Adaptation and Tiling. Under small-M decoding, we extend the one-program-per-token-row mapping to one program per token rows (auto-tuned), reusing the transform core and using 3D tiled tl.dot to improve Tensor Core occupancy. Per-layer quantization and de-quantization are merged into the INT4 GEMM prologue/epilogue, eliminating fragmented kernel launches of the roughly seven linear layers per Transformer block.
Schedule Optimization. For fixed-shape decoding, we use CUDA Graph to staticize the batch, KV cache buckets, and per-layer shapes, reducing Python scheduling and kernel launch latency. Packed activation, scale, and transform buffers are pre-allocated and reused per batch/sequence bucket to reduce allocator fragmentation.
F.2 Full Results
Tables 8 and 9 report the sequence-length sweep on Mistral-7B-v0.3 and Qwen3-8B, exhibiting the same trends as LLaMA-3-8B (Table 4). Table 10 reports the batch-size sweep with the prefill length fixed at 2048. The decode speedup grows steadily with the batch size, from below at batch size 1 (where the workload is memory-latency bound and the online transformations are not amortized) to at batch size 64. Overall, LIRQuant achieves a prefill speedup and peak memory savings; the configuration with batch size 64, sequence length 2048, and 256 decoding steps runs stably within 80 GB.
| Seq. Len. | Prefill Speedup | FP16 Prefill | Decode Speedup | Mem. Saving |
|---|---|---|---|---|
| 128 | 2.21× | 31.5 ms | 0.97× | 3.55× |
| 256 | 2.23× | 45.1 ms | 1.04× | 3.52× |
| 1024 | 2.28× | 155.4 ms | 1.17× | 3.48× |
| 4096 | 2.32× | 618.2 ms | 1.30× | 3.42× |
| 8192 | 2.35× | 1301.7 ms | 1.42× | 3.35× |
Table 8: Inference efficiency on Mistral-7B-v0.3 (batch size 4, NVIDIA A100-80GB).
| Seq. Len. | Prefill Speedup | FP16 Prefill | Decode Speedup | Mem. Saving |
|---|---|---|---|---|
| 128 | 2.15× | 34.2 ms | 0.93× | 3.45× |
| 256 | 2.17× | 47.0 ms | 1.00× | 3.42× |
| 1024 | 2.22× | 164.0 ms | 1.13× | 3.38× |
| 4096 | 2.26× | 652.1 ms | 1.26× | 3.33× |
| 8192 | 2.29× | 1388.6 ms | 1.38× | 3.30× |
Table 9: Inference efficiency on Qwen3-8B (batch size 4, NVIDIA A100-80GB).
| Batch | LLaMA-3-8B | Mistral-7B | Qwen3-8B |
|---|---|---|---|
| 1 | 2.18× / 0.75× | 2.21× / 0.77× | 2.15× / 0.73× |
| 16 | 2.28× / 1.10× | 2.31× / 1.12× | 2.25× / 1.08× |
| 32 | 2.33× / 1.50× | 2.36× / 1.53× | 2.30× / 1.47× |
| 64 | 2.38× / 1.82× | 2.41× / 1.85× | 2.35× / 1.79× |
Table 10: Prefill / decode speedup versus batch size (prefill length fixed at 2048, NVIDIA A100-80GB).
G Full Ratio Sweep and Sensitivity Metric Comparison
We conduct a full sweep of the high-sensitivity channel ratio on LLaMA-3-8B under W4A4KV4, comparing our noise-weighted functional sensitivity against six common channel importance metrics. The calibration set is independently re-sampled for this sweep (the same setting as Table 5), so the absolute PPL values may differ slightly from Table 1. The metrics are defined as follows, where denotes the activation of channel at token :
-
maxabs (): , the maximum absolute value of channel across all tokens;
-
l2: , the L2 norm of channel activations;
-
awq: , the L1 norm of channel activations, derived from AWQ's channel importance measure;
-
p999: , the 99.9th percentile of channel activations, intended to provide a more robust estimate of extreme values than maxabs;
-
kurtosis: , the scale-invariant kurtosis, measuring the heavy-tailedness of the distribution;
-
random: a random permutation, independent of any data statistics.
| Ratio | Ours | maxabs | l2 | awq | p999 | kurtosis | random |
|---|---|---|---|---|---|---|---|
| 0% | 11.59 | 11.59 | 11.59 | 11.59 | 11.59 | 11.59 | 11.59 |
| 10% | 13.28 | 13.42 | 13.87 | 14.26 | 14.92 | 11.33 | 11.52 |
| 20% | 8.92 | 9.15 | 9.55 | 10.41 | 10.78 | 10.85 | 11.08 |
| 30% | 7.55 | 7.68 | 8.10 | 8.78 | 9.05 | 10.52 | 10.72 |
| 40% | 7.32 | 7.45 | 7.82 | 8.35 | 8.58 | 10.48 | 10.58 |
| 50% | 6.78 | 6.90 | 7.25 | 7.88 | 8.12 | 10.28 | 10.38 |
| 60% | 6.82 | 6.88 | 7.32 | 7.92 | 8.18 | 10.32 | 10.35 |
| 70% | 6.88 | 6.95 | 7.40 | 7.98 | 8.22 | 10.45 | 10.42 |
| 80% | 6.85 | 6.81 | 7.28 | 7.90 | 8.15 | 10.38 | 10.48 |
| 90% | 6.92 | 7.00 | 7.45 | 8.02 | 8.28 | 10.51 | 10.52 |
| 100% | 8.01 | 7.99 | 8.64 | 8.22 | 8.42 | 8.33 | 10.27 |
Table 11: WikiText-2 PPL of LLaMA-3-8B (W4A4KV4) as a function of the high-sensitivity ratio under different channel selection metrics. The 0% row corresponds to the full-Hadamard configuration.
As shown in Table 11, our proposed metric achieves the best PPL at every ratio in the practically relevant range (20%–70%), including the optimal 50% split, and remains within 0.04 PPL of the best metric at larger ratios (80%–100%). The reason maxabs ( ) can approach our performance is its fidelity to extreme outliers: higher-order norms better highlight extreme values ( ). L1 (awq) is diluted by numerous moderate values, incorrectly ranking uniformly-high but outlier-free channels ahead of genuinely spiky ones; L2, despite its quadratic amplification, remains confounded by the cumulative contribution of moderate values; p999, in pursuit of robustness, truncates the top 0.1% of extreme values—precisely those that the Hadamard transform most needs to disperse; kurtosis, by virtue of scale invariance, discards magnitude information entirely, misclassifying channels with tiny magnitude but pointy distributions as highly sensitive. Kurtosis and random exhibit no diffusion loss peak at small ratios—they fail to concentrate outliers into the high-sensitivity block, but the Hadamard transform on the low-sensitivity block still serves as a robust lower bound, keeping PPL within a reasonable range while wasting the learning opportunity of the high-sensitivity block. The training overhead difference among the metrics is on the order of minutes, which is negligible relative to the resulting accuracy gains.