# Hyperparameter Transfer with Mixture-of-Experts Layers

Transfer rules can carry tuned hyperparameters across mixture-of-experts scaling

Tianze Jiang, Blake Bordelon, Cengiz Pehlevan, Boris Hanin · International Conference on Machine Learning · 2026-9-29

- **Problem** Transfer rules like µP and CompleteP were derived for dense transformers, so sparse MoE layers with router weights and expert counts lack tuned learning rates and inits. Retuning every new scale dimension is costly.
- **Method** The authors extend CompleteP with an MoE block that grows expert count and active experts together, keeping their ratio fixed. Expert biases balance load instead of an auxiliary loss, and the router learning rate and init follow derived scaling rules.
- **Results** Base-model learning rates and init carried over without retuning to models up to 2B total parameters. Losses of larger models collapsed onto the base model's curve early in training.

## Why sparse experts make transfer harder

Transfer rules such as µP and CompleteP were derived for dense transformers, where a feedforward block is a single dense layer. A sparse MoE layer swaps that feedforward block for many experts, and only a fraction of the weights runs for each token. That saves compute, but it adds router weights that need their own learning rate and initialization, plus expert count and expert size as new scale dimensions.

So the question becomes whether one set of rules can carry tuned hyperparameters across all of these dimensions at once.

## Keeping sparsity fixed while experts scale

The core choice is to grow the number of experts and the number of active experts together, so that their ratio κ stays constant. With κ fixed, each expert sees a constant share of the batch, and the authors argue this is why hyperparameters should transfer. Instead of the auxiliary loss used in earlier MoE work, load is balanced by moving expert biases, which leaves the other weights untouched.

The MoE block is added on top of CompleteP, which keeps its 1/L residual multipliers and its depth and width rules unchanged.

Each MoE output is a weighted sum over the active experts, with sigmoid mixing coefficients g\_i(h) computed from each router vector. \\(f\_{\\mathrm{MoE}}(h)=\\frac{1}{n\_{\\mathrm{act}}}\\sum\_{i\\in A(h)} g\_i(h)\\,E\_i(h)\\) is the forward computation, where the active set A(h) is chosen from the top n\_act values of g\_i(h) plus b\_i. The biases b\_i therefore affect only which experts are selected, while the mixing weights come from the router vectors alone.

## Deriving the learning rate and init for each group

The derivation asks that each change in the MoE output, the expert hidden activations and the individual expert outputs stays Θ(1) at every step. To make this tractable, Adam is approximated by sign gradient descent, and law-of-large-numbers-type alignment is assumed between vectors. Under those assumptions, the router learning rate comes out in Θ(1/n\_embd), and the router init is n\_embd raised to minus γ.

The authors set γ = 1 in all main-text experiments, after weighing the choices made by earlier MoE papers.

For the expert up projection, the init standard deviation is n\_embd to the power minus 1/2, and the learning rate is n\_embd to the power minus 1. The down projection carries an extra factor of α\_ffn to the power minus 1 in both its init and its learning rate. This α\_ffn dependence on the down-projection init differs from the standard fan-in initialization, which the authors justify heuristically through a mean-field view of a two-layer MLP.

Expert biases are initialized at zero with a learning rate in Θ(1), so no expert gets extra tokens at the start.

## What the mean-field analysis adds

Dimensional analysis can set the exponents, but it doesn't show that training converges to a limit that stays the same as the sizes grow. The authors analyse a residual network with MoE blocks in the simultaneous limit of growing width, expert count and expert size, with κ held constant. In that limit, the dynamics depend on sparsity rather than on the number of experts, which is why the authors expect transfer at fixed sparsity.

If the hidden width multiplier α\_ffn stays in Θ(1), the dynamics don't depend on it either, which supports transfer across expert size.

The resulting description has three levels: residual stream neurons, expert outputs, and neurons inside each expert. The derivation is carried out for a slightly simplified setup in which only the MoE block's residual stream is analysed.

## Fixed-budget transfer across scale dimensions

The base models had 38M activated parameters, and each run used about 1B tokens, split into 2000 steps of 500K tokens at context length 1024. The sweep starts from a base configuration of residual width 512, depth 8 and (n\_exp, n\_act) = (4, 1), and then varies one dimension at a time. The optimal learning rate and init stayed at the same settings across models from 51M to 2B total parameters.

Each point uses four seeds, and the constant multipliers for each parameter group were tuned, because untuned multipliers left performance on the table.

## Early loss curves and expert load

With the upscaled optima, the training loss of larger models collapses onto the base model's curve in early iterations. The curves split later, with larger models reaching lower loss, which the authors describe as a result of scale. The collapse is shown on FineWeb at sparsity 1/4 and on C4 at sparsity 1/12.

Load balancing aims at a fraction of about κ tokens per expert, and the optimal hyperparameters produce close to uniform loads as expert count grows. The authors report this uniform loading across expert counts, which is what they expected from the bias update.

## Many small experts or fewer large ones

At a fixed 1B-token budget, scaling up from the base model with n\_act and α\_ffn equal to 1 showed that adding experts was more parameter-efficient than enlarging them. The comparison is fair because the transferred hyperparameters let each architecture run without its own sweep. On a 5B-token horizon with GPT2-small activated, more activated experts, and so smaller experts, monotonically improved performance.

This agrees with earlier reports of gains from more, smaller experts, and the authors cite those works as the same direction.

## Longer horizon against a dense GPT2-small baseline

The MoE's active architecture matches GPT2-small at 124M, with a 500K batch, and its hyperparameters are zero-shot from the 38M base models. Its loss curve sits beside a dense GPT baseline and speedrun AdamW and Muon curves, which approach a 3.28 validation loss at 10B tokens. Because the MoE has more total parameters than the dense model, the comparison is active-parameter matched rather than total-parameter matched.

A longer run to 7.5B tokens on GPT2-medium with 355M activated parameters is also reported, and a cosine decay to zero improved final validation performance.

## Limitations

The main experiments stop at 1B tokens, while compute-optimal horizons can behave differently, so transfer to those horizons was not tested. Batch size, Adam betas and LR schedules were left out of the study, although they interact with training horizon. A non-asymptotic DMFT analysis of HP transfer and a rigorous treatment of Adam and Muon are still open.

Compute-optimal scaling rules for MoEs are also unknown, so the work is a first step toward them.

## Paper info

- **Authors**: Tianze Jiang, Blake Bordelon, Cengiz Pehlevan, Boris Hanin
- **Venue**: International Conference on Machine Learning · Published
- **First published**: 2026-9-29
- **Added**: 2026-11-27
- **Original paper terms**: [Check in the original ↗](https://proceedings.mlr.press/v306/jiang26a.html)
- **What we show**: Paper info and commentary

[Original paper ↗](https://proceedings.mlr.press/v306/jiang26a.html)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Tianze Jiang, Blake Bordelon, Cengiz Pehlevan, Boris Hanin (2026). Hyperparameter Transfer with Mixture-of-Experts Layers. International Conference on Machine Learning. https://proceedings.mlr.press/v306/jiang26a.html

**BibTeX**

```
@article{jiang2026hyperparameter,
  title = {{Hyperparameter Transfer with Mixture-of-Experts Layers}},
  author = {Tianze Jiang and Blake Bordelon and Cengiz Pehlevan and Boris Hanin},
  year = {2026},
  journal = {International Conference on Machine Learning},
  url = {https://proceedings.mlr.press/v306/jiang26a.html}
}
```

## Other paper commentary

- [Carrying Feature Ablations Across Sparse Autoencoder Seeds](https://refivu.com/en/papers/f27ad02b-b02a-43a8-8842-cb04a67e5428-carrying-feature-ablations-across-sparse-autoencoder-seeds.md)
- [LoopTitan: What Does Parameter Revisit Buy a Mixture-of-Experts?](https://refivu.com/en/papers/c8c91c7a-6c2c-48a1-95ea-522ec1449590-looptitan-what-does-parameter-revisit-buy-a-mixture.md)
- [Why Self-Distillation Helps and Hurts: Denoising vs. Signal Forgetting](https://refivu.com/en/papers/c70638c0-8d0a-4b89-9840-3a8ed7406fca-why-self-distillation-helps-and-hurts-denoising-vs.md)
- [Don’t Drop Dropout: Optimizing Layer Sparsity for Efficient LLM Training and Inference](https://refivu.com/en/papers/c6799446-0a64-4c27-835e-5fb01a7e9ecb-don-t-drop-dropout-optimizing-layer-sparsity-for.md)
- [EntroKV: Entropy-Guided Dynamic Budget Allocation for KV-Cache Compression](https://refivu.com/en/papers/057d5e1a-3097-4692-bf08-f2e331814f7d-entrokv-entropy-guided-dynamic-budget-allocation-for-kv.md)
- [CoT-Proxy: Cross-Format Transfer for Distilling Long-Horizon Policies](https://refivu.com/en/papers/133530c1-3978-43b6-aece-30ba42baee72-cot-proxy-cross-format-transfer-for-distilling-long.md)
- [RanDumb: Random Representations Outperform Online Continually Learned Representations](https://refivu.com/en/papers/672057c3-abb3-4a2d-8ced-952028221f06-randumb-random-representations-outperform-online-continually.md)
- [Trading Place for Space: Increasing Location Resolution Reduces Contextual Capacity in Hippocampal Codes](https://refivu.com/en/papers/80772727-e0f9-4d7e-977a-a0e28b23c297-trading-place-for-space-increasing-location-resolution.md)
- [Toward Agentic Robotics: A Large-Scale Study of Harness Design for Robot-Use Agents](https://refivu.com/en/papers/14d1c215-9799-4493-b5f1-c86c787dcba4-toward-agentic-robotics-a-large-scale-study-of.md)
- [Can image generation help visual reasoning? An empirical study](https://refivu.com/en/papers/3fdbee33-91b0-45d0-9ba4-e7c1b1001457-can-image-generation-help-visual-reasoning-an-empirical.md)
- [When to Trust a PFN: Detecting Harmful Shift in Tabular Foundation Models](https://refivu.com/en/papers/f72c16f8-edc3-4f30-bb5a-814b2eb7dc46-when-to-trust-a-pfn-detecting-harmful-shift.md)
- [ProbFaS: Probabilistic Video Frame Selection for MLLMs via Multi-Fidelity Calibration](https://refivu.com/en/papers/cd8916d4-ab12-4d1f-bdcd-b3f69c397c18-probfas-probabilistic-video-frame-selection-for-mllms-via.md)

## Terms in this paper

- [Transformer](https://refivu.com/en/terms/48e8be2570bc-transformer)
- [Adam optimizer](https://refivu.com/en/terms/aff9e901333e-adam-optimizer)
- [C4](https://refivu.com/en/terms/87725552ed79-c4)
- [training loss](https://refivu.com/en/terms/684fcdc4da77-training-loss)
- [CompleteP](https://refivu.com/en/terms/36bc6748afbd-completep)
- [FineWeb](https://refivu.com/en/terms/0127c93cbae4-fineweb)
- [load balancing loss](https://refivu.com/en/terms/657d634e1406-load-balancing-loss)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/ee2184f3-1fbf-4a0b-980c-c177037bb72b-hyperparameter-transfer-with-mixture-of-experts-layers)
