Multi-Token Prediction
Definition
Multi-Token Prediction (MTP) — a training scheme for autoregressive models where logit calculations are performed for n subsequent tokens simultaneously at each step. Unlike classical next-token prediction, where the goal is one token, MTP uses several independent prediction heads sharing a common transformer trunk.
Architecture
Each additional head predicts the token at position t+k given the input at position t. The overall loss function is the sum of cross-entropies across all horizons:
L = Σ_{k=1..n} CE(logits_k, token_{t+k})
MTP schema:
graph LR
T[Token t] --> B[Common Trunk]
B --> H1[Head 1: t+1]
B --> H2[Head 2: t+2]
B --> H3[Head 3: t+3]
Application
- Acceleration of inference through parallel prediction and subsequent verification.
- Improvement of planning quality in code generation and reasoning tasks.
- Compatibility with Speculative Decoding as a draft model.