TwinQuant: Learnable Subspace Decomposition for 4-Bit LLM Quantization

Haodong Wang, Junjie Liu, Zicong Hong, Qianli Liu, Jian Lin, Song Guo, Xu Chen

TL;DR

TwinQuant is a novel 4-bit quantization framework that achieves near-FP16 accuracy for Large Language Models (LLMs) by learning how to decompose weight matrices into "quantization-friendly" low-rank and residual components. By combining a hybrid manifold optimization strategy with a custom fused CUDA kernel, it delivers up to a 1.8× end-to-end speedup over FP16 baselines without the typical accuracy collapse seen in ultra-low-bit models.

What Problem Does This Paper Address?

Quantizing LLMs to 4-bit (W4A4 or W4A8) is the "holy grail" for efficient deployment, as it significantly reduces memory footprint and boosts throughput. However, 4-bit quantization usually leads to a massive drop in accuracy.

The culprit? Outliers and anisotropy. LLM weights and activations often have a few extremely large values (outliers) that dictate the dynamic range, forcing the remaining values into tiny, imprecise quantization bins.

Previous "dual-branch" methods tried to solve this by using Singular Value Decomposition (SVD) to peel off these outliers into a high-precision low-rank branch while quantizing the "easy" residual. But the authors discovered a catch: unlike diffusion models, LLMs have "slow spectral decay." This means you need a very high-rank branch to capture enough outliers, which creates a Rank-Overhead Dilemma: a small rank doesn't fix the accuracy, but a large rank makes the model too slow to be useful.

Methods

TwinQuant breaks this dilemma through two main innovations:

  1. Learnable Subspace Decomposition: Instead of relying on a fixed, offline SVD, TwinQuant learns the best way to split the weights. It introduces two learnable transforms:
  2. Global Orthogonal Rotations ($Q$): Optimized over the Stiefel manifold to reshape activation and residual distributions.
  3. Layer-Specific Invertible Transforms ($G$): Optimized over the General Linear manifold to re-distribute the low-rank component. These transforms are "folded" into the weights offline, meaning they add zero overhead during inference.

  4. Fused Dual-Component Kernel: To make the two-branch math efficient, the authors designed a custom CUDA kernel. Normally, a low-rank branch requires two separate matrix multiplications ($X \cdot U$ then $H \cdot V$). TwinQuant’s kernel pipelines these stages on-chip, keeping intermediate results in shared memory and merging them with the residual branch in a single "epilogue." This avoids the costly traffic to global memory that usually kills the performance of dual-branch methods.

Datasets

The authors evaluated TwinQuant on two state-of-the-art LLM families:

  • LLaMA3 (3B and 8B versions)
  • Qwen3 (4B, 8B, 14B, and 32B versions)

Performance was measured using WikiText2 for perplexity and a suite of six zero-shot commonsense reasoning benchmarks: ARC-Challenge, ARC-Easy, HellaSwag, PIQA, WinoGrande, and LAMBADA.

Key Insights and Ideas

  • SVD is a Suboptimal Starting Point: The paper shows that minimizing the "energy" of a residual (what SVD does) isn't the same as minimizing "quantization error." By making the decomposition learnable, they can specifically target the errors introduced by 4-bit rounding.
  • The Power of Hybrid Manifolds: By optimizing over both Stiefel (rotations) and General Linear (scaling/shearing) manifolds, the model gains the degrees of freedom necessary to "flatten" the heavy-tailed distributions that usually break 4-bit quantizers.
  • Quantizing the Low-Rank Branch: Unlike prior work that kept the low-rank branch in high precision (FP16), TwinQuant quantizes both branches to 4-bit. This is only possible because their learnable transforms make the low-rank factors much easier to quantize.

Key Results

  • Accuracy: In the challenging W4A4 setting, TwinQuant stays within 0.6–2.6 average accuracy points of the FP16 baseline. It significantly outperforms other state-of-the-art methods like QuaRot and SpinQuant, particularly on larger models like Qwen3-32B.
  • Speedup: On NVIDIA RTX 4090 and L20 GPUs, TwinQuant achieves 1.63× to 1.8× speedup over FP16 TensorRT-LLM. It also beats SVDQuant (the strongest dual-branch baseline) by up to 1.07× due to its superior kernel fusion.
  • Efficiency: The memory overhead for the low-rank branch is minimal, ranging from only 3.5% to 7.3% depending on the model size.

Limitations and Future Work

  • Model Architecture: The current study focuses on dense language models. The authors note that extending this to Mixture-of-Experts (MoE) or multimodal models (like LLaVA) is a necessary next step, as these models have different activation patterns.
  • Hardware Specificity: The high-performance fused kernel is currently optimized for NVIDIA GPUs. Porting this to other accelerators (like TPU or AMD) would require additional engineering.
  • Optimization Time: While inference is fast, the "learnable" part requires an offline calibration phase (e.g., ~6.5 hours for a 32B model). Future work could look into more data-efficient or faster optimization schemes.

Summary updated

BibTeX
@inproceedings{wang2026twinquant,
  author = {Haodong WANG and Junjie Liu and Zicong Hong and Qianli Liu and Jian Lin and Song Guo and Xu Chen},
  title = {{TwinQuant: Learnable Subspace Decomposition for 4-Bit LLM Quantization}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=ahYRAjx7UG},
}
Figure