Di-PS: System-Algorithm Co-Design for Asynchronous and Heterogeneous Cross-cluster LLM Training at Scale

Shengwei Li (National Key Laboratory of Parallel and Distributed Computing), Qiaoling Chen (Shanghai Artificial Intelligence Laboratory and Nanyang Technology University), Zhiquan Lai (National Key Laboratory of Parallel and Distributed Computing), Penglong Jiao (Shanghai Artificial Intelligence Laboratory), Wenwen Qu (Shanghai Artificial Intelligence Laboratory), Kun Cai (Shanghai Artificial Intelligence Laboratory), Jiaxing Li (Shanghai Artificial Intelligence Laboratory), Peng Sun (Shanghai Artificial Intelligence Laboratory), Xingcheng Zhang (Shanghai Artificial Intelligence Laboratory), Xiaoge Deng (National Key Laboratory of Parallel and Distributed Computing), Dongsheng Li (National Key Laboratory of Parallel and Distributed Computing), Kai Lu (National Key Laboratory of Parallel and Distributed Computing), Tianwei Zhang (Nanyang Technological University)

23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 1 · Cloudy with a Chance of Tenants

Overview

As Large Language Model (LLM) scaling laws continue to demand massive computational resources, model sizes and training token counts have surged into the tens of thousands of accelerators. State-of-the-art models like Llama 3.1 and Llama 4 require clusters of 16,000 to over 33,000 accelerators. However, real-world infrastructure statistics reveal a stark operational mismatch: approximately 85% of existing data center clusters contain fewer than 10,000 accelerators. Building massive monolithic clusters involves prohibitive capital expenditures for specialized high-ratio networking hardware, and introduces severe facility-level constraints in power, cooling, and floor space.

Watch on YouTube · Slides

Visual summary for Di-PS: System-Algorithm Co-Design for Asynchronous and Heterogeneous Cross-cluster LLM Training at Scale by Shengwei Li, Qiaoling Chen, Zhiquan Lai, Penglong Jiao, Wenwen Qu, Kun Cai, Jiaxing Li, Peng Sun, Xingcheng Zhang, Xiaoge Deng, Dongsheng Li, Kai Lu, Tianwei Zhang
Visual summary for Di-PS: System-Algorithm Co-Design for Asynchronous and Heterogeneous Cross-cluster LLM Training at Scale by Shengwei Li, Qiaoling Chen, Zhiquan Lai, Penglong Jiao, Wenwen Qu, Kun Cai, Jiaxing Li, Peng Sun, Xingcheng Zhang, Xiaoge Deng, Dongsheng Li, Kai Lu, Tianwei Zhang

Key moments

  1. 0:00 Introduction and broader trend of LLM training
  2. 2:00 Motivation for cross-cluster training and current standard approaches
  3. 4:40 Key challenges in cross-cluster training
  4. 8:20 Introduction to Di-PS architecture and core requirements
  5. 9:30 Scalable communication and operation overlapping in Di-PS
  6. 10:40 Pseudo gradient correction for stable asynchronous convergence
  7. 11:50 Heartbeat-based elasticity and resilience mechanism
  8. 12:00 Evaluation results and real-world production deployment

Di-PS: System-Algorithm Co-Design for Asynchronous and Heterogeneous Cross-Cluster LLM Training at Scale

Speakers: Shengwei Li (National Key Laboratory of Parallel and Distributed Computing); Qiaoling Chen (Shanghai Artificial Intelligence Laboratory and Nanyang Technology University); Zhiquan Lai (National Key Laboratory of Parallel and Distributed Computing); Penglong Jiao (Shanghai Artificial Intelligence Laboratory); Wenwen Qu (Shanghai Artificial Intelligence Laboratory); Kun Cai (Shanghai Artificial Intelligence Laboratory); Jiaxing Li (Shanghai Artificial Intelligence Laboratory); Peng Sun (Shanghai Artificial Intelligence Laboratory); Xingcheng Zhang (Shanghai Artificial Intelligence Laboratory); Xiaoge Deng (National Key Laboratory of Parallel and Distributed Computing); Dongsheng Li (National Key Laboratory of Parallel and Distributed Computing); Kai Lu (National Key Laboratory of Parallel and Distributed Computing); Tianwei Zhang (Nanyang Technological University)

Conference: USENIX NSDI

YouTube: https://www.youtube.com/watch?v=OW_9SDKUurs

Overview

As Large Language Model (LLM) scaling laws continue to demand massive computational resources, model sizes and training token counts have surged into the tens of thousands of accelerators. State-of-the-art models like Llama 3.1 and Llama 4 require clusters of 16,000 to over 33,000 accelerators. However, real-world infrastructure statistics reveal a stark operational mismatch: approximately 85% of existing data center clusters contain fewer than 10,000 accelerators. Building massive monolithic clusters involves prohibitive capital expenditures for specialized high-ratio networking hardware, and introduces severe facility-level constraints in power, cooling, and floor space.

To bridge this gap, aggregating geographically or topologically distinct smaller clusters into a unified training infrastructure is a logical and economic necessity. Yet, cross-cluster environments are plagued by high inter-cluster communication latency, severe network bandwidth heterogeneity, and unpredictable node failures. In this talk, the researchers introduce Di-PS, a novel system-algorithm co-design framework that overcomes these bottlenecks through a leader-follower parameter server architecture, pseudo-gradient correction algorithms, and robust heartbeat-based elasticity. By coordinating heterogeneous training resources efficiently, Di-PS achieves dramatic speedups while maintaining model convergence quality comparable to ideal synchronous baselines.

Background

▶ Watch: Introduction and broader trend of LLM training (0:00)

Training multi-billion-parameter LLMs traditionally relies on tightly coupled, homogeneous clusters equipped with ultra-low-latency, high-bandwidth fabrics like InfiniBand or specialized high-radix switches. When scaling beyond a single data center or cluster boundary, the interconnect bandwidth drops by orders of magnitude.

To mitigate inter-cluster communication overhead, current state-of-the-art frameworks typically employ a two-stage optimization hierarchy. In this paradigm, individual clusters perform local, high-frequency training iterations using an inner optimizer, while an outer optimizer synchronizes model parameters across different clusters at a much lower frequency. A representative decentralized approach in this space is DeepSpeed-MoE or local-SGD-based variations like Async-DialoGPT / DiLo (often referred to in the literature as DiLo or Async-DiLo).

Despite reducing cross-cluster communication frequency, decentralized architectures face critical systemic limitations:

  1. Straggler Vulnerabilities: Decentralized synchronization relies heavily on all-to-all or ring-based collective communications across clusters, forcing the entire system to wait for the slowest communication link or cluster.
  2. Asynchronous Instability: To bypass stragglers, naive asynchronous updates can be introduced. However, direct application of asynchrony in cross-cluster settings leads to severe training instability or outright divergence due to the accumulation of stale or corrupted gradients.
  3. Dynamic Infrastructure Attrition: Real-world production clusters experience frequent dynamic fluctuations, maintenance windows, and hardware faults. Decentralized designs lack localized failure isolation, making node churn computationally expensive and disruptive.

Key Findings

▶ Watch: Key challenges in cross-cluster training (4:40)

The research team behind Di-PS uncovered several foundational insights regarding cross-cluster LLM scaling through an empirical analysis of 33-day production traces spanning nine distinct clusters:

  • Centralized Over Decentralized: Contrary to the prevailing trend favoring fully decentralized outer optimization, a centralized parameter server (PS) architecture provides superior bandwidth utilization, global optimizer state tracking, and clean failure isolation.
  • Scalable Heterogeneous Bandwidth: By replacing rigid all-to-all patterns with a flexible many-to-many communication scheme managed via a greedy mapping strategy, Di-PS circumvents inter-cluster bandwidth imbalances.
  • Pseudo-Gradient Convergence Stabilization: Stale and abnormal updates from slower or heterogeneous clusters can be successfully filtered out using historical gradient norms without harming final model accuracy.
  • Production-Grade Resilience: Integrating a heartbeat-based elasticity mechanism allows continuous training across dynamic clusters experiencing frequent dropouts, achieving over 98% ideal scaling efficiency.

Technical Deep Dive

▶ Watch: Scalable communication and operation overlapping in Di-PS (9:30)

Di-PS is engineered around a centralized, yet distributed, control and data plane that co-designs systems mechanics with algorithmic gradient correction.

1. Leader-Follower Parameter Server Architecture

To eliminate the rigid synchronization locks of decentralized designs, Di-PS implements a hierarchical parameter server topology:

  • Leader PS: Responsible for global task scheduling, cluster coordination, and managing membership changes.
  • Follower PSs: Distributed parameter server instances that share the outer optimizer state across different physical clusters.

Communication between training clusters and follower PSs operates on a flexible many-to-many pattern rather than lock-step collective primitives. A greedy mapping strategy dynamically schedules parameter transfers to maximize concurrency, tailoring communication schedules independently for each cluster based on its live network conditions.

2. Pipelined Operation Overlapping

To hide communication latency, Di-PS structures the follower PS workflow into a pipelined execution model overlapping three core operations:

  1. Communication: Receiving gradient updates and distributing synchronized weights.
  2. Computation: Executing the outer optimizer step.
  3. Storage: Managing optimizer states and model checkpoints.

This overlapping drastically minimizes idle wait times across heterogeneous nodes.

3. Pseudo-Gradient Correction Algorithm

To neutralize the destabilizing effects of asynchronous training updates in heterogeneous environments, Di-PS introduces pseudo-gradient correction. When clusters submit updates at varying cadences, the system calculates the norm of each cluster's pseudo-gradient. It evaluates the update quality against historical norms and recent trajectory trends. Abnormal, overly stale, or low-quality gradients are filtered out prior to aggregation. The remaining high-quality updates are weighted accurately by the volume of training data consumed by each cluster, guaranteeing stable convergence profiles matching synchronous baselines.

4. Heartbeat-Based Elasticity and Fault Tolerance

Production clusters frequently undergo scale-in and scale-out events. Di-PS tracks cluster and follower PS health continuously via lightweight heartbeats routed through the Leader PS. If a training cluster encounters an unrecoverable fault, the Leader PS instantly isolates and removes the failed cluster from the global optimization pool while allowing healthy clusters to proceed uninterrupted. Failed follower PS instances are automatically restarted and re-synced, ensuring uninterrupted multi-week execution.

Experimental Setup & Results

▶ Watch: Pseudo gradient correction for stable asynchronous convergence (10:40)

The authors evaluated Di-PS across both heavily emulated laboratory environments and massive real-world production runs.

  • Hardware & Testbeds:
  • Real-world evaluation utilized 16 distinct clusters exhibiting up to an 8.18x performance variation.
  • Emulated environments introduced controlled network delays and intentional bandwidth throttles on specific clusters.
  • Production verification scaled up to 9 heterogeneous clusters comprising over 10,000 total accelerators, coordinated by 16 follower PSs.
  • Model Architectures & Datasets:
  • Llama 3.2 (1 Billion parameters)
  • Qwen-3 (14 Billion parameters)
  • A massive 100-billion-parameter Llama-based model trained continuously for 33 days, processing 2.3 trillion tokens.
  • Baselines: Compared against standard decentralized inner-outer optimization schemes, including DiLo (synchronous baseline) and Async-DiLo (asynchronous baseline).
  • Headline Results:
  • End-to-End Speedup: Di-PS achieves a 1.27x to 4.67x speedup over convergent DiLo, and up to a 1.6x to 6x improvement over Async-DiLo.
  • Model Quality: Downstream task accuracy and final training loss curves remain virtually identical to ideal synchronous training, avoiding the divergence typical of uncorrected asynchronous setups.
  • Scaling Efficiency: In both homogeneous and heterogeneous scaling tests, Di-PS maintains greater than 98% ideal scaling efficiency.

Practical Implications

▶ Watch: Evaluation results and real-world production deployment (12:00)

For infrastructure teams and ML platform engineers operating across multi-datacenter or multi-cluster topologies, Di-PS provides a viable blueprint for scaling LLM training without massive capital expenditure on monolithic cluster construction. By treating existing smaller clusters as first-class training participants, organizations can dramatically increase hardware utilization rates.

However, practitioners must carefully consider certain tradeoffs:

  • Parameter Server Memory Overhead: Maintaining distributed follower PS states requires dedicated memory overhead across auxiliary nodes, which must be provisioned alongside training compute.
  • Hyperparameter Sensitivity: Tuning the filtering thresholds for the pseudo-gradient correction mechanism requires empirical calibration depending on the degree of heterogeneity present across the target clusters.
  • Security and Network Topology: Cross-cluster training assumes secure, encrypted tunnels between data centers; managing cross-datacenter transit costs remains an economic factor alongside raw algorithmic throughput.

Key Takeaways

  • Overcomes Infrastructure Mismatch: Di-PS enables efficient multi-cluster LLM training, allowing organizations to leverage existing sub-10,000 device clusters instead of building expensive monolithic superclusters.
  • Centralized Parameter Server Advantage: Shifting from decentralized collective communication to a leader-follower parameter server architecture unlocks superior bandwidth utilization and straggler isolation.
  • Algorithmic Stabilization: The pseudo-gradient correction mechanism successfully filters out stale and abnormal updates, preserving synchronous-grade model convergence under severe hardware and network heterogeneity.
  • Robust Elasticity: Heartbeat-based monitoring and failure isolation enable continuous, uninterrupted multi-week training runs across dynamic, fault-prone infrastructure.
  • Production-Proven Scale: Validated across 10,000+ devices training a 100-billion-parameter model over 33 days, processing 2.3 trillion tokens with >98% scaling efficiency.

About the Speaker(s)

The conference talk was presented by a volunteer speaker on behalf of the primary research authors. The underlying work represents a collaborative research effort involving institutions including the National Key Laboratory of Parallel and Distributed Computing (National University of Defense Technology), the Shanghai Artificial Intelligence Laboratory, and Nanyang Technological University. The authors specialize in high-performance computing, distributed systems, and large-scale machine learning infrastructure.

Reviews

→ Top-rated talks at 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)

All talks from 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)