Skip to main content
QUICK REVIEW

[论文解读] Mitigating Staleness in Asynchronous Pipeline Parallelism via Basis Rotation

Hyunji Jung, Sungbin Shin|arXiv (Cornell University)|Feb 3, 2026
Parallel Computing and Optimization TechniquesComputer Science被引用 0
一句话总结

该论文将基底错位识别为异步流水线并行中因延迟导致的退化的根本原因,并提出通过 Hessian 基底估计的基底旋转来重新对齐优化空间,从而恢复可扩展性并加速收敛。

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.

研究动机与目标

  • 研究异步流水线并行中梯度延迟如何随流水线深度扩展而变化。
  • 识别基底错位作为推动 Adam 型优化器对延迟敏感的关键机制。
  • 引入基底旋转以使 Hessian 的特征基与标准基对齐,缓解延迟效应。
  • 提供与大规模 Transformer 兼容的高效特征基估计策略。
  • 在高达 1B 参数的语言模型预训练实验中展示改进的收敛性和可扩展性。

提出的方法

  • 分析在基底对齐与错位下,梯度延迟对收敛性的影响。
  • 提出通过旋转矩阵 U(以及双边情形的 V)将更新旋转到与基底对齐的空间的基底旋转方法。
  • 通过 Kronecker 因子化的经验 Fisher 信息矩阵近似 Hessian,并估计其特征基。
  • 实现两种特征基估计策略(S = 二阶矩和 S = 一阶矩),并采用双边或单边旋转几何。
  • 给出一个用于带基底旋转的 Adam 的实用算法(Algorithm 1)以及一个特征基估计过程(Algorithm 2)。
  • 证明通过旋转进入与基底对齐的空间可以恢复对曲率的自适应性并减少延迟引起的振荡。
(a) Synchronous pipeline parallelism
(a) Synchronous pipeline parallelism

实验结果

研究问题

  • RQ1在异步流水线并行下,梯度延迟如何与 Transformer 损失的 Hessian 几何相互作用?
  • RQ2Hessian 的特征基与标准坐标基之间的错位是否在延迟下更削弱 Adam 型优化器的性能?
  • RQ3基底旋转能否重新对齐优化空间以缓解延迟并恢复可扩展的异步训练?
  • RQ4对于大模型,实用、可扩展的 Hessian 特征基估计方法有哪些?
  • RQ5在 1B 参数的 LLM 预训练中,基底旋转在收敛性和可扩展性方面能带来哪些经验增益?

主要发现

  • 随着流水线深度增加,梯度延迟显著降低异步流水线并行的收敛性。
  • 基底错位在延迟下降低了 Adam 的坐标自适应性的有效性,导致振荡和收敛更慢。
  • 基底旋转将 Hessian 的特征基与标准基重新对齐,缓解了延迟效应并加速收敛。
  • 使用基底旋转,1B 参数的 LLM 在训练达到相同损失时所需的迭代次数比最佳的异步基线少 76.8%。
  • 在开放实验中,对于 32 个流水线阶段,基底旋转在达到相同损失时的迭代次数比基线少最多 81.6%。
  • 即使在特征基估计不那么精确、且内存受限、无权重存 stash 的情况下,基底旋转仍然对延迟具有鲁棒性。
(b) Asynchronous pipeline parallelism
(b) Asynchronous pipeline parallelism

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。