A bank of parallel feed-forward networks; each token runs through only the few the router selected.
Introduced inJan 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layer
Each expert is an independent gated MLP. Because only the top-k experts execute per token, total parameter count and per-token compute decouple: a model can store hundreds of experts' worth of knowledge while running just a handful. Different experts end up specializing. By language, domain, or syntax. Although the specialization is learned, not assigned.
Share of new models that have included MoE experts over time.
Open any of these on hfviewer to find this block in the interactive architecture graph.
Browse all 482 models with this in the catalog →
hfviewer renders the full architecture of 3,500+ Hugging Face models as interactive graphs. Hover any block to see what it does, with this model’s real numbers.
Browse all model graphs →