arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2606.16768cs.LG
收藏

驯服曲率:稳定Transformer训练的架构预热

Taming Curvature: Architecture Warm-Up for Stable Transformer Training

Pluralis Research

Sameera Ramasinghe, Ajanthan Thalaiyasingam, Hadi Mohaghegh Dolatabadi, Chamin Hewa Koneputugodage, Gil Avraham, Violetta Shevchenko, Yan Zuo, Karol Pajak, Alexander Long

AI总结:

提出基于热启动幂迭代的快速在线曲率估计方法,并发现训练不稳定性与预条件曲率激增相关,进而提出渐进增加网络深度的架构预热策略,有效稳定大模型训练。

摘要:

训练数十亿参数的Transformer通常很脆弱,会出现瞬时的损失尖峰和发散,浪费计算资源。尽管最近发展的边缘稳定性(EoS)理论通过(预条件)曲率提供了理解和控制优化方法稳定性的强大工具,但由于曲率估计的复杂性,这些曲率控制方法在大规模Transformer训练中并不流行。为此,我们首先引入一种基于热启动变体的快速在线估计器,用于估计最大的(预条件)Hessian特征值(即曲率),该估计器使用Hessian-向量积进行幂迭代。我们从理论上证明,并通过实验验证,所提出的方法在十亿参数规模下使每次迭代的曲率跟踪变得可行,同时更加准确。利用这一工具,我们发现训练不稳定性与预条件曲率的激增同时发生,并且曲率随深度增加而增长。基于这些观察,我们提出架构预热:逐步增加网络深度,以仔细控制预条件Hessian并稳定训练。在大规模Transformer上的实验验证了我们的方法能够实现高效的曲率跟踪,并在不减慢收敛速度的情况下,与现有最先进的稳定技术相比减少了不稳定性。

英文摘要:

Training billion-parameter Transformers is often brittle, with transient loss spikes and divergence that waste compute. Even though the recently developed Edge of Stability (EoS) theory provides a powerful tool to understand and control the stability of optimization methods via the (preconditioned) curvature, these curvature-controlling methods are not popular in large-scale Transformer training due to the complexity of curvature estimation. To this end, we first introduce a fast online estimator of the largest (preconditioned) Hessian eigenvalue (i.e., curvature) based on a warm-started variant for power iteration with Hessian-vector products. We show theoretically, and verify empirically, that the proposed method makes per-iteration curvature tracking feasible at billion parameter scale while being more accurate. Using this tool, we find that training instabilities coincide with surges in preconditioned curvature and that curvature grows with depth. Motivated by these observations, we propose architecture warm-up: progressively growing network depth to carefully control the preconditioned Hessian and stabilize training. Experiments on large Transformers validate that our approach enables efficient curvature tracking and reduces instabilities compared to existing state-of-the-art stabilization techniques without slowing down convergence.

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

↑