Reproduce “Speculate with Memory: Lossless Acceleration for LLM Agents” 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
Yu Li, Qinyuan Ye, Prafulla Kumar Choubey, Jiaxin Zhang, Chien-Sheng Wu
Online, failure-aware memory improves speculative execution for LLM agents by helping a lightweight predictor anticipate future actions and observations during sequential tool interactions. Across six benchmarks, memory raised prediction accuracy by up to 2.5×, while live tests showed modest end-to-end speedups when environment delays were long enough to hide speculative computation.
Key insights
- Memory benefits the predictor rather than directly improving the task-solving actor, showing that agent memory can serve as a systems-level latency optimization.
- Miss-episode records are especially effective in repetitive environments: they provide explicit negative feedback and substantially improve observation prediction on ALFWorld and PDDL.
- Different environments favor different memory types; retrieved episodic context helps heterogeneous web tasks, whereas transition statistics and error tracking are more useful in structured workflows.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.