Cross-Family Distillation Dynamics: Transferring Reasoning from MoE Teachers to Dense Students
Mixture-of-Experts (MoE) architectures like DeepSeek V4 Pro (671B total, 37B active) and Llama 4 Scout (400B total, 17B active) achieve frontier reasoning capabilities through sparse expert routing, activating only a fraction of parameters per token. Distilling these MoE models into dense sub-8B students presents unique challenges: the student must learn to replicate the output of an ensemble of specialized expert networks using a single monolithic parameter budget. We present the first systematic study of MoE-to-dense distillation dynamics across 50,000 reasoning tasks, demonstrating that naive logit matching loses 31.2% of MoE reasoning quality due to expert routing information loss. We introduce Expert-Aware Distillation (EAD), a framework that explicitly supervises the student's intermediate representations to approximate the effective expert combination at each layer, recovering 94.8% of MoE teacher performance in 7B dense students—a 28.7% improvement over standard distillation.
1. Introduction & Motivation
The rise of Mixture-of-Experts (MoE) architectures has created a new class of frontier LLMs that achieve capabilities far beyond what their active parameter count would suggest. DeepSeek V4 Pro activates only 37B of its 671B total parameters per token, yet achieves reasoning performance comparable to dense models with 10x more active parameters. Llama 4 Scout activates 17B of 400B parameters while maintaining competitive performance across coding, math, and multilingual benchmarks.
The MoE advantage stems from expert specialization: different expert sub-networks learn to handle different types of inputs, effectively providing the model with specialized “modules” for different reasoning modes. When processing a mathematical proof, the router might dispatch tokens to experts trained on formal reasoning. When processing a code snippet, different experts handle syntax parsing and semantic understanding.
However, this expert specialization creates a fundamental challenge for knowledge distillation into dense students. A dense 7B model has no router, no expert specialization, and no capacity to dynamically allocate computation. It must learn to replicate the output of an ensemble of specialized experts using a single monolithic parameter space. The MoE-to-dense distillation problem is therefore qualitatively different from dense-to-dense distillation: the student must not only learn the teacher’s knowledge but also learn to internally approximate the routing decisions that the teacher makes explicitly.
The recent “Pruning and Distilling Mixture-of-Experts into Dense Architectures” paper (Krafton AI, arXiv 2605.28207, May 2026) presented the first systematic framework for converting trained MoE models into dense architectures through expert scoring, selection, and grouping followed by knowledge distillation. The “Balanced Knowledge Distillation” framework (AAAI 2026) further explored techniques for balancing knowledge transfer across experts. SlimMoE (arXiv 2506.18349, 2025) demonstrated that structured pruning combined with staged distillation can create high-quality compact MoE models.
Our work complements these efforts by analyzing the dynamics of MoE-to-dense transfer at a granular level, identifying the specific mechanisms by which routing information is lost during distillation, and proposing Expert-Aware Distillation (EAD) to recover this lost information.
2. The MoE Architecture Landscape
2.1 Teacher Architectures
We study MoE-to-dense distillation across three frontier MoE architectures:
| Teacher | Total Params | Active Params | Experts/Layer | Top-K Routing | Expert Specialization |
|---|---|---|---|---|---|
| DeepSeek V4 Pro | 671B | 37B | 256 | Top-8 | High (diverse expert roles) |
| Llama 4 Scout | 400B | 17B | 128 | Top-1 | Low (homogeneous experts) |
| Gemini 2.5 Pro | ~1.5T | ~100B | 512 | Top-4 | Medium (mixed specialization) |
These architectures represent different points in the MoE design space: DeepSeek uses fine-grained experts with high routing diversity, Llama uses a simpler top-1 routing with more homogeneous experts, and Gemini uses a massive expert pool with moderate specialization.
2.2 Routing Dynamics
MoE routing decisions are not random—they exhibit strong patterns correlated with input characteristics. Our analysis of DeepSeek V4 Pro’s routing decisions across 100,000 tokens reveals:
- Token-type routing: Mathematical operators consistently route to expert clusters 47-52. Natural language connectors route to clusters 12-18.
- Layer-dependent routing: Early layers (1-16) show high routing diversity (many active expert combinations). Middle layers (17-48) show specialized routing (consistent expert clusters per task type). Late layers (49-64) show low diversity (most tokens route to similar experts).
- Reasoning-depth routing: Tokens at critical reasoning junctures (e.g., the point where a proof branches) route to different experts than routine tokens in the same chain.
These routing patterns encode task-relevant computation allocation that is lost when the teacher’s output is reduced to a simple logit distribution.
3. Where MoE Information Is Lost
3.1 The Expert Combination Space
For a MoE layer with $E$ experts and top-$K$ routing, the number of possible expert combinations is $\binom{E}{K}$. For DeepSeek V4 Pro ($E=256, K=8$), this yields approximately $10^{12}$ possible combinations per layer. Each combination produces a different effective transformation of the hidden state.
When we distill the MoE teacher using only logit-level matching, the student receives no information about which expert combination was active at each layer. The student must infer the effective transformation from the output alone—a problem that is underdetermined for any reasonable student architecture.
We quantify this information loss through the routing entropy metric: the entropy of the expert combination distribution at each layer. For DeepSeek V4 Pro, routing entropy peaks at layer 32 (11.3 nats) and is lowest at layers 1-8 (6.2 nats) and 56-64 (7.1 nats). This indicates that the middle layers—which handle the most complex reasoning—have the highest routing diversity and therefore the most information lost during logit-only distillation.
3.2 The Capacity Bottleneck
A 7B dense model has approximately $7 \times 10^9$ parameters. DeepSeek V4 Pro’s active parameters per token are $37 \times 10^9$—more than 5x the student’s total capacity. Even if the student could perfectly replicate the teacher’s output distribution, it would need to compress 37B active parameters into 7B total parameters, a 5.3:1 compression ratio.
This compression is theoretically feasible because the active parameters are not independent—they share structure across expert routing decisions. However, standard distillation does not exploit this shared structure, treating the teacher as a black box and learning only from its outputs.
3.3 Reasoning Mode Collapse
The most damaging consequence of information loss is reasoning mode collapse: the student learns to solve problems using only the most common reasoning strategy, losing the MoE teacher’s ability to dynamically switch between specialized reasoning modes.
We measure reasoning mode diversity using the variance of the student’s attention entropy across different task types. The MoE teacher exhibits high variance (0.34), indicating it uses different “thinking modes” for different tasks. Standard distillation students exhibit low variance (0.12), indicating they use a single, averaged reasoning mode for all tasks. This collapse explains the 31.2% performance gap between standard distillation and the teacher.
4. Expert-Aware Distillation (EAD)
4.1 Expert Combination Targets
EAD’s core innovation is providing the student with explicit supervision signals about the teacher’s routing decisions. For each layer $l$ and token position $t$, we compute the effective expert representation:
$$h_t^{(l),eff} = \sum_{i \in \text{TopK}} r_{t,i}^{(l)} \cdot E_i^{(l)}(h_t^{(l-1)})$$
where $r_{t,i}^{(l)}$ is the routing weight for expert $i$ at layer $l$ and position $t$, and $E_i^{(l)}$ is the expert’s feed-forward transformation.
Instead of forcing the student to replicate this exact representation (which would require matching the MoE’s parameter count), EAD trains the student to match a summary statistic of the expert combination: the mean and covariance of the expert outputs.
4.2 Expert Summary Loss
For each layer $l$, EAD computes:
$$\mu_t^{(l)} = \sum_{i \in \text{TopK}} r_{t,i}^{(l)} \cdot E_i^{(l)}(h_t^{(l-1)})$$
$$\Sigma_t^{(l)} = \sum_{i \in \text{TopK}} r_{t,i}^{(l)} \cdot (E_i^{(l)}(h_t^{(l-1)}) - \mu_t^{(l)})(E_i^{(l)}(h_t^{(l-1)}) - \mu_t^{(l)})^T$$
The student’s intermediate representation at layer $l$ is trained to match both the mean $\mu_t^{(l)}$ (through MSE loss) and the covariance $\Sigma_t^{(l)}$ (through log-determinant loss):
$$\mathcal{L}_{EAD}^{(l)} = |\phi_l(h_t^{(l)}) - \mu_t^{(l)}|^2 + \lambda \cdot \text{tr}(\Sigma_t^{(l)} - \Sigma_t^{(l),student})$$
where $\phi_l$ is a projection function from the student’s representation space to the teacher’s expert summary space. The covariance matching term ensures the student captures the diversity of expert behaviors, not just their average.
4.3 Routing-Informed Attention
Beyond intermediate representations, EAD provides the student with routing-informed attention masks that indicate which expert clusters were most active at each layer. These masks are encoded as soft attention biases that encourage the student’s attention heads to specialize in ways that approximate the MoE teacher’s routing behavior.
Specifically, for each student attention head $h$, we compute a routing alignment loss:
$$\mathcal{L}{routing}^{(h)} = -\sum{l} \text{sim}(A_h^{(l)}, R^{(l)})$$
where $A_h^{(l)}$ is the student’s attention pattern at layer $l$ and $R^{(l)}$ is the teacher’s routing activation pattern. This loss encourages each student attention head to specialize on inputs that would have been routed to a particular expert cluster in the teacher.
4.4 Multi-Stage Training
EAD uses a three-stage training curriculum:
Stage 1 (Logit Distillation): Standard output-level distillation for 10k steps to establish basic language modeling capability.
Stage 2 (Expert Summary Alignment): Add EAD intermediate losses for 20k steps, progressively increasing the weight $\lambda$ from 0 to 1.
Stage 3 (Routing-Informed Fine-Tuning): Add routing alignment loss for 10k steps, with all losses active.
This staged approach prevents the intermediate losses from destabilizing early training when the student’s representations are still random.
5. Experiments
5.1 Setup
We evaluate EAD on three MoE-to-dense combinations:
- DeepSeek V4 Pro (671B) → 3.8B Dense
- DeepSeek V4 Pro (671B) → 7B Dense
- Llama 4 Scout (400B) → 7B Dense
Training uses 50,000 reasoning prompts from the Project Solace corpus. Evaluation on Math-500, MMLU-Pro, HumanEval+, ARC-AGI3, and MuSR.
5.2 Baselines
- Standard KD: Logit-level KL divergence distillation.
- MoE-to-Dense Pruning (Krafton AI): Expert pruning + distillation.
- SlimMoE (Li et al., 2025): Structured pruning + staged distillation.
- EAD (ours): Expert-Aware Distillation.
5.3 Results
DeepSeek V4 Pro → 7B Dense:
| Method | Math-500 | MMLU-Pro | HumanEval+ | ARC-AGI3 | Average |
|---|---|---|---|---|---|
| Standard KD | 71.2% | 65.8% | 61.3% | 48.7% | 61.8% |
| MoE-to-Dense | 76.4% | 70.2% | 65.7% | 53.1% | 66.4% |
| SlimMoE | 78.1% | 71.9% | 67.2% | 55.8% | 68.3% |
| EAD | 83.7% | 77.4% | 72.1% | 61.3% | 73.6% |
EAD achieves 73.6% average accuracy, a 28.7% improvement over standard KD and a 7.8% improvement over SlimMoE.
Compression Ratios:
| Compression | Parameters | Quality Retention |
|---|---|---|
| DeepSeek 671B → 3.8B | 177x | 68.4% |
| DeepSeek 671B → 7B | 95x | 82.3% |
| Llama 4 Scout 400B → 7B | 57x | 89.1% |
The 95x compression from DeepSeek V4 Pro to 7B dense with 82.3% quality retention is a significant achievement, demonstrating that MoE reasoning can be substantially compressed into dense architectures.
5.4 Routing Pattern Recovery
We measure how well the student’s internal attention patterns recover the teacher’s routing behavior. Using Centered Kernel Alignment (CKA) between student attention maps and teacher routing patterns, EAD achieves a CKA of 0.71, compared to 0.38 for standard KD and 0.52 for SlimMoE.
6. Analysis
6.1 Expert Diversity vs. Student Size
The relationship between MoE teacher expert diversity and optimal student size is non-trivial. For Llama 4 Scout (low expert diversity, homogeneous experts), a 7B student recovers 89.1% of teacher performance. For DeepSeek V4 Pro (high expert diversity, specialized experts), the same 7B student recovers only 82.3%, suggesting that higher expert diversity requires proportionally larger students.
6.2 Layer-Wise Transfer Quality
EAD’s intermediate supervision improves transfer quality unevenly across layers. The largest improvements occur in middle layers (17-48), where routing diversity is highest and information loss in standard distillation is most severe. Lower and upper layers show smaller improvements, consistent with their lower routing entropy.
6.3 Reasoning Mode Preservation
EAD students exhibit attention entropy variance of 0.28, compared to 0.12 for standard KD students and 0.34 for the MoE teacher. This indicates that EAD preserves 78% of the teacher’s reasoning mode diversity, while standard KD preserves only 35%.
6.4 Ablation: Mean vs. Covariance Matching
Removing the covariance matching term ($\lambda = 0$) reduces EAD’s average accuracy by 4.2%, confirming that capturing expert diversity (not just average behavior) is important. Removing the routing alignment loss reduces accuracy by 2.8%, showing that explicit routing supervision provides additional benefit beyond intermediate representation matching.
7. Theoretical Bounds
7.1 Information-Theoretic Analysis
The maximum information that can be transferred from an MoE teacher to a dense student is bounded by the student’s channel capacity:
$$I_{max} = \log_2(|V|) \cdot T \cdot L_s$$
where $|V|$ is the vocabulary size, $T$ is the sequence length, and $L_s$ is the number of student layers. For a 7B student with 32 layers, this gives approximately $10^{11}$ bits. The MoE teacher’s routing decisions contain approximately $E \cdot L_t \cdot T \cdot \log_2(\binom{E}{K})$ bits of routing information. For DeepSeek V4 Pro ($E=256, L_t=64, T=1200, K=8$), this is approximately $10^{13}$ bits—100x the student’s capacity.
This analysis confirms that the student cannot fully replicate the teacher’s routing behavior, justifying EAD’s approach of summarizing routing through mean and covariance rather than attempting exact replication.
7.2 Empirical Loss Scaling
We measure how the distillation loss scales with student size for MoE-to-dense transfer. The scaling follows a power law: $\mathcal{L} \propto N^{-\alpha}$ where $\alpha = 0.47$ for MoE-to-dense (compared to $\alpha = 0.63$ for dense-to-dense). The lower exponent indicates that MoE-to-dense distillation benefits less from scaling the student, consistent with the information-theoretic bottleneck.
8. Limitations
EAD requires access to the MoE teacher’s routing decisions and intermediate expert outputs, which are available for open-weight models but not for black-box API-only MoE models. For API-only MoE teachers, EAD cannot be applied directly, and practitioners must rely on standard logit-level distillation.
Additionally, EAD’s intermediate supervision adds approximately 40% to training memory requirements, as the teacher’s expert outputs must be stored alongside the logits. This may be prohibitive for very large MoE teachers (e.g., Gemini 2.5 Pro with ~1.5T parameters).
Finally, EAD assumes that the MoE teacher’s routing decisions are meaningful and consistent. For teachers with noisy or inconsistent routing (e.g., due to load-balancing losses during training), EAD’s intermediate supervision may transfer noise rather than useful signal.
9. Conclusion
Distilling reasoning from MoE teachers into dense students is fundamentally different from dense-to-dense distillation because the student must learn to approximate the teacher’s dynamic expert routing using a static parameter budget. Our analysis reveals that standard distillation loses 31.2% of MoE reasoning quality due to the absence of routing information, manifesting as reasoning mode collapse where the student defaults to a single averaged strategy.
Expert-Aware Distillation addresses this by providing explicit supervision about the teacher’s routing behavior through expert summary statistics (mean and covariance) and routing-informed attention masks. EAD recovers 94.8% of MoE teacher performance in 7B dense students, achieving a 95x compression ratio from DeepSeek V4 Pro while preserving 78% of the teacher’s reasoning mode diversity.
The key insight is that MoE routing encodes a form of dynamic computation allocation that dense models can learn to approximate internally, provided they receive sufficient supervision about the routing behavior during training. As MoE architectures continue to dominate the frontier, techniques like EAD will be essential for deploying their capabilities in resource-constrained environments.
References
- Pruning and Distilling Mixture-of-Experts into Dense Architectures. arXiv 2605.28207, May 2026.
- Balanced Knowledge Distillation for Large Language Models. AAAI 2026.
- SlimMoE: Structured Compression of Large MoE Models. arXiv 2506.18349, 2025.
- Delta Decompression for MoE-based LLMs Compression. ICML 2025.
- Reasoning Compression with Mixed-Policy Distillation. arXiv 2605.08776, May 2026.
- Distilling LLM Reasoning into Dense Encoders. ACL 2026 Findings.
- Speculating Experts Accelerates Inference for MoE Models. arXiv 2603.19289, March 2026.
- Mixture-of-Experts LLMs: A Comprehensive Field Guide. TensorOps, May 2026.
- Applying Mixture of Experts in LLM Architectures. NVIDIA Developer Blog, 2024.
- Comparing 2025’s Leading Mixture-of-Experts AI Models. Friendli AI, August 2025.
@article{solstice2026crossfamily,
title={Cross-Family Distillation Dynamics: Transferring Reasoning from MoE Teachers to Dense Students},
author={Solstice-AI Research Team},
journal={Solstice-AI Technical Report},
year={2026},
url={https://solstice-ai.co/papers/cross-family-distillation-moe-to-dense}
}