Geometric and Stochastic Analysis of Discontinuities in Sparse Mixture-of-Experts

Tho Tran Huu, Huu-Tuan Nguyen, Thien-Hai Nguyen, Nhat-Tri Ho, Viet-Hoang Tran, Tho Quan, Tan Minh Nguyen

Sparse Mixture-of-Experts (SMoE) architectures are the computational engines behind some of today's most capable foundation models, from Mixtral to DeepSeek. By routing each input token to only a small subset of "experts" from a much larger pool, SMoEs achieve massive scale without a proportional increase in inference cost. However, this efficiency relies on a Top-$k$ selection mechanism that introduces a fundamental mathematical flaw: severe discontinuities in the model's output landscape.

This paper provides a rigorous geometric and stochastic analysis of these routing discontinuities and introduces SmoothSMoE, a localized smoothing mechanism that restores continuity, improves model robustness, and boosts performance across both language and vision tasks—all while preserving the computational benefits of sparsity.

The Problem: The "Cliffs" of Top-$k$ Routing

In a standard SMoE, the router uses a hard thresholding operation (Top-$k$) to select experts. While computationally efficient, this creates sharp "cliffs" in the model's mathematical landscape. If an input token lies precisely on the decision boundary between two experts, an infinitesimally small change in that input can cause the router to swap one expert for another.

Because different experts contain entirely different weights, this sudden swap leads to a massive, discontinuous jump in the model's output. These discontinuities make SMoEs notoriously difficult to optimize, highly sensitive to noise, and prone to training instability. Previous attempts to solve this by making routing "soft" or fully differentiable have typically sacrificed the core computational benefits of sparsity or broken the causal structure required for autoregressive text generation.

A Theoretical Post-Mortem of Discontinuities

To solve the problem, the authors first map it mathematically, breaking down the nature of these discontinuities through geometric and stochastic lenses:

  • Classification by Order: Discontinuities are classified by their "order" ($n$). An order-1 discontinuity represents a simple tie between two experts (a "wall" in the input space). Higher-order discontinuities represent simultaneous ties between three or more experts (complex "edges" and "corners").
  • Measure-Theoretic Slicing: Using advanced volume estimates, the authors prove that order-1 "walls" overwhelmingly dominate the input space. As one zooms in on the discontinuity surfaces, the relative volume occupied by complex, higher-order ties vanishes exponentially faster than the volume near simple walls.
  • Diffusion Modeling: By modeling random input perturbations as a diffusion process (Brownian motion), the researchers mathematically guarantee that a random path will almost surely hit an order-1 boundary first.

The Key Insight: In high-dimensional space, models are almost exclusively "tripping" over simple boundaries between two experts. We do not need to engineer complex solutions for multi-expert ties; fixing the local "seams" where two experts swap is sufficient.

The Solution: SmoothSMoE

Motivated by their theoretical findings, the authors propose SmoothSMoE, a mechanism that enforces continuity without overhauling the entire routing architecture.

Instead of applying a global smoothing function—which would be computationally expensive—SmoothSMoE utilizes $\ell_\infty$ local smoothing. It only intervenes when an input falls within a microscopic distance ($\epsilon$) of an expert boundary. Using a specialized log-smoothstep function, the router smoothly "boosts" the activation of an expert that almost made it into the Top-$k$. This creates a soft, continuous handoff rather than a jarring switch.

To manage the slight computational overhead of activating an extra expert near boundaries, the authors introduce an Adaptive Boundary Loss that automatically tunes the smoothing threshold ($\epsilon$) to maintain a strict target budget.

Empirical Validation

The authors evaluated SmoothSMoE across a rigorous suite of language, vision, and multimodal benchmarks, demonstrating consistent gains:

  • Language Modeling: On WikiText-103, SmoothSMoE reduced test perplexity from 35.52 (standard SMoE) to 34.35.
  • Robustness to Noise: When evaluated on "attacked" datasets where words were randomly replaced, SmoothSMoE maintained significantly better performance, proving that local smoothing acts as a powerful regularizer against input perturbations.
  • Natural Language Understanding: SmoothSMoE outperformed both standard SMoEs and recent differentiable routing methods (like ReMoE) on nearly all GLUE tasks, achieving a notable 1.55% gain on the MRPC task.
  • Computer Vision: On the DomainBed benchmark, the method achieved an average accuracy gain of 0.56%, including a 2.1% jump on the TerraIncognita dataset.
  • Large-Scale Multimodal: Proving its viability for frontier models, SmoothSMoE was successfully applied to a 5.6B parameter vision-language model (upcycled and fine-tuned on LLaVA-665K).

Limitations and Future Directions

While SmoothSMoE offers a highly effective, drop-in solution for routing discontinuities, the authors note a few areas for future exploration. First, the stochastic proofs assume random (diffusion) noise; highly structured or adversarial perturbations may behave differently and warrant further study. Second, while the adaptive loss controls "budget creep," activating extra experts near boundaries does introduce a marginal computational overhead that requires monitoring in strictly resource-constrained environments. Finally, the smoothing function relies on hyperparameters that may require specific tuning when adapting the method to radically different architectures.

Summary updated

BibTeX
@inproceedings{huu2026geometric,
  author = {Tho Tran Huu and Huu-Tuan Nguyen and Thien-Hai Nguyen and Nhat-Tri Ho and Viet-Hoang Tran and Tho Quan and Tan Minh Nguyen},
  title = {{Geometric and Stochastic Analysis of Discontinuities in Sparse Mixture-of-Experts}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=AyrNR1ExN5},
}
Figure