跳到正文
实时
Hugging Face Daily Papers·· 4 天前45

DMTP:通过 MTP 改进块起草的首个 token

DMTP: A Better First Token for Block Drafting via MTP

要点速览

DMTP 结合预训练 MTP 的首个 token 预测与 DFlash 的并行起草,通过保留发射的 token A 和首个候选 T1,并将归一化的 MTP 隐藏状态通过轻量级适配器传递,仅将其输出添加到 T1 的嵌入中,从而改进首个草稿 token。

正文

Speculative decoding is an important component of LLM inference infrastructure. DFlash demonstrates the potential of parallel candidate prediction, while DeepSeek has deployed DSpark in production and reported gains over MTP. Yet DFlash does not consistently outperform MTP on models with well-trained native MTP modules, such as GLM and Qwen, or on some conversation workloads. We focus on reusing MTP's first-token prediction capability.

Our evaluations and discussions with Domino author Jianuo Huang highlight complementary strengths: native MTP has higher first-token acceptance, particularly on workloads outside the training distribution, while DFlash generates a longer continuation in parallel. This motivates combining pretrained first-token prediction with parallel drafting.

Several approaches address the decline in acceptance at later positions within a DFlash-style block. We focus on a different question: can we improve the first draft token itself? Under prefix verification, rejecting that first candidate prevents the rest of the block from being committed. DMTP starts with a pretrained MTP prediction, then passes its hidden representation to DFlash for the continuation.

We introduce DMTP: pretrained MTP proposes the first candidate token in each drafting round (T1), and DFlash predicts the remaining six candidates (T2–T7) in parallel. Our main method uses two anchors and a zero-initialized residual: retain the emitted token A and first candidate T1, and pass the normalized MTP hidden state through a lightweight adapter whose output is added only to T1's embedding.

来源: Hugging Face Daily Papers · huggingface.co