Table of Contents
Fetching ...

Variational Inference, Entropy, and Orthogonality: A Unified Theory of Mixture-of-Experts

Ye Su, Yong Liu

TL;DR

The paper tackles how to scale Mixture-of-Experts models efficiently while maintaining theoretical guarantees. By unifying Bayesian variational inference and information theory, it recasts Top-$k$ routing and load balancing as optimal sparse approximation and prior matching, and shows these components maximize ELBO and mutual information under sparsity constraints. It identifies a Coherence Barrier that causes greedy routing to fail when expert representations are highly correlated, and proves that orthogonality of expert features makes greedy Top-$k$ routing globally optimal. The authors propose three orthogonality-enhancing strategies and provide synthetic-data validation demonstrating improved utilization and specialization, arguing for a shift toward designing representations that are intrinsically routable. This theoretical foundation offers principled guidance for constructing scalable, reliable MoE systems in large-scale language models.

Abstract

Mixture-of-Experts models enable large language models to scale efficiently, as they only activate a subset of experts for each input. Their core mechanisms, Top-k routing and auxiliary load balancing, remain heuristic, however, lacking a cohesive theoretical underpinning to support them. To this end, we build the first unified theoretical framework that rigorously derives these practices as optimal sparse posterior approximation and prior regularization from a Bayesian perspective, while simultaneously framing them as mechanisms to minimize routing ambiguity and maximize channel capacity from an information-theoretic perspective. We also pinpoint the inherent combinatorial hardness of routing, defining it as the NP-hard sparse subset selection problem. We rigorously prove the existence of a "Coherence Barrier"; when expert representations exhibit high mutual coherence, greedy routing strategies theoretically fail to recover the optimal expert subset. Importantly, we formally verify that imposing geometric orthogonality in the expert feature space is sufficient to narrow the divide between the NP-hard global optimum and polynomial-time greedy approximation. Our comparative analyses confirm orthogonality regularization as the optimal engineering relaxation for large-scale models. Our work offers essential theoretical support and technical assurance for a deeper understanding and novel designs of MoE.

Variational Inference, Entropy, and Orthogonality: A Unified Theory of Mixture-of-Experts

TL;DR

The paper tackles how to scale Mixture-of-Experts models efficiently while maintaining theoretical guarantees. By unifying Bayesian variational inference and information theory, it recasts Top- routing and load balancing as optimal sparse approximation and prior matching, and shows these components maximize ELBO and mutual information under sparsity constraints. It identifies a Coherence Barrier that causes greedy routing to fail when expert representations are highly correlated, and proves that orthogonality of expert features makes greedy Top- routing globally optimal. The authors propose three orthogonality-enhancing strategies and provide synthetic-data validation demonstrating improved utilization and specialization, arguing for a shift toward designing representations that are intrinsically routable. This theoretical foundation offers principled guidance for constructing scalable, reliable MoE systems in large-scale language models.

Abstract

Mixture-of-Experts models enable large language models to scale efficiently, as they only activate a subset of experts for each input. Their core mechanisms, Top-k routing and auxiliary load balancing, remain heuristic, however, lacking a cohesive theoretical underpinning to support them. To this end, we build the first unified theoretical framework that rigorously derives these practices as optimal sparse posterior approximation and prior regularization from a Bayesian perspective, while simultaneously framing them as mechanisms to minimize routing ambiguity and maximize channel capacity from an information-theoretic perspective. We also pinpoint the inherent combinatorial hardness of routing, defining it as the NP-hard sparse subset selection problem. We rigorously prove the existence of a "Coherence Barrier"; when expert representations exhibit high mutual coherence, greedy routing strategies theoretically fail to recover the optimal expert subset. Importantly, we formally verify that imposing geometric orthogonality in the expert feature space is sufficient to narrow the divide between the NP-hard global optimum and polynomial-time greedy approximation. Our comparative analyses confirm orthogonality regularization as the optimal engineering relaxation for large-scale models. Our work offers essential theoretical support and technical assurance for a deeper understanding and novel designs of MoE.
Paper Structure (33 sections, 10 theorems, 108 equations, 3 figures, 3 tables, 3 algorithms)

This paper contains 33 sections, 10 theorems, 108 equations, 3 figures, 3 tables, 3 algorithms.

Key Result

Theorem 3.2

Let $p(z|x)$ be an arbitrary categorical distribution over $E$ experts with probabilities $p_1, \dots, p_E$. Consider the constrained optimization problem: The unique solution $q^*$ is the renormalized truncation of $p$ to its $k$ largest elements. Specifically, let $\mathcal{I}_k$ be the set of indices corresponding to the top-$k$ values of $p$. Then:

Figures (3)

  • Figure 1: The Geometry of Greedy Routing. A visual demonstration of Theorem \ref{['thm:coherence_barrier']} and Theorem \ref{['thm:orthogonality_optimality']}. (a) High coherence creates a "blind spot" for greedy selection. (b) Orthogonality decouples the optimization problem.
  • Figure 2: The Coherence Barrier. Numerical simulation of the SSS problem with sparsity $k=6$liu2024deepseekwang2025trainingshahout2025score. The red dashed line marks the theoretical sufficient condition for exact recovery derived in Theorem \ref{['thm:coherence_barrier']} ($\mu < 1/11$). The blue curve shows the empirical success rate of the greedy strategy. The results illustrate two key phenomena: (1) Unreasonable Effectiveness: The greedy router succeeds well beyond the conservative theoretical bound; (2) The Combinatorial Cliff: As expert coherence increases further (representing feature redundancy), the recovery probability collapses, confirming that high coherence is the fundamental failure mode of greedy routing.
  • Figure 3: Empirical Validation on Synthetic High-Coherence Data. Results are averaged over 10-fold cross-validation to ensure robustness. (Row 1) Quantitative Metrics:(a) Test accuracy convergence. (b) The Effective Rank of the expert feature space. Notably, $\mathcal{L}_o$ (Red) maintains the highest rank, verifying that Geometric Orthogonality successfully prevents representation collapse. In contrast, Baseline (Blue) and NCL (Green) suffer from rank degradation. (c) Final accuracy comparison, where $\mathcal{L}_o$ achieves the optimal performance ($73.6\%$). (Row 2) Expert Specialization Heatmaps: Visualization of expert-class assignment frequencies. $\mathcal{L}_o$(e) exhibits clearer block-diagonal patterns compared to the diffused ambiguity in the Baseline (d), indicating stronger specialization.

Theorems & Definitions (32)

  • Definition 3.1: $k$-Sparse Variational Family
  • Theorem 3.2: Optimality of Top-$k$ Routing
  • proof
  • Theorem 3.3: Auxiliary Loss as Rényi Entropy Bound
  • proof
  • Theorem 4.1: Top-$k$ Strictly Bounds Routing Ambiguity
  • proof
  • Theorem 4.2: Auxiliary Loss Maximizes MI Lower Bound
  • proof
  • Theorem 5.1: Intractability of Optimal Routing
  • ...and 22 more