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

我们是否需要Adam?在LLMs中使用SGD的 surprisingly 强大且稀疏的强化学习

Do We Need Adam? Surprisingly Strong and Sparse Reinforcement Learning with SGD in LLMs

University of at Illinois, Urbana-champaign, USA(伊利诺伊大学厄巴纳-香槟分校);University of Waterloo, Ontario, Canada(滑铁卢大学)

Sagnik Mukherjee, Lifan Yuan, Pavan Jayasinha, Dilek Hakkani-Tür, Hao Peng

AI总结:

本文发现SGD在LLMs强化学习中表现优于AdamW,且更新稀疏性显著,挑战了传统优化方法的普遍认知。

摘要:

强化学习(RL),特别是可验证奖励的强化学习(RLVR),已成为训练大语言模型(LLMs)的关键阶段,并成为当前扩展努力的重点。然而,RL的优化实践大多遵循下一个标记预测阶段(如预训练和监督微调)的做法,尽管最近的研究已经突显了RL与这些阶段之间的根本差异。其中一种做法是使用AdamW优化器,尽管其内存开销高,但被广泛用于训练大规模Transformer。我们的分析表明,在RL中,AdamW中的动量和自适应学习率对优化的影响不如SFT显著,因此我们推测RL从Adam风格的每参数自适应学习率和动量中获益较少。证实这一假设,我们的实验表明,内存效率更高的SGD在监督学习大规模Transformer时表现不佳,但在RL中对于LLMs来说,SGD的表现与AdamW相当甚至更优。令人惊讶的是,使用SGD进行完整微调时,更新的参数不到0.02%,无需任何促进稀疏性的正则化,比AdamW少超过1000倍。我们的分析提供了这种更新稀疏性的潜在原因。这些发现为RL在LLMs中的优化动态提供了新的见解,并表明RL可以比之前认为的更参数高效。

英文摘要:

Reinforcement learning (RL), particularly RL from verifiable reward (RLVR), has become a crucial phase of training large language models (LLMs) and a key focus of current scaling efforts. However, optimization practices in RL largely follow those of next-token prediction stages (e.g., pretraining and supervised fine-tuning), despite fundamental differences between RL and these stages highlighted by recent work. One such practice is the use of the AdamW optimizer, which is widely adopted for training large-scale transformers despite its high memory overhead. Our analysis shows that both momentum and adaptive learning rates in AdamW are less influential in RL than in SFT, leading us to hypothesize that RL benefits less from Adam-style per-parameter adaptive learning rates and momentum. Confirming this hypothesis, our experiments demonstrate that the substantially more memory-efficient SGD, which is known to perform poorly in supervised learning of large-scale transformers, matches or even outperforms AdamW in RL for LLMs. Remarkably, full fine-tuning with SGD updates fewer than 0.02% of model parameters without any sparsity-promoting regularization, more than 1000 times fewer than AdamW. Our analysis offers potential reasons for this update sparsity. These findings provide new insights into the optimization dynamics of RL in LLMs and show that RL can be substantially more parameter-efficient than previously recognized.

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

↑