Learn AI Math

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?

Like this explanation? Get one every week.

The AI Math newsletter turns confusing AI news into plain English. No hype, no jargon walls.