TL;DR
ScaleAcross Explorer is a new configuration optimizer designed to tackle the massive complexity of training large-scale AI models across multiple data center buildings and regions. By holistically optimizing parallelism placement, scheduling, and network protocols, it achieves up to a 64.62% speedup over standard production configurations and significantly outperforms existing state-of-the-art baselines.
What Problem Does This Paper Address?
As Large Language Models (LLMs) scale toward trillions of parameters, the infrastructure required to train them has outgrown the capacity of any single data center building. Power and cooling constraints now force researchers to distribute training jobs across multiple buildings or even different geographic regions—a paradigm the authors call "scale-across" training.
Unlike traditional "scale-out" training within a single high-speed network, scale-across environments are plagued by heterogeneous networking: cross-building links often have 3-8x lower bandwidth and significantly higher latency (4x or more) compared to intra-zone connections. This creates a daunting design space. Should you place Data Parallelism (DP) or Pipeline Parallelism (PP) across the slow links? Which scheduling strategy minimizes "bubbles" in a high-latency environment? Existing tools often ignore these cross-layer interplays, leading to suboptimal training efficiency.
Methods
The authors introduce ScaleAcross Explorer, an optimizer that automatically navigates the complex stack of distributed training. Its workflow consists of three main steps:
- Parallelism Configuration & Placement: It generates valid combinations of Tensor (TP), Context (CP), Expert (EP), Pipeline (PP), and Data Parallelism (DP) degrees, along with microbatch and model chunk sizes that fit within GPU memory.
- Parallelism Scheduling: It estimates computation and communication times for each configuration. Crucially, it evaluates different PP schedules, such as the standard DoraPP versus the authors' new Interleaved Zero Bubble V-schedule (ZBV), which is designed to reduce cross-building traffic.
- Network Technology Choices: Based on the topology, it recommends specific transport-layer strategies like load balancing (ECMP vs. packet spraying), congestion control, and reliability mechanisms.
Because the combinatorial search space is astronomical (trillions of possibilities), ScaleAcross Explorer uses Monte Carlo sampling to efficiently identify high-quality configurations.
Datasets
The paper evaluates its methods using production-scale workloads and infrastructure traces from Meta:
- Models: A 17B Dense model and a 40B Mixture-of-Experts (MoE) model.
- Infrastructure: A production testbed of H100 GPUs with configurable network latency and bandwidth (using physical fiber spools up to 500km).
- Simulation: An in-house packet-level network simulator validated against 100K-GPU production runs to explore extreme scenarios (e.g., 1000µs latency).
Key Insights and Ideas
- The "Optimal Flip" for Parallelism: For dense models, placing DP at the outermost layer (DP-out) is usually better because it minimizes the frequency of cross-building communication. However, for MoE models, the volume of DP traffic explodes as the number of experts increases, making PP-out the superior choice at high oversubscription ratios.
- V-Schedules for High Latency: While DoraPP is computationally efficient for local clusters, its "wrap-around" communication pattern is a bottleneck across buildings. The Interleaved ZBV schedule (shown in Figure 3) uses a V-shaped execution pattern that eliminates these wrap-around links, making it faster when the network is the primary bottleneck.
- Packet Spraying's Hidden Limit: Packet spraying is generally better than ECMP for avoiding hash collisions. However, the authors discovered that at cross-region distances (high latency), the limited number of "in-flight" packets allowed by NIC hardware can actually make packet spraying slower than ECMP unless the number of Queue Pairs is increased.
- Congestion Control Paradox: At ultra-long distances, the feedback loop for ECN-based congestion control becomes too slow to be effective. In some high-latency scenarios, disabling congestion control entirely yielded better performance.
Key Results
- Dense Model Speedup: On the production testbed, ScaleAcross Explorer achieved up to 64.62% speedup over standard production configurations for a 17B dense model at 1:16 bandwidth oversubscription.
- MoE Model Speedup: For a 40B MoE model with 128 experts, the optimizer identified configurations that were 49.4% faster than the traditional DP-out approach.
- Outperforming Baselines: Compared to Sailor (a state-of-the-art optimizer), ScaleAcross Explorer provided speedups ranging from 16.38% to 37.59% across various model and network settings.
Limitations and Future Work
- Heterogeneous Hardware: The current study primarily assumes uniform GPU types across buildings. Future iterations will need to account for clusters housing different generations of accelerators.
- Beyond Two Buildings: While the principles apply broadly, the specific experiments focused on two-building scenarios. Scaling to dozens of buildings with varying "distances" between every pair remains a challenge.
- Asynchronous Training: The authors deliberately focused on "lossless" optimizations that don't change model accuracy. They suggest that exploring semi-asynchronous methods (like Local SGD) could offer further gains once those algorithms are production-ready.
Summary updated