Guiding the Experts: Semantic Priors for Efficient and Focused MoE Routing
Chengxi Min, Wei Wang, Yahui Liu, Weixin Ye, Enver Sangineto, Qi Wang, Yao Zhao
TL;DR
This work addresses the inefficiency and opaqueness of routing in Soft MoE for vision by leveraging latent semantic structure in dispatch weights. It introduces a foreground-guided auxiliary loss that aligns expert activation with semantically meaningful foreground regions, and a lightweight LayerScale mechanism to stabilize information flow in skip connections. By extracting foreground priors with external networks and using a spatial overlap-based loss, the approach improves routing quality and convergence, achieving consistent gains on ImageNet-1K and smaller datasets while enhancing interpretability of expert specialization. The method requires minimal architectural changes and demonstrates promising potential for more efficient, semantically grounded MoE routing in vision models.
Abstract
Mixture-of-Experts (MoE) models have emerged as a promising direction for scaling vision architectures efficiently. Among them, Soft MoE improves training stability by assigning each token to all experts via continuous dispatch weights. However, current designs overlook the semantic structure which is implicitly encoded in these weights, resulting in suboptimal expert routing. In this paper, we discover that dispatch weights in Soft MoE inherently exhibit segmentation-like patterns but are not explicitly aligned with semantic regions. Motivated by this observation, we propose a foreground-guided enhancement strategy. Specifically, we introduce a spatially aware auxiliary loss that encourages expert activation to align with semantic foreground regions. To further reinforce this supervision, we integrate a lightweight LayerScale mechanism that improves information flow and stabilizes optimization in skip connections. Our method necessitates only minor architectural adjustments and can be seamlessly integrated into prevailing Soft MoE frameworks. Comprehensive experiments on ImageNet-1K and multiple smaller-scale classification benchmarks not only showcase consistent performance enhancements but also reveal more interpretable expert routing mechanisms.
