Pseudo-Asynchronous Local SGD: Robust and Efficient Data-Parallel Training

Hiroki Naganuma, Xinzhi Zhang, Man-Chung Yue, Ioannis Mitliagkas, Russell J. Hewett, Philipp Andre Witte, Yin Tat Lee

Abstract

Following AI scaling trends, frontier models continue to grow in size and continue to be trained on larger datasets. Training these models requires huge investments in exascale computational resources, which has in turn driven development of distributed deep learning methods. Data parallelism is an essential approach to speed up training, but it requires frequent global communication between workers, which can bottleneck training at the largest scales. In this work, we propose a method called Pseudo-Asynchronous Local SGD (PALSGD) to improve the efficiency of data-parallel training. PALSGD is an extension of Local SGD and DiLoCo, designed to further reduce communication frequency by introducing a pseudo-synchronization mechanism. PALSGD allows the use of longer synchronization intervals compared to standard Local SGD. Despite the reduced communication frequency, the pseudo-synchronization approach ensures that model consistency is maintained, leading to performance results comparable to those achieved with more frequent synchronization. Furthermore, we provide a theoretical analysis of PALSGD, establishing its convergence and deriving its convergence rate. We evaluated PALSGD on image classification and language modeling tasks. Our results show that PALSGD achieves better performance in less time compared to existing methods like Distributed Data Parallel (DDP) and DiLoCo. Notably, PALSGD trains 18.4% faster than DDP on ImageNet-1K with ResNet-50, 24.4% faster than DDP on TinyStories with GPT-Neo-125M, and 21.1% faster than DDP on TinyStories with GPT-Neo-8M.

Introduction

As artificial intelligence models scale toward billions of parameters, the infrastructure required to train them has become increasingly complex. Distributed training via Data Parallelism (DDP) is the industry standard, yet it faces a significant "communication bottleneck." In standard DDP, every worker must synchronize its gradients with every other worker using an All-Reduce operation at every training step. As the number of workers and model parameters grow, the time spent waiting for network communication often eclipses the time spent on actual computation.

Local SGD was introduced to mitigate this by allowing workers to perform several independent local updates before synchronizing. However, Local SGD typically suffers from performance degradation if the synchronization interval ($H$) exceeds 8 to 16 steps. This paper introduces Pseudo-Asynchronous Local SGD (PALSGD), a method that extends these intervals significantly without sacrificing model consistency or convergence.

The PALSGD Method

PALSGD enhances the Local SGD framework by introducing a "pseudo-synchronization" mechanism. This mechanism acts as a local stabilizer, preventing individual workers from drifting too far apart during long periods of independent computation.

Probabilistic Mixing

At each local training step, a worker determines its action based on a biased coin flip with probability $p$:

  1. Gradient Step (Probability $p$): The worker performs a standard parameter update using its local data shard.
  2. Pseudo-Sync Step (Probability $1-p$): Instead of calculating a new gradient, the worker "mixes" its current parameters with a locally stored copy of the last global model.

This mixing step functions as a Proximal Regularizer, gently pulling the local model back toward the global average. Because this process occurs entirely on the local device, it incurs zero communication cost. Mathematically, this creates a "Local EMA" (Exponential Moving Average) effect, dampening the oscillations that typically occur when workers train on divergent data for extended periods.

Hierarchical Optimization

Following the structure of the DiLoCo algorithm, PALSGD utilizes a decoupled optimizer strategy:

  • Inner Optimizer: A high-frequency optimizer (e.g., AdamW) handles rapid local progress.
  • Outer Optimizer: A low-frequency optimizer (e.g., Nesterov Momentum) aggregates the "pseudo-gradients" collected over the long synchronization interval $H$ to update the global model.

Theoretical Convergence

A key contribution of this work is the theoretical analysis of PALSGD. The authors establish convergence guarantees and derive a specific convergence rate for the algorithm. This analysis provides a mathematical foundation for why the pseudo-synchronization step maintains model consistency even when the global communication interval $H$ is set to 64 steps or higher—well beyond the limits of standard Local SGD.

Experimental Results

The researchers evaluated PALSGD across vision and language tasks, comparing it against DDP and DiLoCo.

Image Classification (ImageNet-1K)

Training ResNet-50 on ImageNet-1K, PALSGD reached a target of 75% top-1 accuracy 18.4% faster than standard DDP and 6% faster than DiLoCo. The method proved robust to larger synchronization intervals, maintaining accuracy where other local methods began to diverge.

Language Modeling (TinyStories)

Using the TinyStories dataset to train GPT-Neo models, PALSGD demonstrated even more significant gains:

  • GPT-Neo-125M: PALSGD was 24.4% faster than DDP. In these tests, DiLoCo failed to reach the target loss within the same wall-clock timeframe.
  • GPT-Neo-8M: PALSGD achieved a 21.1% speedup over DDP.
  • Communication Efficiency: On these language tasks, PALSGD reduced the total number of global synchronization steps by 93.75% compared to DDP.

Scaling and Robustness

In scaling studies on CIFAR-10 with up to 32 GPUs, PALSGD showed superior accuracy compared to both DDP and DiLoCo. This suggests that the pseudo-synchronization mechanism effectively mitigates the "large-batch" generalization problem often encountered when scaling distributed training.

Discussion and Limitations

While PALSGD offers a significant leap in communication efficiency, several avenues for future research remain. The current implementation assumes hardware homogeneity; in environments with "stragglers" (slower nodes), the synchronous nature of the outer optimizer could still cause delays. Future work will explore making PALSGD "straggler-aware."

Additionally, while the empirical results for non-convex deep learning models are robust, the current theoretical proofs focus on strongly convex functions. Bridging this gap between theory and the practical success of PALSGD with adaptive optimizers like AdamW remains a priority. Finally, comparing PALSGD against fully asynchronous, wait-free systems will help define its place in the broader landscape of distributed optimization.

Conclusion

PALSGD represents a significant advancement for large-scale model training. By replacing frequent, expensive global communication with frequent local "pseudo-syncs" and infrequent global updates, it allows researchers to train larger models faster on existing hardware, effectively breaking the synchronization barriers that have previously limited Local SGD.

Summary updated

BibTeX
@article{naganuma2025pseudo,
  author = {Hiroki Naganuma and Xinzhi Zhang and Man-Chung Yue and Ioannis Mitliagkas and Russell J. Hewett and Philipp Andre Witte and Yin Tat Lee},
  title = {{Pseudo-Asynchronous Local SGD: Robust and Efficient Data-Parallel Training}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=8VTrvS5vN7},
}
Figure