arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.01501cs.LGcs.AI
收藏

GAC: 通过梯度对齐控制稳定大语言模型的异步RL训练

GAC: Stabilizing Asynchronous RL Training for LLMs via Gradient Alignment Control

School of Computing and Data Science, The University of Hong Kong(计算与数据科学学院,香港大学);Alibaba Group(阿里巴巴集团);Southeast University(东南大学)

Haofeng Xu, Junwei Su, Yukun Tian, Lansong Diao, Zhengping Qian, Chuan Wu

AI总结:

针对异步策略梯度训练中梯度高余弦相似性导致的训练不稳定问题,提出梯度对齐控制(GAC)方法,通过梯度投影调节陈旧对齐方向,恢复稳定训练并匹配同步基线。

摘要:

异步执行对于将强化学习(RL)扩展到现代大模型工作负载(包括大语言模型和AI智能体)至关重要,但它可能从根本上改变RL优化行为。虽然先前关于异步RL的工作侧重于训练吞吐量和分布校正,但我们表明,将异步性简单应用于策略梯度更新可能引发性质不同的训练动态,并导致严重的训练不稳定性。通过系统的实证和理论分析,我们识别了这种不稳定性的一个关键特征:异步训练在连续策略梯度之间表现出持续的高余弦相似性,而同步训练下观察到的更新接近正交。这种陈旧对齐梯度效应放大了相关更新,增加了过冲和发散的风险。基于这一观察,我们提出了梯度对齐控制(GAC),一种简单的动态感知稳定方法,通过梯度投影调节沿陈旧对齐方向的异步RL进度。我们在有界陈旧性下建立了收敛保证,并实证表明,即使在高陈旧性下,GAC也能恢复稳定的在策略训练动态并匹配同步基线。

英文摘要:

Asynchronous execution is essential for scaling reinforcement learning (RL) to modern large model workloads, including large language models and AI agents, but it can fundamentally alter RL optimization behavior. While prior work on asynchronous RL focuses on training throughput and distributional correction, we show that naively applying asynchrony to policy-gradient updates can induce qualitatively different training dynamics and lead to severe training instability. Through systematic empirical and theoretical analysis, we identify a key signature of this instability: asynchronous training exhibits persistently high cosine similarity between consecutive policy gradients, in contrast to the near-orthogonal updates observed under synchronized training. This stale-aligned gradient effect amplifies correlated updates and increases the risk of overshooting and divergence. Motivated by this observation, we propose GRADIENT ALIGNMENT CONTROL(GAC), a simple dynamics-aware stabilization method that regulates asynchronous RL progress along stale-aligned directions via gradient projection. We establish convergence guarantees under bounded staleness and demonstrate empirically that GAC recovers stable, on-policy training dynamics and matches synchronized baselines even at high staleness.

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

↑