Teacher-Guided Routing for Sparse Vision Mixture-of-Experts

Masahiro Kada, Ryota Yoshihashi, Satoshi Ikehata, Rei Kawakami, Ikuro Sato

TL;DR

Sparse Mixture-of-Experts (MoE) models scale neural network capacity efficiently, but they suffer from unstable training because the "router" only receives gradient feedback from the few experts it selects. This paper introduces TGR-MoE (Teacher-Guided Routing), a method that uses a pretrained dense teacher model to provide a stable, global routing prior for the student model. This simple distillation strategy significantly reduces routing fluctuations and consistently improves accuracy across multiple vision benchmarks without adding any inference overhead.

What Problem Does This Paper Address?

To scale up deep learning models without skyrocketing computational costs, researchers use Sparse Mixture-of-Experts (MoE) architectures. Instead of passing an input through every single layer, a "router" dynamically selects a small subset of "experts" (specialized sub-networks) to process each token or image patch.

However, training these routers is notoriously difficult due to a phenomenon called gradient blocking. Because the router makes a discrete choice to activate only a few experts, gradients during the backward pass only flow through those selected routes. The unselected experts provide zero feedback. This highly localized feedback loop causes severe routing fluctuation, where the model constantly changes its mind about which expert should handle which input from one training epoch to the next. This instability prevents experts from properly specializing and degrades final model performance.

Figure 1. Comparison between standard sparse MoE routing (left) and our Teacher-Guided Routing in TGR-MoE (right). The bar plots denote the router’s per-expert routing scores. In a conven- tional sparse MoE, the router receives gradient feedback only from the experts it selects, leaving the majority of experts without infor- mative signals. This limited and highly localized feedback can lead to locally optimal routing behaviors, such as expert collapse or frequent changes in expert selection. TGR-MoE introduces a global prior derived from the intermediate features of a pretrained dense teacher model. This prior provides additional supervision to the router, complementing the sparse gradient signals and encour- aging more coherent routing preferences even for experts that are not selected at each step.

Methods

The authors propose Teacher-Guided Routing (TGR-MoE) to stabilize router learning using an external, stable source of guidance: a pretrained dense teacher model.

Instead of modifying the core discrete routing mechanism, TGR-MoE attaches a lightweight, auxiliary "teacher router" to the intermediate layers of a frozen dense teacher backbone. This teacher router is optimized using two standard regularizers:

  1. Load-balancing loss: To ensure tokens are distributed evenly across all available experts.
  2. Entropy loss: To encourage confident, distinct expert assignments rather than a blurry, uniform distribution.

Because the teacher's backbone is frozen, this teacher router converges rapidly to a stable routing policy. The student MoE model is then trained to copy this stable distribution. The student's loss function combines the standard task loss with a Kullback-Leibler (KL) divergence distillation loss, forcing the student router to match the teacher router's preferences. Crucially, the teacher model is completely discarded after training, meaning TGR-MoE incurs zero additional computational cost during inference.

Figure 2. Detailed architecture of the proposed TGR-MoE, illus- trated for layer i. The teacher provides a routing signal Ldistill to guide the student router, with the additional balancing loss Lload and the regularization loss Lent.

Datasets

The authors evaluated TGR-MoE using standard computer vision benchmarks:

  • ImageNet-1K: Used for core pre-training and primary evaluation.
  • CIFAR-10 & CIFAR-100: Used for downstream transfer learning and fine-tuning evaluation.
  • Oxford-IIIT Pets: Used for downstream transfer learning evaluation.

No new datasets were introduced in this work.

Key Insights and Ideas

  • Leveraging Pretrained Structure: A pretrained dense model already possesses a highly structured, semantically rich feature space. Building a router on top of these frozen features provides an excellent global prior that guides the student toward meaningful expert assignments from the very beginning of training.
  • Task Gradients Aren't Essential for Routers: Surprisingly, the authors found that training the student router using only the distillation loss (ignoring the task loss for the router) still yielded highly competitive performance. This proves that the teacher's routing distribution provides an incredibly strong and sufficient supervisory signal.
  • Phase-Dependent Guidance: Routing guidance is most beneficial in the early stages of training when the model is highly volatile. Relaxing the distillation pressure in the latter half of training allows the model to better converge on the final task.
  • Preservation During Transfer: Standard MoE models tend to completely alter their routing configurations when fine-tuned on downstream tasks (routing agreement drops to ~50%). Maintaining TGR-MoE during fine-tuning preserves the pre-trained routing knowledge, leading to much better downstream accuracy.

Key Results

  • Consistent Accuracy Gains: On ImageNet-1K, TGR-MoE consistently outperformed standard Vision MoE (VMoE) across all scales. For instance, it boosted the Top-1 accuracy of the Tiny model from 77.85% to 78.78% and the Small model from 82.63% to 83.34% (under $K=1$ routing).
  • Superior Scalability: Standard VMoE performance often plateaus or saturates as the number of experts increases. TGR-MoE scales much more reliably, maintaining steady performance gains up to 128 experts.
  • Enhanced Routing Stability: Routing consistency analysis showed that TGR-MoE achieves over 70% agreement with the final trained model within the first 50 epochs, whereas standard VMoE fluctuates wildly throughout the entire training cycle.
Routing consistency comparison during training

Limitations and Future Work

The primary limitation of this study is its scope: the experiments were exclusively focused on image classification tasks within computer vision. Because MoE architectures are heavily utilized in large language models (LLMs) and multimodal networks, a critical next step is extending TGR-MoE to natural language processing and multimodal settings. Additionally, the authors note the need to evaluate the framework's generalization capabilities on even larger, web-scale datasets.

Summary updated

BibTeX
@inproceedings{kada2026teacher,
  author = {Masahiro Kada and Ryota Yoshihashi and Satoshi Ikehata and Rei Kawakami and Ikuro Sato},
  title = {{Teacher-Guided Routing for Sparse Vision Mixture-of-Experts}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=Ba7Yyw5UNJ},
}
Figure