多令牌预测(MTP)模块和EAGLE风格草稿生成器通过复用目标模型的隐藏状态支持高效的推测解码。然而,它们的自回归使用引入了训练-推理不匹配问题:训练阶段提供来自主干网络或单个MTP步骤的隐藏状态序列,而推理阶段则关注目标模型前缀,随后是通过循环生成的MTP状态构成的增长尾部。EAGLE-3的训练时测试(TTT)在训练期间显式模拟此行为,但会以额外内存和专用注意力掩码为代价。我们提出两种仅训练的方法来改进自回归草稿生成:隐藏状态混合(HSM)在与同一预测目标对齐的主干网络和MTP隐藏状态中采样,使草稿生成器接触不同MTP步骤的状态混合,无需显式模拟推理;隐藏状态梯度分离(HSGD)是一种正则化方法,在保留前向计算的同时,随机阻断通过隐藏状态和嵌入路径的梯度。两种方法均不增加推理成本。在联合预训练后进行监督微调时,HSGD在草稿早期位置产生最高的接受率,而HSM在草稿后期表现最佳。这些接受率趋势表明,HSM适用于长草稿长度的服务,HSGD适用于短草稿长度的服务。此外,在四个Nemotron模型和DeepSeek-V4-Pro上,基于HSM的MTP增强(主干网络冻结)相比联合训练的MTP,平均接受长度提升最高达52.2%;对于EAGLE-3草稿生成器,HSM的接受率与TTT相当,在四步Qwen3-8B对比中,峰值预留训练内存降低48%。HSM的实现已在Megatron-LM和NVIDIA Model Optimizer中公开提供。
英文摘要:
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.
D3D: Decoupled Diffusion Drafting for Asynchronous Speculative Decoding
Shanghai Innovation Institute(上海创新研究院);Shanghai Academy of AI for Science(上海科学人工智能研究院);Fudan University(复旦大学);Nanjing University(南京大学);Huawei Technologies Co., Ltd.(华为技术有限公司)
EasySpec: Layer-Parallel Speculative Decoding for Efficient Multi-GPU Utilization
Intelligent Software Research Center, Institute of Software, CAS, Beijing, China(软件研究所智能软件研究中心,中国科学院,北京);University of Chinese Academy of Sciences, Beijing, China(中国科学院大学,北京)
Multi-Future Drafting: Mixture Block Drafters for Tree-Verified Speculative Decoding
National College for Excellent Engineers, Beihang University(北京航空航天大学卓越工程师学院);Canva Research(Canva 研究院);Communication University of China(中国传媒大学);School of Artificial Intelligence, Beihang University(北京航空航天大学人工智能学院)
Mistletoe: Stealthy Acceleration-Collapse Attacks on Speculative Decoding
Harbin Institute of Technology, Shenzhen(哈尔滨工业大学(深圳));South China University of Technology(华南理工大学);Tsinghua Shenzhen International Graduate School, Tsinghua University(清华大学深圳国际研究生院);Huawei Technology(华为技术)