r/MachineLearning • u/jayden_teoh_ • 25d ago
Research Multi-Token Prediction Done Right [R]
Sharing one of our latest papers on Multi-Token Prediction (MTP). MTP is now a standard recipe for frontier pre-training but turns out, it can be done much better.
We show the standard MTP gradient hides a KL self-distillation signal (which we want for improving speculative decoding) behind a noisy residual (that harms next-token prediction).
I think the coolest part was the KL gradient–recovery trick to extract the KL gradient. You just need a one-line code change:
h_ntp += h_mtp.detach() - h_mtp
Soft Multi-Token Prediction (Soft-MTP) is essentially a free lunch that improves MTP across a range of tasks.
I'm super excited about this work. Please do check it out below:
💻 Code: https://github.com/JaydenTeoh/Soft-MTP
📝 Paper: https://arxiv.org/abs/2610.38331
🤗 HuggingFace: https://huggingface.co/collections/JaydenTeoh/soft-multi-token-prediction
2
u/sod0 25d ago
The one-line code change is vLLM? Is there a fork or patch available so I csn try this out?
8
u/AppleShark 25d ago
Mate can’t believe you’re delivering banger after banger. Enjoyed your work with next latent prediction before as well
2
u/henfiber 22d ago
What does an "one-line code change" mean in a research paper? Does you research improve on an open-source training implementation or are you proposing an algorithm? We don't measure algorithmic/research improvements by LoC.
imo, "the coolest part is <insert this simple thing>" is an unnecessary punchline for research papers.
3
u/OkCampaign8400 24d ago
what does multi token prediction mean ?
Do you have outputs in bigrams , trigrams and you are predicting that or entire sentences are predicted at once ?
6
u/bespectacledapectl 25d ago
Ayee saw this on linkedin!! Nice!
2
u/Apprehensive-Bench44 19d ago
Super cool!!