# Performance-Driven Policy Optimization for Speculative Decoding with Adaptive Windowing

*Jie Jiang, xing sun, RuoTian Chen, Jianan Su, Kaixin Shen*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/150209) · [OpenReview](https://openreview.net/forum?id=jv3dCrUrFw) · [alphaXiv](https://www.alphaxiv.org/abs/2605.14978) · [Open on the map](../papers.html#p150209)

Category: [Efficient LLM Inference & Training](../pcat/14.md) › [Speculative Decoding Optimization](../pgroup/126.md) · Type: new method · Keywords: speculative decoding, reinforcement learning, window-level optimization, draft model, LLM inference

Areas: [RL for LLMs & Agents](../areas/llm-rl.md) › LLM Policy Optimization › RL Rollouts

## Summary
PPOW introduces a reinforcement learning framework that optimizes drafters at the window level with adaptive divergence-aware windowing, achieving higher acceptance lengths and speedups for speculative decoding.

## Explained to a 5-year-old
When a big computer talks, it makes up words quickly. A small helper tries to guess the next words. If the guess is wrong early, the whole guess is thrown away. This new idea teaches the helper to guess whole groups of words at once, using a game-like reward system. It helps the helper make longer correct guesses, so the big computer can answer faster and smoother.

## Explained to a 5-year-old, longer
A big computer can talk by making up words one after another. To make it faster, a small helper model guesses many words at the same time. The helper's guesses are checked by the big computer, and if they match, they are kept. Sometimes the helper makes a mistake early, and then the whole guess is thrown away. This wastes time because the big computer has to start guessing again. The new idea teaches the helper to think about groups of words instead of just single words. It uses a simple game where the helper gets points for good guesses and loses points for bad ones. The helper also learns to focus on parts where it is more confident. By learning these tricks, the helper can make longer correct guesses. This means the big computer can accept more words at once and finish faster. The result is that conversations feel quicker and smoother for users. Overall, the helper becomes smarter at predicting language, which saves time and energy.

## For a technical reader
The paper addresses the inefficiency of speculative decoding caused by early mismatches in lightweight draft models that truncate speculative windows. It proposes a reinforcement learning framework that optimizes the drafter at the window level rather than token by token, using a cost-aware speedup reward and a proximity reward based on distribution divergence. Adaptive windowing selects windows with high confidence-weighted divergence between draft and target models to prioritize informative proposals. Empirical evaluations across multiple model families show average acceptance lengths of 6-7 tokens and speedups of 3-4× compared to existing baselines. This shift to performance-driven, window-level optimization provides a practical recipe for improving speculative decoding efficiency in production LLM serving systems.

## Problem
Speculative decoding uses a lightweight draft model to propose token windows for verification by a larger target model, but hard-to-draft positions cause early mismatches that truncate the accepted prefix and waste the rest of the window, limiting efficiency. Existing drafters are trained with token-level objectives, which do not directly optimize the window-level utility that depends on the prefix.

## Method
The approach formulates drafter optimization as a reinforcement learning problem, using a cost-aware speedup reward and a distribution-based proximity reward to guide the policy. It also employs adaptive windowing that selects informative windows based on confidence-weighted divergence between draft and target models. This shift from token-level imitation to window-level optimization improves acceptance lengths.

## Results
The approach achieves average acceptance lengths of 6.29-6.52 and speedups of 3.39-4.36× across multiple model families and benchmarks under a unified decoding protocol.

## Contributions
It introduces a reinforcement learning framework for window-level drafter optimization, a cost-aware speedup reward, a distribution-based proximity reward, and adaptive divergence-aware windowing that selects high-impact speculative windows. This leads to substantially higher acceptance lengths and inference speedups for speculative decoding.

## Practical relevance
The improved speculative decoding can reduce latency for deploying large language models in production environments, making faster inference more accessible.

## Research questions this paper is counted under

- [How can we adapt loss weighting in draft model training to better match the verification process and improve speculative decoding efficiency?](../q/851.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/150209)
