NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

On Expert Estimation in Hierarchical Mixture of Experts: Beyond Softmax Gating Functions

Huy Nguyen, Xing Han, Carl William Harris, Suchi Saria, Nhat Ho · Submission to ICLR 2025 · Withdrawn

TL;DR

While standard Mixture of Experts (MoE) uses flat routing, Hierarchical Mixture of Experts (HMoE) nests gating decisions to specialize on complex, multimodal, or clustered data. This paper theoretically proves that replacing standard Softmax gates with distance-based Laplace gating eliminates destructive cross-level parameter interactions, significantly accelerating expert convergence from slow polynomial rates to $\widetilde{\mathcal{O}}_P(n^{-1/4})$. Across clinical multimodal benchmarks and image classification tasks, tailored hierarchical gating combinations (especially Laplace–Laplace and Softmax–Laplace) consistently outperform standard MoE baselines.

What Problem Does This Paper Address?

Standard MoE architectures use a single gating layer to distribute tokens to experts, which works well for homogeneous data but struggles to capture inherent multi-level structures, such as datasets with distinct modalities or latent patient sub-cohorts. HMoE solves this by organizing experts into a tree-like hierarchy (groups of experts routed by top-level dispatchers, then individual experts routed within each group).

However, HMoE remains under-theorized:

  1. How does the choice of gating function at each level impact expert specialization (how quickly an over-parameterized expert converges to true data-generating patterns)?
  2. Conventional Softmax gating creates mathematical dependencies across hierarchical levels that drastically slow down parameter convergence when the true number of experts is over-specified.

Methods

The authors analyze a two-level Gaussian HMoE under three gating configurations:

  • Softmax–Softmax (SS): Softmax gating at both the group and expert levels.
  • Softmax–Laplace (SL): Softmax gating at the parent level, Laplace gating ($\sigma(-\|\boldsymbol{\omega} - \mathbf{x}\| + \beta)$) at the child level.
  • Laplace–Laplace (LL): Laplace gating at both levels.

Theoretical Approach

Using maximum likelihood estimation (MLE) under model over-specification (where the model is allocated more experts $k_2$ than the true data-generating components $k_2^*$), the authors formulate Voronoi-based loss functions. When expanding density differences via Taylor series:

  • Softmax gating induces coupled partial differential equations (PDEs) between parent gating weights $\mathbf{a}$, child gating weights $\boldsymbol{\omega}$, and expert parameters $\boldsymbol{\eta}, \tau$: $$\frac{\partial u}{\partial \boldsymbol{\eta}} = \frac{\partial^2 u}{\partial \mathbf{a}\partial \tau}, \quad \frac{\partial u}{\partial \mathbf{a}} = \frac{\partial u}{\partial \boldsymbol{\omega}}$$
  • Laplace gating decouples these interactions. Under Laplace–Laplace gating, the cross-level algebraic interactions disappear entirely, cutting down complex systems of polynomial equations.

Datasets

The authors evaluate their theoretical insights on three distinct application regimes:

  • MIMIC-IV: Multimodal clinical dataset linking time-series vital signs, BioClinicalBERT-embedded radiology notes, and DenseNet-121-embedded chest X-rays across 73,181 ICU stays. Tasks include 48-hour in-hospital mortality (48-IHM), length of stay (LOS), and 25-phenotype classification (25-PHE).
  • eICU: Multi-center ICU database covering over 139,000 patients across four geographic US regions, evaluated on regional domain generalization for mortality and 15-day readmission.
  • Vision Benchmarks: CIFAR-10, Tiny-ImageNet, and full ImageNet (ILSVRC2012) using both single-layer MoE blocks and full Vision MoE (V-MoE) Transformer backbones.

Key Insights and Ideas

  • Decoupling Accelerates Convergence: In over-specified settings, Softmax gating forces parameter estimation rates to depend on the solvability of high-order polynomial equations $r(m)$, resulting in slow convergence rates like $\widetilde{\mathcal{O}}_P(n^{-1/r(|V|)})$ (e.g., $n^{-1/6}$ when an expert cell is over-specified by 3). In contrast, Laplace gating at both levels restores convergence to a dimension-independent $\widetilde{\mathcal{O}}_P(n^{-1/4})$.
  • One Level of Laplace Is Not Enough for Theory: Switching only the second level to Laplace (Softmax–Laplace) still preserves cross-level parameter coupling between $\boldsymbol{\eta}$ and parent gating weights $\mathbf{a}$, retaining the slower estimation bound theoretically—even though it performs strongly in practice.
  • Natural Semantic Specialization: Inspecting routing tensors reveals that HMoE intuitively routes tabular/time-series vitals and clinical notes to one group of experts, while chest X-ray image tokens are directed to another.

Key Results

  • Multimodal EHR Fusion (MIMIC-IV): HMoE (Laplace–Laplace) achieved state-of-the-art results across tasks, achieving 85.59% AUROC on 48-IHM (vs. 83.13% for flat MoE) and 86.26% AUROC on LOS (vs. 83.76% for flat MoE).
  • Clinical Domain Discovery: On the eICU regional generalization benchmark, HMoE (Softmax–Laplace) outperformed invariant learning baselines (IRM, DANN, SLDG), achieving 19.39% AUPRC / 63.61% AUROC on readmission prediction (compared to SLDG’s 18.57% / 62.30%).
  • Vision MoE: Standalone MoE modules and Vision Transformers equipped with Laplace–Laplace gating consistently reached higher top-1 accuracy on CIFAR-10 and ImageNet than models with Softmax–Softmax gating.

Limitations and Future Work

  • Computational Overhead: The hierarchical routing pipeline requires nested dispatch and combination tensor operations, leading to higher inference and memory overhead compared to flat MoE.
  • Open Algebraic Geometry Questions: Determining tight explicit bounds for the polynomial system order $r(m)$ when $m \ge 4$ remains an open mathematical challenge.
  • Future Work: The authors plan to investigate expert pruning techniques to reduce multi-level routing costs in large foundation models and expand HMoE evaluations to broader generative settings.

Summary updated

BibTeX
@misc{nguyen2024expert,
  author = {Huy Nguyen and Xing Han and Carl William Harris and Suchi Saria and Nhat Ho},
  title = {{On Expert Estimation in Hierarchical Mixture of Experts: Beyond Softmax Gating Functions}},
  year = {2024},
  eprint = {2410.02935},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.02935},
}
Figure