TL;DR
Large Language Models (LLMs) are slow, so engineers often use a tiny "draft" model to guess several words ahead for the big model to verify in parallel—a trick called speculative decoding. The catch? Current draft models are trained word-by-word, meaning a single early typo ruins an entire streak of good guesses. This paper introduces PPOW, a reinforcement learning framework that trains draft models on entire windows of text and focuses on tough bottlenecks, pushing LLM inference speedups past $4\times$.
What Problem Does This Paper Address?
Generating text with a massive LLM is painfully sequential. Speculative decoding speeds this up without losing any quality: a lightweight "drafter" rapidly proposes a window of $K$ future tokens, and the massive "target" LLM checks all $K$ tokens simultaneously in a single forward pass.
Here is the rub: verification is strictly sequential from left to right. Imagine the drafter guesses five tokens. Even if tokens 2, 3, 4, and 5 are brilliant, if token 1 is rejected by the target model, the entire window is thrown out.
Despite this "all-or-nothing" prefix sensitivity at inference time, almost all modern drafters (like EAGLE or MEDUSA) are trained using standard, token-level supervised learning. Optimizing average next-token accuracy treats every position equally, failing to address the rare, "hard-to-draft" bottleneck positions that routinely chop speculative streaks short.
Methods
Instead of token-by-token imitation, the authors propose PPOW (Performance-Driven Policy Optimization with Adaptive Windowing), shifting drafter training to reinforcement learning (RL) over entire $K$-token windows. Starting from a standard supervised checkpoint (specifically, feature-based EAGLE-3 drafters), PPOW introduces three main innovations:
- Window-Level RL Optimization: Given a prompt prefix, the drafter samples a group of candidate $K$-token windows. Each window gets a single scalar score, normalized across the group to compute relative advantages (similar to GRPO/PPO), alongside a KL-divergence penalty to keep the drafter anchored to the target model.
- Performance-Driven Dual Rewards:
- Cost-Aware Speedup Reward: Rewards longer accepted prefixes ($k$) while accounting for the drafter's relative parameter cost ($\gamma$), formulated as $k / (k\gamma + 1)$.
- Distribution-Based Proximity Reward: If token 1 fails ($k=0$) simply because the drafter wrote
$ \frac{8}{9} $while the target preferred** 8 / 9 **, standard acceptance gives zero signal. This auxiliary reward checks if the cumulative log-probability of the drafted window under the target model is close to the target's greedy preference, awarding partial credit so learning doesn't stall.
- Adaptive Divergence-Aware Windowing (ADAW): Many text windows are trivial and already solved by the base drafter. ADAW prioritizes training on "high-criticality" windows by multiplying the draft–target KL divergence by the target model's confidence (measured via normalized Shannon entropy).
Datasets
For evaluation, the authors test across three standard benchmarks—no new datasets are introduced:
- MT-Bench (multi-turn open-ended dialogue)
- HumanEval (code generation)
- GSM8K (mathematical reasoning)
(Note: Specific training datasets used during RL optimization are deferred to the appendix, which is not included in the provided main text.)
Key Insights and Ideas
- More compute isn't enough; the objective is the bottleneck: When the authors took an EAGLE-3 checkpoint and ran Continued Supervised Training (CST) for 90k extra steps, performance flatlined. Applying PPOW for the exact same number of steps yielded steady, continuous climbs in accepted tokens. Token-level supervision simply hits a ceiling.
- Not all disagreements are worth fixing: In ablation studies, prioritizing windows based only on draft–target KL divergence actually performed worse than random uniform sampling (dropping GSM8K acceptance length from 6.35 to 5.92). Why? High divergence often happens in creative, high-entropy contexts where many words are valid. Weighting divergence by target confidence forces the drafter to focus on moments where the target model knows exactly what it wants, and the drafter is getting it wrong.
- Efficiency on a budget: Speculative decoding often uses tree-branching to verify multiple candidate drafts at once, eating up compute memory. Because PPOW drafts smarter windows, a candidate group size of just 4 with PPOW ($\tau = 6.33$) easily beats EAGLE-3 using a group size of 16 ($\tau = 6.12$).
Key Results
Evaluated across LLaMA-3 (8B, 70B) and Qwen3 (8B, 32B), PPOW consistently outperforms strong baselines like EAGLE-3 and GRIFFIN at both greedy ($\text{Temp}=0.0$) and stochastic ($\text{Temp}=1.0$) decoding:
- Achieves mean average acceptance lengths ($\tau$) of 6.29 to 6.52 tokens per step at $\text{Temp}=0.0$.
- Delivers end-to-end wall-clock speedups of $3.39\times$ to $4.36\times$ over standard autoregressive decoding.
- Gains are sharpest on structured tasks like coding and math: on LLaMA-3.1-8B HumanEval, PPOW boosts acceptance length from 6.63 (EAGLE-3) to 7.23 ($4.14\times$ speedup), and on LLaMA-3.3-70B GSM8K, speedup jumps from $4.02\times$ to $4.54\times$.
Limitations and Future Work
In the main text, the authors note that improvements on open-ended dialogue (MT-Bench) are noticeably more modest than on coding or math—for instance, on LLaMA-3.1-8B, PPOW slightly trails EAGLE-3 on MT-Bench ($2.72\times$ vs. $2.91\times$), likely due to the high diversity and uncertainty of valid conversational continuations. Explicit broader limitations and future work directions are placed in Appendix H, which is not included in the provided pages.
Summary updated