Why does DeepSeek-V3 cap each token's experts to a small set of nodes?
Node-limited routing forces a token's selected experts to live on at most M nodes, so most all to all stays on fast intra-node links and cross-node fabric traffic is bounded by construction.
Imagine a giant office building. Within one floor, people can hand notes to each other instantly. Between floors, notes have to go through a slower elevator. If you write a memo that needs eight signatures from random offices, the elevator becomes a traffic jam. The trick is to require that your memo's signatures all live on at most two floors. The first floor can pass notes quickly among themselves, the second floor can do the same, and only a small bounded amount of paperwork rides the slow elevator. That is what node-limited routing does for a Mixture of Experts model spread across a cluster.
Detailed answer & concept explanation~6 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
7 minutes: ground the asymmetry between NVLink and InfiniBand, explain expert-parallel all to all, describe the gate-level constraint and how M bounds cross-node volume, and contrast with placement and scheduler tricks.
Real products, models, and research that use this idea.
- DeepSeek-V3 uses M=4 node-limited routing across 256 experts to keep training communication-bound on intra-node links
- Google's GShard introduced expert-parallel all to all but did not have node-limit awareness, motivating later designs
- DBRX from Databricks uses fewer larger experts to sidestep the all to all cost at training scale
- Megablocks and DeepSpeed-MoE in Megatron now expose node-limited routing as a configurable option for large-cluster MoE pretraining
What an interviewer would ask next. Try answering before peeking at the approach.
QHow does node-limited routing interact with the auxiliary load-balancing loss?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Reading node-limited routing as a memory or specialization mechanism, when it is purely a communication-bandwidth constraint baked into the routing rule.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.