Shared experts: a path every token takes
Every token chooses its specialists. What about the work that almost every token needs?
Our mixture of experts lets tokens take different paths. Each selected network has its own weights to learn from.
But some useful features may be needed across many of those paths. Must every expert learn its own copy?
Give them a common branch
Keep the routed experts. Beside them, add another feed-forward network that every token runs through.
Its output joins the weighted outputs from the selected experts. This is a shared expert.
The router chooses the left-hand path. The right-hand path runs regardless of that choice.
Different tokens, different routes
As tokens arrive, different experts light up. The shared branch runs for every one.
A token can use different routed experts while retaining the common branch.
The shared expert does not compete for a place in the selected set. Changing how many routed experts run leaves the shared branch in place.
Learning what belongs in each branch
Both branches are trained together. The shared network gives the model somewhere to put work useful across many tokens; the routed networks have room to develop different features.
Their outputs meet before the update returns to the residual stream.
There is still a practical problem: what if the router keeps choosing the same few experts? That can leave some devices busy and others waiting.
Next, give the router a way to balance the work.
Sources
Sources: DeepSeekMoE, DeepSeek-V3 report, Qwen3-Next implementation.