SpecPilot: Autonomous Algorithm Discovery and Systems Optimization for Speculative Decoding
Kunjun Li, Wenhao Chai, Yihao Liang, Yuezhou Hu, Shuyao Xu, Yi Pan, William X. Zheng, Kannan Ramchandran et al. · University of California, Berkeley
2 Nov 2026 · cs.LG · laptop / colab · code · efficiency & inference, agents & tool use, safety & security, evaluation & benchmarks
19 hf upvotes · 0 hn points, 0 comments · 152 stars · – citations
Speculative decoding accelerates memory-bound LLM decoding with a lightweight drafter, and parallel drafters extend this speedup by drafting a whole block in one forward pass. However, it remains unclear whether their released systems (stock) attain the full speedup that parallel drafting permits. We identify three challenges. First, with one request, each step accepts few tokens but reads every target weight. Second, with batching, per-request verification work roughly halves the speedup over autoregressive (AR) decoding. Third, speculative decoding is deployment-specific, and no universal optimization fits every serving regime, drafter, target model and GPU. To address these challenges, we present SpecPilot, an autonomous agentic loop that discovers algorithms and systems optimizations for each deployment. In each round, a cost model locates the largest gaps between the current system and its ceiling. Parallel agents explore directions and integrate the successful ones. Token forcing checks every output token against stock to detect reward hacking. A structured memory carries validated mechanisms to new rounds and deployments. SpecPilot discovered a general lossless 12-bit weight format, tree verification for hybrid recurrent targets, two-level verification and three batching mechanisms. We evaluate it across four target models, three drafters, two GPU platforms and five benchmarks. Without training or quality loss, it raises the speedup over AR from stock's 4.46$\times$ to 10.87$\times$ with one request, and from 1.94$\times$ to 3.93$\times$ with batching.
Compute: laptop / colab. Inference-only; Qwen3.5-4B DFlash2 on one GPU suffices; full loop used 530 GPU-hours.
Paper's setup: One H100 SXM5 or one RTX PRO 6000 Blackwell Server Edition per SGLang server, ~530 GPU-hours.
Potential
signals behind the hidden gems rankingemerging topic “speculative decoding”: 7 papers in 2 weeks vs 7 in the 18 days before · early traction: 6 upvotes/day in its first 3 days · from UCBerkeley, whose recent “Correction Training for Diffusion Models” drew 42 upvotes/points
Existing reproductions
0 likely reproductions · 3 repos mention it · 0 HF models · checked 05/11/2026
- StargazerX0/SpecPilot
SpecPilot: Autonomous Algorithm Discovery and Systems Optimization for Speculative Decoding
110★
official
Comments