# Multi-Token Prediction Done Right (Soft Multi-Token Prediction / Soft-MTP)

- **ID:** 1454
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2610.38331
- **Authors:** Jayden Teoh (MIT CSAIL, PhD student, single author, jayden_t@mit.edu)
- **Venue:** arXiv preprint
- **Published:** 2026
- **Source:** arxiv
- **Language:** en
- **Access:** free
- **Added:** 2026-10-30
- **Verified:** 2026-10-30
- **Page:** https://papers.projxon.ai/entries/1454

## Summary

Standard multi-token prediction (MTP) trains each future-token head with cross-entropy against the data. This paper shows that gradient decomposes EXACTLY into two parts: a KL self-distillation term that pulls each MTP head toward the model's own position-aligned next-token (NTP) distribution — the distribution that will later verify its drafts in speculative decoding — and a residual term equal to the NTP cross-entropy gradient against the one-hot target. The residual is the problem: it carries ~4x lower signal-to-noise ratio than the KL term (4.1x at 167M, widening to 4.6x at 1.2B, because its signal is the shrinking NTP error while its one-hot sampling noise is irreducible), yet it accounts for ~80% of the MTP gradient reaching the shared trunk, and a unit step along it consistently INCREASES NTP loss — it is anti-aligned with the NTP update, increasingly so with scale. The fix is the KL gradient-recovery trick: when two distributions share a linear output head, the KL gradient can be recovered exactly by combining the two cross-entropy gradients through straight-through routing — in code, one line added to the NTP hidden state (h0[:, k:] += hk.detach() - hk, with a rescaling factor in the real implementation) leaves the forward numerics untouched while routing the negative NTP-CE gradient into each MTP head, exactly cancelling the residual. No KL is ever computed, no vocabulary-sized logit matrices are materialized, and it stays compatible with fused cross-entropy kernels — unlike explicit KL self-distillation or its top-k / argmax approximations. The result, Soft-MTP, works for both DeepSeek-style sequential and Meta-style parallel MTP, adds no parameters, and has no measurable overhead. Experiments: LLaMA-style models 167M–1.2B, DeepSeek-style MTP with K=3 heads (each head 3.2% of trunk non-embedding params, lambda_MTP = 1.0), FineWeb-Edu ~31.5B tokens (60k steps, batch 0.5M tokens, seq 2048, ~1.3x Chinchilla for the largest size), trained with the Muon optimizer (update-RMS rescaling). Findings: Soft-MTP lowers NTP loss vs standard MTP at every scale with the gap widening with scale, and lowers MTP loss from 689M onward; self-speculative decoding improves in all five domains tested (FineWeb-Edu, Wikipedia, Books, Science, Math) at every scale — acceptance length +1.8–2.2% and speedup +1.4–1.5% on average, with MTP distributions measurably closer to the NTP verifier (lower KL and TV); zero-shot average accuracy improves over standard MTP at every scale (~+0.1 pt at 167M/332M, ~+0.5 pt at 689M/1.2B, where Soft-MTP also overtakes the NTP-only baseline); math and code fine-tuning at 1.2B is stronger. Against the expensive alternative, Soft-MTP matches or exceeds direct KL-divergence minimization on most metrics — keeping hard CE supervision at the LM head and routing recovered KL gradients only through the MTP heads and trunk is sufficient. The repo ships a test verifying the recovered gradient equals the explicit KL(q||p) gradient to machine precision in float64, plus toggles for hard_mtp / soft_mtp / direct_kl / ntp under one loss function.

## Research notes

- License: paper CC BY 4.0 (license icon on the arXiv record); code MIT (verified on the repo)

## Similar entries

- [Match the Distribution, Not the Compute: Post-Training Multi-Token Prediction Heads](https://papers.projxon.ai/entries/1192) (paper, #1192)
- [Agentic RL: Token-In, Token-Out Done Right (TITO)](https://papers.projxon.ai/entries/978) (post, #978)
- [Efficient Pre-Training with Token Superposition](https://papers.projxon.ai/entries/524) (paper, #524)
- [Towards Looped Models Done Right — Part II: Rethinking at Fixed Points](https://papers.projxon.ai/entries/871) (paper, #871)
- [TokenGate: Adapting LLMs for Fast and Memory-Efficient Prefill with Learned Token Pruning](https://papers.projxon.ai/entries/1430) (paper, #1430)
- [The ultimate guide to multi-harness RL](https://papers.projxon.ai/entries/839) (post, #839)
