LIRQuant: An Efficient Locally Isolated Rotation Quantization Method for Large Language Models
Organizations: Li Auto Inc.
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.
Figures & tables
| 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 | - | |
| 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 |
| 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 |
| 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 |
| 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 |
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
LLM Quantization
Large language model quantization reduces numerical precision to lower memory use and accelerate training or inference.
See all 362 papers