DeepSeek trains models to predict K tokens per step. Pick how that stays causal.
MTP preserves causality by keeping the trunk's self-attention causal and adding K lightweight heads that predict future tokens as TARGETS, never as inputs.
Imagine a student studying for a quiz where the questions ask 'what is on the next page, and the page after that, and the page after that'. The student is not allowed to peek ahead, they answer from what they have already read. Each answer is graded separately, giving the student more practice per page studied. The student's reading order does not change; they just get more questions per page. That is MTP: the model reads causally as always, but each position is trained to predict several future tokens rather than just the immediate next one.
Concept explanation~2 min read
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Concept explanation~2 min read
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Multi-token prediction (MTP) sounds like it should violate causality. If a model predicts K tokens at every position, surely it needs to see those K tokens during training? The answer is no, and understanding why is a clean test of how causality is enforced in autoregressive transformers.
Causality lives in the input stream. The model's attention mask determines which positions can read from which others. Targets are unconstrained: the model can be supervised on any function of the inputs, including functions that depend on future positions, as long as the model itself only reads past positions to produce its predictions.
MTP exploits exactly this asymmetry. The trunk's self-attention stays causal: every position attends only to itself and earlier positions. The supervision is multi-target: K separate cross-entropy losses on the K future tokens at each position. The K prediction heads on top of the trunk are essentially K supervised classifiers asking the same internal state different forecasting questions.
This deep dive walks the architecture, the training loss, the inference-time speculative decoding benefit, and the DeepSeek-V3 production deployment that brought MTP into the mainstream.
Targets vs inputs: where causality lives
The single most important conceptual distinction in MTP is between input causality and target structure. They are independent.
Input causality
In an autoregressive transformer, the self-attention mask determines which positions can read from which. The causal mask sets entries above the diagonal to negative infinity before softmax, so position i can only attend to positions j <= i:
This is the structural constraint that makes generation possible: the model never reads what it has not yet produced.
Targets
Targets are what the model is supervised against. A standard language model is supervised on the next-token target: at position t, predict the token at t+1. The target is a future token, but the model never SEES that token as input, it predicts it.
The MTP move
MTP keeps input causality exactly as before and multiplies the targets. At position t, the model is supervised on K targets: tokens at positions t+1, t+2, ..., t+K. The trunk reads only past tokens; the K heads predict K future tokens as classification targets.
Causality is about what the model READS, not what it is TRAINED TO PREDICT. MTP changes the second without touching the first.
Situations where this technique stops working.
2–4 min · Everything important, quickly.
Real products, models, and research that use this idea.
- DeepSeek-V3 introduced MTP at scale and uses it for both training signal and inference-time speculative decoding.
- DeepSeek V4 continues the MTP pattern and reports decoding speedups in the 1.8x to 2.6x range.
What an interviewer would ask next. Try answering before peeking at the approach.
QWhy does the training signal density of MTP help sample efficiency?
Each forward pass produces K supervised targets per position instead of 1, so the model sees more gradient updates per unit of compute. The targets are correlated, so the effective speedup is less than K, but the signal density still improves convergence.
Red flags & common mistakes
The phrases that signal junior thinking. Click to expand.
Red flags & common mistakes
The phrases that signal junior thinking. Click to expand.
Confusing 'predicting future tokens' with 'reading future tokens as input'. Targets and inputs are different streams; MTP changes the target stream while keeping the input stream causal.
60 second bullets to scan on the way to the call.
How MTP preserves causality: targets vs inputs
The trunk structure: standard causal transformer
Primary sources. Browse if you want the original framing.
Same topic, related formats. Practice these next.