Improving the Downstream Performance of Mixture-of-Experts Transformers via Weak Vanilla Transformers

Xin Lu, Yanyan Zhao, Bing Qin, Ting Liu

TL;DR

Mixture-of-Experts (MoE) Transformers excel at pre-training efficiency but often underperform on downstream tasks due to poor transfer capability. This paper introduces Transfer Capability Distillation (TCD), a counterintuitive approach where a smaller, weaker vanilla Transformer acts as a teacher to distill its superior transfer capability into a larger MoE student, significantly boosting downstream performance.

What Problem Does This Paper Address?

Mixture-of-Experts (MoE) architectures are highly popular because they allow researchers to scale up a model's parameter count (and thus its capacity) without a proportional increase in computational cost. However, they suffer from a frustrating "downstream deficit": despite crushing pre-training tasks, MoE models frequently underperform standard, dense ("vanilla") Transformers when fine-tuned on specific downstream applications.

The authors propose a new framework to explain this phenomenon. They argue that downstream performance is jointly determined by two distinct factors:

  1. Pre-training performance: Acquired through training (where MoEs excel).
  2. Transfer capability: An inherent structural attribute of the architecture that dictates how effectively pre-trained knowledge converts to downstream tasks (where MoEs struggle).

As illustrated in the authors' conceptual diagram below, vanilla models have weak pre-training performance but strong transfer capability, while the reverse is true for MoE models.

Figure 2: The mechanism diagram of transfer capability distillation. It enhances the transfer capability of MoE models. Combined with their strong pre-training perfor- mance, the downstream performance can be improved.

Methods

To bridge this gap, the authors introduce Transfer Capability Distillation (TCD). Unlike traditional knowledge distillation—which typically compresses a strong, large teacher into a smaller student—TCD uses a weaker, smaller vanilla Transformer as the teacher to guide a stronger, larger MoE student.

Crucially, directly forcing the MoE model to match the exact hidden state values of a weaker model would degrade its performance. Instead, TCD focuses on relation alignment. It optimizes the student by ensuring that the similarity relationships between tokens in the student model mirror those in the teacher model.

The distillation process targets three specific structural locations:

  1. Model Trunk: Aligning the cosine similarity of normalized hidden representations after the Multi-Head Attention (MHA) and MoE/FFN layers.
  2. Residual Inner: Aligning representations before they undergo residual connections and layer normalization.
  3. Multi-Head Attention (MHA): Aligning the internal query-key similarity matrices within the attention blocks.

The overall distillation architecture is detailed below:

Figure 3: Overview of our transfer capability distillation scheme. It involves relation alignment in three locations.

Datasets

The authors validated their approach using the BERT architecture across the following datasets:

  • Pre-training: Wikipedia and BooksCorpus.
  • Downstream Evaluation: The GLUE benchmark, which includes 8 diverse language understanding tasks (CoLA, MRPC, SST-2, STS-B, RTE, MNLI, QNLI, QQP).
  • Out-of-Distribution (OOD) Evaluation: Validation subsets of The Pile (including ArXiv, DM Mathematics, GitHub, Stack Exchange, and Ubuntu IRC) to analyze the generalization quality of the learned features.

Key Insights and Ideas

  • The "Weak Teacher" Paradox: A model that performs worse overall can still serve as an excellent teacher if it possesses a superior inherent attribute (like transferability).
  • Relation over Value Alignment: Matching the structural geometry (cosine similarity matrices) of representations provides the flexibility needed to retain the MoE's superior capacity while absorbing the teacher's generalization traits.
  • Feature Quality Matters: Through out-of-distribution testing, the authors discovered that standard MoEs learn lower-quality features that don't generalize well beyond the pre-training corpus. TCD effectively forces the MoE model to utilize higher-quality, more robust features.

Key Results

The experimental results strongly validate the TCD framework across two different model scales ($H=128$ and $H=768$):

  • Downstream Performance Boost: On the GLUE benchmark, MoE models trained with TCD consistently outperformed both the baseline MoE models and their vanilla teachers. For example, at the $H=128$ scale, TCD improved the average GLUE score from 77.56 (baseline MoE) to 79.51 (MoE w/ TCD).
  • Compute-Equivalency Victory: Even when the baseline MoE was pre-trained for significantly more epochs to match the total compute time of the teacher+student training pipeline, the TCD-enhanced MoE still achieved superior downstream results despite having a slightly lower pre-training log-likelihood.

The trade-offs between pre-training performance and downstream GLUE scores are summarized in the paper's introductory chart:

Figure 1: The results of pre-training and fine-tuning show that: 1) The original MoE models have poor down- stream performance, which is related to inferior transfer capability; 2) The MoE models with transfer capabil- ity distillation exhibit significant improvement; 3) The teacher models have weaker performance, hence this distillation only involves their strong transfer capability.

Limitations and Future Work

While promising, the authors highlight a few limitations:

  1. Teacher Pre-training Dependencies: The optimal level of pre-training required for the vanilla teacher model remains unexplored.
  2. Scaling Constraints: Due to hardware limitations, experiments were restricted to smaller configurations (up to 3.6B total parameters for the largest MoE setup). Testing TCD on massive, state-of-the-art Large Language Models (LLMs) is left for future work.
  3. Theoretical Mechanics: While feature quality improvement was observed, a deeper theoretical understanding of why transfer capability can be distilled so cleanly is still needed.

Summary updated

BibTeX
@inproceedings{lu2025improving,
  author = {Xin Lu and Yanyan Zhao and Bing Qin and Ting Liu},
  title = {{Improving the Downstream Performance of Mixture-of-Experts Transformers via Weak Vanilla Transformers}},
  booktitle = {Electronics},
  year = {2025},
  doi = {10.3390/electronics14214256},
}
Figure