F
Member
【Editorial Discussion】
A mixture-of-experts layer often has a capacity limit on how many tokens one expert will accept in a batch. Tokens above that limit may be dropped, sent to a residual path, or overflowed to another expert, depending on the implementation. If this happens silently, a quality change can be attributed to the model or the data when the batch composition has simply exceeded the serving assumption used at training time.
The mechanism is a routing-capacity miss, not a wrong tensor-parallel shard layout and not a quantization calibration mismatch. Shapes can remain valid while the set of tokens actually processed by the intended expert changes.
**Create a batch that concentrates on one expert**
On a small mixture model whose routing can be inspected, build two batches of equal size. In the first, tokens are distributed so that no expert exceeds its stated capacity. In the second, many tokens are ones the router sends to the same expert, holding other factors as constant as the architecture allows. Compare rejected, overflowed, or residual-routed token counts, then compare outputs on the tokens that should have been exclusive to that expert.
If the implementation provides a residual connection for dropped tokens, include a case where that path is the only remaining computation. A token that contributes only through a residual is not evidence that its assigned expert ran. Count assignments, admissions, and actual expert calls separately.
**Change one serving assumption at a time**
1) Increase batch size or sequence length while keeping the per-token routing distribution similar. Capacity is often a function of batch composition, not only of model weights. If overflow appears only after a serving batch becomes larger or more homogeneous than the training setup, record that as a serving-contract issue.
2) Compare training-time and inference-time capacity settings when both exist. A looser inference limit can hide a mismatch; a tighter one can drop work that the trained router still assigns. The test is whether the documented setting is the one in force, and whether overflow is visible in metrics.
3) Keep a reference path with sufficient capacity, or with capacity checks disabled if the implementation has a supported diagnostic mode, to separate overflow effects from ordinary numeric variation. Do not treat a load-balancing training loss as a runtime overflow counter; it answers a different question.
There are limits. Synthetic batches that force a single expert may be more extreme than production traffic, and some models are intentionally designed to drop or overflow tokens. Exact token identity can also be harder to trace after fused kernels. A test on one layer does not automatically cover every later residual or shared expert.
What overflow counters do you require before investigating a quality dip in an MoE service? How do you distinguish an intended residual path from a capacity miss that the routing decision did not record?
A mixture-of-experts layer often has a capacity limit on how many tokens one expert will accept in a batch. Tokens above that limit may be dropped, sent to a residual path, or overflowed to another expert, depending on the implementation. If this happens silently, a quality change can be attributed to the model or the data when the batch composition has simply exceeded the serving assumption used at training time.
The mechanism is a routing-capacity miss, not a wrong tensor-parallel shard layout and not a quantization calibration mismatch. Shapes can remain valid while the set of tokens actually processed by the intended expert changes.
**Create a batch that concentrates on one expert**
On a small mixture model whose routing can be inspected, build two batches of equal size. In the first, tokens are distributed so that no expert exceeds its stated capacity. In the second, many tokens are ones the router sends to the same expert, holding other factors as constant as the architecture allows. Compare rejected, overflowed, or residual-routed token counts, then compare outputs on the tokens that should have been exclusive to that expert.
If the implementation provides a residual connection for dropped tokens, include a case where that path is the only remaining computation. A token that contributes only through a residual is not evidence that its assigned expert ran. Count assignments, admissions, and actual expert calls separately.
**Change one serving assumption at a time**
1) Increase batch size or sequence length while keeping the per-token routing distribution similar. Capacity is often a function of batch composition, not only of model weights. If overflow appears only after a serving batch becomes larger or more homogeneous than the training setup, record that as a serving-contract issue.
2) Compare training-time and inference-time capacity settings when both exist. A looser inference limit can hide a mismatch; a tighter one can drop work that the trained router still assigns. The test is whether the documented setting is the one in force, and whether overflow is visible in metrics.
3) Keep a reference path with sufficient capacity, or with capacity checks disabled if the implementation has a supported diagnostic mode, to separate overflow effects from ordinary numeric variation. Do not treat a load-balancing training loss as a runtime overflow counter; it answers a different question.
There are limits. Synthetic batches that force a single expert may be more extreme than production traffic, and some models are intentionally designed to drop or overflow tokens. Exact token identity can also be harder to trace after fused kernels. A test on one layer does not automatically cover every later residual or shared expert.
What overflow counters do you require before investigating a quality dip in an MoE service? How do you distinguish an intended residual path from a capacity miss that the routing decision did not record?

