Router
Also called: Gating Network
What is Router?
In one sentence: A router is the small network in a Mixture of Experts layer that decides which experts each token should go to.
It looks at each token and gives every expert a score. The token is sent to the top-scoring experts, and their outputs are blended using those scores. It is also called a gating network.
What does Router look like?
For the token "photosynthesis," the router might send it to experts that are good at science words.
Why does Router matter?
The router's choices decide how well an MoE model uses its experts.
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/router/">Router, explained simply</a> (The AI Math Dictionary)