# Top-K Routing

- **Canonical URL:** https://getaimath.com/dictionary/top-k-routing/
- **Topics:** [Mixture of Experts (MoE)](https://getaimath.com/dictionary/category/mixture-of-experts-moe/)
- **Last updated:** 2026-11-25

## 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.

![Mixture of Experts (MoE): A Team of Specialists (Only 2 Wake Up) — Simple cartoon showing a question arriving at a Front Desk Receptionist (Router) who wakes up only 2 out of 8 specialist doctors (Math and Finance) while the other 6 specialists stay asleep to save energy.](https://getaimath.com/diagrams/mixture-of-experts-moe.png)
*Napkin Diagram (Mixture of Experts (MoE)): Mixture-of-Experts wakes up only 2 of its 8 specialists for each word (real experts’ specialties are messier than neat topics).*

## What is an example of Top-K Routing?

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.

## Related Concepts

- [Expert Selection](https://getaimath.com/dictionary/expert-selection/): Expert selection is choosing which specific experts will process a token.
- [Load Balancing](https://getaimath.com/dictionary/load-balancing/): Load balancing in MoE makes sure work is spread fairly evenly across experts, so none are overloaded or wasted.
- [Total Parameters](https://getaimath.com/dictionary/total-parameters/): Total parameters are every parameter a model has, whether or not they are used for each token.
- [Expert Capacity](https://getaimath.com/dictionary/expert-capacity/): Expert capacity is the maximum number of tokens one expert can handle in a batch.
- [Active Parameters](https://getaimath.com/dictionary/active-parameters/): Active parameters are the parameters a model actually uses to process each token.
- [Routing Collapse](https://getaimath.com/dictionary/routing-collapse/): Routing collapse is when an MoE router ends up sending almost all tokens to just a few experts, wasting the rest.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/top-k-routing/)
