Reproduce “AdaDecode: Accelerating LLM Decoding with Adaptive Layer Parallelism” 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

Zhepei Wei, Wei-Lin Chen, Xinyu Zhu, Yu Meng

University of Virginia researchers develop AdaDecode, an adaptive layer parallelism framework that accelerates LLM decoding by training lightweight language model heads at intermediate layers to make early token predictions with confidence thresholds, then parallelizing remaining computations while maintaining KV cache consistency through deferred processing and rejection sampling verification, achieving up to 1.73x speedup over standard autoregressive decoding across text summarization (XSum), code generation (HumanEval), and mathematical reasoning (GSM8K) tasks while guaranteeing nearly 100% output parity with vanilla decoding, with the method requiring only 48M additional parameters (vs. 0.5B+ for full drafter models) and demonstrating low rejection rates of ~6% at 0.85 confidence threshold, enabling plug-and-play acceleration of existing LLMs without architectural modifications or auxiliary models through a novel decomposed weight matrix design ($E^* T^{(i)}$) that minimizes parameter overhead while maximizing hardware utilization.

Key insights

  • Many tokens can be accurately predicted at intermediate layers with high confidence, eliminating need for full forward passes
  • Decomposing LM head weights as $E^* T^{(i)}$ achieves effective early prediction with minimal parameter overhead (48M vs 0.5B+ parameters)
  • Parallel processing of deferred KV cache computations maximizes hardware utilization without sacrificing output fidelity

Summary by alphaXiv.

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