NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Verification-Aware Training for Speculative Decoding

Geonmo Gu, Byeongho Heo, HeeJae Jun, Yoohoon Kang, Sangmin Lee, Sangdoo Yun, Dongyoon Han

TL;DR

Speculative decoding speeds up Large Language Model (LLM) inference by using a small draft model to propose tokens that a larger target model verifies. However, standard draft model training ignores the sequential nature of this verification process. Verification-Aware Training (VAT) bridges this gap by simulating the verification step during training, dynamically adjusting loss weights based on where the draft model first fails, and using an auxiliary "verification head" to boost wall-clock speedups by up to 8.7% with zero inference overhead.

What Problem Does This Paper Address?

Speculative decoding is a popular, lossless acceleration technique for LLMs. It works in two stages: a lightweight draft model quickly generates a sequence of candidate tokens, and a heavy target model evaluates them all in a single forward pass.

Crucially, verification happens sequentially. If the draft model proposes five tokens and the target model rejects the third one, all subsequent tokens (4 and 5) are discarded, regardless of whether they were actually correct.

Despite this "all-or-nothing after the first failure" rule, existing draft models are trained using standard token-level imitation (cross-entropy) with a fixed, sample-agnostic position weight. This means a draft model is penalized equally for a mistake on token 4, whether token 1 passed or failed. This creates a fundamental misalignment between how the draft model is trained and how it is actually utilized during inference.

Methods

The authors introduce Verification-Aware Training (VAT), a plug-in framework that alters only the training objective, leaving the inference architecture completely unchanged. VAT introduces two coordinated components:

  1. Verification-Adaptive Weighting: Instead of using a predetermined, fixed decay schedule for position losses, VAT simulates verification at every training step to find the exact position of the first rejected token ($k^*$). It maintains full loss weight for all tokens up to $k^*$ (where the model succeeded or narrowly failed) and only begins decaying the weight after $k^*$.
  2. Verification Head: A lightweight, single-dense-layer binary classifier attached to the draft model's final hidden states. It is trained to explicitly predict whether each token position will survive sequential verification ($v_k$).

The final training objective combines the reweighted soft/hard cross-entropy losses with the binary cross-entropy loss from the verification head.

Figure 1: Overview of Verification-Aware Training. At each training step, VAT simulates target verification by comparing the target and draft predictions at every position k, yielding acceptance labels vk. In this example, the first mismatch occurs at k∗= 3, so all subsequent positions are labeled reject. The labels drive two components: (i) verification-adaptive weighting, which replaces the fixed schedule wk with ˆwk by keeping full weight up to k∗and re-anchoring the base decay to start at k∗, and (ii) a lightweight verification head on top of the draft’s hidden states, trained to predict per-position acceptance ˆvk. The final objective combines the reweighted cross-entropy losses with the verification head loss LVH.

Additionally, while the verification head is designed as a training aid, it can optionally be used at inference time for early-exit drafting, truncating generation early if the head predicts a high probability of rejection, thereby saving further compute.

Datasets

  • Training Corpus: Created by pairing user prompts from the Perfectblend dataset with responses generated via greedy decoding from the respective target models.
  • Evaluation Benchmarks: The framework was thoroughly evaluated across three distinct task categories:
  • Math: GSM8K, MATH-500, and AIME25.
  • Code: HumanEval, MBPP, and LiveCodeBench (LCB).
  • Chat: MT-Bench and Alpaca.

Key Insights and Ideas

  • Focusing on Correctable Failures: Fixed decay schedules blindly discount later tokens. By dynamically re-anchoring the decay curve to the actual first rejection point ($k^*$), VAT concentrates the gradient precisely where the draft model's prefix contribution broke down.
  • Shaping Hidden Representations: Even though the verification head isn't required for standard inference, training it forces the draft model's hidden states to encode features directly relevant to target model alignment.
  • Improved Generalization: Tracking training dynamics revealed that adding the verification head helps the first rejection point shift consistently to later positions, meaning the draft model naturally learns to generate longer sequences of valid tokens.
Figure 2: Training dynamics with and without the verification head. We track two quantities under simulated verification, averaged over the batch at each training step. (a) The first rejection position k∗. With the verification head, k∗shifts to later positions, meaning that more consecutive draft tokens pass verification. (b) The number of post-first-rejection tokens that still match the target. The baseline gradually declines as training proceeds, while the verification-head variant remains stable, despite its post first-rejection region beginning at deeper positions on average. Curves are smoothed with a trailing moving average over a 200-step window, and the shaded thin line shows the raw per-step values.

Key Results

The authors tested VAT on top of two state-of-the-art drafting paradigms—the autoregressive EAGLE-3 and the diffusion-based DFlash—using Qwen3-4B, Qwen3-8B, and LLaMA-3.1-8B as target models.

  • Acceptance Length Gains: VAT improved the average acceptance length ($\tau$) across the board, yielding improvements of up to 11.4%.
  • Wall-Clock Speedups:
  • For Qwen3-4B, VAT pushed EAGLE-3's speedup from 4.07× to 4.39× (+7.9%) and DFlash's speedup from 4.54× to 4.81× (+5.9%).
  • Across all tested models, average wall-clock speedups improved consistently by up to 8.7%.
  • Inference Versatility: The gains remained robust across both greedy decoding (Temperature = 0) and stochastic sampling (Temperature = 1).

Limitations and Future Work

The primary limitation acknowledged by the authors is the scale of the models evaluated. Testing was restricted to target models up to 8B parameters. While the plug-in nature of VAT suggests it should generalize well, exploring its scalability and performance on significantly larger LLMs (e.g., 70B+ parameters) remains an open avenue for future research.

Summary updated

BibTeX
@inproceedings{gu2026verification,
  author = {Geonmo Gu and Byeongho Heo and HeeJae Jun and Yoohoon Kang and Sangmin Lee and Sangdoo Yun and Dongyoon Han},
  title = {{Verification-Aware Training for Speculative Decoding}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=qMv8q5WApK},
}
Figure