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.
Detailed answer & concept explanation~6 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
5m: how MTP preserves causality (targets vs inputs), the K-head trunk on top design, the summed training loss, why this enables single-model speculative decoding, and DeepSeek-V3 / V4 production usage.
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.
- Meta has published MTP variants for Llama family research models.
- Speculative decoding research more broadly has converged on the 'predict multiple tokens, verify in one forward' pattern.
- Production inference stacks like vLLM and TensorRT-LLM have added speculative decoding support that MTP can drive.
What an interviewer would ask next. Try answering before peeking at the approach.
QWhy does the training signal density of MTP help sample efficiency?
QHow does MTP-driven speculative decoding compare to draft-model speculative decoding?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes 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.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.