How Many Experts Are Enough? Towards Optimal Semantic Specialization for Mixture-of-Experts
Sumin Park, Noseong Park
TL;DR
MASS tackles the problem of allocating semantic capacity in Sparse Mixture-of-Experts by introducing a gradient-based semantic drift detector and semantic alignment checks to trigger adaptive expert expansion. It integrates a Top-$p$ routing strategy to balance per-token routing confidence and computational cost. The approach is validated on synthetic language-like data and real-world language and vision benchmarks, where MASS consistently outperforms strong MoE baselines and demonstrates improved semantic specialization and domain robustness. By reducing reliance on hyperparameter searches for the expert pool size and promoting diverse, complementary expert roles, MASS offers a practical path to efficient, scalable, semantically aware MoE systems.
Abstract
Finding the optimal configuration of Sparse Mixture-ofExperts (SMoE) that maximizes semantic differentiation among experts is essential for exploiting the full potential of MoE architectures. However, existing SMoE frameworks either heavily rely on hyperparameter tuning or overlook the importance of diversifying semantic roles across experts when adapting the expert pool size. We propose Mixture-of-Experts for Adaptive Semantic Specialization (MASS), a semanticaware MoE framework for adaptive expert expansion and dynamic routing. MASS introduces two key advancements: (i) a gradient-based semantic drift detector that prompts targeted expert expansion when the existing expert pool lacks capacity to capture the full semantic diversity of the data, and (ii) an integration of adaptive routing strategy that dynamically adjusts expert usage based on token-level routing confidence mass. We first demonstrate that MASS reliably converges to the point of optimal balance between cost-performance trade-off with notably improved sematic specialization in a highly controlled synthetic setup. Further empirical results on real-world datasets across language and vision domains show that MASS consistently outperforms a range of strong MoE baselines, demonstrating its domain robustness and enhanced expert specialization.
