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

Yaniv Galron, Rabeeh Karimi Mahabadi, Maor Ashkenazi, Roger Waleffe, Talor Abramovich +11 more
11/25/2026
cs.LGcs.CL

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{galron2026improving,
  title  = {Improving Tail-Augmented Speculative Drafting with Hidden State Mixing and Gradient Detach},
  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},
  year   = {2026},
  eprint = {2611.34092},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.34092v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.34092.svg)](https://codeofpaper.com/paper/2611.34092)

Discussion