How Rack Size Determines the Scalability Ceiling of MoE Models
Why do leading large models look the way they do? This article explains how the physical boundaries of GPU racks—specifically the bandwidth gap between intra-rack and inter-rack communication—set the ceiling on the scale of Mixture of Experts (MoE) architectures, and outlines practical engineering strategies for mitigating this constraint.
How Rack Size Determines the Scalability Ceiling of MoE Models
Why Top LLMs Are Shaped the Way They Are
Understanding the architectural choices behind modern large models requires looking beyond the math in research papers and examining the physical environments they actually run in. LLM inference is not performed on a single device; it is distributed across clusters of hundreds or thousands of GPUs. How large a model can be designed, and how many experts it can have, is often determined not by researchers’ preferences, but by what communication patterns the underlying hardware network can support.
The dominant deployment paradigm in the industry organizes compute around the rack as the basic unit. Inside a high-density GPU rack, dozens of accelerator cards are directly connected via dedicated high-speed interconnects, offering extremely low latency and very high bandwidth between any two cards. Within a rack, data flows almost as freely as it would on a single machine.
Once communication crosses a rack boundary, however, the picture changes completely. Inter-rack traffic must pass through upper-layer network switches, where bandwidth typically drops by several times—sometimes nearly an order of magnitude—and latency rises significantly. This cliff-like gap between intra-rack and inter-rack bandwidth is the key to understanding the scalability limits of MoE models.
MoE and Expert Parallelism: A Naturally Distributed Architecture
The core idea of Mixture of Experts (MoE) is simple: instead of running every parameter on every computation, the model maintains a large pool of “expert” sub-networks, and a gating (routing) module selects a small subset of them for each inference step. In publicly known models, the total number of experts can reach the hundreds, while each token activates only a few dozen per forward pass.
This sparse activation mechanism brings an obvious benefit: the model’s total parameter count can be very large, but the per-inference compute cost only scales with the small subset of activated experts. The cost is shifted to the deployment side—with so many experts, how do you fit them onto GPUs?
The most natural solution is expert parallelism: distributing different experts across different GPUs, with each card holding a subset of expert weights and their computations. When a batch of tokens passes through the gating router, each token must be sent to the GPU hosting its target expert, computed there, and then sent back.
This means that under expert parallelism, any GPU may need to send data to any other GPU in the cluster. This is a classic all-to-all communication pattern—not local, neighbor-to-neighbor traffic, but global, mesh-like data exchange.
Why All-to-All Communication Fits Rack Interconnects Perfectly
All-to-all communication places extremely demanding requirements on network topology. It is not satisfied by “some nodes being fast”—it requires “every pair of nodes to be fast.”
Conveniently, the high-speed interconnect topology inside a high-density GPU rack is tailor-made for this pattern: communication between any two cards in the rack traverses very few switching hops, with short paths, ample bandwidth, and controlled latency. When all experts are placed within the same rack, tokens are routed between experts with almost no awareness of the network, and all-to-all communication runs at full speed.
A simplified illustrative analysis:
Suppose each inference batch produces N tokens routed to K activated experts:- Intra-rack deployment: per-token transfer bandwidth = high-speed interconnect bandwidth (high)- Cross-rack deployment: roughly half the tokens traverse cross-rack links, where bandwidth drops sharplyEffective throughput ≈ min(intra-rack path, cross-rack path)= cross-rack bandwidth ← the bottleneck is here
The problem is that token routing is decided dynamically by the gating network, so there is no guarantee that all target experts land in the local rack. Once experts are spread across two racks, a substantial fraction of tokens will statistically cross the rack boundary. That traffic rides the slow network, and the completion time of the entire inference step is determined by the slowest portion of communication—a textbook case of the weakest-link effect. Cross-rack links thus become the performance bottleneck of the entire inference pipeline.
The Rack Boundary as the Ceiling for Expert Layer Size
From this, a direct conclusion follows: the number of GPUs a single rack can hold essentially determines how large a single expert layer can be.
If the total number of experts exceeds what one rack can accommodate, there are only two options:
- Accept the performance penalty of cross-rack communication: let part of the routed traffic use the slow network, dragging down overall inference throughput. For latency-sensitive online inference services, this is usually unacceptable.
- Stack more experts on each card: constrained by single-GPU memory capacity and compute, this path hits a wall quickly.
This also explains why the key hyperparameters of some frontier models—expert counts, activated expert counts, and so on—show a subtle correspondence with the GPU counts of mainstream racks. Architects designing these models have been deliberately, or perhaps instinctively, aligning with the physical boundaries of the hardware. Model architecture and hardware topology have entered a relationship of co-evolution.
Engineering Mitigations
Of course, the engineering community has not stood still. Several mitigation strategies have emerged around this bottleneck:
- Routing bias and expert affinity: introduce load balancing and locality constraints into gating so tokens prefer experts within the local rack, minimizing cross-rack traffic. This requires a careful trade-off between model quality and communication efficiency.
- Communication-compute overlap: use pipeline scheduling so that expert computation for one batch overlaps with the all-to-all communication of the next, hiding part of the communication latency.
- Hierarchical aggregation: first aggregate within the rack all data destined for the same target rack, then transmit once, amortizing the fixed overhead of cross-rack links.
- Hybrid parallelism strategies: combine expert parallelism with data parallelism and tensor parallelism, keeping the parts most sensitive to all-to-all communication within the rack and placing topology-insensitive parts across racks.
- Higher-density rack solutions: from the hardware side, expand the “intra-rack” boundary by bringing more GPUs into the same high-speed interconnect domain, directly raising the ceiling.
Implications for Developers and Architecture Decisions
For teams deploying sparse large models in production, this physical constraint yields several practical takeaways:
- Ask about topology before compute when planning clusters. GPU count is not the only metric; the size of the high-speed interconnect domain often matters more for real MoE inference efficiency.
- Co-design model hyperparameters with deployment topology. Expert count, activated experts, and parallelism splits should be optimized as a single problem—not treated as a deployment afterthought once training is done.
- Load testing must cover realistic routing distributions. The cost of all-to-all communication depends heavily on actual token routing patterns; benchmarking with idealized uniform traffic will seriously overestimate performance.
- Make use of general-purpose cloud platform capabilities. When deploying in the cloud, you can use container platforms for elastic scaling, pair monitoring and alerting to observe the correlation between cross-node traffic share and inference latency, and use log services to accumulate routing distribution data for later parallelism tuning. For example, on platforms such as Baidu AI Cloud, developers can build inference clusters based on general-purpose container, networking, and monitoring product categories, treating rack topology as a core constraint in capacity planning.
Conclusion
On the surface, the competition among large models is about parameter counts and benchmark scores; underneath, it is about network topology and physical constraints. The size of the high-speed interconnect domain within a rack defines the boundary within which expert parallelism can run comfortably, and indirectly shapes the form of today’s MoE models. Understanding “why models look the way they do” is, at its core, understanding the mutual compromises among compute, networking, and algorithms. For developers, treating hardware constraints as a first-class citizen of architecture design—rather than a remedial exam taken after the fact—is the right way to build efficient inference systems.
