Multi-token prediction (MTP) accelerates autoregressive decoding through block-wise prediction, but remains vulnerable to error accumulation across sequentially generated blocks. To investigate this limitation, we analyze the distinction between block-wise and sequence-level cumulative information loss (CIL). Specifically, when the model generates using its own previous outputs without access to reference answers, the input-conditional gap equals the cross-block dependence of the reference targets. To improve prediction when these generated prefixes are imperfect, we propose Dual-MTP, which supervises shared prediction heads under full and randomly masked contexts. Together, complete-prefix supervision and context perturbations provide complementary training signals while retaining the MTP architecture. To characterize this training objective, we use the normalized dual loss to bound the divergence between the model's predictive distributions under full and masked contexts. Experiments across five backbones and six tasks spanning mathematical reasoning and GLUE understanding show that Dual-MTP achieves the highest average task score on four of five backbones, with gains of up to 2.46 points over MTP. On mathematical reasoning tasks, Dual-MTP also achieves 1.4 to 1.9 times the decoding throughput of the NTP reference. Together, these results show that dual-context supervision can improve prediction accuracy while retaining efficient multi-token decoding.
Figures & tables
Figure 1: Cumulative error in block-wise multi-token prediction. Left: Example of snowball error, where early block-level mistakes propagate and amplify across subsequent predictions. Right: Visualization of the empirical cumulative predictive-entropy proxy across different models.
Figure 2: Overview of NTP, MTP, and Dual-MTP. Left: NTP predicts one next token. Middle: MTP predicts a token block via multiple heads on a shared backbone. Right: Dual-MTP uses full and masked training views that share the backbone and prediction heads.
Model
Setting
Math500
GSM8K
CoLA
MRPC
RTE
WNLI
Avg. ↑
Llama-3.2-1B -Instruct
Base
13.47 ± 1.36
30.78 ± 2.29
78.88 ± 1.65
77.21 ± 3.19
66.43 ± 4.72
55.40 ± 5.86
53.69
MTP
14.40 ± 0.35
31.51 ± 1.75
79.51 ± 1.69
79.98 ± 2.06
68.59 ± 4.38
53.52 ± 8.80
54.59
Medusa
12.27 ± 1.67
29.52 ± 0.90
79.39 ± 0.63
77.94 ± 0.65
72.44 ± 0.91
56.81 ± 6.95
54.73
Dual-MTP
14.07 ± 2.54
32.35 ± 1.26
79.23 ± 1.27
80.56 ± 2.87
71.60 ± 1.50
53.05 ± 9.06
55.14
Qwen2.5-1.5B -Instruct
Base
20.16 ± 0.87
43.54 ± 1.30
81.66 ± 0.58
82.35 ± 1.85
79.06 ± 1.30
55.87 ± 4.95
60.44
MTP
20.80 ± 1.64
47.64 ± 1.54
82.42 ± 0.29
83.33 ± 0.98
79.78 ± 1.30
55.40 ± 5.33
61.56
Table 1: Main results on task performance. All results are reported as mean (%) ± std. Avg. is the arithmetic mean over six tasks; SD is over repeated decoding runs.
Model
Task
Base
MTP
Medusa
Dual-MTP
Speedup
Acc.
tok/s
Acc.
tok/s
Acc.
tok/s
Acc.
tok/s
Base
MTP
Medusa
Dual-MTP
Llama-3.2-1B
MATH500
13.47 ± 1.36
34.5 ± 1.0
14.40 ± 0.35
48.3 ± 1.5
12.27 ± 1.67
59.1 ± 0.6
14.07 ± 2.54
49.3 ± 0.6
1.0 ×
1.4 ×
1.7 ×
1.4 ×
GSM8K
30.78 ± 2.29
35.9 ± 0.4
31.51 ± 1.75
53.2 ± 3.3
29.52 ± 0.90
60.3 ± 1.1
32.35 ± 1.26
55.4 ± 2.8
1.0 ×
1.5 ×
1.7 ×
1.5 ×
Qwen2.5-1.5B
MATH500
20.16 ± 0.87
20.8 ± 0.7
20.80 ± 1.64
30.2 ± 1.5
16.87 ± 1.63
34.8 ± 1.9
20.40 ± 0.87
31.3 ± 2.3
1.0 ×
1.5 ×
1.7 ×
1.5 ×
GSM8K
43.54 ± 1.30
20.7 ± 0.3
47.64 ± 1.54
33.9 ± 1.5
42.99 ± 0.57
38.3 ± 1.9
48.72 ± 1.38
33.4 ± 1.6
1.0 ×
1.6 ×
1.9 ×
1.6 ×
DeepSeek-R1- Distill-Qwen-7B
MATH500
26.87 ± 0.61
19.8 ± 0.2
39.27 ± 0.66
31.6 ± 1.0
35.13 ± 1.45
37.4 ± 1.5
37.93 ± 0.90
33.1 ± 0.5
1.0 ×
1.6 ×
1.9 ×
1.7 ×
Table 2: Decoding throughput and end-task accuracy. Acc. is final-answer accuracy (%); tok/s and speedup retain the original timing protocol. Values are mean ± SD; speedup is relative to Base (NTP). Bold marks the best result among MTP, Medusa, and Dual-MTP.
Figure 3: Cumulative predictive entropy across draft heads. Dual-MTP exhibits lower predictive entropy than MTP across the evaluated heads and backbones.
Figure 4: Per-head full-context training loss on GSM8K. Curves use a 15-observation moving average; panels share both axes. Dashed lines denote MTP and solid lines denote Dual-MTP.
Figure 5: GSM8K top-1 accuracy by head.
Task
Method
Kv=1
Kv=3
Kv=5
HumanEval+
MTP
73.37±0.93 / 1.304
71.75±1.53 / 1.489
71.34±2.20 / 1.483
Medusa
73.98±1.27 / 1.301
72.97±3.01 / 1.469
72.97±3.57 / 1.467
Dual-MTP
76.63±0.35 / 1.364
74.19±0.93 / 1.532
74.19±0.93 / 1.530
MBPP+
MTP
70.11±0.00 / 1.365
66.58±1.07 / 1.503
66.23±0.40 / 1.518
Medusa
69.40±0.67 / 1.366
65.61±1.15 / 1.503
65.34±1.40 / 1.498
Dual-MTP
70.46±0.40 / 1.344
69.22±1.10 / 1.481
69.05±1.73 / 1.486
Table 3: Code generation on Qwen2.5-7B-Instruct. Cells report EvalPlus pass@1 (%, mean ± sample SD) and mean speedup over fine-tuned NTP across three independent training runs.
Figure 6: Math accuracy and speedup over NTP at Kv=5 ( Table 2 ). Bars show accuracy SD. Dashed lines connect nondominated means. Hollow markers denote methods matched or exceeded on both axes and surpassed on at least one.
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
Model
Setting
Math500
GSM8K
CoLA
MRPC
RTE
WNLI
Avg. ↑
Llama-3.2-1B -Instruct
MTP
49.1 ± 0.3
52.5 ± 0.5
57.1 ± 1.7
64.1 ± 6.1
50.0 ± 0.0
50.0 ± 0.0
53.8
Medusa
56.5 ± 0.7
62.0 ± 0.6
59.2 ± 0.2
65.6 ± 0.7
50.0 ± 0.0
50.0 ± 0.0
57.2
Dual-MTP
49.1 ± 0.1
52.6 ± 0.6
56.3 ± 1.8
64.6 ± 6.3
50.0 ± 0.0
50.0 ± 0.0
53.8
Qwen2.5-1.5B -Instruct
MTP
47.7 ± 0.3
49.8 ± 0.4
66.3 ± 0.0
61.2 ± 0.3
44.9 ± 0.1
66.2 ± 0.5
56.0
Medusa
55.0 ± 0.4
59.5 ± 0.4
54.0 ± 0.2
62.2 ± 0.7
45.1 ± 0.4
65.5 ± 0.3
56.9
Dual-MTP
48.3 ± 0.4
50.4 ± 0.4
56.2 ± 0.7
61.1 ± 0.4
44.9 ± 0.1
63.2 ± 0.1
54.0
Appendix
Table 4: Speculative decoding acceptance rate (mean ± SD over three decoding runs).
Model
Method
GSM8K
MATH500
Qwen2.5-7B
Mask-only
0.10 ± 0.04
0.07 ± 0.09
MTP
72.25 ± 3.43
37.53 ± 1.37
Dual-MTP
71.24 ± 1.18
38.67 ± 0.90
Qwen2.5-1.5B
Mask-only
0.23 ± 0.08
0.00 ± 0.00
MTP
47.64 ± 1.54
20.80 ± 1.64
Dual-MTP
48.72 ± 1.38
20.40 ± 0.87
Appendix
Table 5: Training-objective comparison. Accuracy (%) is mean ± SD over three decoding runs; 1.5B uses sample SD and 7B uses population SD. MTP and Dual-MTP use the references in Table 1 .
Backbone
D
MTP Acc.
MTP AR
Dual-MTP Acc.
Dual-MTP AR
Qwen2.5-7B
1
70.91 ± 0.70
64.56 ± 0.75
71.97 ± 2.39
66.81 ± 0.98
2
71.34 ± 1.39
57.72 ± 0.69
70.26 ± 1.48
60.04 ± 0.67
3
72.25 ± 4.20
40.96 ± 0.90
71.24 ± 1.44
56.73 ± 0.56
4
71.32 ± 0.68
53.03 ± 0.49
70.86 ± 1.14
55.62 ± 0.63
5
72.00 ± 1.58
52.72 ± 0.34
70.18 ± 0.80
55.42 ± 0.42
Qwen2.5-1.5B
1
47.38 ± 0.55
56.55 ± 0.93
46.63 ± 1.05
58.52 ± 0.93
Appendix
Table 6: Draft-head count sweep on all 1,319 GSM8K questions. Accuracy and acceptance rate (AR), in %, are mean ± sample SD over three decoding runs. Bold marks the more accurate method.
Backbone / Task
Setting
Acc(%)
tok/s
AR
Qwen2.5-7B / MATH500
warmup
40.80
31.0
0.549
λ=1.0
37.40
34.5
0.561
Qwen2.5-7B / GSM8K
warmup
69.98
34.8
0.572
λ=1.0
69.90
37.6
0.585
Qwen2.5-1.5B / MATH500
warmup
18.20
27.8
0.483
λ=1.0
17.00
30.2
0.496
Appendix
Table 7: Linear warm-up versus a constant dual-loss coefficient λ=1.0 . Values are from one evaluation per configuration. Accuracy uses the final-answer metric on at most 2048 response tokens. Throughput and acceptance rate (AR, a fraction) retain the original generation measurements.
Model
Training corpus
Dual / MTP
GPU-hours (MTP / Dual)
Qwen2.5-1.5B-Instruct
GSM8K
1.26
0.329 / 0.414
Qwen2.5-1.5B-Instruct
MATH7500
1.37
0.342 / 0.468
Qwen2.5-7B-Instruct
GSM8K
1.30
0.344 / 0.447
Qwen2.5-7B-Instruct
MATH7500
1.50
0.375 / 0.563
DeepSeek-R1-Distill-Qwen-7B
GSM8K
1.27
0.340 / 0.434
DeepSeek-R1-Distill-Qwen-7B
MATH7500
1.41
0.377 / 0.531
Appendix
Table 8: One-epoch GPU-hours (MTP / Dual-MTP) and wall-clock time ratios (Dual / MTP).
Kv
Correct / 500 by run
Correctness (%)
Throughput (tok/s)
1
345 / 330 / 341
67.73 ± 1.55
118.45±0.90
2
311 / 307 / 305
61.53 ± 0.61
124.97±0.99
3
295 / 307 / 300
60.13 ± 1.21
125.91±0.41
4
289 / 293 / 306
59.20 ± 1.78
127.03±0.47
5
292 / 292 / 302
59.07 ± 1.15
127.63±0.15
Appendix
Table 9: Dual-MTP performance across verification parameters on MATH500. Results are mean ± sample SD over three decoding runs at a fixed checkpoint.
Task
Method
Kv=1
Kv=3
Kv=5
MATH500
MTP
47.73 ± 2.44 / 1.46
39.13 ± 4.01 / 1.61
37.80 ± 3.61 / 1.61
Medusa
44.73 ± 3.35 / 1.80
35.33 ± 1.53 / 1.91
35.20 ± 0.87 / 1.92
Dual-MTP
67.73 ± 1.55 / 1.41
60.13 ± 1.21 / 1.50
59.07 ± 1.15 / 1.52
GSM8K
MTP
78.52 ± 0.64 / 1.56
73.11 ± 0.97 / 1.65
72.73 ± 1.26 / 1.66
Medusa
77.56 ± 0.47 / 1.85
69.50 ± 2.50 / 1.96
69.40 ± 1.50 / 1.98
Dual-MTP
86.45 ± 1.66 / 1.43
82.16 ± 1.41 / 1.63
82.18 ± 0.65 / 1.65
Appendix
Table 10: Mathematical reasoning at three verification settings. Cells give accuracy (%, mean ± sample SD over three runs) and speedup over NTP.
Figure 7: Code-generation Pareto frontiers for Qwen2.5-7B-Instruct with the shared head-calibration procedure. The nine draft-head operating points in each panel use all three Kv columns of Table 3 ; adjacent numbers indicate Kv . NTP is the fine-tuned reference. Vertical and horizontal bars show sample SDs of pass@1 and per-run speedup, respectively. Dashed lines connect the nondominated measured means across all methods and Kv settings; hollow markers denote dominated points.
Backbone
Task
MTP (2 epochs)
Dual-MTP (1 epoch)
Difference
Qwen2.5-1.5B
MATH500
20.80
23.80
+3.00
Qwen2.5-1.5B
GSM8K
48.75
49.28
+0.53
Qwen2.5-7B
MATH500
41.40
41.00
-0.40
Qwen2.5-7B
GSM8K
72.02
72.93
+0.91
Appendix
Table 11: Accuracy (%) by training duration. Differences in percentage points use unrounded scores.
Backbone
Task
NTP
MTP
Medusa
Dual-MTP
Qwen3.5-9B
GSM8K
43.97
68.23 / 1.368
58.61 / 1.638
70.20 / 1.382
MATH500
50.40
49.20 / 1.354
44.00 / 1.587
50.40 / 1.327
Qwen3.5-4B
GSM8K
67.78
63.61 / 1.189
48.82 / 1.466
70.05 / 1.207
MATH500
43.20
39.60 / 1.283
42.20 / 1.490
43.60 / 1.220
Appendix
Table 12: Qwen3.5 mathematical-reasoning results. NTP reports accuracy (%); the other methods report accuracy (%) / speedup relative to the task-matched NTP timing reference. Accuracy uses the full test set, while speedup uses a fixed 32-question subset.
Method
Strict prompt
Strict instruction
tok/s
NTP
70.24 (380/541)
77.58 (647/834)
64.12
MTP
70.06 (379/541)
77.22 (644/834)
69.73
Medusa
69.32 (375/541)
77.46 (646/834)
74.38
Dual-MTP
72.46 (392/541)
78.54 (655/834)
70.42
Appendix
Table 13: Instruction following on IFEval with Qwen2.5-7B-Instruct. Accuracy is reported as percentage (correct/total), with throughput in tokens per second.
Multi-token prediction trains models to forecast several future tokens at once, supporting more efficient generation and richer predictive representations.
Multi-Token Prediction (MTP) is now a common ingredient in language-model pre-training, as it improves downstream performance and enables faster inference through speculative decoding. We identify a flaw in standard MTP training, in which a residual component of the MTP gradient interferes with both next-token and multi-token learning, increasingly so with scale. Specifically, the MTP cross-entropy gradient can be decomposed exactly into a KL self-distillation term that pulls each MTP head toward the model's own next-token prediction (NTP) distribution and improves speculative decoding, and a residual that has a low signal-to-noise ratio and buries the useful KL signal. We introduce the KL gradient-recovery trick: when two distributions share a linear output head, the gradient of their KL divergence can be recovered exactly by combining their cross-entropy gradients through straight-through gradient routing. Unlike minimizing the KL directly, this trick requires no vocabulary-sized logit matrices and is compatible with standard fused cross-entropy kernels. This enables Soft Multi-Token Prediction (Soft-MTP), a one-line code change to MTP that removes the noisy residual and backpropagates only the KL self-distillation signal by reusing the existing NTP and MTP cross-entropy computations. Soft-MTP supports both DeepSeek- and Meta-style MTP, adds no parameters, and incurs no measurable overhead. From 167M to 1.2B parameters, Soft-MTP improves over standard MTP with lower NTP perplexity, faster speculative decoding and higher zero-shot accuracy at every scale, lower MTP perplexity from 689M onward, and stronger math and code reasoning after fine-tuning at 1.2B. Soft-MTP also matches, if not exceeds, direct KL divergence minimization on most metrics. Soft-MTP is, in effect, a free lunch for MTP optimization. Our code can be found at https://github.com/JaydenTeoh/Soft-MTP.
Multi-Token Prediction (MTP) has emerged as an effective paradigm that augments a shared Large Language Model backbone with auxiliary heads, training the model to predict several future tokens in parallel to enrich its supervision signal and accelerate inference. However, existing training frameworks adopt a rigid, fixed-length prediction horizon, disregarding the highly non-uniform information density of natural language and code. Forcing the auxiliary heads to predict across high-entropy semantic boundaries injects noisy, conflicting training signals; because these heads share the backbone's latent representations, the resulting gradients backpropagate and interfere with the model's core capabilities. We propose AdaMTP, an adaptive training paradigm that dynamically aligns the prediction horizon with the intrinsic predictability of the sequence. At its core, an entropy-based segmentation algorithm leverages the base model to detect sudden surges in uncertainty as semantic boundaries, partitioning sequences into variable-length groups. Each token is assigned an adaptive prediction depth, and a dynamically masked MTP objective suppresses the loss for predictions that cross these boundaries, attenuating the noisy gradients that degrade the backbone. Across mathematical reasoning, code generation, and general benchmarks on three backbones (Llama-3.1-8B, Qwen-2.5-7B, Gemma-3-12B), AdaMTP consistently outperforms standard MTP in both task performance and inference speedup.
Ziqiang Cui, Han Shi, Bowei He +8
City University of Hong Kong · Huawei Technologies · Mohamed bin Zayed University of Artificial Intelligence +2
Diffusion Language Models (DLMs) generate text by iteratively denoising masked token sequences, offering a tradeoff between parallelism and quality compared to autoregressive models. In current practice, the number of tokens decoded per step is controlled by a confidence threshold, and quality degrades monotonically as more tokens are denoised per step. We introduce Multi-token Residual Prediction (MRP), a lightweight module that enables dependency-aware multi-token denoising within a single backbone forward pass. MRP exploits a key property of the denoising process: the logit distributions at adjacent denoising steps are remarkably similar. Rather than running the backbone a second time to obtain the next-step logits, MRP predicts the residual between steps from the backbone's hidden states, effectively denoising more tokens per backbone forward at a fraction of the cost. We apply MRP across the two operating regimes of DLM decoding. In the high-quality-low-throughput static denoising regime, MRP serves as a drafter for speculative decoding: its proposals are verified against the backbone, yielding lossless acceleration of up to 1.4x in SGLang. In the low-quality-high-throughput dynamic denoising regime, MRP instead drives a remasking scheme that revokes over-eager reveals, recovering most of the accuracy lost to aggressive low-threshold decoding and improving accuracy by up to 22.6 points on code generation task HumanEval and 17.7 points on reasoning task GSM8K.
Yufeng Xu, Zishuo Bao, Qian Wang +6
New York University · New York University Shanghai · Nous Research +1