Reproduce “Recurrent Drafter for Fast Speculative Decoding in Large Language Models” 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

Yunfei Cheng, Aonan Zhang, Xuanyu Zhang, Chong Wang, Yi Wang

Recurrent Drafter (ReDrafter) accelerates Large Language Model inference by integrating a lightweight recurrent neural network as a draft model, dynamic tree attention for efficient candidate verification, and knowledge distillation, achieving up to 2.8x speedup on Nvidia H100 GPUs and up to 2.3x on Apple Silicon.

Key insights

  • Leveraging a recurrent draft model with sequential dependencies enhances prediction accuracy, leading to higher LLM token acceptance rates.
  • Dynamic tree attention efficiently reduces computational overhead by eliminating redundant prefix verification across multiple candidate sequences.
  • Knowledge distillation effectively aligns the draft model's output with the LLM, boosting overall inference speedup and accepted tokens per step.

Summary by alphaXiv.

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