Blogs / What an Expert Is in a Mixture-of-Experts Model

What an Expert Is in a Mixture-of-Experts Model

What a Hugging Face post says a Mixture of Experts model replaces, what an expert is not and what the router does for each token.

  • Learning
  • 1 min read

For: Learners who know what a Transformer is.

What scaling dense models drove

Over the past few years, scaling dense language models has driven most progress in LLMs.[1]

What MoE replaces

A Mixture of Experts model keeps the Transformer backbone, but replaces certain dense feed-forward layers with a set of experts.[1]

Dense feed-forwardlayersreplaced in certain placesA set of expertsnot topic-specializedmodules like a math or codeexpertA routerselects a small subset ofexperts for each tokenreplaced bychosen by
What does an MoE model replace?

What an expert is not, and what the router does

An “expert” is not a topic-specialized module (e.g., "math expert", "code expert").[1]

For each token, a router selects a small subset of experts to process it.[1]

Sources

  1. Mixture of Experts (MoEs) in Transformers (huggingface.co · checked )

Related concepts

More articles