arXiv:2610.15039cs.LGOct 2026

Manuscript Offprint

arXiv:2610.15039

Sparsity Saves Compute, Not Samples: Oracle Inequalities for Dense and Sparse Mixture of Experts

Sagar Ghosh, Huy Nguyen, Alessandro Rinaldo

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Sparsity Saves Compute, Not Samples: Oracle Inequalities for Dense and Sparse Mixture of Experts

Sagar Ghosh Huy Nguyen Alessandro Rinaldo

The University of Texas at Austin

Abstract

Mixture-of-Experts (MoE) models combine specialized experts through an input-dependent routing mechanism, and their sparse variants underpin many modern large-scale systems. Yet the statistical cost of adaptive routing remains only partially understood. We study the estimation error of least-squares MoE estimators when both the experts and the gating network are Lipschitz in their parameters. We represent each MoE as a gate–expert pair in a Gated Hilbert Space, whose norm ∥⋅∥Δ\|\cdot\|_{\Delta} separates the contributions of routing and expert discrepancies. Using its empirical representation, we derive an oracle inequality with a fast rate of order O~((Kdpr,e+dpr,g)/n)\tilde{\mathcal{O}}\big((Kd_{\mathrm{pr},e}+d_{\mathrm{pr},g})/n\big) for dense MoEs with KK experts. For sparse Top-kk and Top-pp routing, the selection map is discontinuous in the gating parameters. We handle this by partitioning the gating class according to the selection patterns it induces on the sample. The resulting bounds match the dense rate up to an additive routing cost governed by the Natarajan dimension of the selector. We show that such a routing-complexity condition cannot be dropped: Lipschitz continuity in the parameters alone does not suffice. For linear softmax gating, the routing cost is of the same order as the gating term. Finally, for linear experts, we establish a matching minimax lower bound of order Kdpr,e/nKd_{\mathrm{pr},e}/n, showing that the rates are optimal up to logarithmic factors.

1 INTRODUCTION

The Mixture-of-Experts (MoE) framework is a prominent paradigm for modeling heterogeneous input-output relationships. By decomposing complex prediction tasks into specialized subproblems, MoE architectures combine expert functions through a data-dependent gating mechanism that adaptively weights their contributions. Since their introduction by (Jacobs et al., 1991) and (Jordan and Jacobs, 1994), MoE models have been widely studied for adaptive function approximation, local modeling, and conditional computation.

MoE architectures have recently regained prominence through sparse systems such as Switch Transformers (Fedus et al., 2022), GShard (Lepikhin et al., 2021), and architectures employing Top-kk (Shazeer et al., 2017) and Top-pp (Huang et al., 2024) routing. These methods activate only a subset of experts per input, enabling substantial capacity gains at manageable computational cost. Despite their empirical success, the statistical theory of adaptive expert selection remains underdeveloped. Existing work has studied approximation (Nguyen et al., 2016), identifiability (Jiang and Tanner, 1999), consistency (Nguyen and Chamroukhi, 2018), and parametric mixtures (Gormley and Frühwirth-Schnatter, 2019), while finite-sample guarantees under weak structural assumptions remain limited.

A key theoretical challenge arises from the interaction between expert and gating complexity. While classical learning theory provides tools such as covering numbers, Rademacher complexities, and empirical process methods (van der Vaart and Wellner, 1996; Bartlett and Mendelson, 2002; Wainwright, 2019) for individual function classes, analyzing adaptive mixtures is more subtle because the routing mechanism depends on the input and jointly determines the effective complexity of the predictor.

In this work, we develop a statistical analysis of parametric MoE models under weak regularity assumptions. For dense MoEs, we assume only that the expert and gating functions belong to Lipschitz-parametrized classes, without further architectural constraints, higher-order smoothness, or sparsity. We represent each MoE predictor as a gate–expert pair in a Gated Hilbert Space, whose norm ∥⋅∥Δ\|\cdot\|_{\Delta} separates the contributions of routing and expert discrepancies, and use it to derive covering-number bounds and a fast-rate oracle inequality. The resulting rate scales with the total parameter count Kdpr,e+dpr,gKd_{\textrm{pr,e}}+d_{\textrm{pr,g}}, quantifying the statistical cost of adaptive specialization. Our main contributions are as follows. Functional framework. We represent MoE predictors as gate–expert pairs in a Gated Hilbert Space, whose norm ∥⋅∥Δ\|\cdot\|_{\Delta} separates routing and expert discrepancies and yields covering-number bounds for MoE classes. Fast rates for dense MoEs. Assuming only Lipschitz parametrizations, we show via an offset-Rademacher oracle inequality that the estimation error is O~((Kdpr,e+dpr,g)/n)\tilde{\mathcal{O}}\big((Kd_{\textrm{pr,e}}+d_{\textrm{pr,g}})/n\big). Sparse routing. For Top-kk and Top-pp routing, whose selection map is discontinuous in the gating parameters, we partition the gating class by the selection patterns it induces on the sample. The rates match the dense rate up to a routing cost governed by the Natarajan dimension of the router: sparsity reduces computation, not worst-case sample complexity. We also show that such a routing-complexity condition is necessary. Lower bounds and simulations. For linear experts, we prove a minimax lower bound of order Kdpr,e/nKd_{\textrm{pr,e}}/n, so the rates are optimal up to logarithmic factors, and we illustrate the bounds on synthetic data.