Hot AI News

Multi-token prediction: How a model learns to guess several words ahead

Multi-token prediction trains a language model to guess several upcoming tokens at once, not just the next one. It can sharpen training and speed up generation.

Multi-token prediction: How a model learns to guess several words ahead
Photo illustration: Aiholics

Multi-token prediction (MTP) is a way of training and running a language model so that it guesses several upcoming pieces of text at once, instead of only the very next one. A “token” is a small chunk of text, often a word or part of a word. The extra guesses can make training more informative and can make generation faster.

Many open models now ship with an MTP part attached. The RadixArk model DaisyRose-27B is one example: its model card lists a 0.42B-parameter multi-token-prediction head inherited unchanged from Qwen3.8-27B.

Guessing the next few words instead of one

Think of a phone keyboard. It suggests one next word, you tap it, and it suggests another. A standard language model works exactly like that: read everything so far, predict one token, append it, repeat.

Now imagine a keyboard that offers the next four words as a phrase. If the phrase is right, you save three taps. If the first words are right and the third is wrong, you keep the good part and fix the rest. Multi-token prediction gives a model that kind of look-ahead.

The model still produces text one step at a time when you read the final output. The look-ahead matters in two places: during training, where it changes what the model learns, and during generation, where it supplies cheap draft guesses.

Advertisements

Extra output heads on a shared trunk

A monitor on a laboratory workbench displays a shared stack of blue layers branching into four violet output panels.
Photo illustration: Aiholics

A language model has a large body, called the trunk, that turns the text so far into an internal summary. A small final layer, the output head, converts that summary into a probability for each possible next token.

In the original design, the trunk is shared and several heads sit on top of it. Head one predicts the next token, head two predicts the token after that, and so on. Each head is trained on its own target, and the trunk must produce a summary useful for all of them.

Because the heads are small compared with the trunk, the added cost is modest. At generation time you can drop the extra heads and use the model as usual, or keep them to speed things up.

Where the idea came from

The widely cited paper is “Better & Faster Large Language Models via Multi-token Prediction,” by Fabian Gloeckle, Badr Youbi Idrissi, Baptiste Rozière, David Lopez-Paz and Gabriel Synnaeve, posted to arXiv in April 2024 and presented at ICML 2024. It uses n independent output heads on top of a shared trunk.

The authors report that their 13B-parameter model solved 12% more problems on the HumanEval coding benchmark and 17% more on MBPP than comparable next-token models. They also report that models trained with 4-token prediction ran up to three times faster at inference, even with large batch sizes. The gains were largest on generative tasks such as coding. Meta released 7B code models with multi-token heads on Hugging Face alongside the paper.

The intuition offered for the training benefit is that predicting further ahead forces the model to plan a little, instead of fixating on the very next word.

Using the extra guesses to generate faster

The speed-up comes from pairing MTP with speculative decoding, a technique where a cheap draft proposes several tokens and the full model checks them in one pass. Accepted drafts are free; rejected ones are replaced by the model’s own choice. A native MTP head is a ready-made drafter, so no separate small model is needed.

The DeepSeek-V3 technical report (December 2024) uses a variant of this. It trains with an MTP objective and predicts the next two tokens. The report states a second-token acceptance rate of 85% to 90% across generation topics, which it says yields about 1.8 times the decoding speed. These are the authors’ own measurements; the search results reviewed did not show an independent benchmark on public workloads.

Serving software has followed. Documentation for SGLang and for Modular’s MAX describes running a model’s built-in MTP head as the draft, with no separate draft model. SGLang is also the serving framework recommended on the DaisyRose-27B card.

Advertisements

Trade-offs and limits

  • Later guesses are weaker. Each further position is harder to predict, so acceptance rates fall with distance. Modular notes that later draft positions are always accepted less often.
  • Training and serving can drift apart. The GLM-5 paper argues that a mismatch between how the head is trained and how it is used at inference lowers second-token acceptance. Its own table, on a private prompt set, lists an average accepted length of 2.55 for DeepSeek-V3.2 and 2.76 for GLM-5.
  • Gains depend on the task. The original paper found the biggest improvements on code and other generative tasks, not uniformly everywhere.
  • Extra weights. The head adds parameters. In DaisyRose-27B it is about 0.42B on top of a 27B-class model, which is small but not zero.
  • Speed claims are setup-specific. Real throughput depends on batch size, hardware and the serving stack.

What to watch

Reinforcement-learning derivatives of existing models, like DaisyRose, simply carry the MTP head along without retraining it, according to the card. That raises a practical question: does a head frozen during later training keep matching the updated model closely enough to keep its acceptance rate? Papers such as GLM-5’s suggest the alignment between training and inference is something labs now tune deliberately.

Also worth tracking is how many tokens ahead models predict. DeepSeek-V3 uses two; the original research explored four. Whether longer look-ahead pays off in agent workloads, where outputs are long and structured, is still an open engineering question. When a new open model lists an MTP head, the useful details to check are how many tokens it drafts, which serving engines support it, and what acceptance rate the vendor reports and on what prompts.

Sign Up for the Daily AI Pulse

One email a day. All the stories that matter.

Daniel ReedAI Research, Safety & Ethics Analyst

Daniel Reed currently works as an AI Research, Safety & Ethics Analyst at Aiholics, writing about how changes in artificial intelligence are affecting and will affect scholarship,…

Leave a Reply

Your email address will not be published. Required fields are marked *

You may also like