Mitigating Staleness in Asynchronous Pipeline Parallelism via Basis Rotation
Hyunji Jung, Sungbin Shin, Namhoon Lee
TL;DR
This work identifies gradient delay as a depth-correlated bottleneck in asynchronous pipeline parallelism and pinpoints basis misalignment between the Hessian eigenbasis and the coordinate basis as the key cause of deteriorated convergence under delay. It introduces basis rotation to realign the optimization space so that curvature-aware adaptivity (e.g., Adam-type methods) remains effective despite stale gradients, leveraging block-diagonal and Kronecker-factorized Hessian assumptions for tractable implementation. The authors provide both theoretical convergence guarantees and extensive empirical validation on Transformer-scale models up to 1B parameters, showing that basis rotation dramatically reduces iteration counts to reach target loss (e.g., 71.6%–76.8% fewer iterations) and restores scalability in asynchronous pipeline training. The approach, supported by efficient eigenbasis-estimation strategies and robustness to practical constraints (e.g., without weight stashing), promises substantially more efficient large-scale training in real-world distributed environments.
Abstract
Asynchronous pipeline parallelism maximizes hardware utilization by eliminating the pipeline bubbles inherent in synchronous execution, offering a path toward efficient large-scale distributed training. However, this efficiency gain can be compromised by gradient staleness, where the immediate model updates with delayed gradients introduce noise into the optimization process. Crucially, we identify a critical, yet often overlooked, pathology: this delay scales linearly with pipeline depth, fundamentally undermining the very scalability that the method originally intends to provide. In this work, we investigate this inconsistency and bridge the gap by rectifying delayed gradients through basis rotation, restoring scalable asynchronous training while maintaining performance. Specifically, we observe that the deleterious effects of delayed gradients are exacerbated when the Hessian eigenbasis is misaligned with the standard coordinate basis. We demonstrate that this misalignment prevents coordinate-wise adaptive schemes, such as Adam, from effectively leveraging curvature-aware adaptivity. This failure leads to significant oscillations in the optimization trajectory and, consequently, slower convergence. We substantiate these findings through both rigorous theoretical analysis and empirical evaluation. To address this challenge, we propose the use of basis rotation, demonstrating that it effectively mitigates the alignment issue and significantly accelerates convergence in asynchronous settings. For example, our training of a 1B-parameter LLM with basis rotation achieves the same training loss in 76.8% fewer iterations compared to the best-performing asynchronous pipeline parallel training baseline.
