Reproduce “ASPIRE: Asynchronous Batched Self-Speculative Decoding for Long-Context LLM Inference” 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

Amir Ziashahabi, Hossein Entezari Zarch, Lei Gao, Murali Annavaram, Salman Avestimehr

ASPIRE accelerates long-context batched LLM decoding by allowing individual requests to draft and verify different numbers of tokens within the same model execution. An online batch-aware scheduler and an intra-draft attention refresh mechanism deliver up to 4.58× speedup over autoregressive decoding, with average gains of 3.34×, 2.08×, and 2.14× on the evaluated Qwen3-1.7B, Qwen3-8B, and DeepSeek-R1-Distill-LLaMA-8B workloads, respectively.

Key insights

  • Speculation should be scheduled at the request and decoding-step level rather than synchronized across an entire batch, because effective draft lengths vary substantially over time.
  • Refreshing sparse context during drafting maintains prediction quality: in one fixed-length experiment, acceptance increased from 60.3% without refresh to 76.6% with refresh.
  • Exact full-attention verification preserves the target model’s decoding distribution in principle, while the reported output differences were limited to approximately 0.20 percentage points and attributed to numerical and batching nondeterminism.

Summary by alphaXiv.

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