Reproduce “D$^2$Quant: Accurate Low-bit Post-Training Weight Quantization for LLMs” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Xianglong Yan, ChengZhu Bao, Zhiteng Li, Tianao Zhang, Shaoqiu Zhang, Ruobing Xie, Samm Sun, Yulun Zhang

D²Quant compresses large language model weights to 2-bit precision after training, without retraining or low-bit inference operators. It rescales sensitive MLP down-projection weights during quantization and corrects a measured activation mean shift after attention quantization. On Qwen-3-8B, it reaches 57.22 average accuracy across seven zero-shot tasks, versus GPTQ†’s 54.05; this is an accuracy result, not an inference-speed measurement.

Key insights

  • Effective low-bit quantization for LLMs necessitates a dual-perspective approach, simultaneously addressing optimal weight representation and mitigating the propagation of quantization errors through activation distributions.
  • A mathematical equivalence between up- and down-projection matrices enables the introduction of an auxiliary scaling factor that can be absorbed, simplifying down-projection quantization without affecting upstream layers or adding inference latency.
  • Quantization errors induce distinct activation deviations; specifically, attention module quantization causes a consistent mean shift at post-attention LayerNorms, which can be quantified by a high Signal-to-Noise Ratio and targeted for correction.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.