Improving Tail-Augmented Speculative Drafting with Hidden State Mixing and Gradient Detach

Yaniv Galron, Rabeeh Karimi Mahabadi, Maor Ashkenazi, Roger Waleffe, Talor Abramovich, Tiyasa Mitra, Yoav Miron, Dor Tsur, Sanjeev Satheesh, Jimmy Zhang, Jiaji Huang, Yonatan Geifman, Mostofa Patwary, Mohammad Shoeybi, Bita Rouhani, Ran ZilbersteinarXiv 2026

TL;DR

When large language models (LLMs) use lightweight built-in "drafters" to guess multiple future tokens at once, their accuracy typically nosedives after the first couple of guesses because training doesn't match the messy reality of live generation. Researchers at NVIDIA introduce two clever, zero-inference-cost training tricks—Hidden State Mixing (HSM) and Hidden State Gradient Detach (HSGD)—that prepare these drafters for their own compounding errors. The result is substantially longer accepted token streaks (up to 52% longer!) and nearly half the training memory overhead compared to existing simulation methods.

What Problem Does This Paper Address?

Generating text one token at a time is notoriously memory-bandwidth-bound: for every single word, you have to haul massive model weights from memory just to do a tiny bit of math. Speculative decoding fixes this by having a fast, lightweight "drafter" propose a sequence of future tokens, which the big target model verifies in one parallel swoop.

Modern models (like DeepSeek and Nemotron) increasingly use tail-augmented drafters—such as Multi-Token Prediction (MTP) modules or EAGLE—which attach a shallow decoder directly to the target model and reuse its internal representations (hidden states).

However, using these modules autoregressively creates a hidden state exposure mismatch. During standard training, each drafting step sees a clean, uniform sequence of hidden states coming from a single depth (either all from the target model, or all from step 1). During live inference, the drafter's KV cache starts with clean target-model states, followed by a growing "mixed-depth tail" of its own recursively generated, slightly noisy states.

During inference, the MTP KV cache accumulates a mixed-depth tail of recursively generated states, creating a growing mismatch compared to uniform training sequences.

As drafting continues, errors compound and token acceptance rates plummet. Existing fixes like EAGLE-3’s Training-Time Test (TTT) explicitly simulate this multi-step unrolling during training, but require specialized attention masks and massive amounts of GPU memory.

Methods

Instead of expensive inference simulations, the authors introduce two lightweight, training-only interventions:

  • Hidden State Mixing (HSM): Notice that a target-model hidden state at position $t-1$, an MTP step-1 state at $t-2$, and an MTP step-2 state at $t-3$ are all aligned—they are all trained to predict the exact same token $x_t$, just with different amounts of accumulated approximation noise. During training, HSM randomly samples from these aligned states across different steps to build the input sequence. This acts like structured noise injection, exposing the drafter to mixed-depth contexts for free.
  • Hidden State Gradient Detach (HSGD): In sequential MTP training, losses from later draft steps backpropagate through earlier steps and token embeddings. Because training uses ground-truth tokens (teacher forcing), early steps and embeddings can "co-adapt" to clean inputs that won't exist at inference time. HSGD leaves the forward pass untouched, but stochastically blocks (detaches) gradients flowing backward between recurrent MTP steps and into the shared token embeddings.

Datasets

  • Training: Co-training experiments used fixed 1T-token pretraining, long-context, and SFT mixtures. Frozen-backbone fine-tuning ("MTP boosting") and EAGLE-3 comparisons used prompts from Nemotron-Post-Training-Dataset-v2 (general-purpose) and Nemotron-RL-Super-Training-Blends (agentic), paired with on-policy responses generated by the target models.
  • Evaluation: Speculation quality was tested on SPEED-Bench (an existing unified speculative decoding benchmark aggregating 18 public datasets across 11 domains), using its Qualitative split for standard evaluation and Throughput splits (1k to 32k tokens) for long-context testing. No new benchmarks were introduced.

Key Insights and Ideas

  • Serving-Aware Drafter Training: HSM and HSGD shine at opposite ends of a draft! In co-training, HSGD yields the highest acceptance rates on the first 4 tokens, while HSM dominates on tokens 5 through 11. Why does this matter? High-concurrency (large batch) serving prefers short drafts to keep verification cheap (favoring HSGD), while low-concurrency (batch-size-one) serving wants long drafts to amortize weight reads (favoring HSM).
  • Parameter Sharing & Early Co-training Matter: Sharing weights across MTP steps (rather than using separate heads per position) prevents acceptance rates from collapsing when drafting beyond the trained step count. Furthermore, enabling MTP loss from step zero of pretraining—and letting it shape the backbone—yields much better target-drafter alignment than turning it on late or freezing the backbone.
  • On-Policy Distillation Wins: When "boosting" an existing MTP module on a frozen backbone, training on the backbone's own generated rollouts (on-policy) with logit distillation significantly outperforms using static dataset responses.

Key Results

(a) In co-training, HSGD boosts early draft positions while HSM preserves the tail. (b) Frozen-backbone MTP boosting with HSM substantially increases mean acceptance length across five major models.

(a) In co-training, HSGD boosts early draft positions while HSM preserves the tail. (b) Frozen-backbone MTP boosting with HSM substantially increases mean acceptance length across five major models.
  • Co-training (Pretraining + SFT): On a 30B-total/3B-active hybrid Mamba-Transformer MoE model at draft length 11, HSM increased mean acceptance length (AL) from 5.19 (shared-MTP baseline) to 5.57, without degrading downstream benchmark accuracy.
  • Frozen-Backbone MTP Boosting: Fine-tuning existing MTP modules with HSM improved mean AL across four Nemotron models and DeepSeek-V4-Pro. DeepSeek-V4-Pro saw the largest jump, improving AL by 51.5% (at $T=0$) and 52.2% (at $T=1$, rising from 2.66 to 4.05 tokens). Gains generalized cleanly up to 32k context lengths despite training on 8k contexts.
  • EAGLE-3 / TTT Comparison: Across five models (including Llama-3.1-8B and Qwen3 variants), HSM matched TTT's acceptance lengths within 2% (and beat TTT on Qwen3.5-122B-A10B) while cutting peak reserved GPU training memory by 48% at 4 steps (36.3 GiB vs. 70.3 GiB on Qwen3-8B) and 78% at 8 steps (43.9 GiB vs. 197.2 GiB).

Limitations and Future Work

  • No Silver Bullet Combination: Combining HSM + HSGD did not outperform HSM alone in mean acceptance length. Furthermore, HSGD provided no clear additional benefit over HSM in the frozen-backbone boosting setup—likely because freezing the backbone disables the token-embedding detachment pathway.
  • Dynamic Drafter Switching: Because HSGD excels at short drafts and HSM excels at long ones, the authors suggest training separate lightweight MTP modules for different points on the latency–throughput Pareto frontier. Future inference engines could dynamically hot-swap MTP weights on the fly depending on live server concurrency and target draft length.

Summary updated

Abstract

Multi-token prediction (MTP) modules and EAGLE-style drafters support efficient speculative decoding by reusing target-model hidden states. Their autoregressive use, however, introduces a training-inference mismatch: training supplies sequences of hidden states from the backbone or a single MTP step, whereas inference attends to a target-model prefix followed by a growing tail of recurrently generated MTP states. EAGLE-3's training-time test (TTT) explicitly simulates this behavior during training, at the cost of additional memory and specialized attention masks. We introduce two training-only methods for improving autoregressive drafting. Hidden State Mixing (HSM) samples among backbone and MTP hidden states aligned to the same prediction target, exposing the drafter to mixtures of states from different MTP steps without explicitly simulating inference. Hidden State Gradient Detach (HSGD) is a regularization method that stochastically blocks gradients through hidden state and embedding pathways while preserving the forward computation. Neither method adds inference cost. In joint pretraining followed by supervised fine-tuning, HSGD yields the highest acceptance rates at early draft positions, while HSM performs best later in the draft. These acceptance rate trends favor HSM for long-draft-length serving and HSGD for short-draft-length serving. Furthermore, across four Nemotron models and DeepSeek-V4-Pro, HSM-based MTP boosting with a frozen backbone improves mean acceptance length by up to 52.2% over the co-trained MTP. For EAGLE-3 drafters, HSM offers competitive acceptance with TTT, with 48% lower peak reserved training memory in a four-step Qwen3-8B comparison. HSM implementations are publicly available in Megatron-LM and NVIDIA Model Optimizer.
BibTeX
@misc{galron2026improving,
  author = {Yaniv Galron and Rabeeh Karimi Mahabadi and Maor Ashkenazi and Roger Waleffe and Talor Abramovich and Tiyasa Mitra and Yoav Miron and Dor Tsur and Sanjeev Satheesh and Jimmy Zhang and Jiaji Huang and Yonatan Geifman and Mostofa Patwary and Mohammad Shoeybi and Bita Rouhani and Ran Zilberstein},
  title = {{Improving Tail-Augmented Speculative Drafting with Hidden State Mixing and Gradient Detach}},
  year = {2026},
  eprint = {2611.34092},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.34092},
}
Figure