Multi-Token Prediction Done Right

Jayden Teoh

arXiv:2610.38331 · 2026-11-01 공개 · arXiv · PDF

language-models code-generation model-scaling speculative-decoding math-reasoning cross-entropy multi-token-prediction kl-self-distillation

Abstract

Multi-Token Prediction (MTP) is now a common ingredient in language-model pre-training, as it improves downstream performance and enables faster inference through speculative decoding. We identify a flaw in standard MTP training, in which a residual component of the MTP gradient interferes with both next-token and multi-token learning, increasingly so with scale. Specifically, the MTP cross-entropy gradient can be decomposed exactly into a KL self-distillation term that pulls each MTP head toward the model's own next-token prediction (NTP) distribution and improves speculative decoding, and a residual that has a low signal-to-noise ratio and buries the useful KL signal. We introduce the KL gradient-recovery trick: when two distributions share a linear output head, the gradient of their KL divergence can be recovered exactly by combining their cross-entropy gradients through straight-through gradient routing. Unlike minimizing the KL directly, this trick requires no vocabulary-sized logit matrices and is compatible with standard fused cross-entropy kernels. This enables Soft Multi-Token Prediction (Soft-MTP), a one-line code change to MTP that removes the noisy residual and backpropagates only the KL self-distillation signal by reusing the existing NTP and MTP cross-entropy computations. Soft-MTP supports both DeepSeek- and Meta-style MTP, adds no parameters, and incurs no measurable overhead. From 167M to 1.2B parameters, Soft-MTP improves over standard MTP with lower NTP perplexity, faster speculative decoding and higher zero-shot accuracy at every scale, lower MTP perplexity from 689M onward, and stronger math and code reasoning after fine-tuning at 1.2B. Soft-MTP also matches, if not exceeds, direct KL divergence minimization on most metrics. Soft-MTP is, in effect, a free lunch for MTP optimization. Our code can be found at https://github.com/JaydenTeoh/Soft-MTP.

한국어 요약

한 줄 요약

Soft-MTP는 MTP 학습에서 잡음이 많은 잔여 성분을 제거하여 NTP와 MTP 성능을 동시에 향상시키는 한 줄 코드 변경 기법이다.

핵심 기여도

핵심 아이디어

기존 MTP 학습에서 cross-entropy 기울기는 KL self-distillation 성분과 잔여 성분으로 분해되는데, 특히 잔여 성분은 신호 대 잡음비(SNR)가 낮고, 모델 규모가 커질수록 NTP 및 MTP 학습에 방해가 된다. 이 연구는 KL 기울기 복구 기법을 통해 잔여 성분을 제거하고, KL 기울기만 역전파함으로써 MTP 학습의 신호를 정제한다. 이는 기존 NTP 및 MTP의 cross-entropy 계산을 재사용하여 구현되며, `straight-through gradient routing`이라는 기법을 통해 LM head와 MTP head가 공유될 때 정확한 KL 기울기를 복구할 수 있다. 이로 인해 Soft-MTP는 기존 MTP와 동일한 코드 구조에서 단 한 줄의 코드 변경만으로도 성능 향상을 달성한다.

기술적 접근법

주요 결과

의의 및 한계

Soft-MTP는 기존 MTP 학습에서 발생하는 잔여 성분의 문제를 해결함으로써 NTP와 MTP 학습을 동시에 향상시키는 기법으로, 기존 퓨즈드 cross-entropy 커널과 호환되며 추가 파라미터 없이도 구현 가능하다는 점에서 실용적 가치가 높다. 특히, 추론 속도 향상과 zero-shot 성능 개선은 대규모 모델의 실제 활용에 기여할 수 있다. 그러나 본 연구는 DeepSeek 및 Meta 스타일 MTP 아키텍처에만 적용되었으며, 다른 MTP 구조와의 호환성은 추가 연구가 필요하다. 또한, 잔여 성분의 SNR 저하가 모든 모델 규모에서 동일하게 발생하는지에 대한 분석도 보완이 필요하다.

실용적 활용

Soft-MTP는 대규모 언어 모델의 pre-training 과정에서 MTP 학습을 개선할 수 있으며, 특히 추론 속도 향상과 zero-shot 성능 개선이 필요한 실시간 응용(예: 챗봇, 코드 생성)에 유용하다. 또한, 기존 MTP 구조를 유지하면서도 단 한 줄의 코드 변경만으로 성능을 향상시킬 수 있어, 산업 현장에서의 도입이 용이하다.