MoE Deployment Limits: How Hardware Topology Shapes Scalability
Deploying mixture-of-experts models requires more than enough memory for their parameters. This article explains how expert routing, communication topology, cross-domain traffic, and load imbalance affect practical scalability. It also outlines how to evaluate training and inference separately and build a capacity plan around memory, effective bandwidth, latency, model quality, and service targets.
1. Model Architecture Is About More Than Parameter Count
Discussions of large language models often focus on parameter counts, computation per inference step, and benchmark performance. In deployment, however, a model is not an isolated mathematical object. It must be mapped onto compute devices, device memory, and a network topology. Its performance depends on all of these resources.
Mixture-of-experts (MoE) models illustrate this relationship particularly well. An MoE architecture replaces some feed-forward networks with multiple expert modules. A router selects a small number of experts for each token, allowing the model to have a large total parameter count without activating every parameter for every token.
But activating fewer parameters does not necessarily make execution faster. When experts reside on different devices, token representations must travel to the selected experts, and the results must return to their original locations. Reduced computation can therefore come with substantial data movement, synchronization, and scheduling costs.
Assessing an MoE deployment requires answering three questions together:
- Can the expert parameters fit in the available device memory?
- Can the selected experts complete their computation quickly enough?
- Can token-to-expert data exchange finish within the latency budget?
Meeting just one of these conditions does not guarantee usable throughput or consistent response times.
2. How MoE Turns Computation into Communication
A typical MoE layer executes in four stages.
Routing. The router uses each token’s hidden representation to select one or a few experts and produce the corresponding combination weights.
Dispatch. The system organizes token representations into batches for the selected experts. If an expert is on another device, these representations must be transferred over the inter-device network.
Expert computation. Each expert performs feed-forward computation on its inputs. Experts may receive different numbers of tokens, so their execution times can vary.
Return and combine. Expert outputs return to the original token locations and are combined using the routing weights to produce the layer’s final output.
When experts span multiple devices, dispatch and return commonly involve many-to-many data exchange. This makes execution highly sensitive to network topology. The locations of a token’s selected experts determine which links its data traverses, how much shared bandwidth it consumes, and how long it may have to wait.
It is important to distinguish total parameters from active parameters. Total parameters primarily determine storage requirements and expert placement. Active parameters primarily determine computation per token. Network traffic also depends on token count, hidden dimension, the number of experts selected per token, and routing locality.
“Many total parameters, few active parameters” is therefore not enough to establish that a deployment will be efficient.
3. Interpreting an “Eightfold” Bandwidth Difference
An eightfold difference between intra-rack and inter-rack communication should be interpreted as a result associated with a particular hardware configuration and measurement method. It is not a universal property of clusters, nor does it imply an eightfold difference in overall model performance.
First, the comparison must be clearly defined. Is it comparing a single link’s nominal speed, the bandwidth actually available to a device, or effective throughput during simultaneous exchanges among many devices? These metrics are not interchangeable. Even fast links can deliver much lower application-level bandwidth when shared uplinks, network oversubscription, or concurrent traffic create contention.
Second, bandwidth and latency must be evaluated separately. Large transfers are more likely to be bandwidth-bound. Small messages can be dominated by communication startup overhead, synchronization, and congestion. Small-batch inference decoding and large-batch token exchange during training may therefore expose different bottlenecks.
Third, a physical rack is not necessarily the boundary of a high-performance interconnect. Some high-speed communication domains are smaller than a rack; others extend beyond it. The relevant deployment question is which devices can communicate with consistently high bandwidth and low latency—not simply whether they occupy the same rack.
A rack is a useful conceptual unit, but capacity planning should follow actual communication domains and measured performance.
4. Why the Cross-Rack Traffic Fraction Matters
Suppose experts are distributed evenly across two racks, token origins are also evenly distributed, and routing decisions are independent of physical location. Under these assumptions, approximately half of expert dispatches will cross the rack boundary.
That estimate depends on the assumptions. Routing locality, uneven expert placement, or disproportionately popular experts can change the actual cross-rack traffic fraction. When each token selects multiple experts, two different metrics must also be distinguished:
- The fraction of tokens that access at least one remote expert.
- The fraction of all expert dispatches that cross the rack boundary.
These are not the same quantity.
A simplified model for dispatch payload is:
V_dispatch ≈ N × k × d × s
Here:
Nis the number of tokens processed by the current MoE layer.kis the number of experts selected per token.dis the hidden dimension.sis the number of bytes per element.
This expression estimates the dispatch payload only. It excludes routing metadata, padding, protocol overhead, and other additional costs. In common architectures with matching input and output dimensions, the return stage generates a payload of similar size.
If the fraction of dispatches crossing a communication-domain boundary is p, the cross-domain dispatch payload is approximately:
V_cross ≈ p × V_dispatch
Dividing this payload by the effective bandwidth of the relevant bottleneck link gives a rough lower bound on data-transfer time. Actual communication also includes startup, queueing, synchronization, and contention, so this estimate is not an end-to-end latency prediction.
The key is to analyze cross-domain traffic fraction, message size, and effective bandwidth together. When a slower path carries substantial traffic, otherwise capable compute devices may spend much of their time waiting for data.
5. Rack Capacity Is Not a Theoretical Parameter Limit
The idea that “one rack limits the size of an expert layer” captures an engineering concern, but it should not be treated as an absolute theoretical limit.
With sufficient storage and communication resources, an expert layer can span multiple racks. The practical constraint is how large an expert layer can run efficiently within specified throughput, latency, and cost targets.
For example, an expert layer’s parameters may fit into the device memory of several racks, while every layer requires frequent cross-rack exchanges. As the number of layers grows, communication waits can accumulate across model execution until the system no longer meets online response requirements. The problem is not that the model cannot fit, but that it fits without running economically.
Conversely, larger batches, higher communication bandwidth, or a placement strategy that reduces cross-domain traffic may make broader expert parallelism effective.
The deployment boundary is therefore a joint constraint: how large an expert layer can the system support while meeting memory, effective bandwidth, compute, model-quality, and service requirements?
6. Optimize Expert Placement by Measuring Traffic First
A straightforward optimization is to place frequently accessed experts close to the devices processing the corresponding tokens. But expert placement should be based on measured routing behavior rather than static intuition.
Useful measurements include:
- Token counts per expert and their variation over time.
- Expert dispatch traffic between devices.
- Cross-domain traffic as a fraction of total communication.
- Expert execution and waiting times.
- Routing distributions for different request types.
These measurements help distinguish network egress congestion from overloaded popular experts or uneven expert utilization.
They can also guide the placement of frequently accessed, co-accessed experts within nearby communication domains, or changes to the expert-to-device mapping. However, a static layout will rarely suit every input distribution. Changes in production traffic or the mix of request types can erode its advantages.
Replicating hot experts is another option to evaluate, but replication is not free capacity. It increases parameter storage requirements. During training, replicas require consistency management; during inference, the system needs a clear policy for assigning requests to replicas. Replication is worthwhile only when its benefits justify the additional resources and operational complexity.
7. Load Balancing Requires More Than Average Token Counts
Even without an obvious network bottleneck, uneven expert loads can slow an entire MoE layer. If one expert receives too many tokens, the system may wait for it after every other expert has finished.
Average load is therefore insufficient. Evaluation should also consider maximum load, the load distribution, persistent hot spots, and tail waiting times.
During training, appropriate load-balancing mechanisms can reduce the risk of routing concentrating on a small set of experts. The execution system must also manage expert capacity so that unusual loads do not cause memory exhaustion or uncontrolled queues.
However, routing cannot be changed arbitrarily just to improve balance. Expert selection is part of the model’s computation. Sending tokens to experts that the router did not select can change output quality. Capacity limits, dropped dispatches, and alternative execution paths must be validated against the model design; they are not universal optimizations without quality trade-offs.
The goal is to reduce unnecessary waiting and extreme loads while preserving model quality—not to give every expert exactly the same workload at every moment.
8. Training and Inference Need Different Performance Criteria
Training typically processes large token batches and exchanges substantial amounts of data, making bandwidth bottlenecks easier to expose. It also requires resources for backward propagation, gradient synchronization, and optimizer states. An analysis limited to forward dispatch is therefore incomplete.
Online inference requires a further distinction between prefill and decoding.
During prefill, the model processes many input tokens at once, which can produce larger expert batches. During decoding, each step introduces relatively few new tokens. Expert computation may become fragmented, and communication startup overhead and synchronization can become more prominent.
This explains why a placement strategy that performs well during training may be less effective for online inference. Evaluating only large-batch throughput can hide the metrics that matter to users: time to first token, intervals between generated tokens, and high-percentile latency.
Deployment testing should cover different input lengths, output lengths, concurrency levels, and request mixes. It should show how throughput and latency change together rather than report only a peak throughput figure.
9. Communication–Compute Overlap Depends on Real Data Dependencies
Chunking can interleave dispatch, expert computation, and output return, hiding some communication time under suitable conditions.
Overlap does not make communication free. It requires enough computation to cover transfers, an appropriate chunk size, and limited contention between communication and compute resources.
Chunks that are too small can increase startup overhead. Chunks that are too large can delay the start of computation. If all operations compete for the same bottleneck network egress, tighter scheduling cannot overcome the bandwidth limit.
Similarly, reducing the precision of transmitted data can lower communication volume, but numerical error, conversion overhead, and model quality must be validated. Fewer bytes do not automatically translate into better end-to-end performance.
These optimizations should be tested individually through controlled comparisons. Introducing several at once makes it difficult to identify which changes produce the benefits.
10. Build an Actionable Capacity-Planning Process
A reliable MoE capacity plan can follow six steps.
Step 1: Define service targets
Establish throughput, response-time, concurrency, and quality requirements before trying to maximize parameter count.
Step 2: Calculate storage requirements
Include expert weights, shared parameters, runtime buffers, and inference caches. For training, also include gradients and optimizer states.
Step 3: Model communication
Estimate dispatch and return payloads for each layer, measure actual routing distributions, and determine the fraction of traffic crossing communication-domain boundaries.
Step 4: Measure the real topology
Use message sizes and concurrency patterns representative of the target workload. Measure effective bandwidth, latency, and contention on shared links rather than relying on nominal hardware specifications.
Step 5: Validate end to end
Break execution time down into computation, communication, and waiting. Check for hot experts, network congestion, and peak memory usage.
Step 6: Reserve capacity headroom
Account for traffic fluctuations, device failures, and redistribution after deployment instances are adjusted. A system should not meet its targets only under ideal conditions.
Conclusion: Model Architecture and Hardware Topology Must Be Designed Together
MoE expands model capacity through sparse activation, but it also makes expert placement, routing distributions, and network capability central to performance.
Differences between intra-rack and inter-rack communication can explain why the benefits of adding experts decline rapidly in some deployments. They should not, however, be reduced to a universal bandwidth multiplier or an absolute model-size limit.
A practical approach is to identify high-speed communication domains, measure real routing traffic, and choose expert placement according to memory, bandwidth, latency, and quality requirements. Only by evaluating model architecture and hardware constraints together can larger parameter capacity become a stable, manageable, and cost-effective service.
