TL;DR
Can off-the-shelf, next-token prediction (NTP) language models predict multiple future tokens at once? This paper demonstrates that pre-trained LLMs inherently possess multi-token prediction (MTP) capabilities—extractable via mathematical marginalization—improving with model scale. However, lightweight fine-tuning methods that bolt MTP heads onto frozen backbones struggle to match this potential because LLM internal representations aggressively overspecialize to next-token prediction early in the network.
What Problem Does This Paper Address?
Standard auto-regressive LLM inference is memory-bandwidth bound: each token requires an entire forward pass. Multi-token prediction (MTP)—generating multiple future tokens in parallel—accelerates generation through techniques like self-speculative decoding.
While recent work trains MTP architectures from scratch or attaches lightweight decoding heads onto existing models (such as MEDUSA), a fundamental question remained unanswered: How much inherent multi-token prediction capability already exists inside standard NTP-trained models, and why is adapting them so hard? This paper investigates the theoretical headroom of NTP models on MTP tasks and examines why fine-tuning heads onto frozen LLMs consistently falls short.
Methods
-
Marginalization Baseline: The authors establish a theoretical performance upper bound for MTP in NTP models. By assuming conditional independence of tokens in an output sequence $X_{t:t+K}$ given context $X_{\le t}$, the probability of future tokens can be computed via marginalization: $$p(x_{t+2} \mid X_{\le t}) = \sum_{y \in \mathcal{V}} p(x_{t+2} \mid X_{\le t}, y) \cdot p(y \mid X_{\le t})$$ To make computation tractable, the sum is taken over the top 99% probability mass of the first token prediction.
-
MTP Head Architecture: Rather than adding separate linear projection layers with independent unembedding matrices (like MEDUSA), the authors replicate the model’s final transformer layer $N$ times atop the penultimate layer. Each head shares the pre-trained, frozen unembedding layer ($W_u$), significantly cutting parameter and memory overhead while preserving sequence self-attention within heads.
- Specialization Analysis & Joint Fine-Tuning Strategies:
- Layer Probing: The authors track Kullback–Leibler (KL) divergence between intermediate layer representations and the final output layer to observe when NTP specialization occurs.
- Joint Training with LoRA: LoRA (rank 8 on Q, K, V) is applied to the backbone alongside fully trainable MTP heads.
- Weighted Hidden States (WHS): To circumvent late-layer NTP specialization, heads receive a learnable, softmax-normalized weighted sum of all intermediate backbone representations rather than just the final layer's output: $$p(x_{t+n} \mid X_{\le t}) = \sigma\left(f_u\left(f_n^L\left(\sigma(W_s^n / T) \cdot Z_{1:t}^{1:L-1}\right)\right)\right)$$
- Training Tricks: Tested loss balancing (normalizing RMS head loss), differential learning rates ($4\times$ higher LR for heads), and head warmups.
Datasets
- IWSLT 2017 Translation Dataset (de $\rightarrow$ en): Primary benchmark for training and evaluation (200k training pairs). Evaluated on 50 validation samples filtered to $\ge 20$ tokens. Translation provides strong contextual constraints, making multi-token prediction less ambiguous.
- Open-Ended Generation: 10 long sequences (~200 tokens each) generated via GPT-4o across diverse topics, used to evaluate marginalization under high-entropy, open-ended settings.
Key Insights and Ideas
- NTP Models Are Latent Multi-Token Predictors: Even without multi-token training, models already encode multi-step information. As models scale, their next-token probability distribution sparsifies (entropy drops, probability concentrates on fewer tokens), making marginalization more accurate and multi-token forecasting sharper.
- The Specialization Bottleneck: In larger models, intermediate hidden states converge to the final output distribution surprisingly early in the network (evidenced by sharp drops in KL divergence). By the time activations reach the final layers, features non-essential for next-token prediction have been discarded, starving attached MTP heads of the multi-step context they need.
- Reaching Back into the Network Helps: Because later layers are overspecialized to NTP, feeding MTP heads a weighted mixture of earlier intermediate hidden states (WHS) improves prediction accuracy over using only the final layer.
Key Results
Experiments evaluated top-5 token accuracy for the second future token ($x_{t+2}$) using Pythia models (410M to 2.8B):
- Marginalization (Theoretical Ceiling): On Pythia-2.8B, marginalization achieved 77.7% top-5 accuracy on second-token prediction (compared to 88.1% for the immediate next token).
- Frozen Backbone ("Heads Only"): Dropped second-token accuracy significantly to 60.7% on Pythia-2.8B (and just 50.0% on 410M).
- Joint Fine-Tuning:
- Vanilla joint fine-tuning with LoRA reached 64.5% on 2.8B.
- Combining a Differential Learning Rate + Weighted Hidden States (WHS) achieved the best adapted performance across model sizes, hitting 59.0% on 410M and 65.9% on 2.8B.
- The Persistent Gap: While WHS and joint fine-tuning narrowed the gap, adapted heads still lagged 10–12 percentage points behind the marginalization baseline, confirming that post-hoc adaptation cannot easily undo deep NTP specialization.
Limitations and Future Work
- Inference Cost of Marginalization: Numerical marginalization is far too computationally expensive for real-time speculative decoding; it serves purely as an analytical upper bound.
- Evaluation Scope: Experiments were primarily restricted to predicting $K=2$ tokens on a single translation task across small-to-medium parameter scales (up to Pythia 2.8B).
- Future Directions: The authors suggest exploring multi-layer adaptation per head (tapping several layers back from the output) and refining initialization and normalization schedules for weighted hidden state routing. They conclude that while post-hoc MTP adaptation is sufficient for speculative draft heads, extracting maximal multi-token performance ultimately requires native MTP pre-training.
Summary updated