Expert routing in Qwen3-Coder-Next is close to uniform
Dibyaprakash Pradhan · Experimental result, published here
Abstract
Mixture-of-Experts checkpoints are widely assumed to collapse onto a small set of favoured experts, which would make pruning a matter of removing dead weight. Profiling every MoE layer of Qwen3-Coder-Next does not support that assumption: routing is only mildly concentrated, cold experts are rare, and their distribution across layers is uneven. This changes what pruning buys and how it should be measured.
- 2026-04-21
- Experimental result, published here
- Mixture of Experts · expert routing · routing collapse · Qwen3-Coder-Next · model compression · checkpoint pruning · expert coverage
Setup
All 48 MoE layers of Qwen3-Coder-Next (FP8) were profiled in router-only mode: the router weight tensors are loaded from the safetensors checkpoint and probed with random unit-norm hidden states, without materialising the experts themselves. 1,024 samples produced 491,520 router selections across 512 experts per layer.
| Model | Layers | Experts | Top-k | Samples | Coverage | Elapsed |
|---|---|---|---|---|---|---|
| Qwen3-Coder-Next FP8 | 48 | 512 → 128 | 10 → 4 | 1,024 | 99.34% | 4.98 s |
| OLMoE-1B-7B | 16 | 64 → 32 | 8 → 4 | 512 | 100% | 0.38 s |
Configuration and cost of both profiling runs. Both executed on CPU.
Result: routing is only mildly concentrated
The routing distribution has a Gini coefficient of 0.1006, where 0 is perfectly uniform. The busiest expert in the model was selected 1,453 times; the quietest 488. A factor of three between extremes across 512 experts is not the winner-take-all behaviour the collapse narrative predicts.

| Bucket | Observed | Uniform | Ratio |
|---|---|---|---|
| Top 1% | 1.42% | 1% | 1.42× |
| Top 5% | 7.02% | 5% | 1.40× |
| Top 10% | 13.22% | 10% | 1.32× |
| Top 20% | 25.04% | 20% | 1.25× |
| Top 50% | 57.12% | 50% | 1.14× |
Routing mass by expert percentile, against what uniform routing would give. The largest deviation anywhere is 1.42×.
Cold experts are rare but unevenly distributed
Mean cold experts per layer: 3.396 of 512, roughly 0.66%. But 45 of 48 layers contained at least one cold expert, and a single layer contained 27. The scarcity is real; its distribution is not uniform across depth.
This asymmetry is the argument for per-layer keep-lists over one global ranking. A model-wide opinion about which experts matter will be wrong for the layers that disagree with it, and here most layers disagree slightly.

Interpretation
Because routing is close to uniform, pruning is not the removal of dead capacity — it is a priced trade. Cutting 512 experts to 128 retained 99.34% of observed routing mass, which means 0.66% of it is now unserved and those tokens route elsewhere. Coverage is the number that makes the trade legible, and it should be reported alongside any compression ratio.
Reproduction
pip install torch safetensors rich
python3 moe_monitor.py router-only \
--model-dir Qwen/Qwen3-Coder-Next-FP8 \
--output ./stats/report-512.json \
--keep-experts 128 \
--new-topk 4 \
--samples 1024 \
--strategy per-layerThe report JSON backing every number above is committed in the repository under stats/, alongside the plan file and the generated figures.
References
- Pradhan, D. MoE-Watcher-Modifier: model-agnostic Mixture-of-Experts analysis and pruning toolkit.
- Shazeer, N. et al. Outrageously large neural networks: the sparsely-gated mixture-of-experts layer. ICLR 2017.
- Fedus, W., Zoph, B., Shazeer, N. Switch Transformers: scaling to trillion parameter models with simple and efficient sparsity.
- Muennighoff, N. et al. OLMoE: Open Mixture-of-Experts language models.
Cite this
@misc{pradhan2026routing,
title = {Expert routing in Qwen3-Coder-Next is close to uniform},
author = {Pradhan, Dibyaprakash},
year = {2026},
note = {Measured with MoE-Watcher-Modifier},
url = {https://diby.app/research/expert-routing-qwen3}
}