AdaFlash: Adaptive Speculative Decoding via On-Policy Distilled Diffusion Drafters

Yu-Yang Qian, Hao-Cong Wu, Chen Chen, Jiacheng Sun, Zhenhua Dong, Peng Zhao, Zhi-Hua Zhou

TL;DR

Speculative decoding using non-autoregressive diffusion drafters enables parallel token generation but suffers from high variance in draft quality across different domains and token positions. To fix this, ADAFLASH introduces on-policy distillation to continuously adapt the drafter to live deployment distributions, paired with an adaptive length head that dynamically truncates low-quality draft sequences. This combination eliminates target model verification waste, delivering up to a 5.3× speedup over standard decoding and a 66% throughput improvement under high concurrency.

What Problem Does This Paper Address?

Large Language Models (LLMs) are incredibly capable but computationally expensive. To reduce inference latency, engineers use speculative decoding: a small, fast "draft" model guesses a sequence of tokens, and a large "target" model verifies them in parallel.

Recently, researchers have swapped out traditional autoregressive drafters for diffusion language models (dLLMs). Because diffusion models use bidirectional attention and mask-and-denoise mechanisms, they can generate an entire block of draft tokens in a single forward pass, drastically lowering drafting overhead.

However, the authors of this paper uncover a central pitfall: the "global dependency" that gives diffusion drafters their parallel power is a double-edged sword. It introduces high variance at two distinct levels:

  1. Domain-level variance: The acceptance rate of the drafter fluctuates wildly depending on the task domain (e.g., code vs. math vs. chat).
  2. Token-level variance: Within a single draft block, the probability of a token being accepted drops off sharply at later positions.

When a serving system uses a fixed draft length, it wastes massive amounts of target model compute verifying tokens that are highly likely to be rejected. This problem becomes catastrophic under high-concurrency workloads.

Figure 1: Illustration of the high variance issue in diffusion drafters. (a) Probability density of the acceptance rate across three task domains (chat, code, and math), showing substantial distributional differences. (b) Box plots of the acceptance length over five different datasets. (c) Per-token acceptance probability for two nearly identical prefixes differing by only one token; the acceptance lengths diverge drastically, revealing high token-level variance of diffusion drafters.

Methods

The authors introduce ADAFLASH, an online adaptive framework designed to mitigate these variance issues through two core components:

  1. On-Policy Distillation (OPD) with Reverse-KL: Instead of relying solely on offline training, ADAFLASH continuously updates the diffusion drafter on live deployment queries. It uses a specialized mixture loss combining a hard-label cross-entropy loss with a reverse-KL divergence objective. While standard forward-KL forces a model to cover all possible outputs, reverse-KL encourages the drafter to focus strictly on the target model's highest-probability modes. To prevent training instability from high-entropy diffusion outputs, they add an Entry-wise Divergence Clipping mechanism to bound outlier gradients.
  2. Adaptive Length Head: ADAFLASH appends a lightweight feature-aggregation head to the drafter. On the fly, it predicts the expected acceptance length of the current draft block and dynamically truncates the sequence before sending it to the target model, cutting down unnecessary verification costs.

To make online adaptation practical without blocking token generation, the authors decoupled the architecture into an asynchronous training-inference pipeline and modified the SGLang runtime engine to support variable-length request scheduling.

Datasets

ADAFLASH was evaluated across eight diverse benchmarks:

  • Math Reasoning: MathQA, GSM8K
  • Code Generation: OpenCodeInstruct, CodeAlpaca
  • General Dialogue: ShareGPT
  • Cross-Domain Robustness: Blend (a mixture of the above domains)
  • Long-Sequence Reasoning: MATH-500 and AIME25 (configured for up to 32,768 tokens with thinking mode enabled)

Key Insights and Ideas

  • Mode-Seeking vs. Mode-Covering: In speculative decoding, the drafter doesn't need to understand the entire probability distribution of the target model; it just needs to match its top choices. Choosing reverse-KL over standard forward-KL fundamentally changes the drafter's behavior to be "mode-seeking," directly translating to higher token acceptance rates.
  • The Concurrency Trap: Traditional speculative decoding methods often fall below standard autoregressive decoding speeds when handling many concurrent requests because fixed-length verification batches waste GPU memory. Dynamically shrinking the verification length based on predicted quality keeps the GPU packed with useful work.
  • Co-Adaptation: The adaptive length head isn't static; it continuously trains alongside the evolving drafter during deployment, ensuring its length predictions remain accurate as the drafter improves.

Key Results

  • Overall Acceleration: ADAFLASH achieves up to a 5.3× speedup over standard autoregressive decoding, consistently outperforming state-of-the-art speculative decoding frameworks like EAGLE-3 and DFlash.
  • High-Concurrency Resilience: At a concurrency level of 128 on a Qwen3-Coder-30B-A3B model, prior methods degrade significantly due to verification waste. ADAFLASH sustains acceleration, yielding up to 66% higher average throughput than the next-best state-of-the-art method.
  • Long-Sequence Performance: On complex, extended reasoning tasks (MATH-500 and AIME25), ADAFLASH maintains its edge, proving that online adaptation scales effectively to long-horizon generation.

Limitations and Future Work

The primary limitation highlighted is an engineering constraint within current serving frameworks. SGLang's current implementation for certain hybrid architectures (like the Gated DeltaNet used in Qwen3.5-9B) does not yet fully optimize variable-length verification scheduling. As a result, the adaptive length head introduces slight overhead on that specific model architecture under high concurrency. The authors note that they expect this gap to close as open-source serving infrastructure matures, and they plan to extend ADAFLASH to newer models like OpenPangu-2.0-Flash.

Summary updated

BibTeX
@inproceedings{qian2026adaflash,
  author = {Yu-Yang Qian and Hao-Cong Wu and Chen Chen and Jiacheng Sun and Zhenhua Dong and Peng Zhao and Zhi-Hua Zhou},
  title = {{AdaFlash: Adaptive Speculative Decoding via On-Policy Distilled Diffusion Drafters}},
  booktitle = {Efficient Reasoning @ COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=oRL5ePUnQt},
}
Figure