Reproduce “Few Bits, One Law: Toward W2A4KV2” 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

Kai Yi, Tarek Elgamal, Sruthikesh Surineni, Vignesh Vivekraja, Soumyadeep Ghosh, Steven Li

CanonQ jointly quantizes weights, activations, and attention key/value caches with fixed transforms and codebooks, then trains the model with quantization errors active. On LLaMA3-8B at W2A4KV2, it reports 9.41 WikiText-2 perplexity versus ParetoQ’s 134.36, and 59.81% versus 37.87% mean zero-shot accuracy. The one-seed comparison uses 3B-selected settings and measures model quality, not deployment speed or memory savings.

Key insights

  • Canonicalization reduces the mismatch between activation and KV distributions and the Gaussian reference used to design reusable codebooks; the reported change is smaller for weights, whose marginals are already closer to Gaussian.
  • The largest gains emerge when activations and cache are quantized alongside weights: weight-only canonicalization yields more modest improvements, while joint QAT can recover much of the quality lost under aggressive compression.
  • Canonicalization alone is not sufficient: an unadapted model performs extremely poorly in the tested W2A4 setting, whereas QAT with the same codec restores substantially better perplexity.

Summary by alphaXiv.

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