跳到正文

SpecPilot 用自主智能体循环为推测解码发现算法与系统优化

SpecPilot: Autonomous Algorithm Discovery and Systems Optimization for Speculative Decoding

摘要

SpecPilot 是一个自主智能体循环,针对每种部署自动发现推测解码的算法与系统优化,每轮由成本模型定位当前系统与上限之间的最大差距,并行智能体探索方向并整合成功方案,同时用 token forcing 对照原始系统检查输出以检测 reward hacking。

摘要由模型根据原文撰写,以原文为准。

正文 · 原文

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.46times to 10.87times with one request, and from 1.94times to 3.93times with batching.


注意转载授权 · 阅读原文

来源:Hugging Face Daily Papers · huggingface.co

引用原文

Hugging Face Daily Papers. SpecPilot: Autonomous Algorithm Discovery and Systems Optimization for Speculative Decoding[EB/OL]. (2026-11-02)[访问日期]. https://huggingface.co/papers/2611.02501.