PapersSelected

NVIDIA 提出训练时改进投机解码草案质量的新方法

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

Why we picked it

NVIDIA 把 EAGLE-3 那套 TTT 训练换成了更省显存的 HSM,接受率持平但训练峰值显存降 48%,还带 52.2% 的接受长度提升。已经用 Megatron-LM 或 Model Optimizer 的团队可以直接试,长草稿场景优先看 HSM。

一篇 NVIDIA 团队发表在 arXiv 的论文提出 Hidden State Mixing(HSM)和 Hidden State Gradient Detach(HSGD)两种仅在训练阶段使用的方法,改进 EAGLE 式草稿模型和 MTP 模块在投机解码中的表现。二者都不增加推理开销。HSM 的思路是在训练时让草稿模型接触来自 backbone 和不同 MTP 步骤、对齐到同一预测目标的混合 hidden states,无需像 EAGLE-3 的 training-time test(TTT)那样显式模拟推理时的递归状态序列。HSGD 则通过随机切断 hidden state 和 embedding 路径的梯度来正则化训练。

Body

实验结果显示两种方法各有侧重:HSGD 在草稿早期位置获得更高的接受率,HSM 在草稿较后位置表现更好,因此 HSM 适合长草稿长度的服务场景,HSGD 适合短草稿场景。在冻结 backbone 的 MTP 增强设定下,HSM 在四个 Nemotron 模型和 DeepSeek-V4-Pro 上将平均接受长度相对联合训练的 MTP 提升最高 52.2%。

与 EAGLE-3 的 TTT 对比,HSM 取得接近的接受率,但在四步 Qwen3-8B 的对比中峰值训练显存占用降低 48%。HSM 已在 Megatron-LM 和 NVIDIA Model Optimizer 中开源实现,做推理加速和投机解码训练的工程团队可以直接在现有流水线中复用。

Original · arXiv: DeepSeek

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

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.

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Papers" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include EAGLE-3, NVIDIA, Megatron-LM, Qwen3-8B.

Primary source verification: published directly by arXiv: DeepSeek with first-party authority.