Speculative Decoding Where the First Token Is the Bottleneck: How DMTP Bridges MTP and Parallel Drafters
LLMs generate one token at a time, so every token requires a full forward pass and latency grows in proportion to output length. GPU compute also goes underused. Speculative decoding has a lightweight drafter propose K candidate tokens first, and then a large target model verifies them in parallel in a single forward pass. Verification proceeds left to right, stops at the first rejection, and discards every candidate after it. If the first candidate is rejected, zero drafts are accepted regardless of how accurate the later candidates are, and only a single correction token sampled from the residual distribution remains.
DMTP, the paper reviewed here, attacks this bottleneck with a structure in which “native MTP produces the first candidate and a parallel drafter continues the rest.” Across three targets — Qwen3.6-27B, Qwen3.6-35B-A3B, and Qwen3.8-Next-120B — DMTP beats DFlash/DFlash2. On Qwen3.6-27B Long-horizon it raises acceptance length by 35.64% over DFlash2, and on Qwen3.6-35B-A3B it improves 4-GPU serving throughput by 17.10%–23.75% over DFlash (Abstract, §1).
1. Why the First Token Dominates the Whole Block
In one round the drafter emits candidates T1…TK and the target verifies all K at once. Verification stops at the first rejection, the remaining candidates are thrown away, and one correction token is resampled from the residual distribution. If every candidate passes, the target emits one additional bonus token. Unless the run hits EOS or the output limit, the number of tokens a round adds is 1 + the number of accepted drafts.
The yield of the whole block is multiplied by the first token’s accuracy. The paper formalizes this with a tail-sum identity (§2.3).
$$ E[N] = \sum_{i=1}^{K} \Pr(N \ge i) \tag{1} $$N is the number of draft tokens accepted in one verification round, and Pr(N ≥ i) is the probability that the first i candidates are all approved. Since Pr(N ≥ i) is Pr(N ≥ 1) multiplied in turn by the conditional accuracies, the first-token acceptance rate c1 appears in every term. If the first token is rejected, N = 0 and the number of accepted drafts is 0. Conversely, if T1 is approved, the gains at later positions carry into the actual block yield.
Real serving speed therefore rests on two things: drafting has to be cheap, and the approved prefix has to be long. The paper measures acceptance length and end-to-end throughput separately (§2.3, §6).
Two Drafter Families and the Gap Between Them
Parallel block drafters (the DFlash family) produce K candidates in a single forward pass. Drafting itself is fast, but because they are trained on the limited data available for SFT, their first-token accuracy is weak and they generalize poorly to domains unseen in training (OOD) (§1, §2.2). Follow-up work such as Domino, DSpark, and DFlash2 improved intra-block dependencies and the accuracy decay at later positions, but treated first-token accuracy relatively lightly (§1).
Native MTP (Multi-Token Prediction) is an auxiliary prediction module trained at pretraining scale alongside the target model. It has high first-token accuracy and broad domain coverage. On the other hand, producing a whole block means running it step by step in sequence, so drafting latency grows in proportion to block length (§2.2).
The gap shows up in the numbers. The first-token acceptance rates measured independently on Qwen3.6-35B-A3B are as follows (§3.1 Figure 2, Appendix C.1 Table 12).
| Workload | DFlash | Native MTP | Gap |
|---|---|---|---|
| Code | 71.00% | 82.32% | +11.32%p |
| Math | 73.73% | 84.23% | +10.50%p |
| MT-Bench | 61.36% | 74.78% | +13.42%p |
| Agent | 79.53% | 90.17% | +10.64%p |
| SWE | 59.33% | 73.76% | +14.43%p |
| Long-horizon | 75.13% | 86.65% | +11.52%p |
The paper reports that native MTP leads on all six workloads, with a gap of 10.50–14.43%p. In this comparison DFlash is a model SFT-trained on a mix of 32K-context tasks, while native MTP is a module pretrained together with the target checkpoint.
So the question becomes: can “an accurate first token” and “cheap parallel continuation” be bound into a single framework? DMTP is the answer.
2. A Small Example: What Actually Happens in One Round
The paper’s default block size is K=7, but to show the flow let us shrink it to K=4. This is an explanatory example and differs from the paper’s experimental numbers.
Suppose the confirmed context is "The capital of France is" and the target must continue with " Paris, a city ...". The last token confirmed in the previous round (the anchor) is A = "is".
Existing DFlash. The drafter receives [is, MASK, MASK, MASK, MASK], the anchor followed by four placeholder tokens (MASK). A single forward pass predicts four candidates at once. But the last three are produced without knowing what T1 will actually be sampled as. If the first candidate comes out as "the" instead of "Paris", verification rejects T1 and the other three are discarded. All that remains is the one correction token the target newly picks.
DMTP. Split into two steps. First, native MTP takes the anchor "is" and the aligned target hidden state and produces the first candidate T1 = "Paris" along with its hidden state h_mtp. Then the drafter input becomes [is, Paris, MASK, MASK, MASK], and with "Paris" fixed, T2, T3, T4 are predicted in parallel. The drafter’s first prediction slot slides one over, from T1 to T2.
| Step | DFlash (existing) | DMTP (proposed) |
|---|---|---|
| Input | [is, MASK×4] | [is, Paris, MASK×3] (MTP prefills the first candidate) |
| State left behind | All four candidates undetermined | T1 = "Paris" fixed, h_mtp produced |
| Change / omission / rejection | If T1 is "the", all of T2~T4 are discarded | If T1 is "Paris" it passes and verification proceeds to T2~T4 |
| Output | 1 correction token | Paris + the following accepted prefix + correction/bonus token |
The key point is that the verification rule itself does not change. What DMTP changes is who produces the first candidate and how that candidate is placed into the drafter input. That is why it composes independently with optimizations on the DFlash or MTP side (§4).
3. Method: MTP Takes the First Token, DFlash Carries On
DMTP’s design boils down to three choices.
3.1 The First Token Is Proposed by Native MTP
DFlash predicts in parallel, so it fills every slot before T1 is sampled. The later tokens cannot be conditioned on a concrete first candidate, and with SFT data being limited, that T1 is precisely the bottleneck.
DMTP does not bolt on a separate sequential rollout here. It runs native MTP for exactly one step to get the first candidate T1. MTP’s first-step predictor was trained at pretraining scale, so DMTP inherits outright the “first-token guessing” a parallel drafter would otherwise have to relearn from little data. The sequential execution cost is capped at one step; from the second step onward, each step adds roughly 0.50–0.56ms of serial latency (§4.1, Appendix A.2).
The authors report that in a preliminary experiment, directly swapping the MTP layer for a DFlash-style parallel drafter lowered first-token accuracy and converged worse. So they keep “single-step initiation” and “parallel continuation” separate (§4.1). The h_mtp used here is the pre-logit hidden state already produced while predicting T1. It is not the result of feeding T1 back in and running MTP once more (§4.1).
3.2 Shift the Input One Slot to Create a Dual Anchor
Originally DFlash predicts T1…TK from a single anchor A. DMTP puts the MTP-produced T1 directly into the drafter input and shifts the prediction range by one slot.
With K=7, MTP proposes 1 and DFlash proposes 6. A and T1 act as two anchors (dual anchor) at the front of the block. From the verification standpoint the two differ: A is a token already fixed in the previous round, while T1 is a candidate the target verifies together with T2…TK (§4.2).
This one-slot shift does more than move a position.
- At training time: because of the positional decay weights, the front slot that received the highest weight now learns
T2instead ofT1, so the later tokens are learned more faithfully. - At inference time: each candidate is predicted on top of a prefix with “one more token fixed”, so the difficulty is lower. In terms of conditional accuracy, each
Tibecomes the easier (i−1)-step prediction (§3.2).
The important point is that this effect appears even when first-token accuracy is nearly identical. On Qwen3.7-Turbo, where native MTP leads DFlash by only 1–2%p on the first token, feeding T1 as input and shifting by one slot (Hidden+T1) increased acceptance length by 5.97%–9.90% over injecting the hidden state alone (Hidden-only) (§3.2 Figure 3, Appendix B.6 Table 7).
| Workload (Qwen3.7-Turbo) | DFlash | +MTP first | Hidden-only | Hidden+T1 | Shift gain |
|---|---|---|---|---|---|
| Code (128K) | 4.2951 | 4.4234 | 4.4612 | 4.7274 | +5.97% |
| Long-horizon (80K) | 3.7745 | 3.7638 | 3.8341 | 4.1998 | +9.54% |
| MT-Bench Think | 2.8207 | 2.9594 | 2.9893 | 3.2853 | +9.90% |
| MT-Bench Non-think | 2.7691 | 2.8948 | 2.9111 | 3.1711 | +8.93% |
Inserting only T1 from outside while leaving the drafter’s parallel prediction as it was gives a small gain on three tasks but is slightly negative on Long-horizon at −0.0107. Only by putting T1 into the drafter input and starting prediction at T2 do 0.26–0.37 more tokens survive on each workload.
3.3 Add MTP’s Hidden State as a Residual Only at the T1 Slot
The token ID T1 carries only the identity of a “discrete correct candidate.” The hidden state h_mtp that MTP produced while predicting T1, by contrast, holds a richer predictive context. DMTP mixes the two, but so as not to disturb the pretrained embeddings it adds the residual only to the T1 embedding.
E(·) is the shared token embedding table, sg(·) is stop-gradient, and W is a weight initialized to zero. Confining the residual to the T1 slot lets the later MASK slots read this information through self-attention without adding tokens. DFlash’s target-context KV projection interface is left as is. Starting W at zero lets training begin from the pure token embedding E(T1) and gradually absorb the MTP information early on (§4.3).
3.4 The Full Flow of One Round
Chaining the three steps into one round looks like this. ① is the minimal computation that is new, and ② and ③ are the same computation as before.
flowchart TD
A["Anchor token A<br/>(fixed in the previous round)"] --> MTP
H["Target hidden state"] --> MTP
MTP["① MTP step 1<br/>propose first candidate T1"] --> T1["T1 (first candidate)"]
MTP --> HM["h_mtp (MTP hidden state)"]
A --> DF["② DFlash parallel pass<br/>input: A, T1, MASK×6"]
T1 --> DF
HM -. "added as a residual only to the T1 embedding" .-> DF
DF --> TK["T2 ~ T7 (predicted at once)"]
T1 --> V["③ Target verification<br/>left → right"]
TK --> V
V -->|"accept up to the first rejection"| OUT["Accepted prefix + correction token"]
V -->|"everything after is discarded"| DROP["Discarded candidates"]
OUT -->|"update MTP state with confirmed tokens"| MTP
The diagram changes in two places. The input goes from [A, MASK×7] to [A, T1, MASK×6], so the candidates the drafter predicts drop from 7 (T1–T7) to 6 (T2–T7) and the fixed prefix grows by as much (②). h_mtp enters not as a separate token slot but only as a residual laid on the T1 embedding (dotted line). ③ verification and the “discard after first rejection” path are the same as before.
3.5 Keeping Serving Overhead Small
Even a good design loses its practical gain if the MTP step slows each round down substantially. In the SGLang engine the authors use four runtime optimizations to eliminate CPU-GPU synchronization and confine both drafters inside static CUDA Graphs (§4.4, Appendix A.1).
| Optimization | What it changes | Overhead it removes |
|---|---|---|
| Separate prediction from state update | Start every round from the cached h_mtp and advance MTP only after verification yields confirmed tokens | Per-step CPU length passing, packing, and repeated launches |
| Ephemeral FlashAttention-3 page table | Define DFlash’s 4,096-token anchor window and block mask as an ephemeral page table | Persistent KV cache rebuild and copy, and RoPE index changes |
| Dedicated MTP KV cache | Separate history, pending, and scratch via 8-slot on-device valid-row indexing | Variable-length memory layout conversion |
T1 preparation fusion | Fuse the LM-head projection, candidate recording, embedding lookup, and residual sum into a single CUDA Graph | The gaps between host graph launches and inter-step synchronization |
These optimizations lead to the small latency overhead seen in the results section below.
4. Results: Read Acceptance Length, Latency, and Throughput Separately
DMTP’s effect needs to be read at three levels. First, how many candidates survive on average offline (acceptance length); next, how much extra latency each round carries (kernel level); and finally, whether that turns into real serving throughput (system level).
4.1 Acceptance Length: The First Token and Everything After Rise Together
Acceptance length is “the average number of accepted tokens per verification round”, including the correction and bonus tokens the target newly supplies. Below is a comparison of the three approaches on Qwen3.6-35B-A3B (scratch training, K=7, target-only sampling) (§6.2, Table 1(a)).
| Drafter (Qwen3.6-35B-A3B) | Code | Math | Agent | SWE |
|---|---|---|---|---|
| Native MTP (4/1/5) | 3.4854 | 3.6054 | 4.1695 | 3.2618 |
| DFlash | 3.2159 | 3.4440 | 4.5266 | 2.8113 |
| DMTP | 3.8217 | 4.0500 | 5.0986 | 3.6053 |
The comparison question is whether “DMTP, which combines native MTP’s accurate first token with DFlash’s parallel continuation, is really better than using either one alone.” The answer reads three ways.
- On all 9 workloads DMTP leads DFlash by 10.68%–28.25%.
- It beats 4-step native MTP (4/1/5) on every task, including cases like Agent and Long-horizon where a 7-token parallel block reaches further than 4 sequential steps.
- Even where DFlash is already strong, as on Agent (4.5266), DMTP leads further (5.0986).
It also matters that the gain is not confined to T1. In closed-loop generation the first-token acceptance rate rises from 71.00% to 81.81% on Code, from 73.73% to 83.72% on Math, and from 59.33% to 71.79% on SWE, and that lead holds from T2 through T7. DMTP has the higher cumulative acceptance rate in all 42 entries (six workloads × seven positions) (§6.2 Figure 6, Appendix B.5 Table 6, C.1 Table 13).
At deep positions, however, the conditional acceptance rate can be similar to or slightly below DFlash’s. At T3 on MT-Bench, DFlash is 68.34% and DMTP is 67.78%. Cumulative acceptance is still consistently higher. The difference is a selection effect: because DMTP lets more prefixes pass the first and second tokens, prefixes that reach deep slots are on average harder (§6.2, Appendix B.5).
The gain also shows in the number of verification rounds: Code 523,201→434,780, Math 473,538→404,689, MT-Bench 54,479→41,259, Agent 22,213→17,371, and SWE 4,795→3,836, roughly 15%–24% fewer.
On Qwen3.8-Next-120B, instead of training from scratch they adapt the public DFlash2 checkpoint on 128K SFT data. Against a DFlash2 fine-tuned with the same update budget, acceptance length rises on all 9 workloads by 5.28%–16.76%, and it leads native MTP on 7 of the 9 (§6.5.4, Table 1(a)).
The claim that the shift alone pays off even when first-token accuracy is similar is worth confirming separately. The Qwen3.7-Turbo experiment in §3.2 (5.97%–9.90%) is the primary evidence. The secondary evidence is the case where DFlash2 CPT continually pretrained at K=8 matches or beats native MTP on the first token (five of six workloads). There too DMTP beats DFlash2 CPT at every slot from T2 to T8 (42/42 entries) (§6.5.4, Appendix D Table 17).
The gain is more pronounced in out-of-distribution domains. This experiment compares against DFlash2 under identical conditions on Qwen3.6-27B (OPB-regen, rejection sampling) without putting Agent trajectories or long-context data into the training data (§6.5.3).
| Workload (Qwen3.6-27B, OPB-regen) | DFlash2 | DMTP | Gain |
|---|---|---|---|
| Agent (unseen domain) | 3.8197 | 4.6871 | +22.71% |
| SWE (unseen domain) | 2.9273 | 3.9427 | +34.69% |
| Long-horizon (unseen domain) | 3.1929 | 4.3310 | +35.64% |
This difference comes from native MTP covering a broad range of domains through pretraining.
4.2 Latency Breakdown: DFlash Pass Time Is Unchanged, One MTP Step Is Added
Before looking at system-level gains, start with kernel-level cost. This profiles per-round latency with 4 GPUs (TP4), batch 8, and CUDA Graph (§4.4 Figure 5, Appendix A.2 Table 3).
| Stage (ms/round) | Code: DFlash | Code: DMTP | SWE: DFlash | SWE: DMTP |
|---|---|---|---|---|
| DFlash graph replay | 0.386 | 0.388 | 0.442 | 0.427 |
| Extra MTP graph replay | — | 0.214 | — | 0.283 |
Extra T1 head, embedding, fusion | — | 0.290 | — | 0.274 |
| Full round | 8.915 | 9.318 | 9.645 | 10.195 |
DFlash graph replay time barely moves (0.386→0.388, 0.442→0.427). What grows is only the one MTP decoder layer (0.214–0.283ms) and the full-vocabulary LM-head projection, embedding, and fusion for T1 (0.274–0.290ms). So full-round latency grows by only +0.403ms (+4.52%) on Code and +0.550ms (+5.70%) on SWE. The fact that the full-vocabulary LM-head accounts for about half of this added cost is taken up again in the limitations section.
4.3 Serving Throughput: The Longer Prefix Repays the Small Latency
For the 4.5–5.7% per-round latency increase to become a real gain, the longer acceptance length has to repay that cost. Below is end-to-end throughput measured on Qwen3.6-35B-A3B, 4 GPUs (TP4), in SGLang with an active batch limit of B=32 (64 identical requests per workload), including prefill, drafting, verification, and queueing, with target-only sampling.
| Workload (B32, TP4) | DFlash (tok/s) | DMTP (tok/s) | Improvement |
|---|---|---|---|
| Code | 5,527 | 6,564 | +18.77% |
| Math | 6,054 | 7,090 | +17.10% |
| Long-context Agent | 1,017 | 1,258 | +23.75% |
Throughput leads DFlash at B32 on all three workloads by 17.10%–23.75%, and is also higher than native MTP (4/1/5) by +12.97% on Code, +13.28% on Math, and +19.42% on Agent (§6.4 Figure 7, Appendix B.7 Table 8).
Sweeping the batch limit from 2 to 32, the gain holds across the whole range on Code and Math at +11.0%–22.7% over DFlash (§6.4, Appendix B.7). Agent behaves differently. Because its prompts are very long and its outputs short, in the small-batch regime (B≤4) prefill latency, short outputs, and scheduling overhead take a large share of total time, temporarily masking the acceptance-length gain. From B≥8 on, KV-heavy decoding verification occupies a large share of round time, so DMTP leads both DFlash and native MTP. The small kernel-level latency (+0.40–0.55ms) is offset as the batch grows, so the long accepted prefix turns into higher throughput.
5. Architecture Ablations: Why This Shape
5.1 Where Should the MTP Hidden State Go
Six interfaces were compared for how h_mtp combines with the T1 token ID. All six variants other than original DFlash are fixed to the single-anchor (T1) condition, and only the interface changes (§6.5.1 Figure 8a, Appendix C.2 Table 14).
| Interface | Code | Math | MT-Bench | vs. reference |
|---|---|---|---|---|
| Original DFlash | 3.3348 | 3.5858 | 2.8315 | — |
| Candidate-conditioned prediction, no MTP hidden (reference) | 3.7574 | 3.8652 | 3.3494 | baseline |
| MTP hidden residual at the T1 slot (DMTP) | 3.8492 | 3.8593 | 3.2782 | +2.44% |
| Residual spread across 6 MASK slots | 3.8318 | – | – | +1.98% |
| Token-hidden fusion (T1 slot) | 3.9480 | 3.9055 | 3.2105 | +5.07% |
| Target-MTP context fusion (6H → H) | 3.6954 | – | – | −1.65% |
| MTP context only | 3.5469 | 3.7272 | – | −5.60% |
Two things stand out. First, fusing h_mtp into the target context or replacing it actually makes things worse. MTP’s local next-token state cannot substitute for the multi-layer target KV features; it complements them. Second, the paper acknowledges that under scratch training with a single anchor, token-hidden fusion scored higher. DMTP still picks the residual because fusion overwrites E(T1) itself, losing the pretrained embedding, and fits poorly with the dual-anchor input. The residual preserves E(T1) while laying MTP information on top, and fits the dual anchor better (§6.5.1, §6.5.2).
5.2 Not One Anchor but Two
Single anchor (T1, MASK×6) was compared with dual anchor (A, T1, MASK×6) (§6.5.2 Figure 8b,c, Appendix C.2 Table 15).
| Workload | T1 residual: single (T1) | T1 residual: dual (A, T1) | Fusion: single (T1) | Fusion: dual (A, T1) |
|---|---|---|---|---|
| Code | 3.4072 | 3.5234 (+3.41%) | 3.5051 | 3.5082 (+0.1%) |
| Math | 3.6522 | 3.8095 (+4.31%) | 3.8126 | 3.6301 (−4.8%) |
| MT-Bench | 2.7921 | 2.8507 (+2.10%) | 2.8345 | 3.0591 (+7.9%) |
Under T1 residual injection, the dual anchor gives a consistent gain in all three domains. Token-hidden fusion, by contrast, is erratic from task to task. So “dual anchor + T1-only residual” becomes DMTP’s default design.
6. Limitations and When to Apply It
The limitations the authors state are as follows (§8).
First, the gain of the default recipe that freezes MTP depends partly on native MTP’s first-token advantage. That advantage varies with the target model’s pretraining coverage and domain alignment. In settings where a domain-specialized parallel drafter already matches or beats MTP on the first token, keeping MTP frozen limits the potential gain. As a remedy they propose joint training that fine-tunes MTP and the drafter together. On Terminal Bench, joint SFT raises first-token acceptance by +1.38%p (79.80%→81.18%) and acceptance length by +2.46% (4.3178→4.4239), reaching 4.4745 (+3.63%) with continued training. Cumulative acceptance rises at all eight slots from T1 to T8 (§5.3, §6.5.5 Figure 9, Appendix C.3 Table 16).
Second, the full-vocabulary LM-head projection for T1 accounts for about half of the added latency. The T1 projection, embedding, and fusion step is 0.27–0.29ms. Low-rank candidate pruning followed by exact rescoring (the EAGLE-4 approach) or quantizing the LM-head on the draft side are offered as remaining optimization room (Appendix A.2).
Third, training is offline, so there is off-policy mismatch. Frozen-MTP training puts the ground-truth token in the T1 slot, and joint LogTV training learns from collected trajectories, so both drift from the distribution at actual generation time (§8, §5.1).
Conditions not yet validated should also be separated out. Serving evaluation including sparse rejection sampling, sparse block verification, load-aware dynamic block size, and online/on-policy training remain future work. The engine supports sparse rejection sampling, but no end-to-end throughput profile including it is given (§8, Appendix A.3). For target models without native MTP, there is a comparison experiment showing that, given enough training data, both a single-step EAGLE-style predictor and DFlash reach first-token accuracy on par with native MTP (Appendix B.10 Table 11).
| Workload | Native MTP | EAGLE (single step) | DFlash |
|---|---|---|---|
| General | 74.78 | 72.69 | 75.69 |
| Reason | 75.72 | 76.31 | 75.91 |
| Agent | 86.40 | 85.06 | 86.58 |
| Long-horizon | 83.13 | 80.46 | 83.08 |
| SWE | 86.63 | 87.04 | 88.08 |
| Search | 80.30 | 80.41 | 82.83 |
But the latency, OOD generalization, and training cost of the EAGLE + DFlash configuration were not evaluated.
A reviewer’s perspective adds three points.
First, the per-verification-round acceptance length the authors use as their default metric tracks total verification count and throughput well, but on tasks with uneven output length it diverges from the per-request average (Appendix B.4 Table 5).
| Workload (B32, TP4) | Per request, DFlash → DMTP | Per round, DFlash → DMTP |
|---|---|---|
| Code | 3.227 → 3.814 (+18.19%) | 3.198 → 3.795 (+18.67%) |
| Math | 3.461 → 4.100 (+18.46%) | 3.429 → 4.056 (+18.29%) |
| Agent | 4.795 → 5.254 (+9.57%) | 4.249 → 4.709 (+10.83%) |
| Long-horizon | 4.356 → 5.022 (+15.29%) | 3.641 → 4.656 (+27.88%) |
When output length is even, as on Code and Math, the two metrics nearly agree; when it swings widely, as on Agent and Long-horizon, the gap widens. How to read the size of the improvement depends on which metric a deployment takes as its service objective.
Second, the serving improvement numbers are measured under SGLang, a CUDA Graph implementation, and TP4. It is hard to claim that the 4.5–5.7% overhead seen in the batch-8 profiling reproduces unchanged on other engines or hardware.
Third, the OOD generalization checks are limited to Qwen-family models and the setting of “domains excluded from training data.” There is an observation that the first-token gap itself varies by model family (Appendix B.6), but acceptance length and throughput generalization under a changed family were not evaluated.
7. Summary
DMTP is most attractive when running a target model that already has a native MTP head in a large-batch serving environment dominated by long outputs. The more the domain is out of distribution such that the first token becomes the bottleneck, and the larger the share decoding verification takes of round time, the bigger the gain. Conversely, in closed domains where a domain-specific drafter already matches or beats MTP on the first token, or in small-batch settings where prefill and scheduling overhead are large (B≤4 on Agent), the expected gain is small. The results suggest joint MTP–drafter fine-tuning (§5.3, §6.5.5) as a mitigation for the former and operating at a higher batch limit (§6.4, B≥8) for the latter.
Tables from the paper
Tables converted mechanically from the arXiv e-print LaTeX source. The numbers are the paper’s own and did not pass through a model.
Table 1. Main speculative decoding results across target models and evaluation settings. All entries report per-verify accepted length including the correction or bonus token (see the paper’s section for full details). Bold marks the best result within each block.
| Drafter | Code | Math | MT-Bench | Agent | SWE | Long-horizon | General | Reason | Search |
|---|---|---|---|---|---|---|---|---|---|
| Qwen3.6-35B-A3B (from scratch, target-only sampling) | |||||||||
| Native MTP | 3.4854 | 3.6054 | 3.0320 | 4.1695 | 3.2618 | 3.9074 | 3.1931 | 3.5239 | 3.0843 |
| DFlash | 3.2159 | 3.4440 | 2.7852 | 4.5266 | 2.8113 | 3.9424 | 2.6962 | 3.2907 | 2.6909 |
| DMTP | 3.8217 | 4.0500 | 3.2445 | 5.0986 | 3.6053 | 4.3635 | 3.2722 | 3.8761 | 3.2916 |
| Qwen3.6-27B (OPB-regen, thinking, from scratch, rejection sampling) | |||||||||
| Native MTP | 3.5697 | 3.6913 | 3.1467 | 4.1280 | 3.2583 | 3.7297 | 3.2227 | 3.5974 | 3.1624 |
| DFlash2 | 3.9621 | 4.2909 | 4.0044 | 3.8197 | 2.9273 | 3.1929 | 3.3412 | 4.1282 | 3.4653 |
| DMTP | 4.6022 | 4.8871 | 4.1826 | 4.6871 | 3.9427 | 4.3310 | 3.7736 | 4.7106 | 4.0437 |
| Qwen3.8-Next (from checkpoint, rejection sampling) | |||||||||
| Native MTP | 3.0136 | 3.0916 | 2.9210 | 3.7712 | 3.7817 | 3.5106 | 2.8158 | 2.9740 | 3.2090 |
| DFlash2 | 2.8793 | 2.9534 | 2.8380 | 3.8963 | 4.0989 | 3.5280 | 2.5339 | 2.7902 | 2.9158 |
| DMTP | 3.2858 | 3.3600 | 2.9879 | 4.2819 | 4.4628 | 4.0195 | 2.7944 | 3.2578 | 3.1454 |
Table 2. Summary of SGLang inference optimizations for DMTP. On-device metadata, fixed eight-slot update buffers, temporary FlashAttention-3 page tables, and combined CUDA Graphs keep the handoff between native MTP and DFlash lightweight.
| Component | Adaptation / optimization | Eliminated overhead |
|---|---|---|
| MTP advancement | Device-side fixed 8 slots, dedicated KV cache, graph replay | Per-step CPU length transfers, pack/expand, repeated launches |
| DFlash attention | Temporary FlashAttention-3 page tables for anchor window and block mask | Rebuilding or copying persistent KV caches across windows |
| $T_1$ preparation | Combined LM head $\to$ candidate write $\to$ embedding $\to$ fusion graph | Multiple host graph launches and inter-stage syncs |
| State commit | Valid-row indexing into history, pending, and scratch slots | Dynamic-length memory layout conversions |
Table 3. Measured per-round latency breakdown (ms/round) on four GPUs (TP4, batch size 8, CUDA Graphs). DFlash graph replay stays nearly unchanged on both workloads, while whole-round latency rises by $0.403\,\mathrm{ms}$ (+4.52%) on Code and $0.550\,\mathrm{ms}$ (+5.70%) on SWE.
| Stage (ms / round) | Code: DFlash | Code: DMTP | SWE: DFlash | SWE: DMTP |
|---|---|---|---|---|
| DFlash graph replay | 0.386 | 0.388 | 0.442 | 0.427 |
| Additional MTP graph replay | – | 0.214 | – | 0.283 |
| Additional $T_1$ head, embedding, and fusion | – | 0.290 | – | 0.274 |
| Whole round (incl. prep. and verification) | 8.915 | 9.318 | 9.645 | 10.195 |
Table 4. Summary of target models, draft configurations, training regimes, and evaluation protocols.
| Target model | Role / study | Draft backbone | $K$ | Verification / eval | Training regime |
|---|---|---|---|---|---|
| Qwen3.6-35B-A3B | Main long-context & TP4 serving | DFlash (5-layer) | 7 | Target-only; $T{=}1.0$; 128K in / 64K out (28K serving) | Scratch; $\sim$250K seqs (32K, Agent/Long-horizon) |
| Qwen3.6-27B | Public short-context (orig. OPB) | DFlash, DFlash2 (5-layer) | 7 | Target-only; $T{=}1.0$; non-think; 1K out | Scratch; OPB (2K pack, BS 128, 3 epochs) |
| Qwen3.6-27B | Long-context OOD & short think | DFlash2 | 7 | Exact RS; $T{=}1.0$; thinking; 128K/64K & 1K | Scratch; OPB-regen (3K limit, 3 epochs, no Agent) |
| Qwen3.7-Turbo | Progressive shift ablation (the paper’s section) | DFlash | 7 | Target-only; Code 128K, LH 80K, MT-Bench | Scratch; matched-training checkpoints (1–2 pp MTP $T_1$ gap) |
| Qwen3.8-Next | Checkpoint adaptation (the paper’s sections) | DFlash2 (open / CPT) | 7 / 8 | Exact RS; $T{=}1.0$; BS 32; 128K in / 64K out | From ckpt (frozen MTP); SFT ($K{=}7$) / adaptation ($K{=}8$) |
Table 5. Per-request versus per-verify accepted length on the B32 serving benchmark (Qwen3.6-35B-A3B, TP4, $K=7$). Both metrics include the correction or bonus token across 64 identical requests per workload. The two metrics agree closely on Code and Math, whereas on variable-length agentic tasks, per-verify aggregation more accurately tracks total verification work.
| Workload | Per-request accepted length DFlash | Per-request accepted length DMTP | Per-request accepted length Gain | Per-verify accepted length DFlash | Per-verify accepted length DMTP | Per-verify accepted length Gain |
|---|---|---|---|---|---|---|
| Code | 3.227 | 3.814 | +18.19% | 3.198 | 3.795 | +18.67% |
| Math | 3.461 | 4.100 | +18.46% | 3.429 | 4.056 | +18.29% |
| MT-Bench | 2.890 | 3.459 | +19.69% | 2.706 | 3.250 | +20.10% |
| Agent | 4.795 | 5.254 | +9.57% | 4.249 | 4.709 | +10.83% |
| SWE | 3.407 | 3.881 | +13.91% | 2.794 | 3.173 | +13.56% |
| Long-horizon | 4.356 | 5.022 | +15.29% | 3.641 | 4.656 | +27.88% |
Table 6. Conditional acceptance (%) by draft position on Qwen3.6-35B-A3B ($K=7$, target-only sampling). Each entry shows $c_i = \Pr(N \ge i \mid N \ge i-1)$ excluding correction/bonus tokens, and Rounds gives total verification steps across 64 requests.
| Workload | Method | Rounds | $T_1$ | $T_2$ | $T_3$ | $T_4$ | $T_5$ | $T_6$ | $T_7$ |
|---|---|---|---|---|---|---|---|---|---|
| Code | DFlash | 523,201 | 71.00 | 70.38 | 71.64 | 70.79 | 70.43 | 70.91 | 70.97 |
| DMTP | 434,780 | 81.81 | 76.83 | 74.34 | 73.43 | 73.00 | 73.02 | 71.76 | |
| Math | DFlash | 473,538 | 73.73 | 72.93 | 73.82 | 73.87 | 73.36 | 71.90 | 70.59 |
| DMTP | 404,689 | 83.72 | 78.84 | 76.25 | 76.36 | 75.64 | 74.54 | 72.62 | |
| MT-Bench | DFlash | 54,479 | 61.36 | 62.04 | 68.34 | 73.36 | 76.38 | 76.11 | 74.92 |
| DMTP | 41,259 | 73.72 | 66.90 | 67.78 | 73.03 | 76.24 | 76.77 | 74.74 | |
| Agent | DFlash | 22,213 | 79.53 | 81.84 | 84.00 | 85.87 | 87.05 | 86.81 | 84.74 |
| DMTP | 17,371 | 86.98 | 86.12 | 85.51 | 86.91 | 87.72 | 87.34 | 86.18 | |
| SWE | DFlash | 4,795 | 59.33 | 64.25 | 68.38 | 73.92 | 79.65 | 80.98 | 84.90 |
| DMTP | 3,836 | 71.79 | 72.59 | 74.64 | 79.69 | 84.44 | 85.06 | 82.20 | |
| Long-horizon | DFlash | 2,919 | 75.13 | 76.84 | 80.18 | 80.01 | 82.89 | 83.71 | 84.40 |
| DMTP | 2,798 | 80.56 | 80.66 | 79.98 | 83.22 | 85.04 | 86.10 | 85.78 |
Table 7. Progressive ablation isolating first-token replacement, hidden-state injection, and prefix shifting on Qwen3.7-Turbo. Per-verify accepted lengths include correction/bonus tokens. Hidden-only and Hidden+$T_1$ use checkpoints trained for the same number of updates. Adjacent deltas ($\Delta$) show the gain over the preceding column, while Shift gain compares Hidden+$T_1$ against Hidden-only.
| Workload | DFlash | +MTP first ($\Delta$) | Hidden-only ($\Delta$) | Hidden+$T_1$ ($\Delta$) | Shift gain |
|---|---|---|---|---|---|
| Code (128K) | 4.2951 | 4.4234 (+0.1283) | 4.4612 (+0.0378) | 4.7274 (+0.2662) | +5.97% |
| Long-horizon (80K) | 3.7745 | 3.7638 ($-$0.0107) | 3.8341 (+0.0703) | 4.1998 (+0.3657) | +9.54% |
| MT-Bench Think | 2.8207 | 2.9594 (+0.1387) | 2.9893 (+0.0299) | 3.2853 (+0.2960) | +9.90% |
| MT-Bench Non-think | 2.7691 | 2.8948 (+0.1257) | 2.9111 (+0.0163) | 3.1711 (+0.2600) | +8.93% |
Table 8. End-to-end serving sensitivity across active-batch limits on four GPUs (Qwen3.6-35B-A3B, TP4). $R$ is the number of requests per workload. Accepted length is per-verify (including correction/bonus tokens), and throughput is total output tokens divided by wall time (tok/s). Bold marks the better result between same-weight, same-runtime DFlash and DMTP. Native MTP (4/1/5) is shown alongside as a reference.
| Workload | $B$ | $R$ | Accepted length (per-verify) Native MTP | Accepted length (per-verify) DFlash | Accepted length (per-verify) DMTP | Throughput (tok/s) Native MTP | Throughput (tok/s) DFlash | Throughput (tok/s) DMTP |
|---|---|---|---|---|---|---|---|---|
| Code | 2 | 8 | 3.5310 | 3.2993 | 3.8560 | 919.21 | 871.55 | 1,022.39 |
| 4 | 8 | 3.5023 | 3.3380 | 3.9032 | 1,583.04 | 1,424.85 | 1,602.90 | |
| 8 | 8 | 3.5174 | 3.2234 | 3.9004 | 2,558.75 | 2,437.02 | 2,991.40 | |
| 16 | 64 | 3.4745 | 3.2203 | 3.7871 | 4,169.13 | 4,111.63 | 4,631.08 | |
| 32 | 64 | 3.4935 | 3.1979 | 3.7948 | 5,810.31 | 5,526.78 | 6,564.08 | |
| Math | 2 | 8 | 3.6230 | 3.5564 | 4.0549 | 900.13 | 936.84 | 1,069.78 |
| 4 | 8 | 3.6359 | 3.4702 | 4.0948 | 1,520.84 | 1,426.14 | 1,581.54 | |
| 8 | 8 | 3.6140 | 3.5117 | 4.0149 | 2,550.92 | 2,321.25 | 2,819.52 | |
| 16 | 64 | 3.5963 | 3.4516 | 4.0223 | 4,263.54 | 4,292.47 | 4,792.32 | |
| 32 | 64 | 3.6094 | 3.4291 | 4.0556 | 6,259.01 | 6,054.42 | 7,089.92 | |
| Agent | 2 | 8 | 4.1367 | 3.9950 | 4.9991 | 489.04 | 535.73 | 536.03 |
| 4 | 8 | 4.2345 | 4.4533 | 5.2686 | 487.92 | 567.68 | 564.22 | |
| 8 | 8 | 4.1914 | 4.1486 | 4.5646 | 688.96 | 562.09 | 812.00 | |
| 16 | 64 | 4.0647 | 4.4449 | 5.2731 | 1,104.64 | 1,085.04 | 1,313.86 | |
| 32 | 64 | 4.1587 | 4.2493 | 4.7088 | 1,053.81 | 1,016.94 | 1,258.44 |
Comments