arXiv(opens in a new tab)cs.CLAug 2026Cited by 6 papers on PaperVantage

Manuscript Offprint

arXiv:2608.30135

Verification-Aware Training for Speculative Decoding

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

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.

1 Introduction

Large Language Models (LLMs) [8, 1, 34, 16, 29, 38] generate tokens autoregressively, requiring a full forward pass of the model for every generated token. As models scale to hundreds of billions of parameters and reasoning techniques such as chain-of-thought [35] further lengthen outputs, inference latency has become a critical bottleneck in practical deployment. Speculative decoding [23, 10] alleviates this bottleneck by splitting generation into two stages, drafting and verification. A lightweight draft model first proposes several candidate tokens at low cost, and the target model then verifies all candidates in a single forward pass. Verification proceeds sequentially from the first draft position under an acceptance rule that preserves the target distribution, and once a token is rejected, all subsequent candidates are discarded, and a new drafting round begins from the last accepted position. Because the accepted output follows the target distribution, speculative decoding achieves lossless acceleration and has become one of the most widely adopted inference acceleration techniques.

Recent advances have substantially pushed the frontier of speculative decoding. EAGLE [25] and its extensions [26, 27] reuse hidden states of the target model to improve draft quality, and EAGLE-3 further improves draft training by exposing the draft model to multi-step draft-generated contexts. More recently, DFlash [11] replaces autoregressive drafting with a block diffusion model [4] that generates all draft tokens in parallel. While differing in their drafting architectures, both directions train the draft model under the same paradigm of imitating the target model's outputs.

Despite these advances, the training of draft models remains misaligned with the verification process that ultimately determines speedup. Two properties of verification are central to this misalignment.

Preprint.

Figure

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 kk, yielding acceptance labels vkv_k. In this example, the first mismatch occurs at k∗=3k^* = 3, so all subsequent positions are labeled reject. The labels drive two components: (i) verification-adaptive weighting, which replaces the fixed schedule wkw_k with w^k\hat{w}_k by keeping full weight up to k∗k^* and re-anchoring the base decay to start at k∗k^*, and (ii) a lightweight verification head on top of the draft's hidden states, trained to predict per-position acceptance v^k\hat{v}_k. The final objective combines the reweighted cross-entropy losses with the verification head loss LVH\mathcal{L}_{\text{VH}}.

First, the speedup of speculative decoding is governed by how many draft tokens pass the target model's verification, namely the acceptance length. Second, verification proceeds sequentially, and once a rejection occurs at any position, all subsequent tokens are discarded regardless of their individual quality, so each draft token contributes to the acceptance length only when all of its preceding positions are accepted. Existing training objectives, however, reflect neither of these properties. The draft model is trained simply to imitate the target model's outputs as per-position labels, receiving no signal about whether its tokens would actually survive verification. Although per-position loss weighting has been adopted to emphasize earlier draft positions, the schedule is fixed in advance and shared across all samples, and thus cannot adapt to where the first rejection occurs in each sample. These observations suggest two principles for verification-aligned draft training. First, training should go beyond imitating target outputs and incorporate verification signals from the target model. Second, the per-position training signal should adapt to each sample's verification outcome, i.e., the position of its first rejection.

In this paper, we propose Verification-Aware Training (VAT), a simple yet effective plug-in framework that aligns draft training with the target's verification, as shown in Fig. 1. VAT simulates the target's verification at every training step and realizes the two principles above through two coordinated components. For the first principle, we propose a Verification Head, a lightweight classifier that predicts whether each draft token will be accepted by the target. At training, we simulate verification by comparing the draft and target predictions at each position, and train the head against the resulting accept/reject labels. Since the head is built on top of the draft's hidden states, this auxiliary objective backpropagates through the draft and shapes its representations toward features that determine agreement with the target. This auxiliary signal complements the standard token-level prediction by reflecting verification signals.

For the second principle, we introduce Verification-Adaptive Weighting, a per-position weighting scheme that adapts to each sample's verification pattern. As positions beyond the first rejection are discarded at inference, they should receive a reduced, though not eliminated, learning signal. To this end, we identify the first rejection point from the simulated verification and progressively decay the weights of subsequent positions, while keeping full weight on the positions that precede it. Since the rejection point varies across samples, the resulting schedule is sample-adaptive, unlike the fixed schedules of existing methods, and concentrates learning on the positions that determine acceptance length.

We evaluate VAT on two state-of-the-art methods spanning both drafting paradigms, the autoregressive EAGLE-3 and the diffusion-based DFlash, with three target models, Qwen3-4B, Qwen3-8B, and LLaMA-3.1-8B. Across math, code, and chat benchmarks [14, 28, 12, 5, 22, 40, 33], VAT consistently improves both average acceptance length and wall-clock speedup on every combination of baseline and target model, improving acceptance length by up to 11.4% and speedup by up to 8.7%. For instance, on Qwen3-4B, VAT raises the speedup of EAGLE-3 from 4.07× to 4.39× (+7.9%) and that of DFlash from 4.54× to 4.81× (+5.9%), with corresponding gains in average acceptance length from 6.28 to 6.78 (+8.0%) and from 5.73 to 6.08 (+6.1%). These consistent gains across target models and drafting paradigms indicate that verification-aware training yields benefits independent of the underlying drafting mechanism.

References (40)