DartQuant: Efficient Rotational Distribution Calibration for LLM Quantization

Yuantian Shao, Yuanteng Chen, Peisong Wang, Jianlin Yu, Jing Lin, Yiwu Yao, Zhihui Wei, Jian Cheng

TL;DR

DartQuant introduces a fast, distribution-aware rotational calibration method for Large Language Model (LLM) quantization that bypasses expensive end-to-end fine-tuning. By leveraging a novel "Whip loss" to uniformize activation distributions and a "QR-Orth" optimization scheme, it achieves a 47× speedup and 10× memory savings over existing methods. Remarkably, it enables the rotation calibration of a massive 70B parameter model on a single consumer-grade RTX 3090 GPU in just 3 hours.

What Problem Does This Paper Address?

Post-Training Quantization (PTQ) is essential for deploying LLMs in resource-constrained environments. However, reducing the bit-width of activations is notoriously difficult due to the presence of extreme outliers, which destroy quantization precision. Recent state-of-the-art methods (like SpinQuant and OSTQuant) use learned rotation matrices to "smooth" these outliers across channels without changing the model's output.

The catch? These methods treat rotation matrices as network parameters and fine-tune them end-to-end using task-specific losses. This approach is incredibly heavy—requiring hundreds of GiB of GPU memory and tens of GPU hours for a 70B model (see Figure 1). Furthermore, optimizing on a rotation manifold requires complex, computationally intensive orthogonal optimizers (like Cayley SGD) and risks overfitting to the small calibration datasets typically used in PTQ.

Figure 1: Comparison of computational costs across different rotation optimization methods.

Methods

DartQuant redefines the rotation optimization problem from end-to-end task fine-tuning to distribution calibration. It consists of three core components:

  1. Rotational Distribution Calibration: Instead of optimizing for a task-specific loss (like cross-entropy), DartQuant optimizes the rotation matrix solely to shape the activation features into a distribution that is inherently easier to quantize.
  2. Activation Uniformity via Whip Loss: LLM activations typically follow a heavy-tailed, sharp-peaked Laplace distribution. The authors introduce the Whip loss: $$Whip = \sum_{i=1}^{C_{in}} \exp(-|x_i|)$$ This loss function has larger gradients near zero, pushing small activation values away from zero and flattening the distribution's peak. Because rotation matrices are norm-preserving (norm-invariant), pushing small values up naturally forces extreme outliers down, resulting in a much more uniform distribution that minimizes quantization error.
Intuition behind the distribution transformation: Whip loss flattens the peak and aggregates outliers.
  1. QR-Orth Optimization: To maintain the strict orthogonality required for rotation matrices, prior works rely on expensive Riemannian manifold optimization. DartQuant bypasses this by optimizing an unconstrained latent matrix $Z$ and applying standard QR decomposition ($R = qr(Z)$) at each step to extract the orthogonal matrix $R$. This drops the computational complexity from $6n^3$ to $\frac{4}{3}n^3$, allowing the use of standard optimizers like standard SGD or Adam.

Datasets

The authors evaluated DartQuant on the LLaMA-2 (7B, 13B, 70B) and LLaMA-3 (8B, 70B) families, as well as Mixture-of-Experts (MoE) models (Mixtral-8×7B, DeepSeek-MoE-16B).

  • Calibration & Perplexity Evaluation: WikiText2, PTB, and C4.
  • Zero-Shot Evaluation: Nine standard benchmarks including LAMBADA, HellaSwag, PIQA, WinoGrande, OpenBookQA, SIQA, MMLU, ARC-E, and ARC-C.

Key Insights and Ideas

  • Outliers are a Distribution Problem: End-to-end fine-tuning methods don't actually reduce the absolute number of outliers significantly; they just overfit the network to the calibration data. DartQuant shows that explicitly driving the activation distribution toward uniformity is a more robust and direct way to mitigate outlier impact.
  • Leveraging Norm Invariance: The mathematical property of rotation matrices preserving the Euclidean norm means you don't have to directly penalize outliers. Pushing the massive bulk of small values away from zero mathematically compresses the maximum values (outliers).
  • Decoupling Orthogonality from the Optimizer: Using QR decomposition as a bridge allows unconstrained Euclidean optimizers to solve manifold optimization problems indirectly, dramatically speeding up convergence.

Key Results

  • Massive Efficiency Gains: For a 70B model, DartQuant delivers a 47× speedup in GPU hours and reduces memory usage by 10× compared to SpinQuant.
  • Democratizing LLM Quantization: DartQuant is the first method capable of running rotation calibration for a 70B model on a single consumer RTX 3090 GPU (~3 hours), whereas previous methods required high-end A800/H100 clusters.
  • Quantization Performance: Under ultra-low bit-width settings (e.g., 4-bit weights, 4-bit activations, 4-bit KV cache), DartQuant consistently outperforms QuaRot and matches or exceeds the accuracy of end-to-end fine-tuned methods without their associated overfitting risks. For LLaMA-3-70B, it limited the average performance loss to 3.31%, outperforming SpinQuant by 3.33%.

Limitations and Future Work

The authors note two primary limitations:

  1. Format Specificity: DartQuant is tailored for uniformly distributed integer formats (like INT4). Its effectiveness on non-uniform formats (like FP4 or NormalFloat) remains unexplored.
  2. Zero-Mean Assumption: The Whip loss assumes that activations are approximately zero-mean. While true for most Transformer layers, its performance might degrade in rare cases where the activation mean significantly deviates from zero.

Summary updated

BibTeX
@inproceedings{shao2025dartquant,
  author = {Yuantian Shao and Yuanteng Chen and Peisong Wang and Jianlin Yu and Jing Lin and Yiwu Yao and Zhihui Wei and Jian Cheng},
  title = {{DartQuant: Efficient Rotational Distribution Calibration for LLM Quantization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=LfcfwlLCHM},
}
Figure