When to Speculate, When to Learn: Workload-Aware Control for Online Self-Evolving Speculative Decoding

He Liang, Jingbo Wen, Yue YangarXiv 2026

TL;DR

Speculative decoding speeds up LLM serving by letting a small "drafter" model guess tokens that the larger target model verifies in parallel—but when live traffic shifts to a new domain, the drafter's guesses miss. Training the drafter online on the same GPU fixes this, yet steals compute from active requests. This paper introduces a utility-aware controller that jointly decides when to speculate, how much GPU time to spend training, and when to stop, measuring both future speedups and immediate training costs in a single currency: served output tokens.

What Problem Does This Paper Address?

In speculative decoding, a small drafter proposes $k$ tokens per step, and the target model verifies them in parallel. When the drafter is well-aligned with the workload, serving throughput jumps. When traffic shifts (for example, from general chat to code or Chinese), acceptance drops.

Online adaptation can realign the drafter using feedback from live serving, but co-locating training on the serving GPU creates a coupled scheduling dilemma:

  1. Speculation isn't always faster: At high concurrency on dense models, verification overhead can make speculation slower than plain decoding.
  2. Training isn't free: Running a co-located trainer at duty cycle $d$ reduces serving throughput almost linearly, by roughly $d/2$.
  3. Not all drafters can be saved: Some domains hit a structural ceiling below the break-even point where speculation pays off.

Existing systems either tune speculation for a fixed drafter or trigger training whenever acceptance drifts, without asking whether an update will actually repay its GPU cost before the workload ends.

Trade-offs in joint scheduling

Methods

The authors build a 1 Hz utility-aware joint scheduler in vLLM (and port it to SGLang) paired with live feature export, a co-located trainer, and hot-swappable drafters.

  • Load-dependent performance frontier: For each target model and domain, the controller fits a linear model mapping drafter acceptance length and concurrency $C$ to the throughput ratio of speculative over plain decoding. At current acceptance, this drives mode switching (with temporal hysteresis to prevent flapping). At attainable acceptance, it estimates how much throughput training could unlock.
  • Opportunity-cost-aware training allocation: At light load (within the latency target and below 95% of the batch limit), the controller uses spare latency slack to train. Under contention, it combines calibrated domain learning curves with the performance frontier to project the net token gain over an estimated workload horizon—weighing future throughput gains against immediate training interference and update completion time (accounting for both GPU duty cycle and training-data arrival rate).
  • Feedback-driven termination: Updated drafters are hot-swapped into serving at doubling intervals (after 100, 200, 400, ... requests). If a swap yields less than a 0.02 improvement in acceptance, training stops for that regime.
Figure 2: Utility-aware joint scheduling of inference and online drafter adaptation on a shared GPU. (a) A load-dependent throughput frontier maps current and attainable acceptance to projected returns, while (b) the scheduler combines these incremental returns with immediate interference costs and completion time to allocate training. (c) Updated drafters are hot-swapped back into serving, closing the feedback loop.

Datasets

  • Live serving workloads: Three-phase runs (200 chat requests → 16,000 saturated requests in a new domain → 200 chat requests) on Qwen3-8B (dense) and Qwen3-30B-A3B (MoE) with EAGLE-3 drafters ($k=3$), covering code and Chinese generation, plus 50/50 mixtures of code + chat and Chinese + chat. (Calibration also profiles SQL and function-calling.)
  • Unseen-traffic simulation: 35 trace windows from BurstGPT and Azure 2023 traces, alongside 60 random domain bursts, 40 Chinese regimes, and 20 surge scenarios.

Key Insights and Ideas

  • Higher acceptance does not guarantee higher throughput: On Qwen3-8B with short outputs, speculation is 59% faster than plain decoding at concurrency 1, but 14% slower at concurrency 256. On the MoE target, however, speculation remains 50% faster at concurrency 256 because a speculative step costs only $1.36\times$ a plain step (vs. $2.20\times$ on dense 8B).
  • Sometimes the best move is to stop speculating: On Chinese traffic, Qwen3-8B's drafter stalls at an acceptance length of 1.45 (only 42.6% of target tokens are in its 32k vocabulary), well below the 2.28 break-even point. Turning speculation off beats any amount of training.
  • Continuous training can erase its own gains: Training at a 0.5 duty cycle costs 22–29% of serving throughput. Knowing when to stop is just as important as knowing when to start.

Key Results

  • End-to-end serving (81 runs, 3 scenarios, 9 policies): The full controller improves saturated throughput over static speculation by +18.0% on 8B code, +87.7% on 8B Chinese, and +8.0% on MoE code. It is the only policy within 4.7% of the best evaluated policy in every scenario (including an oracle-like informed schedule).
  • Training efficiency: On 8B code, payback-based allocation cuts the mean training duty cycle from 0.16 to 0.067 while maintaining competitive throughput.
  • Cross-engine port (SGLang): The controller makes the same decisions as on vLLM and stays within 0.7% of the best policy that keeps a drafter loaded, though SGLang's speculation-off state is 15% slower than plain decoding.
  • Simulation: Across 35 unseen trace windows, a one-step goodput variant stays within 0.6% of the best simple policy in every window.

Limitations and Future Work

The controller relies on operator-provided domain labels and per-domain calibration; it does not initiate training without calibration and was not tested on continuously drifting workload mixtures. Even when the controller disables speculation, keeping an idle drafter loaded in GPU memory incurs a 3.1–4.4% overhead in vLLM (and 15% in SGLang). Finally, the live evaluation is limited to two serving engines, H100 GPUs, greedy decoding without prefix caching, and EAGLE-3 drafters ($k=3$).

Summary updated

BibTeX
@misc{liang2026when,
  author = {He Liang and Jingbo Wen and Yue Yang},
  title = {{When to Speculate, When to Learn: Workload-Aware Control for Online Self-Evolving Speculative Decoding}},
  year = {2026},
  eprint = {2612.00081},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2612.00081},
}
Figure