Paper

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).

WorkloadDFlashNative MTPGap
Code71.00%82.32%+11.32%p
Math73.73%84.23%+10.50%p
MT-Bench61.36%74.78%+13.42%p
Agent79.53%90.17%+10.64%p
SWE59.33%73.76%+14.43%p
Long-horizon75.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.

StepDFlash (existing)DMTP (proposed)
Input[is, MASK×4][is, Paris, MASK×3] (MTP prefills the first candidate)
State left behindAll four candidates undeterminedT1 = "Paris" fixed, h_mtp produced
Change / omission / rejectionIf T1 is "the", all of T2~T4 are discardedIf T1 is "Paris" it passes and verification proceeds to T2~T4
Output1 correction tokenParis + 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.

$$ \text{DFlash: } (A,\mathrm{MASK}^{K}) \rightarrow T_1,\dots,T_K \tag{2} $$$$ \text{DMTP: } (A,T_1,\mathrm{MASK}^{K-1}) \rightarrow T_2,\dots,T_K \tag{3} $$

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 T2 instead of T1, 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 Ti becomes 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 firstHidden-onlyHidden+T1Shift gain
Code (128K)4.29514.42344.46124.7274+5.97%
Long-horizon (80K)3.77453.76383.83414.1998+9.54%
MT-Bench Think2.82072.95942.98933.2853+9.90%
MT-Bench Non-think2.76912.89482.91113.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.

$$ \Delta = W\,\mathrm{RMSNorm}(\mathrm{sg}(h_{\mathrm{mtp}})), \quad W|_{\mathrm{init}}=0 \tag{4} $$$$ Z = [E(A),\ E(T_1)+\Delta,\ E(\mathrm{MASK}),\dots] \tag{5} $$

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).

OptimizationWhat it changesOverhead it removes
Separate prediction from state updateStart every round from the cached h_mtp and advance MTP only after verification yields confirmed tokensPer-step CPU length passing, packing, and repeated launches
Ephemeral FlashAttention-3 page tableDefine DFlash’s 4,096-token anchor window and block mask as an ephemeral page tablePersistent KV cache rebuild and copy, and RoPE index changes
Dedicated MTP KV cacheSeparate history, pending, and scratch via 8-slot on-device valid-row indexingVariable-length memory layout conversion
T1 preparation fusionFuse the LM-head projection, candidate recording, embedding lookup, and residual sum into a single CUDA GraphThe 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)CodeMathAgentSWE
Native MTP (4/1/5)3.48543.60544.16953.2618
DFlash3.21593.44404.52662.8113
DMTP3.82174.05005.09863.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)DFlash2DMTPGain
Agent (unseen domain)3.81974.6871+22.71%
SWE (unseen domain)2.92733.9427+34.69%
Long-horizon (unseen domain)3.19294.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: DFlashCode: DMTPSWE: DFlashSWE: DMTP
DFlash graph replay0.3860.3880.4420.427
Extra MTP graph replay—0.214—0.283
Extra T1 head, embedding, fusion—0.290—0.274
Full round8.9159.3189.64510.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
Code5,5276,564+18.77%
Math6,0547,090+17.10%
Long-context Agent1,0171,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).

InterfaceCodeMathMT-Benchvs. reference
Original DFlash3.33483.58582.8315—
Candidate-conditioned prediction, no MTP hidden (reference)3.75743.86523.3494baseline
MTP hidden residual at the T1 slot (DMTP)3.84923.85933.2782+2.44%
Residual spread across 6 MASK slots3.8318––+1.98%
Token-hidden fusion (T1 slot)3.94803.90553.2105+5.07%
Target-MTP context fusion (6H → H)3.6954––−1.65%
MTP context only3.54693.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).

WorkloadT1 residual: single (T1)T1 residual: dual (A, T1)Fusion: single (T1)Fusion: dual (A, T1)
Code3.40723.5234 (+3.41%)3.50513.5082 (+0.1%)
Math3.65223.8095 (+4.31%)3.81263.6301 (−4.8%)
MT-Bench2.79212.8507 (+2.10%)2.83453.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).

WorkloadNative MTPEAGLE (single step)DFlash
General74.7872.6975.69
Reason75.7276.3175.91
Agent86.4085.0686.58
Long-horizon83.1380.4683.08
SWE86.6387.0488.08
Search80.3080.4182.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 → DMTPPer round, DFlash → DMTP
Code3.227 → 3.814 (+18.19%)3.198 → 3.795 (+18.67%)
Math3.461 → 4.100 (+18.46%)3.429 → 4.056 (+18.29%)
Agent4.795 → 5.254 (+9.57%)4.249 → 4.709 (+10.83%)
Long-horizon4.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.

DrafterCodeMathMT-BenchAgentSWELong-horizonGeneralReasonSearch
Qwen3.6-35B-A3B (from scratch, target-only sampling)
Native MTP3.48543.60543.03204.16953.26183.90743.19313.52393.0843
DFlash3.21593.44402.78524.52662.81133.94242.69623.29072.6909
DMTP3.82174.05003.24455.09863.60534.36353.27223.87613.2916
Qwen3.6-27B (OPB-regen, thinking, from scratch, rejection sampling)
Native MTP3.56973.69133.14674.12803.25833.72973.22273.59743.1624
DFlash23.96214.29094.00443.81972.92733.19293.34124.12823.4653
DMTP4.60224.88714.18264.68713.94274.33103.77364.71064.0437
Qwen3.8-Next (from checkpoint, rejection sampling)
Native MTP3.01363.09162.92103.77123.78173.51062.81582.97403.2090
DFlash22.87932.95342.83803.89634.09893.52802.53392.79022.9158
DMTP3.28583.36002.98794.28194.46284.01952.79443.25783.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.

ComponentAdaptation / optimizationEliminated overhead
MTP advancementDevice-side fixed 8 slots, dedicated KV cache, graph replayPer-step CPU length transfers, pack/expand, repeated launches
DFlash attentionTemporary FlashAttention-3 page tables for anchor window and block maskRebuilding or copying persistent KV caches across windows
$T_1$ preparationCombined LM head $\to$ candidate write $\to$ embedding $\to$ fusion graphMultiple host graph launches and inter-stage syncs
State commitValid-row indexing into history, pending, and scratch slotsDynamic-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: DFlashCode: DMTPSWE: DFlashSWE: DMTP
DFlash graph replay0.3860.3880.4420.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.9159.3189.64510.195

Table 4. Summary of target models, draft configurations, training regimes, and evaluation protocols.

Target modelRole / studyDraft backbone$K$Verification / evalTraining regime
Qwen3.6-35B-A3BMain long-context & TP4 servingDFlash (5-layer)7Target-only; $T{=}1.0$; 128K in / 64K out (28K serving)Scratch; $\sim$250K seqs (32K, Agent/Long-horizon)
Qwen3.6-27BPublic short-context (orig. OPB)DFlash, DFlash2 (5-layer)7Target-only; $T{=}1.0$; non-think; 1K outScratch; OPB (2K pack, BS 128, 3 epochs)
Qwen3.6-27BLong-context OOD & short thinkDFlash27Exact RS; $T{=}1.0$; thinking; 128K/64K & 1KScratch; OPB-regen (3K limit, 3 epochs, no Agent)
Qwen3.7-TurboProgressive shift ablation (the paper’s section)DFlash7Target-only; Code 128K, LH 80K, MT-BenchScratch; matched-training checkpoints (1–2 pp MTP $T_1$ gap)
Qwen3.8-NextCheckpoint adaptation (the paper’s sections)DFlash2 (open / CPT)7 / 8Exact RS; $T{=}1.0$; BS 32; 128K in / 64K outFrom 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.

WorkloadPer-request accepted length DFlashPer-request accepted length DMTPPer-request accepted length GainPer-verify accepted length DFlashPer-verify accepted length DMTPPer-verify accepted length Gain
Code3.2273.814+18.19%3.1983.795+18.67%
Math3.4614.100+18.46%3.4294.056+18.29%
MT-Bench2.8903.459+19.69%2.7063.250+20.10%
Agent4.7955.254+9.57%4.2494.709+10.83%
SWE3.4073.881+13.91%2.7943.173+13.56%
Long-horizon4.3565.022+15.29%3.6414.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.

WorkloadMethodRounds$T_1$$T_2$$T_3$$T_4$$T_5$$T_6$$T_7$
CodeDFlash523,20171.0070.3871.6470.7970.4370.9170.97
DMTP434,78081.8176.8374.3473.4373.0073.0271.76
MathDFlash473,53873.7372.9373.8273.8773.3671.9070.59
DMTP404,68983.7278.8476.2576.3675.6474.5472.62
MT-BenchDFlash54,47961.3662.0468.3473.3676.3876.1174.92
DMTP41,25973.7266.9067.7873.0376.2476.7774.74
AgentDFlash22,21379.5381.8484.0085.8787.0586.8184.74
DMTP17,37186.9886.1285.5186.9187.7287.3486.18
SWEDFlash4,79559.3364.2568.3873.9279.6580.9884.90
DMTP3,83671.7972.5974.6479.6984.4485.0682.20
Long-horizonDFlash2,91975.1376.8480.1880.0182.8983.7184.40
DMTP2,79880.5680.6679.9883.2285.0486.1085.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.

WorkloadDFlash+MTP first ($\Delta$)Hidden-only ($\Delta$)Hidden+$T_1$ ($\Delta$)Shift gain
Code (128K)4.29514.4234 (+0.1283)4.4612 (+0.0378)4.7274 (+0.2662)+5.97%
Long-horizon (80K)3.77453.7638 ($-$0.0107)3.8341 (+0.0703)4.1998 (+0.3657)+9.54%
MT-Bench Think2.82072.9594 (+0.1387)2.9893 (+0.0299)3.2853 (+0.2960)+9.90%
MT-Bench Non-think2.76912.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 MTPAccepted length (per-verify) DFlashAccepted length (per-verify) DMTPThroughput (tok/s) Native MTPThroughput (tok/s) DFlashThroughput (tok/s) DMTP
Code283.53103.29933.8560919.21871.551,022.39
483.50233.33803.90321,583.041,424.851,602.90
883.51743.22343.90042,558.752,437.022,991.40
16643.47453.22033.78714,169.134,111.634,631.08
32643.49353.19793.79485,810.315,526.786,564.08
Math283.62303.55644.0549900.13936.841,069.78
483.63593.47024.09481,520.841,426.141,581.54
883.61403.51174.01492,550.922,321.252,819.52
16643.59633.45164.02234,263.544,292.474,792.32
32643.60943.42914.05566,259.016,054.427,089.92
Agent284.13673.99504.9991489.04535.73536.03
484.23454.45335.2686487.92567.68564.22
884.19144.14864.5646688.96562.09812.00
16644.06474.44495.27311,104.641,085.041,313.86
32644.15874.24934.70881,053.811,016.941,258.44

License

Author: Jaehun Ryu

Link: https://jaehun.me/en/posts/paper-2611-37561/

License: CC BY 4.0

This work is licensed under the Creative Commons Attribution 4.0 International License. You are free to use it for any purpose, including commercial use, as long as you provide proper attribution.

Comments