HomeMachine Learning & Neural NetworksMixture of Experts: Sparse Gated Routing

Mixture of Experts: Sparse Gated Routing

Interactive 3D mixture-of-experts router: tokens fly from a gating network to their top-k experts, with noisy top-k scoring and an auxiliary-loss-free load-balancing bias you can toggle live, plus live expert-utilization readouts.

Machine Learning & Neural Networks3DAdvanced60 FPS📱 Mobile-adapted⇄ 2D version
ds-topic-22 ↗ Open standalone

Every glowing particle in this scene is a token leaving a gating network at the center and heading toward the small set of "expert" sub-networks it was routed to — exactly the sparse-activation mechanism (noisy top-k gating) that lets modern large language models pack far more parameters into a model than they ever touch per token. Tune top-k and the gating noise to see routing sharpen or blur, and flip on the auxiliary-loss-free load-balancing bias — the same trick used in DeepSeek-V3 — to watch a handful of overloaded experts get throttled back until utilization evens out across all six.

⚙ Under the hood

Watch tokens leave a gating network and fly to the top-k expert sub-networks a noisy top-k router selects for them, then toggle an auxiliary-loss-free load-balancing bias to flatten expert utilization live.

mixture-of-expertsneural-networksdeep-learninggating-networkload-balancingtransformers

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)