Research
Verification-Aware Training for Speculative Decoding
Overview Research area: Natural Language Processing — efficient LLM inference, specifically speculative decoding and draft-model training objectives. Technical level: Intermediate. Readers need famili

- arXiv
- 2608.30135
- Published
- 2026-08-31
- Authors
- Geonmo Gu, Byeongho Heo, HeeJae Jun, Yoohoon Kang, Sangmin Lee, Sangdoo Yun, Dongyoon Han
AI summary
Overview
Research area: Natural Language Processing — efficient LLM inference, specifically speculative decoding and draft-model training objectives.
Technical level: Intermediate. Readers need familiarity with autoregressive generation, speculative decoding (drafting plus verification), cross-entropy training objectives, and knowledge distillation to follow the method; the paper itself presents the mathematics compactly but does not assume deep background beyond this.
Scope: The paper proposes Verification-Aware Training (VAT), a training-only plug-in that aligns a draft model's training objective with the sequential accept/reject behavior of the target model's verification step, and evaluates it on two speculative decoding methods across three target models.
What This Paper Is About
Speculative decoding speeds up LLM inference by having a small draft model propose several tokens that a larger target model then verifies in a single forward pass, but existing draft models are trained simply to imitate the target's outputs position by position. That training objective ignores two facts about verification: what actually determines speedup is how many consecutive draft tokens survive verification, and verification is sequential, so all tokens after the first rejection are discarded no matter how good they were. VAT closes this gap by simulating verification during training and turning the resulting accept/reject pattern into supervision.
Key Contributions
-
Verification-Aware Training (VAT), a plug-in framework that simulates target verification at every training step and uses the resulting accept/reject patterns as supervision. It modifies only the training objective, leaving the draft architecture, target model, and inference procedure unchanged.
-
A verification head, a lightweight single dense layer attached to the draft model's last hidden states and trained jointly with it as a binary classifier. It predicts the per-position acceptance label v_k (one only if every preceding position was accepted), with gradients flowing back through the draft to shape its representations toward features that determine agreement with the target.
-
Verification-adaptive weighting, which replaces the base method's fixed per-position schedule w_k with a sample-adaptive weight: full weight for all positions before the sample's first rejection point k*, then the base decay curve re-anchored to start at k* rather than at k=1.
-
A combined objective using both soft-label and hard-label cross-entropy with the adaptive weights, plus the verification-head loss scaled by β (set to 1.0 in all experiments), and a demonstration that the trained head can optionally guide early-exit drafting at inference.
Main Findings
-
Broad gains on two drafting paradigms. Applied to EAGLE-3 (autoregressive) and DFlash (block diffusion) on Qwen3-4B, Qwen3-8B, and LLaMA-3.1-8B, VAT improves average acceptance length by up to 11.4% and wall-clock speedup by up to 8.7%, with consistent gains across math, code, and chat benchmarks.
-
Concrete Qwen3-4B numbers. VAT raises EAGLE-3's speedup from 4.07x to 4.39x (+7.9%) and DFlash's from 4.54x to 4.81x (+5.9%), with average acceptance length rising from 6.28 to 6.78 (+8.0%) and from 5.73 to 6.08 (+6.1%) respectively.
-
Averaged over the eight benchmarks. EAGLE-3 + VAT improves τ by 8.0% on Qwen3-4B, 5.7% on Qwen3-8B, and 2.5% on LLaMA-3.1-8B; DFlash + VAT improves τ by 6.1%, 11.4%, and 3.8% on the same three models. Speedup gains average 7.9%, 5.0%, and 3.8% over EAGLE-3, and 5.9%, 8.7%, and 3.4% over DFlash.
-
Each component helps, and they compound. On DFlash with Qwen3-4B, τ rises from 5.73 to 5.87 with the verification head alone, to 5.91 with verification-adaptive weighting alone, and to 5.82 with soft + hard labels alone. The verification head paired with verification-adaptive weighting reaches 4.76x speedup, and all three factors together give the best τ (6.08) and speedup (4.81x).
-
The adaptation mechanism, not the base decay shape, drives the gain. Uniform weighting and the EAGLE-3-style predefined decay 0.8^(k-1) perform nearly identically (average τ of 5.72 and 5.73), while the DFlash-style decay exp(-(k-1)/γ) alone reaches 5.99. Under verification-adaptive weighting, both base schedules converge to nearly the same result: τ = 6.09 with the EAGLE-3-style base and τ = 6.08 with the DFlash-style base.
-
The verification head shifts the first rejection later during training. Tracking simulated verification across training steps, the first rejection position k* moves to later positions with the head attached, while the number of post-first-rejection tokens that still match the target stays stable rather than declining as it does in the baseline, even though those tokens begin at deeper positions on average.
-
The head can be used at inference for early exit. The head's predicted first-rejection position has a mean absolute error of only 1.18 tokens for EAGLE-3 (threshold p = 0.5) and 1.76 tokens for DFlash (p = 0.6) versus target verification. Early exit with the head recovers most of the oracle speedup — for example 4.83x to 4.97x on Code for DFlash, against an oracle of 5.20x — at the cost of a small τ drop (7.67 to 7.35 on DFlash Math) from occasional false rejections.
-
Gains hold at decoding temperature 1 as well, with consistent improvements in both τ and speedup across all three target models for both baselines.
Methodology in Plain English
The authors start from the observation that a draft model is normally trained to predict the target's next tokens at each of K draft positions, with a fixed weighting curve that discounts later positions identically for every sample. Neither part reflects what happens at inference, where verification proceeds left to right and a single rejection wipes out everything after it.
At each training step, VAT compares the draft's distribution with the target's distribution at every position and simulates the speculative-sampling acceptance rule, min(1, p_k(x) / p̂_k(x)). This produces an acceptance indicator m_k per position, a first rejection point k* (with the convention k* = K + 1 if everything is accepted), and an acceptance label v_k that is one only if all positions up to k were accepted.
Two things are done with those labels. First, a single dense layer on top of the draft's hidden states is trained with binary cross-entropy to predict v_k, so the draft's internal representations are pressured to encode whether a token will actually survive verification — a signal the plain imitation loss never provides. Second, the per-position loss weights are rewritten so that positions before k* get full weight and positions from k* onward follow the base method's decay curve shifted to start at k*. Because k* differs per sample, this schedule is sample-adaptive. The total loss combines reweighted soft-label and hard-label cross-entropy with the verification-head loss, weighted by β = 1.0.
Experiments use EAGLE-3 and DFlash as baselines, Qwen3-4B, Qwen3-8B, and LLaMA-3.1-8B as target models, and a training set built by pairing Perfectblend user prompts with responses generated by the target model, training each draft for 3 epochs. Evaluation covers math (GSM8K, MATH-500, AIME25), code (HumanEval, MBPP, LCB), and chat (MT-Bench, Alpaca), reporting acceptance length τ and speedup, measured on NVIDIA A100 80GB GPUs in bf16 with Hugging Face Transformers and up to 2048 generated tokens. DFlash-specific hyperparameters follow the original paper, e.g. γ = 7.
Why This Matters
Impact on research: The paper reframes draft-model training as a problem of matching the verification process rather than merely imitating the target's token distributions. Its main claim is that a training-only change — no architecture change, no target change, no inference change — recovers a meaningful fraction of speculative decoding performance, which makes it composable with future drafting architectures. It also sits alongside concurrent work (PARD-2 and D-PACE) that swaps fixed positional weighting for adaptive weighting, while distinguishing itself by conditioning on the observed first-rejection position and pairing that with a verification head.
Real-world applications:
- Low-latency LLM serving, where acceptance-length improvements translate directly into more tokens per verification cycle.
- Code assistants, where the paper reports some of the largest gains (for example, DFlash + VAT on Qwen3-4B raises HumanEval speedup from 4.58x to 4.89x and τ from 5.57 to 5.97).
- Chat and instruction-following deployments, where the paper reports consistent although smaller improvements (for example, EAGLE-3 + VAT on Qwen3-4B raises Alpaca speedup from 2.74x to 2.95x).
- Reasoning-heavy pipelines, where longer outputs such as chain-of-thought make per-token inference cost a larger share of total latency.
Industry relevance: Because VAT requires no change to serving infrastructure and the verification head is discarded at inference, adoption is essentially a retraining step for an existing draft model. The optional early-exit use of the head adds another serving-side lever: for DFlash, which drafts all 16 tokens in one parallel forward pass, the head sends only the predicted-accept prefix to the target.
Future Directions
- Scaling beyond 8B parameters. The paper states that its evaluation is limited to models up to 8B and names exploring scalability on significantly larger models as a promising future direction.
- Better calibration of the verification head. Early exit with the head loses some acceptance length through occasional false rejection predictions, suggesting head accuracy or thresholding could be improved.
- Portability to other speculative decoding methods. VAT is demonstrated on EAGLE-3 and DFlash; whether the same training signal transfers to other draft architectures and drafting paradigms remains open.
- Training-corpus effects. The paper appends results with a training set generated at temperature 1, leaving open how the training data distribution interacts with the verification-adaptive signal.
Target Audience
Researchers and engineers working on LLM inference acceleration, particularly those training or deploying draft models for speculative decoding. It is also relevant to practitioners who maintain production serving stacks and want a training-side improvement that requires no inference-time architectural change, and to students studying knowledge distillation and training-objective design for efficient generation. Readers unfamiliar with speculative sampling and acceptance rules will need to consult the referenced background work first.
Authors’ abstract
Speculative decoding accelerates large language model inference by using a draft model to generate candidate tokens, which are verified by the target model in a single forward pass. Verification proceeds sequentially and discards every position from the first rejection onward, yet existing draft training relies on token-level imitation of the target with a fixed per-position weighting that reflects neither property. We introduce Verification-Aware Training (VAT), a plug-in framework that simulates verification at every training step and turns the resulting accept and reject patterns into supervision. VAT consists of two components: (i) a verification head, a lightweight jointly trained binary classifier that supervises the draft model on whether each position survives sequential verification; (ii) verification-adaptive weighting, which replaces the fixed weighting schedule by keeping full weight up to each sample's first rejection point and re-anchoring the decay to start there. VAT modifies only the training objective, so it can be layered on top of existing methods without changing the draft architecture, the target model, or the inference procedure. Applied to EAGLE-3 and DFlash on Qwen3-4B, Qwen3-8B, and LLaMA-3.1-8B, VAT improves average acceptance length by up to 11.4% and wall-clock speedup by up to 8.7%, with consistent gains across math, code, and chat benchmarks. Code will be available at https://github.com/naver-ai/vat