Reproduce “Rethinking Residual Errors in Compensation-based LLM Quantization” 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

Shuaiting Li, Juncan Deng, Kedong Xu, Rongtao Deng, Hong Gu, Minghan Jiang, Haibin Shen, Kejie Huang

This work refines compensation-based post-training quantization for Large Language Models by introducing a "compensation-aware error" that accounts for discrepancies between compensated and original full-precision weights within a layer. The refined method consistently improves perplexity and zero-shot accuracy across various LLMs and Vision Transformers in low-bit settings, for example, reducing Llama2-7B C4 perplexity from 13.60 to 8.34 and increasing Llama3.1-8B-Instruct average accuracy from 70.3% to 72.3%.

Key insights

  • The calibration target in iterative compensation-based quantization should strictly refer to the original full-precision output, not partially compensated outputs, to prevent the accumulation of intrinsic errors.
  • A previously unaddressed component of residual error exists, dubbed the "Compensation-aware Error," arising from the intra-layer weight compensation process itself, which is crucial for accurate error modeling.
  • The newly identified compensation-aware error term is complementary to existing inter-layer error compensation, leading to more robust and accurate low-bit quantization for diverse model architectures.

Summary by alphaXiv.

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