Top-K Routing
What is Top-K Routing?
In one sentence: Top-K routing sends each token to the K experts with the highest router scores.
K is usually small, like 1, 2 or 8. A bigger K means more experts help each token, which can improve quality but costs more compute.
What does Top-K Routing look like?
With top-2 routing, each token is processed by its two best-matched experts.
Why does Top-K Routing matter?
K controls the balance between quality and speed in MoE models.
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/top-k-routing/">Top-K Routing, explained simply</a> (The AI Math Dictionary)