MTP
An inference acceleration technique that predicts multiple future tokens in a single forward pass and uses a verification mechanism to determine which predictions are accepted, substantially increasing token generation speed. The approach is conceptually related to Speculative Decoding.
Core Facts
MTP is a technique that allows the model to predict multiple subsequent tokens in a single forward pass, reducing the number of inference computation rounds.
The MTP (Multi-Token Prediction) auxiliary training objective allows the model to be used with speculative decoding during inference to improve throughput
MTP adds multiple prediction heads to the model's output layer, enabling the model to simultaneously predict the probability distribution of the next N tokens in a single forward pass, achieving 2–4x inference acceleration without sacrificing generation quality.
Timeline (last 90 days)
Unsloth dynamic quantization 3.1 added support for MTP (multi-token prediction), improving output speed by 1.3 to 1.7 times in Unsloth's own environment.
Strata uses the model's built-in MTP multi-token prediction layer for speculative decoding, amortizing costs through batched memory access.
The benefits of Soft-MTP depend on the premise that the MTP head and the NTP head share the backbone network.
MTP directly helps speculative decoding, because the model can generate multiple candidate tokens at once.
MTP and speculative decoding work by different mechanisms: the former adds multi-token prediction heads inside the same model, while the latter uses a small draft model to guess and a large model to verify.
The gradient of standard MTP contains two components: a KL self-distillation signal and a noise residual.
MTP has been widely adopted as a standard recipe for frontier pretraining.
The noise residual harms the performance of next-token prediction.
Using the space freed up by speech quantization, the developer raised the context from 32K to 100K and added MTP (for accelerated tool-call prediction) and a vision encoder.
In the short question-answering test (a 400-character input plus a small question), the version with MTP reduced first-token latency from 5.9 seconds to 4.3 seconds, increased output speed from 57.98 characters/second to 66.14 characters/second (about 14% faster), and shortened the total time to finish the answer from 85.9 seconds to 62.3 seconds (27% faster).
40 more timeline events
All Facts (20)
MTP is a technique that allows the model to predict multiple subsequent tokens in a single forward pass, reducing the number of inference computation rounds.
90%VerifiedThe MTP (Multi-Token Prediction) auxiliary training objective allows the model to be used with speculative decoding during inference to improve throughput
90%VerifiedMTP adds multiple prediction heads to the model's output layer, enabling the model to simultaneously predict the probability distribution of the next N tokens in a single forward pass, achieving 2–4x inference acceleration without sacrificing generation quality.
90%VerifiedSpeculative Decoding uses a small, fast draft model to predict multiple tokens in advance, which are then verified in parallel all at once by the large model.
90%VerifiedMulti-Token Prediction (MTP) is a training and inference acceleration technique proposed by Meta in 2024 and applied in models such as DeepSeek-V3.
85%VerifiedThe actual speedup gained from MTP depends on the prediction acceptance rate; if predictions are frequently incorrect and fall back to token-by-token decoding, the acceleration benefit is significantly reduced.
75%VerifiedDeepSeek's MTP base-version draft model is co-optimized during main model training to align the draft model's output distribution with the target model, distinguishing it from post-hoc distillation approaches.
75%VerifiedDeepSeek introduced MTP technology as early as version V3.
75%VerifiedMTP (Multi-Token Prediction) is a configuration flag that is disabled by default in most mainstream inference tools and can accelerate inference.
70%VerifiedThe generalization error of a model equals the squared bias plus variance plus irreducible noise.
70%VerifiedCompared to speculative decoding, MTP's predictive capability is built into the model itself, requiring no additional draft model.
65%VerifiedKL divergence is used to compare the difference in output probability distributions between the fine-tuned model and the original model given the same input; a larger value indicates greater deviation, and a KLD of 0.0244 means the fine-tuning has hardly changed the model's overall behavioral distribution.
65%VerifiedMTP (Multi-Token Prediction) technology was systematically proposed by Meta in 2024 research and has been adopted by mainstream open-source models such as Qwen and DeepSeek.
65%UnverifiedMTP一次前向传播可同时产出多个token:主头输出token+1,第一个MTP头输出token+2,第二个MTP头输出token+3
90%UnverifiedMTP的额外预测头直接复用Transformer的隐藏状态表示,因此额外的计算开销极小
90%UnverifiedMTP (Multi-Token Prediction) was originally systematically proposed by Meta in the research paper 'Better & Faster Large Language Models via Multi-token Prediction'.
85%UnverifiedMTP与DFlash在架构上有本质不同,但都属于投机解码技术谱系
85%Unverified加载MTP层后额外浮点运算会导致数值产生微小变化,可能导致模型走不同推理路径产生不同结果,即使温度设为0也会出现
85%UnverifiedGoogle practically applied MTP technology in Gemma 4.
80%UnverifiedMeta在LLaMA 3的技术报告中首次将MTP作为训练目标引入
80%