LLM Inference Costs and the Scaling Bottleneck of MoE: Interconnect, Batching, and Sparse Communication

    This article explains why the real shape of modern LLM training and inference is determined by accelerator interconnect topology, batching economics, and the communication patterns of sparse computation—not raw parameter counts. It covers rack-level bandwidth cliffs and why MoE expert layers struggle to cross rack boundaries, how batch size drives per-token cost, why pretraining data budgets often exceed the theoretical scaling-law optimum, and a practical checklist of engineering trade-offs for teams building training and inference platforms.

    Modern large language models do not win on parameter count alone. The true shape of training and inference is largely determined by chip interconnect topology, the economics of batching, and the communication patterns of sparse computation. Making these constraints explicit explains pricing tiers, latency classes, upper limits on the number of experts, and why “a bigger model” does not linearly translate into a better serving experience.

    Start with Intra-Rack Interconnect

    Inference typically runs on accelerator clusters. Within a single rack, a high-bandwidth, low-latency full interconnect suits frequent, fine-grained token exchange. Once traffic crosses the rack boundary, bandwidth commonly drops by an order of magnitude (in practice, several-fold to nearly tenfold). This gap is a physical fact that software optimization cannot easily erase.

    Mixture-of-Experts (MoE) splits a layer into many experts, activating only a small subset per forward pass. The most natural deployment is expert parallelism: different experts reside on different accelerators. After routing, any device may send activation tokens to any other device, so the communication pattern approaches all-to-all. All-to-all fits high-bandwidth intra-rack topologies well; once experts span two racks, roughly half the traffic takes the slow path, and latency—especially tail latency—immediately becomes the bottleneck.

    Therefore, “how many accelerators fit in one rack” and “how much all-to-all bandwidth the rack can sustain” directly limit the width and sparsity of the expert layer. No matter how many experts you add or how sparse the activation is, once communication punches through the rack boundary, throughput gets dragged down by the network. One of the core physical bottlenecks of scaling is the size of the scale-up domain (the high-speed intra-rack domain), not raw accelerator peak FLOPs.

    Sparsity, Activation Counts, and Deployment Limits

    A common industry design uses far more total experts than activated ones: for example, hundreds of total experts with only tens activated per token, which inflates total parameters while keeping per-token compute low. But post-routing communication volume scales with the number of device pairs that may need to talk. All-to-all within a rack is feasible; across racks, you must introduce hierarchical parallelism, expert grouping, or give up some sparsity, or latency becomes uncontrollable.

    This explains why, at equal parameter counts, systems with larger rack-level interconnect domains more easily run highly sparse MoE models at acceptable inference efficiency: all-to-all traffic does not prematurely fall onto the slow network. Conversely, clusters with smaller interconnect domains are often forced to reduce expert counts, increase activation density, or replicate experts into every rack—trading memory for communication. These are engineering trade-offs, not algorithmic preferences.

    Batch Size Determines Unit Cost

    With single-request, small-batch inference, weight loading, kernel launches, and synchronization overhead dominate, and compute utilization is extremely low. Packing many user requests into a large batch amortizes the same weights over many more tokens, reducing per-token cost by orders of magnitude. Public discussions often cite magnitudes like “without batching, per-request costs are hundreds to over a thousand times higher”—the point is the utilization cliff, not any lab’s private numbers.

    This also answers whether you can trade slower modes for lower prices: yes, but the core knobs are batch and queuing. Larger batches and longer queue windows buy throughput and lower unit prices; smaller batches and shorter queues buy latency. “Fast/slow” pricing tiers are fundamentally selling different utilization and queueing strategies, not two different models.

    The serving side must also handle: KV-cache memory driven by context length, speculative decoding and cache hit rates, and uneven load across MoE routes. Oversized batches let long-context requests squeeze out memory; unbalanced expert load leaves some accelerators idle. Batching is not “the bigger the better”—it is about finding a stable operating point among memory, tail latency, and expert load balance.

    Pretraining Data Volume and the “Theoretical Optimum”

    From scaling laws, a given compute budget implies a balanced ratio of data to parameters. In practice, pretraining corpora often far exceed that balance point (with experience suggesting magnitudes on the order of “two orders of magnitude above”). Reasons include: downstream tasks are more sensitive to data diversity, repetition and noise require oversampling compensation, and the inference stage favors broader knowledge coverage over pure loss optimality.

    Training on more data raises training cost but may reduce alignment and post-training difficulty and improve long-tail factual recall. Whether it is “excess” depends on whether the goal is minimum validation loss or product-side robustness. Treating pretraining as pure loss minimization underestimates the role of data mix as a product decision.

    Training and Inference Share the Same Physics

    Training is likewise constrained by all-to-all and pipeline parallelism. Highly sparse MoE still routes activations during training; if experts sit across slow links, both gradient synchronization and activation exchange stretch out the step time. “How big a model you can train” and “at what cost you can serve it” therefore share the same interconnect constraints. A larger rack-level domain benefits both training step time and inference batch efficiency—this is closer to the essence of system advantage than simply adding accelerators.

    On the inference side, if tensor parallelism splits dense layers and expert parallelism splits sparse layers, the split granularity must stay within the high-speed domain. Across domains, only pipeline or data parallelism works. What looks like an algorithmic choice on the architecture diagram is a topology choice at deployment time.

    An Actionable Engineering Trade-Off Checklist

    • Map the interconnect first: clarify intra-rack bandwidth, cross-rack bandwidth, and the available collective communication primitives before deciding expert counts and parallel splits.
    • Define SLAs in terms of batch size: map latency tiers to maximum queue wait time and target batch size, rather than patching with rate limits after the fact.
    • Let sparsity follow topology: estimate the expert-count ceiling as “devices in the high-speed domain × experts resident per card,” not by copying the maximum expert count from papers.
    • Let the data mix serve the product: set the pretraining token budget using downstream evaluations and hallucination rates, not only loss-curve fitting.
    • Observe utilization: track compute occupancy, communication wait time, and expert-load Gini coefficients; cost anomalies usually show up in communication waits before FLOPs.

    Summary

    Today’s large models are shaped by accelerator rack boundaries, all-to-all communication, batching economics, and sparse activation. Understanding these constraints explains why inference must merge requests to amortize cost, why expert layers struggle to leave the rack, and why pretraining data often exceeds the theoretical optimum. Architecture, pricing, and iteration speed can all be derived from the same hardware and systems ledger. For teams building training and inference platforms, investing first in intra-rack interconnect, scheduling, and batching strategy is often a more deliverable efficiency gain than simply adding parameters.