Reproduce “AMQ: Enabling AutoML for Mixed-precision Weight-Only Quantization of Large Language Models” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

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

About this paper

Sangjun Lee, Seung-taek Woo, Jungyu Jin, Changhun Lee, Eunhyeok Park

AMQ searches layer-wise bit-width assignments for weight-only quantization under a memory constraint. It fixes highly sensitive layers at four bits, precomputes options, and iteratively predicts and verifies candidate quality. On Llama 2 7B, at 3.0 average bits, AMQ matches BitStack's 2,817 MB budget and reaches 65.59 six-task zero-shot average versus 63.63; it scores lower on BoolQ.

Key insights

  • Quantization sensitivity varies significantly across different LLM layers, indicating that a fixed-precision approach is suboptimal and fine-grained mixed-precision can yield better quality-efficiency trade-offs.
  • An activation-independent quantization method can serve as an effective and rapid proxy during the search phase, allowing efficient exploration of bit-width configurations while ensuring the final deployment with state-of-the-art activation-dependent quantizers maintains high quality.
  • Targeted pruning of highly sensitive layers from the active search space (e.g., only 0.9% to 1.8% of layers) significantly improves the search quality and stability, especially for larger LLMs.

Summary by alphaXiv.

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