Reproduce “LEGOSpec: A Composable and Efficient Framework for Speculative Draft Design and Training” 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

Hanzhen Wang, Jiaming Xu, Guohao Dai

LEGOSpec decomposes speculative-draft design into four swappable choices and tests selected changes under shared training conditions. DFlux combines sliding-window and dense attention with a correction step that scores candidate-predecessor relationships. On Qwen3-4B SWE-bench tests, its mean acceptance length is 4.08 versus 3.03 for DSpark, a reported 34.7% gain; this is acceptance, not speedup.

Summary by alphaXiv.

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