Book a demo →

Multi-Token Prediction

Definition

Multi-token prediction in the sources: what the papers train, how DeepSeek-V3 differs from Gloeckle et al., who names whom, and speedups with conditions.

In short

Multi-token prediction (MTP) trains a language model to predict tokens beyond the next one from each position. Gloeckle et al. (30 April 2024) use parallel heads, DeepSeek-V3 (27 December 2024) chained modules. Sources place MTP differently: as a training task or as an inference method.

What is multi-token prediction (MTP)?

Multi-token prediction (MTP) trains a language model to predict more than the next token from each position in its training text. Seven descriptions by date, pages without a date last, as retrieved on 5 December 2026:

Source and dateWording
Gloeckle et al., version 1 of arXiv 2404.19737, posted 30 April 2024“we suggest that training language models to predict multiple future tokens at once results in higher sample efficiency”
DeepSeek-AI, DeepSeek-V3 Technical Report, arXiv 2412.19437, version 1 (27 December 2024)An MTP objective “which extends the prediction scope to multiple future tokens at each position”
vLLM documentation, “MTP (Multi-Token Prediction)” (developer preview, page dated 15 October 2026)“MTP is a speculative decoding method where the target model includes native multi-token prediction capability.”
NVIDIA Megatron Core documentation (no visible date; metadata: modified 20 November 2026)“Multi-Token Prediction (MTP) extends the prediction scope to several future tokens at each position.”
Sebastian Raschka, LLM Architecture Gallery (no visible date; metadata: modified 25 November 2026)“MTP adds losses for later tokens such as t+2 and t+3 through auxiliary prediction heads or shallow MTP modules.”
Unsloth documentation (last updated 4 December 2026)“MTP, or Multi-Token Prediction, speeds up inference by letting a model predict multiple upcoming tokens at once instead of generating one token per step.”
NVIDIA Megatron Bridge documentation (no date on the page)MTP “enables models to predict multiple future tokens simultaneously during pre-training”

Five of the seven pages describe what the model learns to predict. Two describe an inference speedup: vLLM and Unsloth. The DeepSeek-V3 report spells the abbreviation out as “Multi-Token Prediction (MTP)”.

What the extra targets look like at one position

In standard training the model learns from the next token only. Gloeckle et al. (version 1) describe standard language modeling as learning from a text corpus “by implementing a next-token prediction task.” Their change: “at each position of the training corpus, the model is instructed to predict n future tokens at once”.

The paper builds this from three parts: “a shared transformer trunk”, “n independent output heads implemented in terms of transformer layers”, and “a shared unembedding matrix”. With n = 4, the heads target the tokens at t+1 to t+4.

Gloeckle et al. run the forward and backward pass of one head after another and free its logits and their gradients before the next head starts. The paper reports that this order lowers peak GPU memory use “at no expense in runtime”.

The DeepSeek-V3 report (versions 1 and 2) gives two reasons for the objective: “an MTP objective densifies the training signals and may improve data efficiency”, and “MTP may enable the model to pre-plan its representations for better prediction of future tokens.” Both sentences say “may”.

Training setup of Gloeckle et al., version 1, Figure 1, with n = 4. The paper's caption: “During inference, we employ only the next-token output head. Optionally, the other three heads may be used to speed-up inference time.”

Earlier work and who names whom

Older papers trained models on targets further ahead, and the newer papers cite them. Each row gives a work and its wording:

Work and dateWording
Stern, Shazeer and Uszkoreit, arXiv 1811.03115, version 1 (7 November 2018)Title: “Blockwise Parallel Decoding for Deep Autoregressive Models”
ProphetNet by Yan, Qi et al. (cited by Gloeckle et al. as Qi et al.), arXiv 2001.04063, version 1 (13 January 2020)“introduces a novel self-supervised objective named future n-gram prediction” and “the ProphetNet is optimized by n-step ahead prediction which predicts the next n tokens simultaneously based on previous context tokens at each time”
Gloeckle et al., version 1 (30 April 2024), on Qi et al.“While multi-token prediction has been studied in previous literature (Qi et al., 2020)”
Gloeckle et al., version 1, on Stern et al. and Cai et al. (Medusa)“Stern et al. (2018) are, to the best of our knowledge, the first to suggest a speculative decoding scheme for faster inference.” On both papers: “propose model finetunings with multi-token prediction for faster inference but do not study the effects of such a loss during pretraining”
DeepSeek-V3 Technical Report, versions 1 and 2 (27 December 2024, 18 February 2025)“Inspired by Gloeckle et al. (2024), we investigate and set a Multi-Token Prediction (MTP) objective for DeepSeek-V3”
AMD ROCm blog (11 September 2025)“Multi-Token Prediction (MTP) was initially introduced in DeepSeek V3/R1 to enhance the training performance.”
NVIDIA Megatron Bridge documentation (no date on the page)“Multi-Token Prediction (MTP) is an advanced training technique introduced in the DeepSeek-V3 Technical Report”

DeepSeek-V3 cites Gloeckle et al. as its inspiration, and Gloeckle et al. cite Qi et al. as earlier work. The AMD post and the Megatron Bridge page say “introduced in”, naming DeepSeek V3/R1 and the DeepSeek-V3 Technical Report. This entry gives the dates and each source's wording and does not rank credit.

Two designs: parallel heads and a causal chain

Gloeckle et al. (version 1) set the heads side by side: “we ask the model to predict the following n tokens using n independent output heads, operating on top of a shared model trunk”.

The DeepSeek-V3 report (versions 1 and 2) describes Gloeckle et al. as a design which “parallelly predicts” additional tokens using “independent output heads”, and states its own design: “we sequentially predict additional tokens and keep the complete causal chain at each prediction depth.” The report compares this with EAGLE: “Our principle of maintaining the causal chain of predictions is similar to that of EAGLE (Li et al., 2024b), but its primary objective is speculative decoding”, “whereas we utilize MTP to improve training.”

The counts differ by convention. Raschka writes: “The paper’s n=4 means four predictions in total, including the usual next token.” And: “A production label such as MTP-1 normally means one additional prediction depth.” With n = 4, the Gloeckle model has the next-token head and three more. The released DeepSeek-V3 weights include one MTP module, and the report says the model “predicts the next 2 tokens through the MTP technique”. Raschka: “DeepSeek V3 uses MTP-1”.

The two designs as the papers describe them: parallel heads on a shared trunk (Gloeckle et al.) and a sequential MTP module after the main model (DeepSeek-V3, versions 1 and 2).

What the speedup and quality numbers depend on

Each number in the table holds for the paper, version, model and setting in the left column:

Source and settingWording
Gloeckle et al., version 1; 4-token prediction model with 7B parameters, greedy self-speculative decoding; code prompts: model trained on 1T tokens of code; text prompts: model trained on 500B tokens; 512-token completions, measured at batch size 42“We observe a speedup of 3.0× on code with an average of 2.5 accepted tokens out of 3 suggestions on code, and of” “2.7× on text.”
Gloeckle et al., version 1; 13B-parameter models trained on code, against next-token models“Our 13B parameter models solves 12 % more problems on HumanEval and 17 % more on MBPP than comparable next-token models.”
DeepSeek-V3, versions 1 and 2, section 5.4.3; second token from the MTP module, used with speculative decoding“the acceptance rate of the second token prediction ranges between 85% and 90% across various generation topics” and “delivering 1.8 times TPS (Tokens Per Second)”
DeepSeek-V3, versions 1 and 2, section 4.5.1; two MoE baselines (15.7B total parameters on 1.33T tokens, 228.7B on 540B tokens), each with a 1-depth MTP module“the MTP strategy consistently enhances the model performance on most of the evaluation benchmarks”
AMD ROCm blog (11 September 2025); DeepSeek V3 with SGLang v0.5.0rc0 on 8 AMD MI300X GPUs, ROCm 6.3.1, random dataset, max concurrency 1 to 64“there is a 1.25-2.11x speedup when enabling MTP in DeepSeek V3 inference serving” and “We observe that the speedup ratio decreases as the max concurrency increases.”
Unsloth documentation (4 December 2026); GGUF files, gains depend on hardware“When running GGUFs, MTP can make generation ~1.4× to 2.2× faster.” and “Gains are smaller on devices with lower memory bandwidth, such as older Macs.”
Apple Machine Learning Research (published August 2025); the page's own method, supervised fine-tuning of pretrained modelsThe method “generates code and math nearly 5x faster, and improves general chat and knowledge tasks by almost 2.5x”

The speed rows measure different things: relative decoding speed with extra heads (Gloeckle et al.), the acceptance of one extra token and tokens per second (DeepSeek-V3), end-to-end latency per request (AMD), generation speed on local hardware (Unsloth) and speed after fine-tuning (Apple). The AMD figure of 2.11x holds at max concurrency 1. Raschka lists what such figures include: “Reported throughput gains include the serving engine, batch size, hardware, draft length, and acceptance behavior.”

Training task, inference method, or both

The sources place MTP at training time, at inference time, or at both:

Source and dateWording
Gloeckle et al., version 1 (30 April 2024), Figure 1“During inference, we employ only the next-token output head. Optionally, the other three heads may be used to speed-up inference time.”
DeepSeek-V3, versions 1 and 2 (27 December 2024, 18 February 2025), section 2.2“we can directly discard the MTP modules and the main model can function independently and normally” and “we can also repurpose these MTP modules for speculative decoding to further improve the generation latency”
vLLM documentation (page dated 15 October 2026)“Unlike draft-model-based methods, you do not need to provide a separate draft model.”
NVIDIA Megatron Bridge documentation (no date on the page)“MTP is primarily used for pre-training.”
Sebastian Raschka (metadata: modified 25 November 2026)“MTP can therefore remain a training-only objective or become part of the inference system.”
DeepSeek-V3 GitHub, README_WEIGHTS.md (no date in the retrieved page)“The open-sourced V3 weights include 1 MTP Module.”

The line falls in different places. Gloeckle et al. and the Megatron Bridge page describe a training objective. DeepSeek-V3 describes a training objective whose modules can be dropped or reused at inference. vLLM calls MTP itself “a speculative decoding method”.

Raschka writes about one model: “Qwen3-Next trains its MTP path for multi-step inference and provides dedicated settings for SGLang and vLLM.” On the same model: “Loading the checkpoint by itself does not activate the faster decoding path.” The entry on speculative decoding explains the draft-and-check round and the names in use.

Where the sources name limits

The sources report limits as well. Gloeckle et al. (version 1) trained models from 300M to 13B parameters on code, and the caption of their Figure 3 reads: “Multi-token prediction models are worse than the baseline for small model sizes, but outperform the baseline at scale.”

On natural language, the same paper trained 7B models on 200B tokens and tested them on six benchmarks: “the 2-future token prediction model performs on par with the next-token prediction baseline throughout training. The 4-future token prediction model suffers a performance degradation.” The authors qualify the test in the next paragraph: “we do not believe that multiple-choice and likelihood-based benchmarks are suited to effectively discern generative capabilities of language models”.

On how many tokens to predict, Gloeckle et al. write: “It is very likely that the optimal window size depends on input data distribution.” Raschka says of the four tokens in the original code tests: “Four is therefore a result from that code-training ablation, not a fixed MTP rule.”

Unsloth names a memory cost for local use: “MTP uses more memory than standard, so plan for ~2 GB additional RAM/VRAM headroom.”

Speculative decoding. A draft step proposes tokens and the large model checks them in one pass; the speculative decoding entry explains the round.

Large language model. The next-token goal that MTP extends; the entry on large language models covers it.

Mixture of experts. The model design of DeepSeek-V3; the entry on mixture of experts covers it.

AI token. The unit language models use to process text; the entry on AI tokens covers it.

AI inference. What happens when a trained model runs on new input; the entry on AI inference covers it.

Fine-tuning. Extra training of a pretrained model; the entry on fine-tuning covers it.

Source

Frequently asked questions

What is MTP in AI?

In the DeepSeek-V3 report the abbreviation stands for “Multi-Token Prediction (MTP)”, a training objective. Gloeckle et al., in their paper of 30 April 2024, train a model with n independent output heads on a shared trunk. The vLLM and Unsloth documentation use the name for a way to speed up inference.

What is MTP in DeepSeek?

DeepSeek-V3 (27 December 2024) adds an MTP objective with modules in sequence. At inference the report says it can “directly discard the MTP modules” or reuse them for speculative decoding. The DeepSeek repository states that the released V3 weights include one MTP module.

What does MTP do?

During training it adds targets for later tokens at each position. At inference, Gloeckle et al. use the next-token head and note that the other heads may speed up decoding. DeepSeek-V3 reports an acceptance rate of 85% to 90% for the second token and 1.8 times TPS with its MTP module and speculative decoding.

What is MTP support in an LLM?

The vLLM documentation lists among the cases where MTP is useful: “Your model natively supports MTP.” The same page describes MTP as a method where “the target model includes native multi-token prediction capability”. Raschka adds for Qwen3-Next that “Loading the checkpoint by itself does not activate the faster decoding path.”

How is multi-token prediction different from speculative decoding?

Gloeckle et al. describe a training objective and name self-speculative decoding as one way to use the extra heads. Speculative decoding is an inference method in which a draft is checked by the large model. The vLLM documentation counts MTP among those methods and says it needs no separate draft model.