Revisiting Single-gated Mixtures of Experts

Amelie Royer, Ilia Karmanov, Andrii Skliar, Babak Ehteshami Bejnordi, Tijmen Blankevoort · DOI

Introduction

Mixture of Experts (MoE) models offer a compelling path toward scaling neural network capacity without a proportional increase in inference cost. By using a "gate" or router to activate only a subset of specialized "expert" sub-networks for any given input, these models can maintain high efficiency. However, MoEs are notoriously difficult to train, frequently suffering from "router collapse"—a state where the gate sends all inputs to a single expert, leaving the rest of the model underutilized. This paper revisits the simple, single-gate MoE architecture, introducing a robust framework that stabilizes training and enables dynamic performance trade-offs.

The Proposed Architecture

The authors propose a simplified MoE framework centered on a "base model" branch ($\phi$). Unlike traditional MoEs that rely solely on experts, this architecture maintains a full-depth generalist branch that is trained on the entire dataset. This base model serves three critical functions: it acts as a feature extractor for the gate and experts, provides a regularization signal through ensembling, and allows for "early exits" on simpler inputs.

Comparison of standard MoE (a) vs. the proposed model (b) featuring a frozen base branch, early exit capability, and ensemblers.

Decoupled Training and Anytime Inference

To overcome the training instabilities of joint optimization, the researchers employ an asynchronous training pipeline. They first initialize the gate using K-means clustering on the base model's feature embeddings, creating semantically meaningful routing from the start. The gate and experts are then trained independently and in parallel. By fixing the gate during expert training, the risk of router collapse is entirely eliminated.

Furthermore, the model supports "anytime inference." By adjusting a threshold hyperparameter ($\tau$) at test time, users can decide whether to exit early after the base model or proceed to expert computation. This allows for a smooth trade-off between accuracy and computational cost (MACs) without requiring the model to be retrained.

Experimental Results

The proposed MoE was evaluated on CIFAR-100, tiny-ImageNet, and ImageNet using various ResNet and MobileNet backbones. The results demonstrate that ensembling a specialized expert with a generalist base model consistently outperforms standard non-mixture baselines.

Top-1 accuracy vs. MACs trade-offs on ImageNet (left) and tiny-ImageNet (right). The pink line represents the "any-time" performance achieved by varying the exit threshold.

Key findings include:

  • Superior Efficiency: On ImageNet, a ResNet-18 based MoE achieved 72.38% accuracy, significantly higher than the 69.76% of the base model, with only a marginal increase in inference cost.
  • Semantic Specialization: Qualitative analysis confirms that the K-means initialized gate naturally groups objects by visual style and semantic category (e.g., separating close-ups from wide shots).
  • Stability and Simplicity: Despite its simpler design, the model achieves performance comparable to complex dynamic routing methods like DeepMoE and RMN, while remaining much easier to implement.

Conclusion and Limitations

This work demonstrates that the complexities often associated with MoE training—such as balancing losses and massive batch sizes—can be bypassed through a generalist-specialist ensembling approach and decoupled training. While the model requires more memory during the training phase to store all experts, its inference efficiency and "anytime" flexibility make it a practical choice for real-world applications. Future work may focus on automating the selection of the "entry layer" where experts branch off from the base model.

Summary updated

BibTeX
@inproceedings{royer2022revisiting,
  author = {Amelie Royer and Ilia Karmanov and Andrii Skliar and Babak Ehteshami Bejnordi and Tijmen Blankevoort},
  title = {{Revisiting Single-gated Mixtures of Experts}},
  booktitle = {BMVC},
  year = {2022},
  url = {https://openreview.net/forum?id=K-Hg8nf_43M},
}
Figure