TL;DR
Large Language Models generate text one agonizing token at a time. Speculative decoding speeds this up by having a tiny model guess a block of future tokens at once, which the big model checks in parallel—unless the very first guess is wrong, in which case the whole block is thrown away. DMTP solves this "first-token bottleneck" by pairing a high-accuracy pre-trained predictor for token #1 with a fast parallel drafter for the rest of the block, boosting real-world serving speeds by up to 24%.
What Problem Does This Paper Address?
Generating text with an LLM is typically memory-bound and sequential: one massive forward pass per word. Speculative decoding breaks this bottleneck by letting a lightweight "draft" model propose $K$ candidate tokens, and letting the big target model verify all $K$ in a single parallel pass.
There is a catch: verification happens strictly left-to-right. If token #1 ($T_1$) is rejected, tokens $T_2$ through $T_K$ are instantly discarded, no matter how brilliant they were.
Currently, engineers face a trade-off between two drafting styles:
- Parallel Block Drafters (e.g., DFlash): Predict all $K$ tokens simultaneously in one pass. They are blazingly fast, but because they are fine-tuned on limited data, their $T_1$ accuracy is relatively weak—especially on out-of-distribution (OOD) tasks.
- Native Multi-Token Prediction (MTP): Auxiliary heads trained alongside the main LLM on massive pretraining datasets. They are phenomenal at predicting $T_1$ across diverse domains, but chaining them to predict multiple tokens brings back sequential latency.
Can we get MTP’s rock-solid first token and DFlash’s cheap parallel continuation without paying a latency penalty?
Methods
The authors introduce DMTP, a cooperative relay race between Native MTP and DFlash (or its successor, DFlash2) to draft a 7-token block:
- Single-Step MTP Initiation: Starting from the last confirmed token ($A$), Native MTP runs for just one step to sample $T_1$ and produce a predictive hidden state ($h_{\text{mtp}}$).
- Dual-Anchor Prefix Shift: Instead of asking DFlash to predict $T_1 \dots T_7$ from $[A, \text{MASK} \dots \text{MASK}]$, DMTP feeds both $A$ and the newly sampled $T_1$ into DFlash as dual anchors, shifting its parallel window to predict $T_2 \dots T_7$.
- Zero-Initialized $T_1$ Residual: To pass extra context beyond a discrete word ID, $h_{\text{mtp}}$ is normalized, projected via a zero-initialized weight matrix, and added only to $T_1$’s token embedding.
Because DMTP only alters the input embeddings fed into DFlash—leaving model backbones and KV-cache interfaces untouched—it can be trained from scratch, rapidly adapted from off-the-shelf DFlash checkpoints, or jointly fine-tuned using a distribution-overlap (LogTV) loss for specialized domains. Custom CUDA Graphs and page-table tricks in SGLang keep the handoff overhead under 0.55 milliseconds.
Datasets
- Training: Supervised fine-tuning (SFT) mixtures ranging from 32K to 128K context lengths (heavy on agentic/long-horizon trajectories), public OpenPerfectBlend (OPB) (math/code-heavy, original and regenerated splits), and collected Terminal Bench rollout traces.
- Evaluation: Public short-context suites (GSM8K, MATH500, HumanEval, MT-Bench, Alpaca) and nine long-context workloads up to 128K input tokens (Code, Math, MT-Bench, Agent, SWE, Long-horizon, General, Reason, and Search). No new public benchmarks are introduced, though Agent trajectories are deliberately held out in specific runs to test OOD generalization.
Key Insights and Ideas
- Prefix shifting helps even when $T_1$ accuracy is tied: In an ablation where MTP was barely better than DFlash at $T_1$ (+1–2%), explicitly feeding $T_1$ into DFlash still boosted accepted block length by 5.97%–9.90% over passing hidden states alone. Knowing $T_1$ concretely stops DFlash from averaging over competing futures, turning every downstream slot into an easier prediction problem.
- Surgical feature injection beats broadcasting: Adding MTP's hidden state only to the $T_1$ embedding outperforms broadcasting it across all mask tokens or fusing it into target KV features—preserving pre-trained representations while letting self-attention distribute the signal naturally.
- Pretraining rescues OOD drafting: Draft models fine-tuned on math and code usually stumble on chat or agentic tasks. Reusing pretrained MTP acts as an OOD shock absorber, giving the parallel drafter a reliable starting token on unseen domains.
Key Results
Evaluated across Qwen3.6-27B, Qwen3.6-35B-A3B, and Qwen3.8-Next-120B:
- Longer Accepted Prefixes: On Qwen3.6-35B-A3B, DMTP increases accepted length by 10.68%–28.25% over DFlash and beats 4-step sequential Native MTP across all nine workloads. On held-out long-context OOD suites (Qwen3.6-27B), it beats DFlash2 by up to 35.64%.
- Real-World Speedups: In 4-GPU SGLang serving (batch size 32), DMTP boosts end-to-end token throughput over DFlash by 18.77% on Code, 17.10% on Math, and 23.75% on Agent—while also outperforming 4-step Native MTP by 13%–19%.
- Fast Checkpoint Adaptation: Fine-tuning an existing 120B DFlash2 checkpoint into DMTP lifts accepted length by 5.28%–16.76% across all workloads with minimal updates.
Limitations and Future Work
- Frozen MTP Bottlenecks: If a drafter is heavily specialized on a narrow domain, it may already match a general-purpose frozen MTP head on $T_1$, requiring joint fine-tuning of both modules to unlock full gains.
- Vocabulary Projection Cost: Projecting $T_1$ across the full vocabulary accounts for roughly half of DMTP's ~0.5 ms overhead; low-rank shortlisting or quantized heads could trim this.
- Target Model Dependency: DMTP assumes the target LLM ships with a native MTP module. For models without one, the authors suggest pairing DFlash with a single-step EAGLE-style predictor, alongside exploring adaptive multi-step MTP scheduling and online RL training.
Summary updated