Reproduce “APEX: Speculate smarter, not deeper” 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
Manvi Jha, Zach Zhang, Zhichao Xu, Linbo Liu, Sai Muralidhar Jayanthi, Vinayak Arannil
APEX selects a speculative method for each request and adjusts draft depth between verification blocks using prefix features and verifier history, while accounting for execution cost. In a Qwen3-8B evaluation across six workloads, APEX-S achieved 4.27× wall-clock speedup and 55.30% wasted draft tokens, versus 4.22× and 79.90% for fixed n-gram speculation at depth 16. Results vary: fixed n-gram was faster and less wasteful on code generation.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.