Sigmoid Gating is More Sample Efficient than Softmax Gating in Mixture of Experts

Huy Nguyen, Nhat Ho, Alessandro Rinaldo

Introduction

Mixture of Experts (MoE) has become the foundational architecture for scaling large language models (LLMs) like Mixtral and DeepSeek. At the core of MoE is a gating network that routes inputs to specific "expert" sub-models. Traditionally, this routing relies on a softmax function.

However, softmax has a built-in structural flaw: its "sum-to-one" constraint forces experts into a zero-sum game. If the routing weight of one expert increases, others must decrease. This forced competition frequently leads to representation collapse, where a few experts dominate while the rest become underutilized or useless. While researchers have empirically found that sigmoid gating—where each expert's relevance is evaluated independently—mitigates this collapse and performs better, a rigorous theoretical understanding of why and how much better it is has been missing.

This paper provides the first rigorous theoretical proof that sigmoid gating is fundamentally more sample-efficient than traditional softmax gating in MoE models. By removing forced competition, sigmoid gating achieves significantly faster convergence rates.

Theoretical Framework

The authors analyze MoE through the lens of a statistical regression framework. They study the convergence rates of the least squares estimator, focusing specifically on the "over-specified" case. In deep learning, models are typically over-specified, meaning the network contains more experts than are strictly necessary to represent the underlying data distribution.

The paper identifies two distinct mathematical regimes for these over-specified parameters:

  1. Regime 1: The gating weights for the redundant experts are independent of the input (constant).
  2. Regime 2: The gating weights for the redundant experts depend on the input features (the more realistic, "active" scenario).

To derive convergence rates, the authors formulate new identifiability conditions (Strong and Weak Identifiability) that dictate how mathematically distinct the expert functions must be for the model to learn them efficiently.

Convergence Rates and Key Insights

The core contribution of the paper is the mathematical proof that sigmoid gating achieves superior convergence rates compared to softmax.

Theoretical convergence rates comparing Sigmoid and Softmax gating across different expert types and regimes.
  • The "Regime 2" Advantage: In the most practical scenario (Regime 2), sigmoid gating achieves a parametric convergence rate of $\mathcal{O}_P(n^{-1/2})$. In stark contrast, softmax gating is mathematically bottlenecked, limited to $\mathcal{O}_P(n^{-1/4})$ for ReLU experts, or a painfully slow $\mathcal{O}_P(1/\log n)$ for polynomial experts.
  • Expert-Agnostic Efficiency: Sigmoid gating works efficiently with a wider variety of expert functions. Polynomial experts, for instance, typically cause softmax-based models to struggle or fail to converge quickly, but sigmoid gating handles them with ease.
  • Sample Efficiency: Because of these faster rates, a sigmoid-gated MoE requires a significantly smaller sample size than its softmax counterpart to reach the same target error.

Empirical Validation

Because this is a theoretical work focused on proving convergence rates, the authors use synthetic datasets to validate their theorems. They generated features ($X$) from a uniform distribution in a 32-dimensional space and responses ($Y$) from a ground-truth MoE model with 8 experts, adding Gaussian noise. Sample sizes ($n$) spanned from $10^3$ to $10^5$.

The empirical simulations showed a clear performance gap that perfectly mirrored the theoretical claims:

  • ReLU Experts: Under sigmoid gating, the estimation error (Voronoi loss) vanished at a rate of roughly $n^{-0.51}$, nearly matching the theoretical $n^{-1/2}$. Softmax gating trailed significantly at $n^{-0.24}$.
  • Linear Experts: The gap widened further. Sigmoid gating achieved a rate of $n^{-0.40}$, while softmax was stuck at a sluggish $n^{-0.11}$.

Limitations and Future Directions

While this paper establishes a strong theoretical foundation for sigmoid gating, the authors note a few areas for future exploration:

  • Point-wise vs. Uniform Rates: The current analysis assumes ground-truth parameters are independent of the sample size. Future work should aim for "uniform" convergence rates that hold regardless of specific parameter values.
  • Model Misspecification: The theory assumes the "true" data distribution is a perfect MoE. Exploring how sigmoid gating behaves under model misspecification (messy, real-world data) is a logical next step.
  • Universal Approximation: While the sigmoid function's general approximation power is known, its specific behavior and limits within the MoE gating context for massive-scale LLMs warrant deeper investigation.

Summary updated

BibTeX
@inproceedings{nguyen2024sigmoid,
  author = {Huy Nguyen and Nhat Ho and Alessandro Rinaldo},
  title = {{Sigmoid Gating is More Sample Efficient than Softmax Gating in Mixture of Experts}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=IG6kd5V4kd},
}
Figure