When to Speculate, When to Learn: Workload-Aware Control for Online Self-Evolving Speculative Decoding
He Liang, Jingbo Wen, Yue Yang
Online training can help a speculative decoding drafter adapt to serving traffic, but each update on a shared GPU consumes capacity that could serve current requests. Whether an update repays its cost depends on load, attainable draft acceptance, and how long the workload persists. We present a controller that jointly decides when to speculate, how much GPU time to allocate to training, and when to stop training under a latency target. It combines a load-dependent performance frontier with calibrated learning curves to map attainable acceptance to serving throughput and express both future gains and immediate training costs in output tokens. At light load, the controller uses spare capacity to train. Under contention, it forecasts net token gains over the estimated remaining workload duration, accounting for training-data availability and the time needed to complete an update. We implement the controller in vLLM and port it to SGLang. Across 81 runs with EAGLE-3 drafters, three workloads, and nine policies, the controller improves saturated throughput over static speculation by 18.0% on Qwen3-8B code, 87.7% on Qwen3-8B Chinese generation, and 8.0% on Qwen3-30B-A3B code. Its…