# Router

- **Canonical URL:** https://getaimath.com/dictionary/router/
- **Topics:** [Mixture of Experts (MoE)](https://getaimath.com/dictionary/category/mixture-of-experts-moe/)
- **Also called:** Gating Network
- **Last updated:** 2026-11-25

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

![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 Router?

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.

## Related Concepts

- [Expert](https://getaimath.com/dictionary/expert/): In a Mixture of Experts model, an expert is one of several smaller feed-forward networks that can process a token.
- [Routing](https://getaimath.com/dictionary/routing/): Routing is the process of sending each token to the right experts in a Mixture of Experts model.
- [Mixture of Experts (MoE)](https://getaimath.com/dictionary/mixture-of-experts-moe/): Mixture of Experts is a model design with many smaller "expert" networks, where a router picks only a few experts to handle each token.
- [Sparse Activation](https://getaimath.com/dictionary/sparse-activation/): Sparse activation means only a small part of a model is switched on for each input.
- [Active Parameters](https://getaimath.com/dictionary/active-parameters/): Active parameters are the parameters a model actually uses to process each token.
- [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.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/router/)
