Abstract
Standard Mixture of Experts (MoE) models often struggle with parameter interference that slows down learning. This work demonstrates that switching from traditional Softmax gating to Laplace gating in a Hierarchical MoE (HMoE) eliminates mathematical bottlenecks caused by entangled parameter interactions. We provide theoretical evidence that this shift leads to significantly faster expert specialization and superior performance across complex multimodal and clinical datasets, including MIMIC-IV and CMU-MOSI.
Introduction
Mixture of Experts (MoE) architectures have become a cornerstone of large-scale foundation models due to their ability to perform sparse activation, utilizing only a fraction of parameters for any given input. Hierarchical MoE (HMoE) extends this concept by organizing experts into a tree-like structure, facilitating a "coarse-to-fine" division of labor. However, traditional HMoE implementations relying on Softmax gating face a theoretical hurdle: "undesirable parameter interactions." These interactions manifest as complex Partial Differential Equations (PDEs) that link gating parameters across different levels of the hierarchy, leading to messy optimization landscapes and slow expert convergence.
Methodology
The study investigates a two-level Gaussian HMoE and proposes a fundamental shift in the gating mechanism to resolve parameter entanglement.
Beyond Softmax Gating
The authors compare three configurations:
- Softmax-Softmax (SS): The traditional hierarchical approach.
- Softmax-Laplace (SL): Softmax at the top level, Laplace at the bottom.
- Laplace-Laplace (LL): The proposed optimal configuration.
Laplace Gating Mechanism
Unlike Softmax gating, which utilizes inner products, Laplace gating is based on the $L_2$ distance between an input $x$ and an expert's centroid $w$, defined as $\sigma(-\|w - x\| + \beta)$. This distance-based approach effectively "decouples" the levels of the hierarchy.
Theoretical Convergence
Through rigorous statistical proof using Hellinger distance and Voronoi-based loss functions, the authors demonstrate that the Laplace-Laplace configuration dissolves the PDEs that plague Softmax-based HMoEs. This allows the model to achieve an expert estimation rate of $O(n^{-1/4})$ for over-specified experts, which is significantly faster than the rates observed in Softmax models.
Experimental Setup
The proposed HMoE-LL was validated across diverse domains:
- Image Classification: CIFAR-10, ImageNet, and Tiny-ImageNet, including robustness tests on CIFAR-10-Corrupted.
- Multimodal Clinical Data: Using the MIMIC-IV dataset (73,181 ICU stays) to predict mortality and length of stay by combining time-series, clinical notes, and Chest X-rays.
- Multimodal Sentiment Analysis: CMU-MOSI dataset involving video, audio, and text.
- Domain Generalization: Predicting patient outcomes across different hospital regions using the eICU dataset.
Key Insights
- Decoupling Parameters: Laplace gating serves as a mathematical decoupler, preventing updates to the router from negatively impacting expert specialization.
- Coarse-to-Fine Specialization: HMoE naturally handles multimodal data better than flat MoE. In MIMIC-IV experiments, the model successfully routed vital signs and notes to one expert group while directing X-ray tokens to another.
- Resistance to Representation Collapse: Laplace gating is less biased toward experts with large norms, mitigating the risk of a few experts dominating the model and others becoming redundant.
Results
The HMoE-LL configuration consistently outperformed standard MoE and Softmax-based HMoE variants.
- Clinical Prediction: On the MIMIC-IV mortality prediction task, HMoE-LL achieved an AUROC of 87.49, compared to 83.13 for standard MoE and 85.59 for HMoE-SS.
- Sentiment Analysis: HMoE-LL reached an F1 score of 88.36 on CMU-MOSI, surpassing specialized multimodal transformers like MulT.
- Robustness: HMoE demonstrated superior stability against data corruption in CIFAR-10-C tests compared to standard MoE.
- Convergence: Synthetic experiments confirmed that HMoE-LL expert boundaries align more accurately with true data partitions, indicating faster and more precise specialization.
Conclusion and Future Work
While HMoE-LL offers significant performance and theoretical advantages, it introduces a computational overhead of approximately 20-25% compared to standard MoE due to the extra dispatch and combination steps. Future research directions include automating the selection of the optimal number of experts, exploring alternative distance-based gating functions, and implementing expert pruning to mitigate computational costs while retaining specialization benefits.
Summary updated