Summary (Overview)
- MTP-D Framework: The paper introduces MTP-D, a self-distillation method for Multi-Token Prediction (MTP) in Large Language Models (LLMs) that improves MTP head acceptance rates by +7.5% while preserving main-head performance.
- Looped Extension Strategy: A novel approach for cost-efficient MTP head expansion via continued pre-training, enabling scaling from 4 to 16 MTP heads with further 35.1% speedup.
- Key Techniques: Gradient-detached, TopN-logits-selected distillation from the main head to MTP heads, using KL divergence loss with stop-gradient operations.
- Empirical Results: Achieves up to 220.4% inference speedup over 1-head MTP baseline, validated on 2B Dense and A1B MoE models across seven benchmarks.
- Scalability Insights: Six key insights on MTP scalability, including inherent cascade architecture scalability, superior performance of distillation-based approaches, and data efficiency in looped extension.
Introduction and Theoretical Foundation
Background
Large Language Models (LLMs) demonstrate strong performance across diverse tasks but face inference efficiency bottlenecks. Traditional Next-Token Prediction (NTP) paradigms perform autoregressive, token-by-token generation, incurring high latency and computational costs, particularly for long sequences.
Motivation
Multi-Token Prediction (MTP) extends NTP by training LLMs with multiple heads for parallel future token prediction. However, existing approaches face two critical challenges:
- Limited acceptance rates of MTP heads, causing exponential decline in cumulative acceptance rate
- Difficulty in jointly training multiple main and MTP heads due to the "seesaw effect"
Theoretical Foundation
The cascaded MTP architecture (DeepSeek-V3) models inter-token dependencies while preserving the complete causal chain. The MTP loss is formulated as:
where is cross-entropy loss, is the weight coefficient, is the ground-truth token sequence, and is the predicted probability distribution.
Methodology
Self-Distillation for MTP (MTP-D)
The core method introduces a unidirectional KL divergence loss for self-distillation from the TopN logits of the main head to MTP heads:
where:
- (Equation 3) selects TopN indices
- (Equation 4) applies softmax
- (Equation 5) applies log-softmax
Key Design Choices:
- Gradient-detached self-distillation: Stop-gradient operation on main head logits prevents gradient propagation back through the main head, preserving its performance
- TopN-selected logits: Selecting TopN = 10,000 tokens (from vocabulary of 122,880) ensures efficient, stable distillation while avoiding long-tail distribution issues
- Final loss: , combining ground-truth alignment with knowledge distillation
Looped MTP Head Extension
The looped extension strategy:
- Takes trained MTP heads as a group
- Copies weights to initialize the next group of heads
- Updates via continued pre-training with frozen main model and previously trained heads
Training-Free Observations:
- MTP heads at loop connection points show noticeable but acceptable acceptance rate drops
- MTP-D maintains 26.70% cumulative acceptance rate at head 3 vs 0.6% for standard MTP in 1-to-8 loop settings
Empirical Validation / Results
Experimental Setup
- Models: 2B Dense and N10BA1B MoE LLMs
- Data: FineWeb-Edu-350BT dataset (350B tokens pre-training, 70B tokens looped extension)
- Hardware: 256 NVIDIA H20 GPUs
- Benchmarks: AGIEval-en, GSM8K, MATH, NaturalQuestions, SimpleQA, SuperGPQA, TriviaQA
Main Results
Key Results from Table 1 (selected):
| Model | Method | K | Head 1 CAR/AR | Head 4 CAR/AR |
|---|---|---|---|---|
| 2B Dense | MTP | 4 | 81.88/81.88 | 45.47/83.77 |
| 2B Dense | MTP-D | 4 | 85.86/85.86 | 52.96/86.46 |
| A1B MoE | MTP | 4 | 82.38/82.38 | 48.82/85.27 |
| A1B MoE | MTP-D | 4 | 85.67/85.67 | 52.47/85.25 |
Performance Improvements:
- K=1: MTP-D improves acceptance rate by 3.09% (2B Dense) and 4.11% (A1B MoE)
- K=4: 3.91% (2B Dense) and 4.73% (A1B MoE) improvement for 4th head
- Main-head performance preserved: 11.68 avg accuracy (MTP-D) vs 11.28 (MTP) for K=1
- Speedup: 22.9% for 4-head, up to 107.4% vs single-head, 220.4% with looped extension to 16 heads
Ablation Study Results
Key findings from Table 2:
| Strategy | Main-head Accuracy | MTP-head AR | Mean |
|---|---|---|---|
| MTP-D (default) | 11.68 | 90.06 | - |
| No detach | 10.19 | 94.34 | - |
| TopN=1 | 11.47 | 87.39 | - |
| TopN=1000 | 11.47 | 90.47 | - |
| β=0.1 | 10.99 | 87.66 | - |
| β=1.5 | 11.64 | 90.80 | - |
| Reverse KL | 11.62 | 90.22 | - |
| Hybrid KL | 10.99 | 88.92 | - |
Critical observations:
- Removing detach increases main-head loss (+0.079) and reduces performance (-1.49%)
- TopN=10,000 provides optimal trade-off between efficiency and performance
- β=1.0 balances main-head preservation and MTP improvement
- Forward KL achieves best loss-performance trade-off
Looped Extension Results
Six key insights emerged:
- Cascaded MTP is inherently scalable due to structural consistency
- MTP-D shows superior scalability vs standard MTP
- Grouped MTP heads exhibit stronger loop scalability than single heads
- Limited data suffices: 70B vs 350B tokens yield marginal differences
- Ensemble teachers enhance consistency and loop scalability
- MTP-D supports up to 16 heads with 5-10% CAR maintained
Theoretical and Practical Implications
Theoretical Contributions
- Demonstrates that self-distillation with gradient detachment effectively decouples MTP head improvement from main-head degradation
- Establishes that TopN-selected logits provide sufficient supervision signal despite long-tail distribution
- Reveals inherent scalability of cascaded MTP architectures through structural consistency
Practical Implications
- Inference Acceleration: Significant speedups (up to 220.4%) enable practical deployment of MTP in production LLMs
- Cost Efficiency: Looped extension with minimal continued pre-training (70B tokens) achieves substantial gains
- Architecture Flexibility: Method works across dense and MoE architectures, various model sizes
- Industrial Adoption: Provides guidance for implementing MTP in large-scale LLM pre-training pipelines
Conclusion
The paper presents MTP-D, a simple yet effective self-distillation framework for multi-token prediction in LLMs, along with a looped extension strategy. Key contributions include:
- MTP-D framework: Gradient-detached, TopN-selected self-distillation that improves MTP head acceptance rates by 7.5% while maintaining main-head performance
- Looped extension: Cost-efficient scaling from 4 to 16 MTP heads with substantial inference speedups
- Comprehensive insights: Six validated insights on MTP scalability and optimization strategies
Future Directions:
- Adaptation to post-training scenarios
- Investigation of optimal and relationships with K (number of MTP heads)
- Validation on diverse datasets and ultra-large models
- Exploration of theoretical foundations for optimal hyperparameter selection
The work provides valuable guidance for improving LLM pre-training and inference efficiency, with practical implications for industrial-scale deployment of MTP.
Related papers
- HarnessOpt-Bench: Evaluating LLMs at Harness Optimization
HARNESSOPT-BENCH shows optimizer model choice matters 1.8x more than coding harness choice for agent improvement, with broader search driving gains and trace reading providing no benefit.
- Priming: Hybrid State Space Models From Pre-trained Transformers
Priming initializes hybrid state-space models from pre-trained Transformers using less than 0.5% of the token budget, yielding faster, lighter models that outperform source Transformers on reasoning benchmarks.
- OasisKV: Scaling In-Decode KV Cache Beyond HBM with Lookahead Sparse Prefetching
OasisKV uses speculative decoding's draft tokens to predict future KV-cache access, enabling asynchronous prefetching that boosts LLM inference throughput up to 2.1x with negligible accuracy loss.