Reproduce “Progressive Mixed-Precision Decoding for Efficient LLM Inference” 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

Hao Mark Chen, Fuwen Tan, Alexandros Kouris, Royson Lee, Hongxiang Fan, Stylianos I. Venieris

Researchers at Samsung AI Center and Imperial College London developed Progressive Mixed-Precision Decoding (PMPD), a method for Large Language Model (LLM) inference that dynamically adjusts precision across prefill and decoding phases and progressively within decoding. This approach achieved up to 8.0x throughput on LLM-optimized NPUs and 12.2x speedup on GPU linear layers, while maintaining or improving generation quality compared to uniform quantization baselines.

Key insights

  • The prefill phase, responsible for processing input prompts, is significantly more sensitive to quantization errors than the subsequent decoding phase.
  • Tokens generated earlier in the output sequence during decoding are more sensitive to approximation errors compared to later tokens, indicating a progressively increasing fault tolerance.
  • A higher-precision prefill phase yields a robust KV cache, which in turn enhances the generation capability of a lower-precision model during decoding.

Summary by alphaXiv.

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