betaFeedback

WorksComputer Science

Multi-Token Prediction Done Right

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.

Introduction

Next-token prediction (NTP) has become a general recipe for training large language models (LLMs), yielding models with remarkable capabilities across a wide range of tasks [57]. One might argue that the NTP objective is sufficient—any distribution over token sequences can, in theory, be factorized autoregressively and modeled by a sufficiently expressive next-token predictor [62].

Yet, Multi-Token Prediction (MTP) [61, 55, 21], which trains a model to predict multiple future tokens, has now been widely adopted in modern LLM training, including in DeepSeek-V3/4 [15, 16], Nemotron 3 [52], GLM-5 [19], and Kimi K3 [31], just to name a few. MTP offers two main advantages over NTP—better model performance and more efficient inference. As a learning objective, MTP has been shown to alleviate the myopic nature of the next-token supervision [4, 21, 51, 26], leading to stronger downstream performance on long-horizon domains such as mathematics and code. More importantly, MTP heads can also be used for speculative decoding [9] (Leviathan et al. 2022) to accelerate model inference.

Despite the wide adoption of MTP, we still understand little about how it interacts with next-token prediction and which objective is best for training the MTP heads. During speculative decoding, a token drafted by MTP is accepted only if it agrees with the model’s own next-token prediction. If the goal is to improve speculative decoding, shouldn’t we directly train the model’s MTP heads to match its own NTP distribution via self-distillation? Recent work does exactly this [63, 70], but naïvely minimizing an explicit KL divergence requires materializing vocabulary-sized logit tensors for both the teacher and the student, which is costly in memory and incompatible with the standard fused cross-entropy kernels used in modern pre-training [24, 68]. In practice, frontier models still train their MTP heads with standard cross-entropy against the data.

In this paper, we show that the standard MTP cross-entropy gradient already contains this self-distillation signal. The MTP gradient decomposes exactly into a KL term gKLg_{\mathrm{KL}}, which pulls the MTP head toward the model’s own next-token distribution, and a residual gresg_{\mathrm{res}}, which is the NTP cross-entropy gradient against the data (see § 4). We provide evidence that this residual in the MTP loss gradient has a low signal-to-noise ratio (SNR) and interferes with both NTP and MTP learning, especially as scale increases. We then introduce the KL gradient–recovery trick: when two distributions share a linear output head, the gradient of their KL divergence can be recovered exactly from their cross-entropy gradients through straight-through gradient routing [6, 66], without explicitly computing the KL or materializing any logits. This trick enables Soft Multi-Token Prediction (Soft-MTP), which removes the residual and sends only the useful KL self-distillation gradient through the MTP heads and the shared model trunk, with a one-line code change (see Figure 1).

Figure 1. Figure 1: Soft-MTP’s illustration, pseudocode, and loss performance compared to MTP. Blue line is the one-line code change. We refer readers to Algorithm 1 for the full code implementation of Soft-MTP, including the MTP loss weighting.

From 167M to 1.2B parameters, Soft-MTP improves over standard MTP with lower NTP perplexity, faster self-speculative decoding in every domain we test, and higher zero-shot accuracy at every scale, as well as stronger code and math reasoning after fine-tuning. It also reaches lower MTP loss from 689M parameters onward. Soft-MTP matches or exceeds the costly explicit KL self-distillation on most metrics, at no extra cost over standard MTP. Soft-MTP supports both DeepSeek-style [15] and Meta-style [21] MTP architectures, adds no parameters, has negligible overhead, and remains compatible with fused cross-entropy kernels and the parallelism used in frontier pre-training. Soft-MTP is, in effect, a free lunch for MTP optimization.

Related Work

Multi-token prediction. Predicting several future tokens dates back to blockwise parallel decoding [61] and ProphetNet [55]. Gloeckle et al. [ [21] showed that MTP with parallel output heads improves large language models, especially on code, and DeepSeek-V3 [DeepSeek-AI, [15] brought MTP to frontier-scale pre-training and introduced the sequential MTP modules now used by many frontier models [15, 45, 20, 41, 52, 69, 19, 16, 50, 31] (Qwen Team 2025). A line of work argues that MTP helps to counter the myopia of next-token supervision [4, 21, 51, 26]. Recent works also go beyond MTP with richer objectives [25, 1, 44, 63, 47, 72].

MTP for speculative decoding. Speculative decoding drafts several tokens cheaply and verifies them in parallel using the more expensive target model [9] (Leviathan et al. 2022). MTP heads trained during pre-training can serve as drafters for speculative decoding. This is especially useful for accelerating reinforcement learning post-training, where generating rollouts is often the main bottleneck [69, 36, 28]. Recent work trains drafters to match the verifier more directly, by minimizing the TV distance [60, 36], and Nemotron 3 Ultra [53] introduces an MTP Boosting post-training phase that aligns the MTP heads with the NTP distribution via a temperature-scaled forward KL objective. Soft-MTP pursues the same goal during pre-training, at no extra cost over the standard MTP objective.

Self-distillation for MTP. Recent works train MTP heads to match the NTP distribution. They either compute the KL explicitly [63], which requires materializing the teacher’s and the student’s distributions over the full vocabulary, or approximate it with top-kk logits [70] or argmax predictions [32]. Chang and gpt-5.5-xhigh [2026] shows a cool trick to reduce the cost of full-vocabulary distillation by caching the teacher’s contribution to the KL gradient. However, their method still requires materializing the teacher’s full-vocabulary distribution, and it requires the student’s output head to be frozen. We show that standard MTP already contains the self-distillation gradient, and that our KL gradient–recovery trick recovers it exactly from the existing cross-entropy gradients. Soft-MTP therefore incurs no measurable overhead beyond that of standard MTP and remains compatible with fused cross-entropy kernels [24, 68].

Background

Let x1:Tx_{1:T} denote a sequence of tokens, where each token is represented as a one-hot vector xt∈{0,1}Vx_t \in\{0,1\}^{V} over a vocabulary of size VV. A model trunk with parameters θ\theta maps each prefix sequence x1:tx_{1:t} to a hidden state ht(0)∈Rdh_t^{(0)} \in\mathbb{R}^{d}. A linear output head Wθ∈RV×dW_\theta\in\mathbb{R}^{V \times d} (also commonly called the “LM head”) projects these hidden state representations to logits, followed by a softmax function, to obtain the next-token probability distribution:

pt(0)=softmax⁡(Wθht(0)).p_t^{(0)} = \operatorname{softmax}\left(W_\theta h_t^{(0)}\right).

The standard next-token cross-entropy loss is

LNTP=∑t=1T−1CE⁡(xt+1,pt(0))=−∑t=1T−1log⁡pt(0)(xt+1).\mathcal{L}_{\mathrm{NTP}} = \sum_{t=1}^{T-1} \operatorname{CE}\left(x_{t+1},p_t^{(0)}\right) = -\sum_{t=1}^{T-1}\log p_t^{(0)}(x_{t+1}).

Multi-Token Prediction

Multi-Token Prediction (MTP) extends NTP with KK token prediction heads to predict KK additional tokens. The kk-th MTP head produces a hidden state ht(k)h_t^{(k)} at each position tt, where k∈{1,…,K}k \in\{1,\ldots,K\}. Following typical implementation, the linear output head WθW_\theta is shared with the MTP heads to generate

pt(k)=softmax⁡(Wθht(k)),p_t^{(k)} = \operatorname{softmax}\left(W_\theta h_t^{(k)}\right),

where pt(k)p_t^{(k)} predicts the token distribution over xt+k+1x_{t+k+1}. The kk-th MTP loss is then given by

LMTP(k)=∑t=1T−k−1CE⁡(xt+k+1,pt(k))=−∑t=1T−k−1log⁡pt(k)(xt+k+1).\mathcal{L}_{\mathrm{MTP}}^{(k)} = \sum_{t=1}^{T-k-1}\operatorname{CE}\left(x_{t+k+1},p_t^{(k)}\right) = -\sum_{t=1}^{T-k-1}\log p_t^{(k)}(x_{t+k+1}).

The overall MTP objective is

LMTP=LNTP+λMTP⋅1K∑k=1KLMTP(k),\mathcal{L}_{\mathrm{MTP}} = \mathcal{L}_{\mathrm{NTP}} + \lambda_{\mathrm{MTP}}\cdot\frac{1}{K}\sum_{k=1}^{K}\mathcal{L}_{\mathrm{MTP}}^{(k)},

where λMTP>0\lambda_{\mathrm{MTP}}>0 is a scalar coefficient. For clarity of subsequent derivations, we write each loss as a sum over positions. Implementations typically average each loss over its own number of targets instead; we account for the resulting rescaling in Section B.5 and show the implementation in Algorithm 1.

Decomposing the MTP Gradient

Note that the analysis that follows is agnostic to the choice of MTP architecture, be it parallel [21] or sequential [15]. Consider the kk-th MTP prediction for position tt:

pt(k)=softmax⁡(Wθht(k)).p_t^{(k)} = \operatorname{softmax}\left(W_\theta h_t^{(k)}\right).

This distribution predicts xt+k+1x_{t+k+1}. The position-aligned NTP distribution that predicts the same token xt+k+1x_{t+k+1} is

qt(k):=pt+k(0)=softmax⁡(Wθht+k(0)).q_t^{(k)} := p_{t+k}^{(0)} = \operatorname{softmax}\left(W_\theta h_{t+k}^{(0)}\right).

Figure 2 provides a visualization of the position-aligned NTP distributions for an MTP model with K=2K = 2.

Illustration of position-aligned NTP distributions

Figure 2. Illustration of position-aligned NTP distributions.

Definition 4.1 (Hard MTP gradient). We define the hard MTP gradient as the gradient of the standard MTP cross-entropy loss with respect to the kk-th MTP hidden state:

ghard:=∇ht(k)CE⁡(xt+k+1,pt(k))g_{\mathrm{hard}} := \nabla_{h_t^{(k)}} \operatorname{CE}\left(x_{t+k+1}, p_t^{(k)}\right)
=WθT(pt(k)−xt+k+1).(1)= W_\theta^{\mathsf{T}}\left(p_t^{(k)} - x_{t+k+1}\right). \tag*{(1)}

The full derivation can be found in Appendix § 11. The hard MTP gradient can be further decomposed as such

ghard=WθT(pt(k)−qt(k)+qt(k)−xt+k+1)=WθT(pt(k)−qt(k))+WθT(qt(k)−xt+k+1),(2)g_{\mathrm{hard}} = W_\theta^{\mathsf{T}}\left(p_t^{(k)} - q_t^{(k)} + q_t^{(k)} - x_{t+k+1}\right) = W_\theta^{\mathsf{T}}\left(p_t^{(k)} - q_t^{(k)}\right) + W_\theta^{\mathsf{T}}\left(q_t^{(k)} - x_{t+k+1}\right), \tag*{(2)}

where gKLg_{\mathrm{KL}} is a soft KL self-distillation component1 and gresg_{\mathrm{res}} is a residual component corresponding to the cross-entropy gradient with respect to the aligned NTP hidden state. We denote this residual term using gresg_{\mathrm{res}} to distinguish this MTP gradient decomposition component from gNTPg_{\mathrm{NTP}}, which we reserve for the actual NTP cross-entropy gradient propagated through the NTP head into the shared model backbone.

The KL self-distillation component

Now, we explain why gKLg_{\mathrm{KL}} corresponds to the KL self-distillation gradient. Treating the aligned NTP distribution qt(k)q_t^{(k)} as a stop-gradient teacher distribution, the forward KL divergence from the aligned NTP distribution to the kk-th MTP distribution is

DKL(sg⁡(qt(k))∥pt(k)),D_{\mathrm{KL}}\left(\operatorname{sg}\left(q_t^{(k)}\right) \mathbin{\|} p_t^{(k)}\right),

where sg⁡(⋅)\operatorname{sg}(\cdot) denotes the stop-gradient operator. The gradient of the KL objective with respect to the MTP hidden state is

∇ht(k)DKL(sg⁡(qt(k))∥pt(k))=WθT(pt(k)−qt(k))=gKL.(3)\nabla_{h_t^{(k)}}D_{\mathrm{KL}}\left(\operatorname{sg}\left(q_t^{(k)}\right)\mathbin{\|}p_t^{(k)}\right) = W_\theta^{\mathsf{T}}\left(p_t^{(k)} - q_t^{(k)}\right) = g_{\mathrm{KL}}. \tag*{(3)}

We defer the full derivation to Appendix § 11. Thus, because MTP is supervised by the same underlying data distribution (just with offset token positions) and a shared linear output head WθW_\theta is used, part of the hard MTP gradient already implicitly performs self-distillation, i.e., it encourages the MTP head to match the aligned NTP distribution.

Soft Multi-Token Prediction

The earlier gradient decomposition leads to the question: how can we retain the self-distillation component gKLg_{\mathrm{KL}} by removing the residual component gresg_{\mathrm{res}} from the hard MTP gradient propagated through the shared model trunk?

A naïve implementation would explicitly construct the aligned NTP teacher distribution qt(k)q_t^{(k)} and kk-th MTP distribution pt(k)p_t^{(k)}, and minimize DKL(sg⁡(qt(k))∥pt(k))D_{\mathrm{KL}}\left(\operatorname{sg}\left(q_t^{(k)}\right)\mathrel{\|}p_t^{(k)}\right) directly in the logit space. However, given that the vocabulary size VV is large in modern language models, storing large T×VT \times V logit matrices during every MTP prediction is costly in memory usage. It is also incompatible with standard cross-entropy kernels, which are designed to avoid materializing the entire logit matrix in memory, and are commonly used in language model pre-training. A custom fused KL kernel could avoid materializing the logits, but it would have to recompute the teacher logits that the NTP loss already computes, unless the NTP cross-entropy and all KK MTP KL terms were fused into a single custom kernel.

We instead show that the same representation-space KL gradient can be recovered exactly from the cross-entropy gradients already computed during standard MTP training, with no measurable overhead. We term this novel procedure of recovering a KL gradient from the difference of two cross-entropy gradients under a shared linear output head as the KL gradient–recovery trick. We also show in § 6.3 that recovering the KL gradient using this trick matches, if not exceeds, direct KL minimization on most metrics.

KL gradient–recovery trick

For clarity, we exclude the λMTP/K\lambda_{\mathrm{MTP}}/K loss weighting from our derivations in this section. Note that our earlier gradient decomposition and the KL gradient–recovery trick are easily extendable to include the loss weighting, which we defer to Section B.5.

From the decomposition derived in Equation 2, our intuition lies in injecting a −gres-g_{\mathrm{res}} gradient term at the MTP hidden state, so that only gKLg_{\mathrm{KL}} is propagated through the MTP heads and subsequently the shared model trunk. We start by augmenting the NTP hidden states

h~t=ht(0)+∑k=1t−k≥1K[sg⁡(ht−k(k))−ht−k(k)].(4)\tilde{\mathbf{h}}_t=\mathbf{h}_t^{(0)}+\sum_{\substack{k=1\\t-k\geq1}}^{K}\left[\operatorname{sg}\left(\mathbf{h}_{t-k}^{(k)}\right)-\mathbf{h}_{t-k}^{(k)}\right]. \tag*{(4)}

This resembles the stop-gradient routing used in straight-through estimators [6, 66], except our intention is not to approximate an unavailable gradient, but rather, analytically derive another gradient quantity. Define the augmented NTP cross-entropy loss as

L~NTP=∑t=1T−1CE⁡(xt+1,softmax⁡(Wθh~t)).(5)\widetilde{\mathcal{L}}_{\mathrm{NTP}}=\sum_{t=1}^{T-1}\operatorname{CE}\left(x_{t+1},\operatorname{softmax}\left(W_{\theta}\tilde{\mathbf{h}}_t\right)\right). \tag*{(5)}

Since h~t+k\tilde{\mathbf{h}}_{t+k} is numerically the same as ht+k(0)\mathbf{h}_{t+k}^{(0)}, we have softmax⁡(Wθh~t+k)=qt(k)\operatorname{softmax}\left(W_{\theta}\tilde{\mathbf{h}}_{t+k}\right)=q_t^{(k)}, and the gradient of the augmented NTP loss with respect to the NTP hidden state remains the same. That is, the model’s optimization for the NTP loss remains unaltered. However, it now injects an extra gradient with respect to the MTP representation ht(k)\mathbf{h}_t^{(k)}

∇ht(k)L~NTP=−∇h~t+kCE⁡(xt+k+1,softmax⁡(Wθh~t+k))=−WθT(qt(k)−xt+k+1)=−gres,(6)\begin{aligned} \nabla_{\mathbf{h}_t^{(k)}}\widetilde{\mathcal{L}}_{\mathrm{NTP}}=-\nabla_{\tilde{\mathbf{h}}_{t+k}}\operatorname{CE}\left(x_{t+k+1},\operatorname{softmax}\left(W_{\theta}\tilde{\mathbf{h}}_{t+k}\right)\right) \\ &=-W_{\theta}^{\mathsf{T}}\left(q_t^{(k)}-x_{t+k+1}\right) \\ &=-g_{\mathrm{res}}, \tag*{(6)} \end{aligned}

which is precisely the quantity we needed. Therefore, summing the contributions of the hard MTP gradient from the ordinary MTP loss and the gradient of the augmented NTP loss with respect to the MTP hidden states, we get the self-distillation gradients

∇ht(k)(L~NTP+L~MTP(k))=ghard−gres=gKL(7)\nabla_{\mathbf{h}_t^{(k)}}\left(\widetilde{\mathcal{L}}_{\mathrm{NTP}}+\widetilde{\mathcal{L}}_{\mathrm{MTP}}^{(k)}\right)=g_{\mathrm{hard}}-g_{\mathrm{res}}=g_{\mathrm{KL}} \tag*{(7)}

as derived in our decomposition in Equation 2. Figure 1 illustrates the straight-through gradient routing and the one-line code change needed to operationalize the KL gradient–recovery.

Soft-MTP

Our method, Soft Multi-Token Prediction (Soft-MTP), uses the KL gradient–recovery trick to optimize the parameters of the MTP heads and the shared model trunk. There are two main distinctions of Soft-MTP compared to prior self-distillation MTP approaches.

First, the KL gradient–recovery trick operates directly in the NTP hidden-state space (see Equation 4), and avoids the need to materialize any additional logit matrices or explicitly compute KL divergence. As a result, Soft-MTP introduces negligible computational and memory overhead over standard MTP.

Second, Soft-MTP still sends cross-entropy gradients from the MTP loss into the shared linear output head WθW_\theta, but the parameters of the upstream modules (i.e., MTP heads and shared model trunk) receive the self-distillation gradient gKLg_{\mathrm{KL}} instead. We explain why this is better than direct KL minimization in § 6.3. Table 1 presents the anatomy of the gradient routing across different MTP objectives.

MethodOutput head WθW_\thetaMTP heads and shared trunk
Standard MTPCE gradientCE gradient
KL-MTPKL gradientKL gradient
Soft-MTPCE gradientKL gradient

Table 1. Gradient routing under different MTP objectives. We omit the standard NTP gradient which is unchanged across methods.

Note: Please refer to Appendix § 10 for the full PyTorch-style Soft-MTP code implementation using DeepSeek MTP, including the λMTP/K\lambda_{\mathrm{MTP}}/K loss weighting and the rescaling that accounts for different numbers of targets across MTP heads.

A bias–variance view of the residual

Equation 2 can also be interpreted from a bias–variance decomposition perspective. Of its two components, only gresg_{\mathrm{res}} depends on the sampled target token xt+k+1x_{t+k+1}; gKLg_{\mathrm{KL}} is determined entirely by the model’s own NTP and MTP predictions. Let πt(k)\pi_t^{(k)} denote the true distribution of the next token xt+k+1x_{t+k+1} given the prefix x≤t+kx_{\le t+k}, which is exactly what the position-aligned NTP distribution qt(k)q_t^{(k)} tries to predict. Since the one-hot target is a sample xt+k+1∼πt(k)x_{t+k+1} \sim\pi_t^{(k)}, the residual splits into two parts:

gres=Wθ⊤(qt(k)−xt+k+1)=Wθ⊤(qt(k)−πt(k))+Wθ⊤(πt(k)−xt+k+1)(8)g_{\mathrm{res}} = W_\theta^\top\left(q_t^{(k)} - x_{t+k+1}\right) = W_\theta^\top\left(q_t^{(k)} - \pi_t^{(k)}\right) + W_\theta^\top\left(\pi_t^{(k)} - x_{t+k+1}\right) \tag*{(8)}

where the sampling noise has zero mean because E[xt+k+1]=πt(k)\mathbb{E}[x_{t+k+1}] = \pi_t^{(k)}. The hard MTP gradient is unbiased but it includes the gresg_{\mathrm{res}} component and incurs the full one-hot sampling variance. By removing gresg_{\mathrm{res}} from the MTP updates, Soft-MTP removes this variance at the cost of a bias: without the NTP-error correction term, gKLg_{\mathrm{KL}} is biased toward the NTP distribution and not the data distribution πt(k)\pi_t^{(k)}. These two terms behave very differently as models scale. The bias term is the NTP teacher’s own prediction error, which keeps shrinking as the base model scales and/or trains longer. The variance term is the irreducible noise of sampling a one-hot target, which no amount of scale or training removes. Therefore, the trade that Soft-MTP makes becomes increasingly favorable at scale. We observe this empirically in § 6.1, where the residual has a much lower signal-to-noise ratio than the KL component, and the gap widens with model scale. Furthermore, since MTP is largely used to accelerate inference, biasing the MTP heads towards matching the NTP distribution is actually desirable for improving speculative decoding acceptance2. Unlike KL-MTP, Soft-MTP still trains the shared output head WθW_\theta with cross-entropy, so the head is fitted to the data rather than biased toward its own next-token predictions. We explain why this matters in § 6.3.

Experiments

We now turn to an empirical validation of Soft-MTP. Our study is organized around three main questions:

  1. How do the self-distillation component gKLg_{\mathrm{KL}} and residual component gresg_{\mathrm{res}} of the MTP cross-entropy gradient affect next-token and multi-token learning? In § 6.1, we find that gresg_{\mathrm{res}} has a substantially lower signal-to-noise ratio (SNR) than gKLg_{\mathrm{KL}}, yet accounts for a large fraction of the MTP gradient norm. Moreover, this residual becomes increasingly noisy with model scale, obscuring the useful learning signal in the MTP cross-entropy gradient. We further find that the residual component is anti-aligned with the NTP update direction throughout training, suggesting that the residual not only adds noise to MTP learning but also interferes with NTP optimization. Soft-MTP reaches a lower NTP loss than standard MTP, and the gap widens with scale. From 689M parameters onward, it also reaches a lower MTP loss.

  1. Does isolating the self-distillation gradient in Soft-MTP improve over standard MTP? In § 6.2, we empirically validate the analysis above by comparing Soft-MTP against standard MTP. Across model scales, Soft-MTP yields better perplexity, downstream accuracy, speculative-decoding acceptance rates, and math and code fine-tuning performance. These results support our analyses in Question 1—removing the noisy residual produces a cleaner and more compatible learning signal.

  1. How does Soft-MTP compare with directly optimizing a KL self-distillation objective? In § 6.3, we find little benefit from explicitly computing the KL divergence or propagating its gradients through the LM head: retaining hard cross-entropy supervision at the LM head while propagating the recovered KL gradients only through the MTP heads and shared model backbone is sufficient to match or exceed the gains of direct self-distillation. Moreover, Soft-MTP avoids the computational overhead of computing KL divergence and preserves compatibility with fused linear cross-entropy kernels. Overall, this suggests that Soft-MTP is more efficient.

Experimental setup. We pre-trained LLaMA-style models [65] of base-model sizes ranging from 167M to 1.2B parameters using NTP and MTP objectives. For MTP, we used the widely adopted DeepSeek-style sequential architecture [15] and added three MTP heads to predict K=3K = 3 additional future tokens, following common practice [21, 69, 50, 19]. To study the effect of standard MTP and Soft-MTP consistently across model sizes, we kept each MTP head at a constant 3.2% of the trunk’s non-embedding parameters and fixed the MTP loss coefficient at λMTP=1.0\lambda_{\mathrm{MTP}} = 1.0. We trained all models on the FineWeb-Edu dataset [54] for 60,000 steps with a batch size of 0.5M tokens and a sequence length of 2048, for a total of approximately 31.5B training tokens, which is ∼1.3×\sim1.3\times Chinchilla-optimal [23] for our largest model size. To be of modern relevance, we trained our models using the Muon optimizer [30] under the updated-RMS scaling of [43]. Our training hyperparameters are detailed in Appendix § 13. For completeness, we also showed that Soft-MTP improves over standard MTP using Meta-style MTP heads in Appendix § 12.

The residual interferes with learning

Trunk and MTP gradient signal-to-noise ratio across model sizes

(a) (a) 167M–1.2B: Trunk + MTP gradient SNR.

Trunk gradient signal-to-noise ratio for the 1.2B model

(b) (b) 1.2B: Trunk gradient SNR.

Share of MTP gradient in the trunk across model sizes

(c) (c) 167M–1.2B: Gradient share in trunk.

Figure 3. Figure 3: The residual has substantially lower SNR than the KL gradient but dominates the MTP gradient signal. (a-b) Signal-to-noise ratio (SNR) of each gradient component with respect to the shared trunk and MTP head parameters, across scales. (c) Share of the MTP gradient in the shared trunk carried by each component, averaged over training steps; the residual carries ∼\sim80% at every scale.

Gradient signal-to-noise. We first measure the signal-to-noise ratios (SNR) of the different gradient components w.r.t. the model parameters θ\theta: ghardθg_{\mathrm{hard}}^\theta (hard MTP gradient), gKLθg_{\mathrm{KL}}^\theta (KL self-distillation gradient), gresθg_{\mathrm{res}}^\theta (residual MTP gradient), and gNTPθg_{\mathrm{NTP}}^\theta (NTP cross-entropy gradient). For a gradient component gcθ(ξ)g_c^\theta(\xi) computed on a data batch ξ\xi, we define its signal as the squared norm of its expected direction, Sc=∥Eξ[gcθ]∥2S_c = \lVert\mathbb{E}_{\xi}[g_c^\theta]\rVert^2, and its noise as the total variance around this direction, Nc=Eξ∥gcθ∥2−Sc=tr⁡(Σc)N_c = \mathbb{E}_{\xi}\lVert g_c^\theta\rVert^2 - S_c = \operatorname{tr}(\Sigma_c). We report SNR⁡c=Sc/Nc\operatorname{SNR}_c = S_c/N_c as the signal-to-noise ratio. This quantity is closely related to the inverse of the gradient noise scale of McCandlish et al. [ [49]; with a fixed batch size, the two differ only by a constant factor. We estimate the SNR using M=256M = 256 independent batches, each containing 4 sequences of length 2048. The naïve signal estimate is biased upward by tr⁡(Σ)/M\operatorname{tr}(\Sigma)/M, so we report the unbiased estimator following McCandlish et al. [ [49].

Figures 3a and 3b compare the SNR of the two gradient components w.r.t. the shared trunk and MTP head parameters across model scales. Throughout training, the residual carries roughly 4×4\times lower SNR than the KL component. The residual becomes increasingly noisy, and the gap widens as the scale increases, from 4.1×4.1\times at 167M to 4.6×4.6\times at 1.2B (note the log-scale axis). This result corroborates the bias–variance tradeoff discussed in § 5.3: the residual always contains irreducible noise from sampling the one-hot target, while its signal, i.e., the NTP error, shrinks with scale, so its SNR falls as models grow. Removing the residual substantially increases gradient SNR—the KL component has much higher SNR than the original hard-MTP gradient. Yet despite its low SNR, the residual accounts for ∼80%\sim80\% of the MTP gradient reaching the shared trunk (see Figure 3c). Thus, although the standard MTP contains the high SNR KL signal implicitly, the residual obscures it under high-variance updates, which is why the overall hard-MTP gradient has lower SNR (see Figure 3b). We detail how we measure the SNR and gradient share of the KL and residual components in Appendix E.

Figure 4: The residual worsens NTP and MTP loss especially as scale increases. (a) Change in NTP loss ΔLNTP\Delta L_{\mathrm{NTP}} from a unit step of the trunk hidden state representation along each gradient component across model scales. (b-c) NTP and MTP loss of standard MTP and Soft-MTP throughout training across scales.

Effect on NTP loss, NTP loss, and MTP loss across model scales

Figure 4. (a) 167M–1.2B: Effect on NTP loss (proxy). (b) 167M–1.2B: NTP loss. (c) 167M–1.2B: MTP loss.

Interaction with NTP and MTP losses. Earlier, we showed the residual has low SNR. Here, we aim to show that the residual is not only noisy, but also interferes with NTP and MTP learning. In Figure 4a, we take a unit step on the shared trunk’s hidden state along each component’s gradient (backpropagated from the MTP heads) and re-evaluate the NTP loss through the frozen output head. This is a proxy for what each component ‘asks’ the trunk output to become. A step along the KL component consistently decreases NTP loss, indicating that the self-distillation signal in MTP reinforces the NTP objective. In contrast, a step along the residual component in MTP consistently increases NTP loss. This behavior persists throughout training and is consistent across model scales. Note that this analysis serves only as a characterization of the components’ behavior at the trunk–MTP head interface; the realized update to the trunk’s hidden states during training also depends on the optimizer used. We empirically corroborate this residual interference in Figure 4b: removing the residual with Soft-MTP lowers the NTP loss, especially as scale increases. Furthermore, from 689M parameters onward, Soft-MTP also reaches a lower MTP loss than standard MTP (see Figure 4c).

Summary: The residual is much noisier (lower SNR) than the KL component, yet accounts for roughly 80% of the MTP gradient. Removing the residual gradient improves NTP and MTP learning, especially as scale increases.

Soft-MTP outperforms standard MTP

Speculative decoding. We evaluated the speculative decoding performance of the standard MTP and Soft-MTP pre-trained models across FineWeb-Edu, Wikipedia, Books, Science, and Math. For each domain, we sample 256 prompts of length 512 tokens and generate 512-token continuations using the speculative sampling algorithm of Leviathan et al. [ [35], drafting with the K=3K = 3 MTP heads and verifying using the model’s own next-token head. For each model, we report the acceptance length (average number of accepted tokens per verification step) and the inference speedup relative to standard autoregressive sampling from the base model. Table 2 shows that Soft-MTP produces better drafts and faster decoding than standard MTP at every scale and in every domain. Averaged over the five domains, it improves acceptance length by 1.8–2.2% and speedup by 1.4–1.5% at each scale. Its MTP distributions are closer to the model’s own NTP verifier, with lower KL divergence and TV distance at every scale. These show that the bias discussed in § 5.3 works in our favor: the self-distillation gradient pulls the MTP heads toward exactly the NTP distribution that verifies their drafts.

SizeModelVerifier match KL ↓Verifier match TV ↓FineWeb-Edu SpeedupFineWeb-Edu Acc. Len.Wikipedia SpeedupWikipedia Acc. Len.Books SpeedupBooks Acc. Len.Science SpeedupScience Acc. Len.Math SpeedupMath Acc. Len.
167MMTP0.4850.3051.901.521.881.491.881.491.881.491.761.36
Soft-MTP0.4700.3001.92 +1.1%1.54 +1.3%1.89 +0.5%1.50 +0.7%1.91 +1.6%1.52 +2.0%1.90 +1.1%1.51 +1.3%1.81 +2.8%1.41 +3.7%
332MMTP0.4480.2881.961.571.941.541.941.551.941.541.871.47
Soft-MTP0.4300.2821.98 +1.0%1.60 +1.9%1.95 +0.5%1.55 +0.6%1.97 +1.5%1.58 +1.9%1.97 +1.5%1.58 +2.6%1.93 +3.2%1.53 +4.1%
689MMTP0.4100.2711.881.621.841.581.851.601.861.601.811.57
Soft-MTP0.3900.2651.90 +1.1%1.66 +2.5%1.87 +1.6%1.61 +1.9%1.88 +1.6%1.64 +2.5%1.88 +1.1%1.63 +1.9%1.84 +1.7%1.60 +1.9%
1.2BMTP0.3840.2601.741.671.721.631.711.621.721.651.701.60
Soft-MTP0.3640.2531.76 +1.1%1.70 +1.8%1.74 +1.2%1.66 +1.8%1.74 +1.8%1.67 +3.1%1.75 +1.7%1.68 +1.8%1.73 +1.8%1.64 +2.5%

Table 2. Self-speculative decoding performance across domains. KL divergence / TV distance: teacher-forced divergence of the MTP distribution from the model’s own next-token verifier on FineWeb-Edu validation set (mean over the three MTP heads). Speedup: improvement in inference speed using self-speculative decoding (relative to autoregressive decoding). Acceptance Length (Acc. Len.): average accepted tokens per draft, excluding the next-token prediction which is always accepted. Green: relative improvement of Soft-MTP over MTP. We bold the better of MTP and Soft-MTP per column; Soft-MTP wins every metric at every scale.

Zero-shot downstream performance. Table 3 reports the perplexity (ppl) and zero-shot accuracy (acc, or length-normalized acc_n) across benchmarks measured using the LM Evaluation Harness [18]. For reference, we also include the results of an NTP baseline. Consistent with Gloeckle et al. [ [21], standard MTP does not improve multiple-choice accuracy over NTP at small scales. Soft-MTP, in contrast, improves average accuracy over standard MTP at every scale, and the gain becomes larger at scale: around 0.1 points at 167M and 332M, and around 0.5 points at 689M and 1.2B, where Soft-MTP also surpasses NTP. At 1.2B, Soft-MTP achieves the best WikiText and LAMBADA perplexity and the highest average accuracy of all three models. This suggests that recovering the high SNR self-distillation gradient is important for the model to extract more learning signal from the multi-token prediction objective, enough to overtake NTP in zero-shot accuracy at 689M and 1.2B, and in WikiText and LAMBADA perplexity at 1.2B.

SizeModelFW-Edu ppl ↓Wiki. ppl ↓LAMB. ppl ↓LAMB. acc ↑PIQA acc ↑HellaS. acc_n ↑Wino. acc ↑ARC-e acc ↑ARC-c acc_n ↑OBQA acc ↑SciQ acc_n ↑Avg.
167MNTP15.23027.31142.15734.6666.8740.6352.0158.4628.3323.8074.6047.42
MTP15.98329.07443.01333.8866.4339.7051.7059.0126.3723.4074.2046.84
Soft-MTP15.95228.31843.79034.1266.1039.5553.2058.8427.6522.2073.6046.91
332MNTP13.07322.48226.00538.5469.9146.6553.5163.5131.4024.8078.0050.79
MTP13.60223.85626.99738.7769.5945.9254.0663.0131.2322.2078.3050.38
Soft-MTP13.55123.24928.56637.4568.7245.5853.5963.8932.1722.2080.1050.46
689MNTP11.44219.15718.07943.5171.5552.6156.1269.1934.9827.0083.4054.79
MTP11.83420.26518.56043.3171.1152.3356.5969.0235.6725.2082.5054.47
Soft-MTP11.72419.31617.97743.3070.6252.2856.6768.7736.3526.2085.9055.01
1.2BNTP10.57217.50314.15946.8173.1255.9557.2271.1737.4627.2085.1056.75
MTP10.89118.15614.99645.8671.5555.9157.4670.7537.9729.6085.3056.80
Soft-MTP10.74117.48914.07346.4872.0355.9158.0171.9737.5430.6085.9057.31

Table 3. Downstream language modeling evaluation. We bold the stronger result between standard MTP and Soft-MTP for every model scale (NTP results are only for reference).

Math and code fine-tuning performance. We next test how the pre-training objective affects downstream transfer to math and code reasoning. We discarded the MTP heads and fine-tuned each 1.2B model using the NTP loss alone. For math, we fine-tuned on 4.2B tokens from OpenMathInstruct-2 [64] and evaluated on the GSM8K [13] and MATH-500 [22, 40] benchmarks. For code, we fine-tuned on 21.0B tokens from the Python subset of Stack-Edu [2] and evaluated on the HumanEval [11] and MBPP [3] benchmarks with the BigCode Evaluation Harness [5]. More details of the training hyperparameters and evaluation are provided in Section D. As shown in Table 4, Soft-MTP leads standard MTP in seven of the eight cells, and is the only objective that never falls below the NTP baseline. On code, Soft-MTP’s margin over standard MTP grows with the sample budget kk, reaching +3.1 percentage points on HumanEval and +1.2 on MBPP at pass@64. On math, Soft-MTP leads standard MTP by +1.1 points on GSM8K and +1.8 points on MATH-500.

ModelHumanEvalMBPPGSM8KMATH-500
pass@16pass@32pass@64pass@16pass@32pass@64accacc
NTP28.89 (T=0.5T=0.5)33.77 (T=0.6T=0.6)39.02 (T=0.6T=0.6)47.83 (T=0.5T=0.5)53.65 (T=0.5T=0.5)58.80 (T=0.5T=0.5)47.6924.80
MTP31.70 (T=0.5T=0.5)36.37 (T=0.5T=0.5)40.85 (T=0.7T=0.7)48.28 (T=0.5T=0.5)54.56 (T=0.5T=0.5)59.80 (T=0.6T=0.6)48.6023.20
Soft-MTP31.99 (T=0.5T=0.5)37.26 (T=0.5T=0.5)43.90 (T=0.6T=0.6)47.88 (T=0.5T=0.5)54.59 (T=0.6T=0.6)61.00 (T=0.7T=0.7)49.6625.00

Table 4. Math and code fine-tuning results. Each 1.2B model is fine-tuned with the NTP loss only, on the Python subset of Stack-Edu for code and on OpenMathInstruct-2 for math. For code, we sample with top-p=1.0p = 1.0 and no top-kk, sweep the temperature over {0.1,0.2,…,1.0}\{0.1, 0.2, \ldots, 1.0\}, and report the best pass@kk, with the chosen temperature indicated in gray. For math, we evaluate 0-shot with greedy decoding. We bold the best result between MTP and Soft-MTP (NTP is shown for reference).

LNTP vs. LMTP across lambda MTP

(a) (a) LNTP\mathcal{L}_{\mathrm{NTP}} vs. LMTP\mathcal{L}_{\mathrm{MTP}} across λMTP\lambda_{\mathrm{MTP}}.

LNTP vs. DKL across lambda MTP

(b) (b) LNTP\mathcal{L}_{\mathrm{NTP}} vs. DKLD_{\mathrm{KL}} across λMTP\lambda_{\mathrm{MTP}}.

Horizon K vs LNTP

(c) (c) Horizon KK vs LNTP\mathcal{L}_{\mathrm{NTP}}.

Horizon K vs LMTP

(d) (d) Horizon KK vs LMTP\mathcal{L}_{\mathrm{MTP}}.

Figure 5. Effect of MTP weight and prediction horizon for 332M models trained on 7.3B tokens. Every axis is lower-better. (a-b) Varying MTP weight λMTP∈{0.25,0.5,0.75,1.0}\lambda_{\mathrm{MTP}} \in\{0.25, 0.5, 0.75, 1.0\} at fixed horizon K=3K = 3. Soft-MTP dominates the Pareto frontier for both plots. (c-d) Varying horizon K∈{3,4,5,6,7,8}K \in\{3, 4, 5, 6, 7, 8\} at fixed λMTP=1.0\lambda_{\mathrm{MTP}} = 1.0. Soft-MTP leads on both axes at every KK shown.

Effect of MTP weight and horizon on training metrics. To validate that Soft-MTP’s advantage over standard MTP is robust to these hyperparameters, we sweep the MTP weight λMTP\lambda_{\mathrm{MTP}} and the horizon KK at the 332M scale, training each model on 7.3B FineWeb-Edu tokens. Lowering λMTP\lambda_{\mathrm{MTP}} trades MTP loss for NTP performance, but Figure 5a shows that at every weight, Soft-MTP reaches lower NTP and MTP loss than standard MTP, so it Pareto-dominates standard MTP. The same holds for NTP loss against KL to the NTP verifier (see Figure 5b). Next, sweeping over MTP horizons while keeping λMTP\lambda_{\mathrm{MTP}} fixed at 1.0, Soft-MTP also achieves lower NTP and MTP loss than standard MTP at every horizon from K=3K = 3 to K=8K = 8 (see Figure 5c and Figure 5d).

Summary: Soft-MTP attains lower NTP and MTP loss than standard MTP across weights λMTP\lambda_{\mathrm{MTP}} and horizons KK. Its MTP heads sit closer to the NTP verifier in both KL and TV, thereby achieving faster speculative decoding. Soft-MTP also leads on zero-shot accuracy after pre-training and on both math and code reasoning after fine-tuning.

Soft-MTP is more efficient than KL-MTP

KL-MTP is inefficient in compute and memory. Table 5 compares the training cost of each objective at 1.2B. Because the KL gradient–recovery trick reuses the cross-entropy gradients that standard MTP already computes, Soft-MTP has the same matmul FLOPs, MFU and fused-CE peak memory as standard MTP, and its throughput is within 0.07%. KL-MTP is the most expensive on every axis. KL-MTP materializes both the teacher and student distributions over the vocabulary, which adds 1.5% FLOPs, lowers throughput by 5.6% relative to standard MTP, and raises peak memory by 21 GB. It also gains little benefit from standard fused cross-entropy kernels because the KL objective needs dense distributions to be materialized.

ObjectiveMatmul FLOPs (GFLOP/token)Throughput (tok/s)MFUPeak memory (GB), naive CEPeak memory (GB), fused CE
NTP8.1662,85151.9 %98.395.5
MTP10.2849,78351.7 %120.7107.0
KL-MTP10.4346,99049.6 %129.8128.1
Soft-MTP10.2849,74851.7 %121.0107.0

Table 5. Training cost by objective at the 1.2B model with K=3K = 3 MTP heads, measured on a single NVIDIA H200 GPU. Throughput and MFU are measured at the largest micro-batch size each objective fits. Peak memory is reported at a matched micro-batch of 19. Soft-MTP’s KL recovery is free: identical FLOPs, MFU and fused-CE peak memory to standard MTP, with throughput within 0.07%. KL-MTP is worst on every axis—lowest throughput and MFU, and the highest peak memory—and is the only objective that does not benefit much from using fused cross-entropy kernels.

Soft-MTP matches or exceeds KL-MTP in most metrics. Table 6 compares the three MTP objectives at 1.2B. Soft-MTP ties or wins on every perplexity metric, has higher average zero-shot accuracy, and beats KL-MTP on all six code fine-tuning metrics, while KL-MTP leads in math fine-tuning. In speculative decoding the two are neck and neck, with KL-MTP ahead by at most 0.01 on FineWeb-Edu. This is expected because both objectives send the same KL gradient through the MTP heads and the shared trunk, so their MTP drafts should match the verifier about equally well. The two objectives differ only in the gradient used to update the output head, and we next explain why training it with cross-entropy, as Soft-MTP does, matters.

MetricNTPMTPKL-MTPSoft-MTP
LMFW-Edu ppl ↓\downarrow10.5710.8910.7410.74
LMWikiText ppl ↓\downarrow17.5018.1617.5317.49
LMLAMBADA ppl ↓\downarrow14.1615.0014.3014.07
LMAvg. accuracy ↑\uparrow56.7556.8057.2257.31
Spec. dec.KL ↓\downarrow–0.3840.3630.364
Spec. dec.TV ↓\downarrow–0.2600.2520.253
Spec. dec.Acc. Len. ↑\uparrow–1.671.711.70
Spec. dec.Speedup ↑\uparrow–1.741.761.76
MathGSM8K ↑\uparrow47.6948.6050.3449.66
MathMATH-500 ↑\uparrow24.8023.2026.0025.00
CodeHumanEval pass@16 ↑\uparrow28.8931.7031.7531.99
CodeHumanEval pass@32 ↑\uparrow33.7736.3736.4137.26
CodeHumanEval pass@64 ↑\uparrow39.0240.8541.4643.90
CodeMBPP pass@16 ↑\uparrow47.8348.2847.6447.88
CodeMBPP pass@32 ↑\uparrow53.6554.5653.5154.59
CodeMBPP pass@64 ↑\uparrow58.8059.8059.6061.00

Table 6. Comparison against KL-MTP at 1.2B parameters. We bold the best of the three MTP objectives (NTP is shown for reference). Language modeling (LM): perplexity metrics and average zero-shot accuracy over LM-EVAL tasks. Speculative decoding (Spec. dec.): self-speculative decoding on FineWeb-Edu; acceptance length excludes the next-token prediction, which is always accepted. Fine-tuning (Math / Code): performance after NTP-only fine-tuning on math and code.

Why keep cross-entropy at the output head? Note that the output head WθW_\theta is shared in MTP; the same matrix maps both the NTP and the MTP hidden states to logits. As such, any gradient from the MTP loss also shapes the NTP readout. Under Soft-MTP, this gradient is the MTP cross-entropy gradient which, like the NTP loss, fits the output head to the data distribution. Under KL-MTP, it is the self-distillation gradient, which fits the head to the model’s own NTP predictions, and those predictions are themselves also computed by WθW_\theta. This creates a shortcut because the KL can be reduced not only by improving the MTP hidden states, but also by making the shared readout less sensitive to the directions in which the MTP and NTP hidden states differ. Cross-entropy has no such shortcut because its target does not depend on WθW_\theta. Figure 6 shows the consequence for the readout’s geometry, measured by the effective rank [59] of the logit map WγW_\gamma, the unembedding combined with the final RMSNorm gain γ\gamma (we combine the two because the logits depend only on their product). Standard MTP collapses the readout to about a quarter of the NTP baseline (131 vs. 496) and KL-MTP to about two thirds (321), while Soft-MTP stays closest (437). The gradient routing differences between the objectives (see Table 1) allow us to pull the two effects apart. Soft-MTP and KL-MTP both send the KL gradient through the MTP heads and trunk and differ only at the output head, so the gap between them comes from keeping cross-entropy at the head. Soft-MTP and standard MTP both use cross-entropy at the head and differ only in the trunk, so the much larger gap comes from removing the residual. Soft-MTP combines the best of both worlds in terms of gradient routing, and it is also the objective with the strongest perplexity and downstream accuracy results.

Bar chart showing the effective rank of the logit map for NTP, MTP, KL-MTP, and Soft-MTP

Figure 6. Effective rank of the logit map WγW_\gamma. Soft-MTP stays closest to the next-token readout.

Summary: Soft-MTP recovers the KL self-distillation gradient at the same cost as standard MTP, whereas KL-MTP is less efficient in throughput and memory. Soft-MTP nonetheless matches or exceeds KL-MTP on most metrics.

Discussion: Practical Relevance at Frontier Scale

MTP has been widely adopted in modern LLM training. Frontier model pre-training leverages many parallelism schemes due to tight memory budgets. Here we discuss the compatibility and relevance of Soft-MTP in frontier model pre-training.

Compatibility with parallelism. The KL gradient–recovery trick needs only two things where it is applied: the NTP hidden state ht+k(0)h_{t+k}^{(0)} and the MTP hidden state ht(k)h_t^{(k)} on the same device, and a backward path from LNTP\mathcal{L}_{\mathrm{NTP}} to ht(k)h_t^{(k)}. On its own, it adds no communication and no synchronism overhead. Parallelism that shards parameters, optimizer state or experts therefore leaves it untouched, e.g., data parallelism and ZeRO [58], and expert parallelism [34] as used by DeepSeek-V3 [15] and Kimi K3 [31]. Pipeline parallelism [27] only requires the MTP modules to sit on the same stage as the output head, which DeepSeek-V3 already does by design so that its MTP module can share the output head. The only axis that needs extra communication is sequence sharding, because our trick reads hidden states kk tokens ahead. This includes context parallelism, such as ring attention [42], and sequence parallelism [33]. Even then, the cost is a backward-pass exchange of at most KK hidden-state gradients at each shard boundary, independent of sequence length.

KL gradient–recovery trick is more compatible than explicit self-distillation. An explicit KL needs the teacher’s and the student’s vocabulary-sized distributions at once, which standard fused cross-entropy kernels cannot compute without materializing the logits. This is especially costly for models trained without tensor parallelism, such as DeepSeek-V3 [15], which therefore cannot shard these tensors along the vocabulary. A custom fused KL kernel can avoid this materialization, but must recompute the teacher logits that the NTP loss already computes, unless the NTP cross-entropy and all MTP KL terms are fused into a single kernel. The KL gradient-recovery trick instead carries the KL gradient through the hidden state rather than the logits, so every head keeps its standard, kernel-fused cross-entropy [24, 68], and Soft-MTP adds no vocabulary-sized tensors beyond those standard MTP already uses. Soft-MTP also matches, if not exceeds, direct KL minimization on most metrics as shown in § 6.3.

Future of MTP and extensions to the KL gradient–recovery trick. MTP has spread rapidly since DeepSeek-V3 adopted it in 2024 [15], but its longevity in pre-training is uncertain. DeepSeek-V4.1-Flash [17] recently dropped MTP in favor of DSpark [12], a speculative decoder trained after pre-training. Post-trained drafters such as Medusa [7], EAGLE [37, 39], DFlash [10] and DSpark [12] are convenient, but it remains open how well they work when the base model was never trained to form predictive representations of future tokens, e.g., via MTP. Will MTP be retained for the superior downstream accuracy it provides over NTP-only pre-training [21, 15, 50, 52], at the cost of minimal additional FLOPs? MTP has also proven useful in small-scale pre-training, e.g., in Modded-NanoGPT [29], and in data-constrained settings, where it improves sample efficiency, e.g., in NanoGPT Slowrun [67]. Whatever the future of MTP, the KL gradient–recovery trick applies more broadly—whenever a teacher and a student share a linear output head, the gradient of the forward KL can be recovered from their cross-entropy gradients. Many post-training methods compute such a KL, for example MTP Boosting [53], on-policy self-distillation (OPSD; [71]), and score centering for off-policy RL [48]. Such use cases are expensive due to the KL computation overhead, which may necessitate top-kk logits approximation. Our KL gradient–recovery trick avoids that cost, with the caveat that only the MTP heads and shared trunk receive the exact KL gradient, whereas the shared output head WθW_\theta is updated with cross-entropy. This is also suitable for methods that already freeze the output head under the KL loss, such as Next-Latent Prediction [63], which only needs the KL gradient with respect to the hidden states.

Conclusion

The standard MTP cross-entropy gradient can be decomposed into a KL self-distillation term, which pulls the MTP heads toward the model’s own next-token distribution, and a residual, which is the next-token cross-entropy gradient against the data. The residual carries most of the MTP gradient, yet it has a low signal-to-noise ratio, works against next-token learning, and becomes noisier with scale. Our KL gradient–recovery trick removes this residual and recovers the KL term exactly from the cross-entropy gradients that standard MTP already computes. This yields Soft-MTP, a one-line change to standard MTP that adds no parameters, has negligible overhead, and remains compatible with fused cross-entropy kernels. Soft-MTP improves over standard MTP in NTP and MTP loss, self-speculative decoding, zero-shot accuracy, and in math and code reasoning after fine-tuning, all at no extra cost.

Acknowledgements and Funding

Experiments in this paper were mostly funded by Jayden, using 8×8 \times RTX PRO 6000 GPUs rented from Vast.ai. The inspiration for this paper originally came from Jayden’s attempt to amortize the computational cost of the KL objective in NextLat [63].

We thank Alexei Gladstone, Edward S. Hu, John Langford, Khai Loong Aw, Michael K. Chen, Sophie L. Wang, and Stephen K. Yang for their valuable discussions and support. Jayden thanks Sophie L. Wang for helpful input on the design of the figures. Jayden also sincerely thanks Stephen K. Yang for sharing his Claude Max 20×20 \times plan and for providing the support needed to push through this project.

Full Soft-MTP PyTorch Implementation

Algorithm 1 Full Soft-MTP implementation in PyTorch syntax, for DeepSeek-style sequential MTP. The scale sks_k rescales each routed gradient to match the corresponding head’s own cross-entropy gradient (Section B.5); the highlighted lines are the only changes from standard MTP.

# x, y        : [B, T] input tokens and pre-shifted labels; y[:, t] is the
#                target of position t.
# K            : number of MTP heads.
# lambda_mtp   : auxiliary MTP weight.
# ce           : cross-entropy, mean-reduced over the targets it is given.
#
# MTP head k at position t and the NTP head at position t+k predict the
# SAME token y[:, t+k]; that shared label is what cancels the label term
# and leaves the KL gradient. Each MTP head has one fewer target than the
# head before it: head k has T-k targets, y[:, k:].

h_prev = shared_trunk(x)
h0 = norm[0](h_prev) # NTP hidden states are directly from trunk, [B, T, d]
T = y.size(1)

loss_mtp = 0
for k in range(1, K+1):
    yk = y[:, k:]  # [B, T-k] k-th MTP head targets
    h_prev = mtp_head[k-1](h_prev[:, :T-k], x[:, k:])  # DeepSeek's sequential MTP
    hk = norm[k](h_prev)

    # hard CE: hk gets lambda_mtp/(K(T-k)) * CE gradient
    loss_mtp += ce(lm_head, hk, yk)

    # straight-through gradient routing
    # s_k undoes the NTP CE's 1/T mean and re-applies k-th MTP head's own
    # 1/(T-k) mean and the 1/K head average, so the routed gradient
    # lands at exactly the scale the MTP head's own CE gradient uses.
    s_k = lambda_mtp * T / (K * (T - k))

    # h0 is numerically unchanged; only its backward changes
    h0[:, k:] = h0[:, k:] + s_k * (hk.detach() - hk)

    # NTP loss and the gradients reaching the trunk through h0 are unchanged
    loss_ntp = ce(lm_head, h0, y)

    # backward: hk[t] gets -s_k * (NTP CE grad at h0[t+k]); its one-hot part
    # cancels the one in hk's own CE grad, leaving the KL gradient
    # lambda_mtp / (K(T-k)) * W^T (p_k[t] - p_0[t+k])
    (loss_ntp + lambda_mtp/K * loss_mtp).backward()

Extra Derivations for MTP Gradients

Throughout, Wθ∈RV×dW_\theta\in\mathbb{R}^{V \times d} is the shared linear output head, h∈Rd\mathbf{h} \in\mathbb{R}^{d} denotes the hidden state fed into it (after any final normalization), z=Wθh\mathbf{z} = W_\theta\mathbf{h} are the logits, and p=softmax⁡(z)\mathbf{p} = \operatorname{softmax}(\mathbf{z}). Targets y∈RV\mathbf{y} \in\mathbb{R}^{V} may be one-hot vectors or full distributions, with ∑vyv=1\sum_v y_v = 1.

Hard MTP gradient

We derive Equation 1,

ghard:=∇ht(k)CE⁡(xt+k+1,pt(k))=WθT(pt(k)−xt+k+1).(9)g_{\mathrm{hard}} := \nabla_{\mathbf{h}_{t}^{(k)}} \operatorname{CE}\left(x_{t+k+1}, p_{t}^{(k)}\right) = W_{\theta}^{\mathsf{T}}\left(p_{t}^{(k)} - x_{t+k+1}\right). \tag*{(9)}

First, the cross-entropy gradient with respect to the logits. Since log⁡pv=zv−log⁡∑uezu\log p_v = z_v - \log\sum_u e^{z_u} and ∑vyv=1\sum_v y_v = 1,

CE⁡(y,p)=−∑vyvlog⁡pv=−yTz+log⁡∑uezu,\operatorname{CE}(y,p) = -\sum_v y_v \log p_v = -y^\mathsf{T}z + \log\sum_u e^{z_u},

and differentiating gives ∂CE⁡/∂zv=−yv+ezv/∑uezu=pv−yv\partial\operatorname{CE}/\partial z_v = -y_v + e^{z_v}/\sum_u e^{z_u} = p_v - y_v, i.e.

∇zCE⁡(y,softmax⁡(z))=p−y.(10)\nabla_z \operatorname{CE}(y,\operatorname{softmax}(z)) = p-y. \tag*{(10)}

The kk-th MTP logits are zt(k)=Wθht(k)z_t^{(k)} = W_\theta h_t^{(k)}, so ∂zt(k)/∂ht(k)=Wθ\partial z_t^{(k)}/\partial h_t^{(k)} = W_\theta. By the chain rule and Equation (10) with y=xt+k+1y=x_{t+k+1},

∇ht(k)CE⁡(xt+k+1,pt(k))=(∂zt(k)∂ht(k))T∇zt(k)CE⁡=WθT(pt(k)−xt+k+1).\nabla_{h_t^{(k)}} \operatorname{CE}\left(x_{t+k+1},p_t^{(k)}\right) = \left(\frac{\partial z_t^{(k)}}{\partial h_t^{(k)}}\right)^\mathsf{T}\nabla_{z_t^{(k)}}\operatorname{CE} = W_\theta^\mathsf{T}\left(p_t^{(k)}-x_{t+k+1}\right).

KL self-distillation gradient

We derive Equation 3,

∇ht(k)DKL(sg⁡(qt(k))∥pt(k))=WθT(pt(k)−qt(k))=gKL.(11)\nabla_{h_t^{(k)}}D_{\mathrm{KL}}\left(\operatorname{sg}\left(q_t^{(k)}\right)\mathbin{\|}p_t^{(k)}\right) = W_\theta^\mathsf{T}\left(p_t^{(k)}-q_t^{(k)}\right)=g_{\mathrm{KL}}. \tag*{(11)}

With a stop-gradient teacher, the forward KL divergence splits into a cross-entropy and the teacher’s entropy:

DKL(sg⁡(qt(k))∥pt(k))=∑vqt,v(k)log⁡qt,v(k)−∑vqt,v(k)log⁡pt,v(k)=−H(qt(k))+CE⁡(qt(k),pt(k)).D_{\mathrm{KL}}\left(\operatorname{sg}\left(q_t^{(k)}\right)\mathbin{\|}p_t^{(k)}\right) = \sum_v q_{t,v}^{(k)}\log q_{t,v}^{(k)}-\sum_v q_{t,v}^{(k)}\log p_{t,v}^{(k)} = -H\left(q_t^{(k)}\right)+\operatorname{CE}\left(q_t^{(k)},p_t^{(k)}\right).

The entropy term does not depend on ht(k)h_t^{(k)}, because the teacher is held fixed. Applying Equation (10) with y=qt(k)y=q_t^{(k)} and the same chain rule as above,

∇ht(k)DKL(sg⁡(qt(k))∥pt(k))=∇ht(k)CE⁡(qt(k),pt(k))=WθT(pt(k)−qt(k))=gKL.\nabla_{h_t^{(k)}}D_{\mathrm{KL}}\left(\operatorname{sg}\left(q_t^{(k)}\right)\mathbin{\|}p_t^{(k)}\right)=\nabla_{h_t^{(k)}}\operatorname{CE}\left(q_t^{(k)},p_t^{(k)}\right)=W_\theta^\mathsf{T}\left(p_t^{(k)}-q_t^{(k)}\right)=g_{\mathrm{KL}}.

From hidden states to parameters

The decomposition in Equation 2,

ghard=WθT(pt(k)−qt(k)+qt(k)−xt+k+1)=WθT(pt(k)−qt(k))+WθT(qt(k)−xt+k+1),(12)g_{\mathrm{hard}} = W_\theta^\mathsf{T}\left(p_t^{(k)}-q_t^{(k)}+q_t^{(k)}-x_{t+k+1}\right)=W_\theta^\mathsf{T}\left(p_t^{(k)}-q_t^{(k)}\right)+W_\theta^\mathsf{T}\left(q_t^{(k)}-x_{t+k+1}\right), \tag*{(12)}

follows from Equation 1 by adding and subtracting qt(k)q_t^{(k)}, and holds at the MTP hidden state. It carries over exactly to every parameter ϕ\phi upstream of ht(k)h_t^{(k)}, i.e. in the MTP heads and the shared trunk: for a fixed forward pass, backpropagation is linear in the gradient arriving at ht(k)h_t^{(k)},

∇ϕ=(∂ht(k)∂ϕ)T(gKL+gres)=(∂ht(k)∂ϕ)TgKL+(∂ht(k)∂ϕ)Tgres.\nabla_\phi= \left(\frac{\partial h_t^{(k)}}{\partial\phi}\right)^\mathsf{T}\left(g_{\mathrm{KL}}+g_{\mathrm{res}}\right)=\left(\frac{\partial h_t^{(k)}}{\partial\phi}\right)^\mathsf{T}g_{\mathrm{KL}}+\left(\frac{\partial h_t^{(k)}}{\partial\phi}\right)^\mathsf{T}g_{\mathrm{res}}.

This holds for both parallel and sequential MTP heads; in the sequential case, ht(k)h_t^{(k)} also depends on ht(k−1)h_t^{(k-1)}, which only changes the Jacobian, not the linearity.

KL gradient–recovery trick

We derive Equations (6) and 7. Recall the augmented NTP hidden states

h~t=ht(0)+∑k=1t−k≥1K[sg⁡(ht−k(k))−ht−k(k)],(13)\widetilde{h}_t=h_t^{(0)}+\sum_{\substack{k=1\\t-k\geq1}}^K\left[\operatorname{sg}\left(h_{t-k}^{(k)}\right)-h_{t-k}^{(k)}\right], \tag*{(13)}

and the augmented NTP loss

L~NTP=∑t=1T−1CE⁡(xt+1,softmax⁡(Wθh~t)).(14)\widetilde{\mathcal{L}}_{\mathrm{NTP}}=\sum_{t=1}^{T-1}\operatorname{CE}\left(x_{t+1},\operatorname{softmax}\left(W_\theta\widetilde{h}_t\right)\right). \tag*{(14)}

Forward pass. Each bracketed term in Equation 4 is exactly zero, so h~t=ht(0)\tilde{h}_t = h_t^{(0)} numerically, and L~NTP\tilde{\mathcal{L}}_{\mathrm{NTP}} takes the same value as LNTP\mathcal{L}_{\mathrm{NTP}}.

Backward pass. Let Gt:=∇h~tCE⁡(xt+1,softmax⁡(Wθh~t))G_t := \nabla_{\tilde{h}_t} \operatorname{CE}\left(x_{t+1}, \operatorname{softmax}(W_\theta\tilde{h}_t)\right). Since h~t=ht(0)\tilde{h}_t = h_t^{(0)} numerically, Equation (10) gives

Gt=WθT(pt(0)−xt+1).G_t = W_\theta^{\mathsf{T}}\left(p_t^{(0)} - x_{t+1}\right).

The stop-gradient term has zero Jacobian, so ∂h~t/∂ht(0)=I\partial\tilde{h}_t/\partial h_t^{(0)} = I and ∂h~t/∂ht−k(k)=−I\partial\tilde{h}_t/\partial h_{t-k}^{(k)} = -I. The NTP hidden states therefore receive exactly the standard NTP gradient, ∇ht(0)L~NTP=Gt\nabla_{h_t^{(0)}} \tilde{\mathcal{L}}_{\mathrm{NTP}} = G_t. The MTP hidden state ht(k)h_t^{(k)} appears only in h~t+k\tilde{h}_{t+k}, so, using qt(k)=pt+k(0)q_t^{(k)} = p_{t+k}^{(0)},

∇ht(k)L~NTP=−Gt+k=−WθT(pt+k(0)−xt+k+1)=−WθT(qt(k)−xt+k+1)=−gres,\nabla_{h_t^{(k)}} \tilde{\mathcal{L}}_{\mathrm{NTP}} = -G_{t+k} = -W_\theta^{\mathsf{T}}\left(p_{t+k}^{(0)} - x_{t+k+1}\right) = -W_\theta^{\mathsf{T}}\left(q_t^{(k)} - x_{t+k+1}\right) = -g_{\mathrm{res}},

which is Equation (6). The NTP target at position t+kt+k exists exactly when the kk-th MTP target at position tt does (t≤T−k−1t \le T-k-1), so the two losses cover the same positions. Adding the hard MTP gradient and using Equation 2,

∇ht(k)(L~NTP+LMTP(k))=ghard−gres=gKL(15)\nabla_{h_t^{(k)}}\left(\tilde{\mathcal{L}}_{\mathrm{NTP}} + \mathcal{L}_{\mathrm{MTP}}^{(k)}\right) = g_{\mathrm{hard}} - g_{\mathrm{res}} = g_{\mathrm{KL}} \tag*{(15)}

since ghard−gres=(gKL+gres)−gres=gKLg_{\mathrm{hard}} - g_{\mathrm{res}} = (g_{\mathrm{KL}} + g_{\mathrm{res}}) - g_{\mathrm{res}} = g_{\mathrm{KL}}.

Output head. The augmentation leaves the output head’s gradient unchanged. For the NTP loss,

∇WθCE⁡(xt+1,softmax⁡(Wθh~t))=(pt(0)−xt+1)h~tT=(pt(0)−xt+1)ht(0)T,\nabla_{W_\theta} \operatorname{CE}\left(x_{t+1}, \operatorname{softmax}(W_\theta\tilde{h}_t)\right) = \left(p_t^{(0)} - x_{t+1}\right)\tilde{h}_t^{\mathsf{T}} = \left(p_t^{(0)} - x_{t+1}\right)h_t^{(0)\mathsf{T}},

and the MTP loss still contributes its cross-entropy gradient (pt(k)−xt+k+1)ht(k)T\left(p_t^{(k)} - x_{t+k+1}\right)h_t^{(k)\mathsf{T}}. Hence WθW_\theta is trained with cross-entropy, while the MTP heads and the shared trunk receive the KL gradient (Table 1).

Loss weighting and per-head normalization

In practice, the MTP losses are weighted by λMTP/K\lambda_{\mathrm{MTP}}/K and each loss is averaged over its own targets. Let N0N_0 be the number of NTP targets and NkN_k the number of targets of the kk-th MTP head, so that

L=1N0∑tCE⁡(xt+1,pt(0))+λMTPK∑k=1K1Nk∑tCE⁡(xt+k+1,pt(k)).\mathcal{L} = \frac{1}{N_0}\sum_t \operatorname{CE}\left(x_{t+1},p_t^{(0)}\right) + \frac{\lambda_{\mathrm{MTP}}}{K}\sum_{k=1}^{K}\frac{1}{N_k}\sum_t \operatorname{CE}\left(x_{t+k+1},p_t^{(k)}\right).

The MTP loss then contributes λMTPKNkghard\frac{\lambda_{\mathrm{MTP}}}{K N_k}g_{\mathrm{hard}} at ht(k)h_t^{(k)}, while routing the NTP gradient as above contributes only −1N0gres-\frac{1}{N_0}g_{\mathrm{res}}, since the NTP loss is averaged over N0N_0 targets. Scaling each straight-through term by

sk=λMTPN0KNk,h~t=ht(0)+∑ksk[sg⁡(ht−k(k))−ht−k(k)],s_k = \frac{\lambda_{\mathrm{MTP}}N_0}{K N_k}, \qquad\tilde{h}_t = h_t^{(0)} + \sum_k s_k\left[\operatorname{sg}\left(h_{t-k}^{(k)}\right) - h_{t-k}^{(k)}\right],

leaves the forward pass unchanged and makes the routed gradient −skN0gres=−λMTPKNkgres-\frac{s_k}{N_0}g_{\mathrm{res}} = -\frac{\lambda_{\mathrm{MTP}}}{K N_k}g_{\mathrm{res}}, so that

∇ht(k)LSoft−MTP=λMTPKNk(ghard−gres)=λMTPKNkgKL,\nabla_{h_t^{(k)}}\mathcal{L}_{\mathrm{Soft-MTP}} = \frac{\lambda_{\mathrm{MTP}}}{K N_k}\left(g_{\mathrm{hard}} - g_{\mathrm{res}}\right) = \frac{\lambda_{\mathrm{MTP}}}{K N_k}g_{\mathrm{KL}},

which is exactly the gradient of the correspondingly weighted KL objective λMTPK∑k1Nk∑tDKL(sg⁡(qt(k))∥pt(k))\frac{\lambda_{\mathrm{MTP}}}{K}\sum_k \frac{1}{N_k}\sum_t D_{\mathrm{KL}}\left(\operatorname{sg}\left(q_t^{(k)}\right)\mathbin{\|}p_t^{(k)}\right). With sum rather than mean reduction, N0=Nk=1N_0 = N_k = 1 and sk=λMTP/Ks_k = \lambda_{\mathrm{MTP}}/K. In the implementation of Algorithm 1, the labels are pre-shifted so that N0=TN_0 = T and Nk=T−kN_k = T-k, giving sk=λMTPT/(K(T−k))s_k = \lambda_{\mathrm{MTP}}T/(K(T-k)).

Meta-style MTP results

We pre-train standard MTP and Soft-MTP at the 332M scale using the Meta-style MTP architecture. Both runs use K=3K = 3 and λMTP=1\lambda_{\mathrm{MTP}} = 1 and train for 7.3B FineWeb-Edu tokens. Figure 7 shows that Soft-MTP attains lower NTP and MTP loss than standard MTP at the end of training.

Figure 7. (a) NTP loss. (b) MTP loss. Validation NTP and MTP losses of standard MTP and Soft-MTP with Meta-style MTP heads at 332M.

Experiment Setup and Hyperparameters

Architecture. We use a LLaMA-style [65] pre-norm Transformer with RMSNorm, RoPE, and SwiGLU activations. For experiments in the main body, MTP uses the DeepSeek MTP architecture [15]. Following the implementation of DeepSeek MTP, and confirmed across other architectures with MTP such as Nemotron 3 [52], the NTP and each MTP head have their own final RMSNorm layers.

Model sizes. We fix the depth at L=36L = 36 layers and vary only the width, so that each one-layer MTP head is roughly a constant fraction of the model parameters at every scale.

167M332M689M1.2B
Total parameters178.4M356.9M745.0M1273.0M
Next-token-prediction path167.2M332.1M689.3M1173.9M
MTP heads11.2M24.8M55.8M99.1M

Table 1 (PDF p. 21).

Optimizer and schedule. We use Muon [30] on the 2D hidden matrices with Newton–Schulz orthogonalization and the update-RMS rescaling of Liu et al. [ [43]. The embeddings, the output head and all norms use AdamW [46]. Following the improved recipe of Dao and Gu [ [14], we set the peak learning rate to 5×5 \times the GPT-3 value for the corresponding model size, with linear warmup and cosine decay to 10−510^{-5}.

Code and math fine-tuning. We follow the continued-training setup of Zuhri et al. [ [72]: 4.2B tokens of OpenMathInstruct-2 [64] for math, and 21.0B tokens of the Python subset of Stack-Edu [2] for code. The learning rate decays with a cosine schedule to 10% of its peak, gradients are clipped at 1.0, and code is evaluated with pass@16, pass@32 and pass@64 on HumanEval and MBPP. We deviate from their setup by fine-tuning with the NTP loss alone, i.e., MTP heads are discarded, and by using the Muon optimizer.

Analyses

All three diagnostics below decompose the MTP gradient at the MTP hidden state into its two components using the exact identity of Equation 2, ghard=gKL+gresg_{\mathrm{hard}} = g_{\mathrm{KL}} + g_{\mathrm{res}}, and then ask what each component does. They are measured offline on frozen checkpoints.

FineWeb-Edu pre-training§ 6.2 K/λMTPK/\lambda_{\mathrm{MTP}} sweepsMath fine-tuningCode fine-tuning
Data
CorpusFineWeb-EduFineWeb-EduOpenMathInstruct-2Stack-Edu (Python)
Sequence length2048204820482048
Steps60 00014 0008 00040 000
Tokens31.5B7.34B4.19B21.0B
Training parameters
Batch size (sequences)256 = 524 288 tokens / step
Peak learning rate2e-3 / 1.5e-3 / 1.25e-3 / 1e-31.5e-34e-55e-5
LR schedulecosinecosinecosinecosine
LR floor10−510^{-5}10−510^{-5}0.1× peak lr0.1× peak lr
Warmup steps2 0002 0008002 000
Weight decay0.10.10.10.1
Clip gradient norm1.01.01.01.0
OptimizerMuon [30], momentum 0.95, Nesterov, 5 Newton–Schulz steps, update-RMS scaling [43]
AdamW (β1=0.9\beta_1 = 0.9, β2=0.95\beta_2 = 0.95) for embeddings, output head and norms
Model parameters
Layers LL36363636
Hidden dimension dd512 / 768 / 1152 / 153676815361536
Attention heads8 / 12 / 18 / 24122424
Head dimension64
Vocabulary50 304 (GPT-2 BPE, padded), untied embeddings
MTP parameters
ArchitectureDeepSeekDeepSeek and Meta parallel— (heads discarded)
Horizon KK33–8 (3 for the weight sweep)—
λMTP\lambda_{\mathrm{MTP}}1.00.25–1.0 (1.0 for the horizon sweep)—
Head layers / depth11—

Table 7. Training, model and MTP hyperparameters. The global batch is identical everywhere (256×2048256 \times2048 tokens). Both fine-tunes are trained with next-token prediction only.

Unless stated otherwise, the estimator uses M=256M = 256 independent minibatches of 4 sequences each.

Gradient signal-to-noise ratio

Let {gi}i=1M\{g_i\}_{i=1}^{M} be the per-minibatch mean gradients of one component, with mean μ\mu and covariance Σ\Sigma. Writing gˉ=1M∑igi\bar{g} = \frac{1}{M}\sum_i g_i,

signal=∥gˉ∥2,total=1M∑i∥gi∥2,noise=total−signal.\text{signal} = \lVert\bar{g}\rVert^2,\qquad\text{total} = \frac{1}{M}\sum_i \lVert g_i\rVert^2,\qquad\text{noise} = \text{total} - \text{signal}.

and SNR = signal/noise. Its reciprocal is the gradient noise scale of McCandlish et al. [ [49], measured in units of minibatches. The raw ratio is biased: the measured signal carries a tr⁡Σ/M\operatorname{tr}\Sigma/M sampling floor and the measured noise is low by a factor (M−1)/M(M-1)/M. We report the debiased value throughout.

Share of the MTP gradient

Because ghard=gKL+gresg_{\mathrm{hard}} = g_{\mathrm{KL}} + g_{\mathrm{res}} holds exactly and per batch, each component’s contribution to the applied gradient is its projection onto it:

share⁡c=⟨ghard,gc⟩∥ghard∥2,share⁡KL+share⁡res=1 exactly.\operatorname{share}_c = \frac{\langle g_{\mathrm{hard}}, g_c\rangle}{\lVert g_{\mathrm{hard}}\rVert^2},\qquad\operatorname{share}_{\mathrm{KL}} + \operatorname{share}_{\mathrm{res}} = 1\ \text{exactly}.

Expanding ∥ghard∥2=∥gKL∥2+∥gres∥2+2⟨gKL,gres⟩\lVert g_{\mathrm{hard}}\rVert^2 = \lVert g_{\mathrm{KL}}\rVert^2 + \lVert g_{\mathrm{res}}\rVert^2 + 2\langle g_{\mathrm{KL}}, g_{\mathrm{res}}\rangle expresses both shares in terms of three scalars, ∥gKL∥2\lVert g_{\mathrm{KL}}\rVert^2, ∥gres∥2\lVert g_{\mathrm{res}}\rVert^2 and ⟨gKL,gres⟩\langle g_{\mathrm{KL}}, g_{\mathrm{res}}\rangle, which we pool over batches before taking the ratio. Because the shares sum to one by construction, they decompose ghardg_{\mathrm{hard}} rather than merely comparing magnitudes. A share can be negative when the two components point in opposite directions.

Proxy effect of each component on the NTP loss

To ask what a unit step along one gradient component would do to the next-token loss, we take that step in hidden space and re-evaluate. With HH the (detached) trunk hidden state, gcg_c the component’s gradient backpropagated from the MTP hidden state through the MTP head to HH, and LNTP\mathcal{L}_{\mathrm{NTP}} the NTP cross-entropy,

ΔLNTP(c)=LNTP(RMSNorm⁡NTP(H−gc))−LNTP(RMSNorm⁡NTP(H)),positive = harm,\Delta\mathcal{L}_{\mathrm{NTP}}^{(c)} = \mathcal{L}_{\mathrm{NTP}}\bigl(\operatorname{RMSNorm}_{\mathrm{NTP}}(H-g_c)\bigr) - \mathcal{L}_{\mathrm{NTP}}\bigl(\operatorname{RMSNorm}_{\mathrm{NTP}}(H)\bigr),\qquad\textbf{positive = harm},

evaluated separately for c∈{KL,residual}c \in\{\mathrm{KL},\mathrm{residual}\}; positive values mean the step increases the NTP loss. Note that this proxy only probes what one component’s direction would do to the NTP loss at this state, not what training actually does to the final model.

References

  1. [1]Kwangjun Ahn, Alex Lamb, and John Langford. Efficient joint prediction of multiple future tokens, 2025. URL https://arxiv.org/abs/2503.21801.
  2. [2]Loubna Ben Allal, Anton Lozhkov, Elie Bakouch, Gabriel Martín Blázquez, Guilherme Penedo, Lewis Tunstall, Andrés Marafioti, Hynek Kydlíček, Agustín Piqueres Lajarín, Vaibhav Srivastav, et al. Smollm2: When smol goes big–data-centric training of a small language model. arXiv preprint arXiv:2502.02737, 2025.arxiv.org/abs/2502.02737
  3. [3]Jacob Austin, Augustus Odena, Maxwell Nye, Maarten Bosma, Henryk Michalewski, David Dohan, Ellen Jiang, Carrie Cai, Michael Terry, Quoc Le, et al. Program synthesis with large language models. arXiv preprint arXiv:2108.07732, 2021.arxiv.org/abs/2108.07732
  4. [4]Gregor Bachmann and Vaishnavh Nagarajan. The pitfalls of next-token prediction. In Ruslan Salakhutdinov, Zico Kolter, Katherine Heller, Adrian Weller, Nuria Oliver, Jonathan Scarlett, and Felix Berkenkamp, editors, Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 2296–2318. PMLR, 21–27 Jul 2024. URL https://proceedings.mlr.press/v235/bachmann24a.html.arxiv.org/abs/2403.06963
  5. [5]Loubna Ben Allal, Niklas Muennighoff, Logesh Kumar Umapathi, Ben Lipkin, and Leandro von Werra. A framework for the evaluation of code generation models. https://github.com/bigcode-project/bigcode-evaluation-harness, 2022.
  6. [6]Yoshua Bengio, Nicholas Léonard, and Aaron Courville. Estimating or propagating gradients through stochastic neurons for conditional computation, 2013. URL https://arxiv.org/abs/1308.3432.
  7. [7]Tianle Cai, Yuhong Li, Zhengyang Geng, Hongwu Peng, Jason D Lee, Deming Chen, and Tri Dao. Medusa: Simple llm inference acceleration framework with multiple decoding heads. arXiv preprint arXiv:2401.10774, 2024.arxiv.org/abs/2401.10774
  8. [9]Charlie Chen, Sebastian Borgeaud, Geoffrey Irving, Jean-Baptiste Lespiau, Laurent Sifre, and John Jumper. Accelerating large language model decoding with speculative sampling, 2023. URL https://arxiv.org/abs/2302.01318.
  9. [10]Jian Chen, Yesheng Liang, and Zhijian Liu. Dflash: Block diffusion for flash speculative decoding. arXiv preprint arXiv:2602.06036, 2026.arxiv.org/abs/2602.06036
  10. [11]Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde De Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, et al. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374, 2021.arxiv.org/abs/2107.03374
  11. [12]Xin Cheng, Xingkai Yu, Chenze Shao, Jiashi Li, Yunfan Xiong, Yi Qian, Jiaqi Zhu, Shirong Ma, Xiaokang Zhang, Jiasheng Ye, et al. Dspark: Confidence-scheduled speculative decoding with semi-autoregressive generation. arXiv preprint arXiv:2607.05147, 2026.arxiv.org/abs/2607.05147
  12. [13]Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, et al. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168, 2021.arxiv.org/abs/2110.14168
  13. [14]Tri Dao and Albert Gu. Transformers are SSMs: Generalized models and efficient algorithms through structured state space duality. In Forty-first International Conference on Machine Learning, 2024. URL https://openreview.net/forum?id=ztn8FCR1td.arxiv.org/abs/2405.21060
  14. [15]DeepSeek-AI. Deepseek-v3 technical report, 2024. URL https://arxiv.org/abs/2412.19437.
  15. [16]DeepSeek-AI. Deepseek-v4: Towards highly efficient million-token context intelligence, 2026a. URL https://arxiv.org/abs/2606.19348.
  16. [17]DeepSeek-AI. Deepseek-v4.1-flash: Pushing the limits of kv cache compression, 2026b. URL https://arxiv.org/abs/2609.19969.
  17. [18]Leo Gao, Jonathan Tow, Baber Abbasi, Stella Biderman, Sid Black, Anthony DiPofi, Charles Foster, Laurence Golding, Jeffrey Hsu, Alain Le Noac’h, Haonan Li, Kyle McDonell, Niklas Muennighoff, Chris Ociepa, Jason Phang, Laria Reynolds, Hailey Schoelkopf, Aviya Skowron, Lintang Sutawika, Eric Tang, Anish Thite, Ben Wang, Kevin Wang, and Andy Zou. The language model evaluation harness, 07 2024. URL https://zenodo.org/records/12608602.
  18. [19]GLM-5-Team. Glm-5: from vibe coding to agentic engineering, 2026. URL https://arxiv.org/abs/2602.15763.
  19. [20]GLM Team. Glm-4.5: Agentic, reasoning, and coding (arc) foundation models, 2025. URL https://arxiv.org/abs/2508.06471.
  20. [21]Fabian Gloeckle, Badr Youbi Idrissi, Baptiste Rozière, David Lopez-Paz, and Gabriel Synnaeve. Better & faster large language models via multi-token prediction. In Proceedings of the 41st International Conference on Machine Learning, ICML’24. JMLR.org, 2024.arxiv.org/abs/2404.19737
  21. [22]Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring mathematical problem solving with the MATH dataset. In Thirty-fifth Conference on Neural Information Processing Systems Datasets and Benchmarks Track (Round 2), 2021. URL https://openreview.net/forum?id=7Bywt2mQsCe.
  22. [23]Jordan Hoffmann, Sebastian Borgeaud, Arthur Mensch, Elena Buchatskaya, Trevor Cai, Eliza Rutherford, Diego de Las Casas, Lisa Anne Hendricks, Johannes Welbl, Aidan Clark, et al. Training compute-optimal large language models. arXiv preprint arXiv:2203.15556, 2022.arxiv.org/abs/2203.15556
  23. [24]Pin-Lun Hsu, Yun Dai, Vignesh Kothapalli, Qingquan Song, Shao Tang, Siyu Zhu, Steven Shimizu, Shivam Sahni, Haowen Ning, Yanning Chen, and Zhipeng Wang. Liger-kernel: Efficient triton kernels for LLM training. In Championing Open-source Development in ML Workshop @ ICML25, 2025. URL https://openreview.net/forum?id=36SjAIT42G.arxiv.org/abs/2410.10989
  24. [25]Edward S. Hu, Kwangjun Ahn, Qinghua Liu, Haoran Xu, Manan Tomar, Ada Langford, Jayden Teoh, Bryon Xu, David Yan, Dinesh Jayaraman, Alex Lamb, and John Langford. The belief state transformer, 2025. URL https://arxiv.org/abs/2410.23506.
  25. [26]Jianhao Huang, Zhanpeng Zhou, Renqiu Xia, Baharan Mirzasoleiman, Weijie J Su, and Wei Huang. How transformers learn to plan via multi-token prediction. In Third Conference on Language Modeling, 2026. URL https://openreview.net/forum?id=1uJ8eRv3aJ.
  26. [27]Yanping Huang, Youlong Cheng, Ankur Bapna, Orhan Firat, Dehao Chen, Mia Chen, HyoukJoong Lee, Jiquan Ngiam, Quoc V Le, Yonghui Wu, et al. Gpipe: Efficient training of giant neural networks using pipeline parallelism. Advances in neural information processing systems, 32, 2019.
  27. [28]Hayate Iso, Tiyasa Mitra, Sudipta Mondal, Rasoul Shafipour, Venmugil Elango, Terry Kong, Yuki Huang, Seonjin Na, Izzy Putterman, Benjamin Chislett, Maor Ashkenazi, Joseph Guman, Gerald Shen, Tugrul Konuk, Ashwath Aithal, Ritika Borkar, Ran Zilberstein, and Bita Rouhani. Accelerating rl post-training rollouts via system-integrated speculative decoding, 2026. URL https://arxiv.org/abs/2604.26779.
  28. [29]Keller Jordan, Jeremy Bernstein, Brendan Rappazzo, @fernbear.bsky.social, Boza Vlado, You Jiacheng, Franz Cesista, Braden Koszarsky, and @Grad62304977. modded-nanogpt: Speedrunning the NanoGPT baseline, 2024a. URL https://github.com/KellerJordan/modded-nanogpt. Multi-token prediction added in pull request #178.
  29. [30]Keller Jordan, Yuchen Jin, Vlado Boza, You Jiacheng, Franz Cesista, Laker Newhouse, and Jeremy Bernstein. Muon: An optimizer for hidden layers in neural networks, 2024b. URL https://kellerjordan.github.io/posts/muon/.
  30. [31]Kimi Team. Kimi k3: Open frontier intelligence, 2026. URL https://arxiv.org/abs/2607.24653.
  31. [32]John Kirchenbauer, Abhimanyu Hans, Brian Bartoldson, Micah Goldblum, Ashwinee Panda, and Tom Goldstein. Multi-token prediction via self-distillation, 2026. URL https://arxiv.org/abs/2602.06019.
  32. [33]Vijay Korthikanti, Jared Casper, Sangkug Lym, Lawrence McAfee, Michael Andersch, Mohammad Shoeybi, and Bryan Catanzaro. Reducing activation recomputation in large transformer models, 2022. URL https://arxiv.org/abs/2205.05198.
  33. [34]Dmitry Lepikhin, HyoukJoong Lee, Yuanzhong Xu, Dehao Chen, Orhan Firat, Yanping Huang, Maxim Krikun, Noam Shazeer, and Zhifeng Chen. GShard: Scaling giant models with conditional computation and automatic sharding. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id=qrwe7XHTmYb.
  34. [35]Yaniv Leviathan, Matan Kalman, and Yossi Matias. Fast inference from transformers via speculative decoding, 2023. URL https://arxiv.org/abs/2211.17192, 1(2), 2022.
  35. [36]Yucheng Li, Huiqiang Jiang, Yang Xu, Jianxin Yang, Yi Zhang, Yizhong Cao, Yuhao Shen, Fan Zhou, Rui Men, Jianwei Zhang, An Yang, Bowen Yu, Bo Zheng, Fei Huang, Junyang Lin, Dayiheng Liu, and Jingren Zhou. Breaking entropy bounds: Accelerating rl training via mtp with rejection sampling, 2026a. URL https://arxiv.org/abs/2606.12370.
  36. [37]Yuhui Li, Fangyun Wei, Chao Zhang, and Hongyang Zhang. Eagle: Speculative sampling requires rethinking feature uncertainty. arXiv preprint arXiv:2401.15077, 2024a.
  37. [39]Yuhui Li, Fangyun Wei, Chao Zhang, and Hongyang Zhang. Eagle-3: Scaling up inference acceleration of large language models via training-time test. Advances in Neural Information Processing Systems, 38:136737–136756, 2026b.
  38. [40]Hunter Lightman, Vineet Kosaraju, Yura Burda, Harri Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. Let’s verify step by step, 2023. URL https://arxiv.org/abs/2305.20050.
  39. [41]Ling Team. Every activation boosted: Scaling general reasoner to 1 trillion open language foundation, 2025. URL https://arxiv.org/abs/2510.22115.
  40. [42]Hao Liu, Matei Zaharia, and Pieter Abbeel. Ringattention with blockwise transformers for near-infinite context. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=WsRH pH H4s0.arxiv.org/abs/2310.01889
  41. [43]Jingyuan Liu, Jianlin Su, Xingcheng Yao, Zhejun Jiang, Guokun Lai, Yulun Du, Yidao Qin, Weixin Xu, Enzhe Lu, Junjie Yan, et al. Muon is scalable for llm training. arXiv preprint arXiv:2502.16982, 2025a.arxiv.org/abs/2502.16982
  42. [44]Xiaoh ao Liu, Xiaobo Xia, Weixiang Zhao, Manyi Zhang, Xianzhi Yu, Xiu Su, Shuo Yang, See-Kiong Ng, and Tat-Seng Chua. L-MTP: Leap multi-token prediction beyond adjacent context for large language models. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025b. URL https://openreview.net/forum?id=0VDmWjW456.
  43. [45]Meituan LongCat. Longcat-flash technical report, 2025. URL https://arxiv.org/abs/2509.01322.
  44. [46]Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization, 2019. URL https://arxiv.org/abs/1711.05101.
  45. [47]Divyat Mahajan, Sachin Goyal, Badr Youbi Idrissi, Mohammad Pezeshki, Ioannis Mitliagkas, David Lopez-Paz, and Kartik Ahuja. Beyond multi-token prediction: Pretraining llms with future summaries. In C. Vondrick, B. Hariharan, C. Raffel, L. Pinto, D. Yang, and A. Faust, editors, International Conference on Learning Representations, volume 2026, pages 64342–64364, 2026. URL https://proceedings.iclr.cc/paper_files/paper/2026/file/693d7541bd31cca2dcb780abd8d204c-Paper-Conference.pdf.arxiv.org/abs/2510.14751
  46. [48]Martin Marek and Max Ryabinin. Score centering stabilizes off-policy reinforcement learning. arXiv preprint arXiv:2609.20807, 2026.arxiv.org/abs/2609.20807
  47. [49]Sam McCandlish, Jared Kaplan, Dario Amodei, and OpenAI Dota Team. An empirical model of large-batch training, 2018. URL https://arxiv.org/abs/1812.06162.
  48. [50]MiniMax. The minimax-m2 series: Mini activations unleashing max real-world intelligence, 2026. URL https://arxiv.org/abs/2605.26494.
  49. [51]Vaishnavh Nagarajan, Chen Henry Wu, Charles Ding, and Aditi Raghunathan. Roll the dice & look before you leap: Going beyond the creative limits of next-token prediction. arXiv preprint arXiv:2504.15266, 2025.arxiv.org/abs/2504.15266
  50. [52]NVIDIA. Nvidia nemotron 3: Efficient and open intelligence, 2025. URL https://arxiv.org/abs/2512.20856.
  51. [53]NVIDIA. Nemotron 3 ultra: Open, efficient mixture-of-experts hybrid mamba-transformer model for agentic reasoning, 2026. URL https://arxiv.org/abs/2606.15007.
  52. [54]Guilherme Penedo, Hynek Kydlíček, Anton Lozhkov, Margaret Mitchell, Colin Raffel, Leandro Von Werra, Thomas Wolf, et al. The fineweb datasets: Decanting the web for the finest text data at scale. Advances in Neural Information Processing Systems, 37:30811–30849, 2024.arxiv.org/abs/2406.17557
  53. [55]Weizhen Qi, Yu Yan, Yeyun Gong, Dayiheng Liu, Nan Duan, Jiusheng Chen, Ruofei Zhang, and Ming Zhou. Prophetnet: Predicting future n-gram for sequence-to-sequence pre-training. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: Findings, pages 2401–2410, 2020.arxiv.org/abs/2001.04063
  54. [57]Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever, et al. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9, 2019.
  55. [58]Samyam Rajbhandari, Jeff Rasley, Olatunji Ruwase, and Yuxiong He. Zero: memory optimizations toward training trillion parameter models. In Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis, SC ’20. IEEE Press, 2020. ISBN 9781728199986.arxiv.org/abs/1910.02054
  56. [59]Olivier Roy and Martin Vetterli. The effective rank: A measure of effective dimensionality. In 2007 15th European signal processing conference, pages 606–610. IEEE, 2007.
  57. [60]Alexander Samarin, Sergei Krutikov, Anton Shevtsov, Sergei Skvortsov, Filipp Fisin, and Alexander Golubev. LK losses: Direct acceptance rate optimization for speculative decoding. In Forty-third International Conference on Machine Learning, 2026. URL https://openreview.net/forum?id=ZqnVidXtxV.arxiv.org/abs/2602.23881
  58. [61]Mitchell Stern, Noam Shazeer, and Jakob Uszkoreit. Blockwise parallel decoding for deep autoregressive models. Advances in Neural Information Processing Systems, 31, 2018.arxiv.org/abs/1811.03115
  59. [62]Ilya Sutskever. Why next-token prediction is enough for agi. YouTube video, December 2023. URL https://www.youtube.com/watch?v=YEUclzdj_Sc. Published December 13, 2023.
  60. [63]Jayden Teoh, Manan Tomar, Kwangjun Ahn, Edward S. Hu, Tim Pearce, Pratyusha Sharma, Akshay Krishnamurthy, Riasat Islam, Alex Lamb, and John Langford. Next-latent prediction transformers learn compact world models. arXiv preprint arXiv:2511.05963, 2025.arxiv.org/abs/2511.05963
  61. [64]Shubham Toshniwal, Wei Du, Ivan Moshkov, Branislav Kisacanin, Alexan Ayrapetyan, and Igor Gitman. Openmathinstruct-2: Accelerating ai for math with massive open-source instruction data. In International Conference on Learning Representations, volume 2025, pages 19243–19275, 2025.
  62. [65]Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, et al. Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971, 2023.arxiv.org/abs/2302.13971
  63. [66]Aaron van den Oord, Oriol Vinyals, and Koray Kavukcuoglu. Neural discrete representation learning. In Proceedings of the 31st International Conference on Neural Information Processing Systems, NIPS’17, page 6309–6318, Red Hook, NY, USA, 2017. Curran Associates Inc. ISBN 9781510860964.arxiv.org/abs/1711.00937
  64. [67]Akshay Vegesna, Samip Dahal, Chinmay Karkar, Bishwas Mandal, Shmuel Berman, and Zhiwei Xu. Slowrun: Language modeling with infinite compute, fixed data, 2026. URL https://github.com/qlabs-eng/slowrun.
  65. [68]Erik Wijmans, Brody Huval, Alexander Hertzberg, Vladlen Koltun, and Philipp Kraehenbuehl. Cut your losses in large-vocabulary language models. In The Thirteenth International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=E4Fk3YuG56.arxiv.org/abs/2411.09009
  66. [69]LLM-Core Xiaomi. Mimo-v2-flash technical report, 2026. URL https://arxiv.org/abs/2601.02780.
  67. [70]Guoliang Zhao, Ruobing Xie, An Wang, Shuai peng Li, Huaibing Xie, and Xingwu Sun. Self-distillation for multi-token prediction, 2026a. URL https://arxiv.org/abs/2603.23911.
  68. [71]Siyan Zhao, Zhihui Xie, Mengchen Liu, Jing Huang, Guan Pang, Feiyu Chen, and Aditya Grover. Self-distilled reasoner: On-policy self-distillation for large language models. arXiv preprint arXiv:2601.18734, 2026b.
  69. [72]Zayd Muhammad Kawakibi Zuhri, Erland Hilman Fuadi, and Alham Fikri Aji. Predicting the order of upcoming tokens improves language modeling. In Forty-third International Conference on Machine Learning, 2026. URL https://openreview.net/forum?id=wmROqgop27.

Paper details

vlnc:W_vqhsdeje
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 11

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents