Zenaique

DeepSeek trains models to predict K tokens per step. Pick how that stays causal.

MCQ·Medium·4.0 · 0·~1 min·Asked atFractal AnalyticsModal LabsVernacular Ai·Relevant atMeta
Attempt it
TL;DR

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.

Memory aid
Sign in to see the mnemonic that makes this stick.
Easy to grasp

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.

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:

Mij={0iji<jM_{ij} = \begin{cases} 0 & i \geq j \\ -\infty & i < j \end{cases}

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.

The architecture in detail
The speculative-decoding bonus
Why option A breaks the design
Where MTP fits in the 2026 landscape
Sign in to unlock the full deep dive.

Situations where this technique stops working.

Sign in to see when this approach fails.

2–4 min · Everything important, quickly.

Sign in to see the quick scan of the deep dive.

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.
Sign in to see more production examples.

What an interviewer would ask next. Try answering before peeking at the approach.

QWhy does the training signal density of MTP help sample efficiency?
A

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.

2 more follow-ups an interviewer would ask next. Sign in to reveal them.

Red flags & common mistakes

The phrases that signal junior thinking. Click to expand.

Most common mistake

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.

Sign in to see all red flags and common mistakes.

60 second bullets to scan on the way to the call.

  • How MTP preserves causality: targets vs inputs

  • The trunk structure: standard causal transformer

Sign in to unlock the revision sheet.

Primary sources. Browse if you want the original framing.

Similar questions

Same topic, related formats. Practice these next.

4 curated
Next question
Explain scaled dot product attention.
Short answer·Medium