Abstract
Originally introduced as a neural network for ensemble learning, mixture of experts (MoE) has recently become a fundamental building block of highly successful modern deep neural networks for heterogeneous data analysis. Despite its popularity in practice, a satisfactory level of theoretical understanding of the MoE model is far from complete. To shed new light on this problem, we provide a convergence analysis for maximum likelihood estimation (MLE) in the Gaussian-gated MoE model. The main challenge of that analysis comes from the inclusion of covariates in the Gaussian gating functions and expert networks, which leads to their intrinsic interaction via some partial differential equations with respect to their parameters. We tackle these issues by designing novel Voronoi loss functions among parameters to accurately capture the heterogeneity of parameter estimation rates. Our findings reveal that the MLE has distinct behaviors under two complement settings of location parameters of the Gaussian gating functions, namely when all these parameters are non-zero versus when at least one among them vanishes. Notably, these behaviors can be characterized by the solvability of two different systems of polynomial equations. Finally, we conduct a simulation study to empirically verify our theoretical results.
Introduction
Mixture of Experts (MoE) architectures are pivotal in modern deep learning, particularly in large-scale models like Sparsely-Gated MoE used in Large Language Models (LLMs). By utilizing a gating function to assign specific inputs to specialized "expert" networks, MoEs effectively handle heterogeneous data. The Gaussian-gated MoE (GMoE) is a prominent variant, favored for its compatibility with efficient Expectation-Maximization (EM) algorithm updates.
Despite their practical success, a significant theoretical gap remains regarding the convergence rates of parameter estimation. This is especially true in over-specified scenarios—where the model contains more experts than the underlying data distribution requires. In such cases, redundant experts interact with true experts, creating mathematical singularities that can significantly impede learning rates.
Methodology
This research analyzes Maximum Likelihood Estimation (MLE) in GMoE models through the lens of partial differential equations (PDEs) and Taylor expansions. To address the complexities of over-specification, we introduce several technical innovations:
- Voronoi Loss Functions: We developed new loss functions based on Voronoi cells. By partitioning the parameter space into regions where fitted experts are closest to specific true experts, we can independently track convergence rates for "exact-fitted" versus "over-fitted" (redundant) experts.
- PDE Framework for Interactions: We identified two critical types of parameter interactions: Interior Interactions (within a single expert or gating function) and Exterior Interactions (cross-talk between gating and expert parameters).
- Polynomial Systems: The analysis demonstrates that exact convergence rates are governed by the solvability of specific systems of polynomial equations derived from these PDE interactions.
Convergence Results
Our theoretical analysis reveals a "mixture model paradox": while the overall model density consistently converges at the standard parametric rate of $O(n^{-1/2})$, individual parameters exhibit highly heterogeneous behaviors:
- Exact-Fitted Parameters: These converge at the fast parametric rate of $O(n^{-1/2})$.
- Over-Fitted Parameters (Type I): When all gate centers are non-zero, gating parameters and expert biases converge at slower rates (e.g., $O(n^{-1/4})$ or $O(n^{-1/12})$) depending on the degree of redundancy.
- Over-Fitted Parameters (Type II): When at least one gate center is at zero, the "exterior interaction" between gating and expert parameters intensifies. This causes expert weights to slow down significantly compared to the Type I setting.
Empirical Validation
To validate these theoretical findings, we conducted simulation studies across various dimensions ($d=1$ and $d=2$) and expert counts ($k=4, 5$ for $k_0=3$). The empirical results strongly support our PDE-based framework.
As shown in the log-log plots of the sample size versus the proposed Voronoi loss, the slopes are consistently near -0.5. This confirms that while individual parameters may converge slowly, the aggregate loss defined by our Voronoi framework maintains the predicted $O(n^{-1/2})$ rate.
Conclusion and Future Work
This work provides the first comprehensive theoretical foundation for parameter estimation in GMoE models. While currently focused on Gaussian gates and affine experts, these insights lay the groundwork for analyzing more complex MoE architectures. Future research will explore extending these results to non-linear expert networks (e.g., MLPs), alternative estimation methods like least squares, and the development of theoretically-grounded pruning techniques to eliminate redundant experts during training.
Summary updated