AsyncMesh: Fully Asynchronous Optimization for Data and Pipeline Parallelism
Thalaiyasingam Ajanthan, Sameera Ramasinghe, Gil Avraham, Hadi Mohaghegh Dolatabadi, Chamin P Hewa Koneputugodage, Violetta Shevchenko, Yan Zuo, Alexander Long
TL;DR
AsyncMesh enables fully asynchronous data- and pipeline-parallel training on a 2D mesh by combining AsyncPP-style pipeline updates with sparse, EMA-corrected data averaging. The method uses a look-ahead weight extrapolation for pipeline staleness and an EMA-based delay correction for sparse averaging, yielding consensus on expectation and convergence to a fixed point of the consensus objective $F(W) = \sum_{i=1}^m F(W_i;\mathcal{D}_i)$ with $W_i=W$. Theoretical results bound the consensus error and establish convergence under diminishing staleness, while extensive experiments on large language models (up to $1\times 10^9$ parameters) show parity with fully synchronous baselines and substantial communication reductions, including successful training of a 1B-parameter model in AsyncMesh. This work enables scalable, bandwidth-efficient distributed training across heterogeneous and bandwidth-constrained environments, expanding the practicality of large-scale model training beyond tightly coupled clusters.
Abstract
Data and pipeline parallelism are key strategies for scaling neural network training across distributed devices, but their high communication cost necessitates co-located computing clusters with fast interconnects, limiting their scalability. We address this communication bottleneck by introducing asynchronous updates across both parallelism axes, relaxing the co-location requirement at the expense of introducing staleness between pipeline stages and data parallel replicas. To mitigate staleness, for pipeline parallelism, we adopt a weight look-ahead approach, and for data parallelism, we introduce an asynchronous sparse averaging method equipped with an exponential moving average based correction mechanism. We provide convergence guarantees for both sparse averaging and asynchronous updates. Experiments on large-scale language models (up to \em 1B parameters) demonstrate that our approach matches the performance of the fully synchronous baseline, while significantly reducing communication overhead.
