Abstract
Training Large Language Models (LLMs) across geographically distributed data centers is severely bottlenecked by low communication bandwidth. DreamDDP addresses this by introducing "partial synchronization" to Local SGD, allowing different layers of the model to synchronize at different times. This scheduling overlaps communication with computation without requiring extra GPU memory, achieving up to 3.91x speedups over existing methods while maintaining standard convergence rates.
Introduction
Modern LLM training requires massive compute clusters, often necessitating scaling across geographically distributed data centers. However, the network bandwidth between these centers is typically low (10 Mbps to 1 Gbps), creating a significant bottleneck. Standard Synchronous SGD (S-SGD) requires workers to communicate gradients at every step, leading to high latency. Local SGD (LSGD) reduces communication frequency by training locally for $H$ steps before syncing, but it introduces "hard synchronization points" where GPUs sit idle while massive model parameters are averaged. DreamDDP aims to eliminate these idle periods by decoupling layer synchronization.
Methods
DreamDDP redesigns Local SGD through three primary innovations:
- Partial Synchronization (PLSGD): Instead of synchronizing the entire model every $H$ iterations, DreamDDP schedules different subsets of layers to synchronize at different iterations.
- In-Place Overlapping: To maintain GPU memory efficiency, DreamDDP synchronizes a layer's parameters in-place immediately after its backward propagation (BP) finishes. This allows communication to be hidden behind the BP of subsequent layers.
- Smart Scheduling Algorithm: A Depth-First Search (DFS) algorithm with pruning heuristics (optimal hiding and delayed assignment) finds a near-optimal schedule based on profiled compute and network times.
- Filling the Bubbles: Any remaining idle network bandwidth is used to synchronize later layers more frequently, which aids convergence without increasing wall-clock time.
Key Insights
- Divergence Management: Traditional LSGD suffers from "divergence amplification" as local models drift apart over $H$ steps. Partial synchronization "vents" this pressure by syncing layers incrementally, keeping overall divergence lower.
- Sync Constraints: Parameter synchronization in LSGD is best performed during the backward pass to avoid the memory overhead associated with buffering weights for the forward pass.
- Layer Sensitivity: Later layers in deep models often take longer to converge. DreamDDP leverages idle bandwidth to sync these layers more often, providing a "free" boost to convergence speed.
Key Results
Evaluation on CIFAR-10/100 (ResNets) and WikiText-2 (GPT-2, Llama-2) demonstrated significant performance gains:
- Massive Speedups: DreamDDP achieved iteration time speedups of 1.49x to 3.91x over baselines like ASC-WFBP and Full LSGD.
- Guaranteed Convergence: The method mathematically maintains the $O(1/R)$ convergence rate of S-SGD.
- Faster Time-to-Accuracy: DreamDDP reaches target accuracy significantly faster in wall-clock time across all tested models on 32-GPU clusters.
Conclusion
DreamDDP effectively mitigates the communication bottleneck in geo-distributed LLM training. By intelligently scheduling layer-wise partial synchronizations, it maximizes hardware utilization and accelerates training without increasing memory overhead. Future work will focus on adapting the scheduler for heterogeneous hardware and dynamic network conditions.
Summary updated