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 Zilberstein
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.
Create a lesson
Metadata
- Categories
- cs.LG, cs.CL
Related papers
The Gradient Difference Induced by Detaching the Denominator in QK Normalization
Shared title terminologycs.LGYuanqi Zhang, Haocheng Wang, Congping Lin
Draft Calibration for Speculative Decoding: Accelerating LLM Serving by Matching Draft and Target Distributions
Shared title terminologycs.LGYuxing Liu, Wei Zuo, Walid Krichene et al.
LEGOSpec: A Composable and Efficient Framework for Speculative Draft Design and Training
Shared title terminologycs.LGHanzhen Wang, Jiaming Xu, Guohao Dai
MolGPAO: Molecular Generative Pre-trained Autoregressive Octree with Speculative Decoding and Sub-Millisecond Seam Healing for 3D Molecules
Shared title terminologycs.LGShangqian Chen, Guojiang Zhao, Zheng Cheng et al.
Kolpona: An Agentic Framework with Gradient-Free Neuron Programming for RTL Generation
Shared title terminologycs.LGMusa Tur Farazi, Md Nasir Uddin, Soumik Bhattacharjee et al.
BReD: Block Replay Dithering for Stable Low-Bit EMA Optimizer States
Shared title terminologycs.LGHeshen Zhan, Youhan Huang, Yunke Peng et al.