arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.03515cs.LGcs.AIcs.DC
收藏

通过基旋转缓解异步流水线并行中的陈旧性问题

Mitigating Staleness in Asynchronous Pipeline Parallelism via Basis Rotation

POSTECH(POSTECH大学)

Hyunji Jung, Sungbin Shin, Namhoon Lee

AI总结:

针对异步流水线并行中梯度陈旧性随流水线深度线性增长的问题,提出基旋转框架,通过将优化器坐标系与Hessian特征基对齐来保持延迟更新的有效性,理论证明最小化基失配并实证在3B参数LLM训练中减少81.7%迭代次数。

摘要:

异步流水线并行通过消除同步执行中固有的流水线气泡来最大化硬件利用率,为高效大规模分布式训练提供了一条途径。然而,这种效率提升可能会被梯度陈旧性所削弱,其中使用延迟梯度的即时模型更新会在优化过程中引入噪声。关键的是,我们发现了一个常被忽视的严重问题:这种延迟随流水线深度线性增长,从根本上破坏了该方法原本意图提供的可扩展性。我们将此问题归因于优化景观的一个特定性质:Hessian特征基与标准坐标基之间的失配,这触发了坐标自适应优化器更新轨迹中的振荡。我们识别出这些振荡导致延迟更新偏离其真实对应项,使其无法用于当前迭代。这一见解通过理论分析(包括一个表明基失配放大延迟惩罚的收敛界)和实证评估得到证实。为了解决这个问题,我们提出了基旋转,一个将优化器坐标系旋转以与Hessian特征基对齐的框架,使延迟更新保持有用。我们从理论上证明基旋转最小化基失配,从而抵消放大延迟惩罚的条件。在训练高达3B参数的LLM的实证中,与性能最佳的异步基线相比,基旋转减少了81.7%所需的迭代次数。

英文摘要:

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. We trace this pathology to a specific property of the optimization landscape: the misalignment between the Hessian eigenbasis and the standard coordinate basis, which triggers oscillations in the update trajectories of coordinate-wise adaptive optimizers. We identify that these oscillations cause delayed updates to diverge from their true counterparts, invalidating their use for current iterations. This insight is formalized through theoretical analysis, including a convergence bound showing that basis misalignment amplifies the delay penalty, and substantiated with empirical evaluation. To address this, we propose basis rotation, a framework that rotates the optimizer's coordinate system to align with the Hessian eigenbasis, keeping delayed updates useful. We theoretically demonstrate that basis rotation minimizes basis misalignment, thereby counteracting the conditions that amplify delay penalties. Empirically, in training up to a 3B-parameter LLM, basis rotation reduces the required iterations by 81.7\% compared to the best-performing asynchronous baseline.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑