Holistic Scaling Laws for Optimal Mixture-of-Experts Architecture Optimization

Weilin Wan, Jingtao Han, Debing Zhang, Weizhong Zhang, Cheng Jin

TL;DR

Designing Mixture-of-Experts (MoE) language models usually involves a lot of guesswork because there are simply too many architectural knobs to tune at once. By applying clever mathematical constraints and uncovering a hidden symmetry in how network width behaves, the authors collapse an impossible 16-dimensional search space into a tractable two-step recipe. The result is a concrete blueprint that maps any given compute budget directly to its optimal MoE architecture—plus reassuring proof that bigger models are surprisingly forgiving when hardware engineers bend the rules.

What Problem Does This Paper Address?

If you want to train a standard, "dense" Transformer, scaling laws (like Chinchilla) tell you how to split your compute budget between model size and training tokens. For specifics like depth versus width, practitioners lean on years of community intuition.

Mixture-of-Experts (MoE) models—which route each token through only a tiny fraction of specialized sub-networks—shatter that intuition. MoEs add entirely new dimensions: total experts, active experts per token, expert sizes, and the balance between dense and sparse layers. Worse, unlike dense models where compute, memory bandwidth, and storage scale in lockstep, MoEs decouple them. Two MoE models can use the exact same FLOPs per token ($M$), yet require vastly different active parameters ($N_a$, a proxy for memory bandwidth) and total parameters ($N$, a proxy for storage).

Prior scaling studies either stuffed MoE variables into massive formulas (requiring way too many experiments to fit reliably) or froze the global architecture to study MoE layers in isolation (ignoring how components interact). Optimizing everything jointly requires searching 16 dimensions—an impossible $\mathcal{O}(n^{16})$ brute-force grid.

Methods

To tame this 16-dimensional monster without ignoring global interactions, the authors build a systematic dimension-reduction pipeline:

Figure 1: Overview of the dimension reduction pipeline. Starting from the full 16-dimensional MoE architectural space, we systematically reduce the search complexity to two sequential phases of O(n3) and O(n2) through classical scaling laws, algebraic constraints, engineering fixations, and the rank-preserving property of d.
  1. The Resource Triad: They anchor the search around three macroscopic proxies: FLOPs per token ($M$), active parameters ($N_a$), and total parameters ($N$), defining compute precisely as $C = M \cdot D$ (where $D$ is training tokens) rather than rough parameter approximations.
  2. Classical & Algebraic Reduction ($\mathcal{O}(n^{16}) \to \mathcal{O}(n^4)$): First, they fit standard Chinchilla-style laws to lock in $M$ and $D$ for a given compute budget $C$. Next, they fix standard hardware-aligned settings (e.g., sequence length $S=8192$, $N_e=288$ total experts, $K=8$ active experts) and apply exact algebraic equations governing Transformer shapes. Remarkably, once $(M, N_a, N)$ are locked, all remaining structural variables collapse into just one free degree of freedom: the hidden dimension ($d$).
  3. Coordinate Rectification: Because $(N_a, N)$ forms an awkward, irregular geometric region, they re-parameterize the space into scale-invariant ratios: active compute density ($M/N_a$) and parameter expansion ($N/N_a$), turning the search grid into a clean rectangle.
  4. Two-Phase Search ($\mathcal{O}(n^4) \to \mathcal{O}(n^3) + \mathcal{O}(n^2)$): Discovering that the relative ranking of $(M, N_a, N)$ setups doesn't change much across valid choices of $d$, they fix $d$ to its median feasible value to find the optimal $(M, N_a, N)$ in Phase 1, then sweep for the optimal $d$ in Phase 2.

Datasets

Not discussed in the main text of the paper (the authors note that specific datasets and training infrastructure are detailed in Appendix H.1, which is not included in the provided document).

Key Insights and Ideas

  • Hidden dimension ($d$) is rank-preserving: Changing a model's hidden width $d$ within its valid range acts as a gentle fine-tuner rather than a primary driver of performance. If Architecture A beats Architecture B at one valid width, it will almost certainly beat it at another. This insight is the linchpin that decouples the search space.
  • Big models forgive engineering compromises: As compute budgets grow, the "near-optimal band" (configurations achieving within 0.1% of minimum loss) widens substantially for hidden size $d$. While tiny proxy runs are finicky and sensitive to bad shapes, massive production models give engineers plenty of leeway to round dimensions to hardware-friendly powers of 2 without hurting loss.
Figure 4: Analysis of d optimization. The shaded grey regions in both subfigures represent "near- optimal bands," indicating parameter combinations where the loss is within 0.1% of the minimum for that scale, thereby implying robustness to slight deviations from the exact optimum. Specifically, (a) illustrates the loss data points and fitted curves across various compute scales, showing the relationship between loss and d. (b) depicts the derived scaling laws for the optimal d as a function of the compute budget C, demonstrating how the preferred d changes with increasing computational resources while remaining robust within these near-optimal bounds.
  • A flat basin for parameter expansion: Across all tested scales, keeping the ratio of total-to-active parameters ($N/N_a$) anywhere between 18 and 25 yields virtually identical, near-optimal loss—giving system designers a wide, flat plateau to trade off parameter memory.
Figure 2: Results visualized across different parameter spaces. (a) depicts the loss landscape in (Na, N) for a specific compute budget (C = 1020, M = 3.2681 GFLOPs); additional visualizations for different compute scales are available in Appendix C. (b) transforms this into the (M/Na, N/Na) space, highlighting a black profile curve within the optimal loss region. (c) presents normalized loss profiles along N/Na for various compute scales, demonstrating the consistent flatness of the loss landscape near its optimal value.

Key Results

Validating their framework across 670+ trained MoE models spanning six compute budgets from $10^{18}$ to $3 \times 10^{20}$ FLOPs, the authors establish concrete power-law recipes:

  • Macro Allocation: Optimal per-token FLOPs scale as $M^{\text{opt}}(C) = 0.04368 \cdot C^{0.5437}$, and tokens scale as $D^{\text{opt}}(C) = 22.8929 \cdot C^{0.4563}$.
  • Rank Preservation: Validating the median-$d$ proxy across 144 experiments at $C = 10^{18}$ showed near-perfect correlation with true minimum loss (Pearson $r = 0.9793$, Spearman $\rho = 0.9758$).
  • Compute Density & Width: Optimal active compute density decreases with scale as $M/N_a = 6.417 + 2913.186 \cdot C^{-0.158}$ (shifting compute toward parameters over attention overhead as models grow), while optimal hidden dimension grows as $d = -1262.792 + 41.126 \cdot C^{0.092}$.

Limitations and Future Work

  • Scale Extrapolation: Experiments top out at $3 \times 10^{20}$ FLOPs across six checkpoints, meaning extreme frontier extrapolations carry uncertainty.
  • Fixed Routing Sparsity: Numerical formulas are tied to $K=8$ active and $N_e=288$ total experts; changing sparsity requires re-running the pipeline.
  • Pre-training Loss Only: Optimization relies strictly on pre-training cross-entropy loss; whether downstream reasoning tasks share the exact same architectural sweet spots remains an open question.
  • One-Shot Macro Fit & Unconstrained Memory: The initial $(C, M, D)$ laws weren't iteratively re-fitted after finding optimal shapes, and the pipeline treats total memory $N$ as an output rather than accepting a hard VRAM cap—both prime targets for future work.

Summary updated

BibTeX
@inproceedings{wan2026holistic,
  author = {Weilin Wan and Jingtao Han and Debing Zhang and WEIZHONG ZHANG and Cheng Jin},
  title = {{Holistic Scaling Laws for Optimal Mixture-of-Experts Architecture Optimization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=A8xK024UOt},
}
Figure