Tight Clusters Make Specialized Experts

Stefan K. Nielsen, Rachel S. Y. Teo, Laziz U. Abdullaev, Tan M. Nguyen · DOI

Introduction

Sparse Mixture-of-Experts (MoE) architectures have emerged as a dominant paradigm for scaling large-scale models efficiently. By activating only a subset of "experts" for any given input token, these models achieve massive capacity with manageable computational overhead. However, the performance of MoEs is heavily dependent on the router, the component responsible for assigning tokens to experts.

Standard routers often suffer from "blurry" routing, where tokens are not clearly assigned to the most semantically relevant experts. In high-dimensional feature spaces, latent clusters in the data are frequently unidentifiable, leading to slow training convergence, fragility to noise, and suboptimal data representations. This paper introduces the Adaptive Clustering (AC) router, a mathematically grounded approach to creating tighter, more distinct expert clusters without adding learnable parameters.

The Adaptive Clustering Router

The core innovation of the AC router is the transformation of the routing space to maximize cluster separation. Instead of routing in raw feature space, the AC router dynamically scales input features based on their dispersion within each expert's assigned tokens.

The "Tightness" Principle

The router calculates weights for each feature based on the Mean Absolute Deviation (MAD) of tokens assigned to a specific expert cluster. If a feature exhibits low dispersion (i.e., tokens cluster tightly along that axis), it is upweighted. Conversely, features with high dispersion are downweighted. This mechanism allows the router to utilize a metric similar to a Mahalanobis distance, effectively projecting tokens onto the axes that best define an expert's specialty.

Crucially, these weights are calculated directly from the data statistics of the previous layer. This results in zero-parameter overhead and negligible computational cost ($O(n)$ complexity), making it a "free" upgrade for existing MoE backbones like Switch Transformer, GLaM, and Swin Transformer.

Key Insights and Specialization

The AC router forces expert specialization through geometry. By emphasizing tight clusters, experts are naturally pushed to specialize in semantically distinct regions of the input space. This leads to significantly more stable routing; while standard MoEs may assign a token to unrelated experts across different layers, ACMoE maintains semantic consistency throughout the network depth.

Figure 4: Comparison of expert assignment maps between ACMoE and the baseline Swin Transformer. ACMoE demonstrates more structured, semantically coherent clustering of experts compared to the noisier baseline.

Experimental Evaluation

The researchers evaluated ACMoE across a diverse array of tasks, including language modeling (WikiText-103, EnWik-8), sentiment analysis (SST), and vision (ImageNet-1K).

  • Faster Convergence: ACMoE demonstrated substantially quicker training. On the Banking-77 intent detection task, the model reached peak accuracy in nearly half the epochs required by the baseline.
  • Improved Accuracy: On WikiText-103, GLaM-ACMoE achieved a test perplexity of 36.26, compared to the 38.27 baseline.
  • Robustness and Reliability: ACMoE excels in adversarial and out-of-distribution (OOD) scenarios. In vision tasks under PGD adversarial attacks, the Swin-ACMoE model maintained a 7% higher Top-1 accuracy than the standard Swin Transformer. In NLP, it showed a 5.8% improvement in robustness against text-swapping attacks.

Conclusion

The Adaptive Clustering router addresses a fundamental weakness in MoE architectures by improving the geometric conditioning of the routing problem. By dynamically weighting features to favor tight clusters, the model achieves better expert specialization, faster convergence, and significantly enhanced robustness—all while maintaining the efficiency of the original sparse architecture. While currently limited by a "cold start" requirement (needing previous layer statistics), the AC router represents a significant step toward more reliable and interpretable Mixture-of-Experts models.

Summary updated

BibTeX
@inproceedings{nielsen2025tight,
  author = {Stefan K. Nielsen and Rachel S. Y. Teo and Laziz U. Abdullaev and Tan M. Nguyen},
  title = {{Tight Clusters Make Specialized Experts}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=Pu3c0209cx},
}
Figure