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

异步RLHF:面向语言模型的更快且更高效的离策略RL

Asynchronous RLHF: Faster and More Efficient Off-Policy RL for Language Models

Mila Quebec AI Institute(魁北克AI研究所);Université de Montréal(蒙特利尔大学);Allen Institute for AI(人工智能研究院);Google Deepmind(谷歌DeepMind);Canada CIFAR AI Chair(加拿大CIFAR人工智能主席)

Michael Noukhovitch, Shengyi Huang, Sophie Xhonneux, Arian Hosseini, Rishabh Agarwal, Aaron Courville

AI总结:

针对RLHF计算效率低的问题,提出分离生成与学习的异步在线离策略RLHF方法,发现online DPO对离策略数据最鲁棒,在LLaMA 3.1 8B和Rho 1B上分别提速约40%和70%且保持性能。

摘要:

RLHF的主流范式是在线和同策略RL:从大语言模型(LLM)策略同步生成、用奖励模型标注,并利用对LLM自身输出的反馈进行学习。尽管性能优异,这种范式在计算上效率低下。受经典深度RL文献启发,我们提出在RLHF中分离生成和学习。这使得能够异步生成新样本,同时基于旧样本进行训练,从而实现更快的训练和更具计算最优性的扩展。然而,异步训练依赖于一个未被充分探索的设定,即在线但离策略的RLHF:基于模型先前迭代的样本进行学习,这会给出更差的训练信号。我们应对该设定中的根本挑战:为了使异步训练加速学习同时保持性能,我们能容忍多大程度的离策略性?在我们测试的多种RLHF算法中,发现online DPO对离策略数据最为鲁棒,且鲁棒性随策略模型规模的增加而提升。我们进一步研究了异步RLHF的计算优化,但发现它们以性能为代价,从而产生权衡。我们通过在指令遵循任务上基于LLaMA 3.1 8B训练通用聊天机器人,验证了异步RLHF的可扩展性,其速度比同步运行快约40%,同时最终性能相当。最后,我们将结果扩展至数学和推理领域,证明异步RL能在匹配同步准确率的同时,快约70%地在GSM8k上微调Rho 1B。

英文摘要:

The dominant paradigm for RLHF is online and on-policy RL: synchronously generating from the large language model (LLM) policy, labelling with a reward model, and learning using feedback on the LLM's own outputs. While performant, this paradigm is computationally inefficient. Inspired by classical deep RL literature, we propose separating generation and learning in RLHF. This enables asynchronous generation of new samples while simultaneously training on old samples, leading to faster training and more compute-optimal scaling. However, asynchronous training relies on an underexplored regime, online but off-policy RLHF: learning on samples from previous iterations of our model which give a worse training signal. We tackle the fundamental challenge in this regime: how much off-policyness can we tolerate for asynchronous training to speed up learning but maintain performance? Among several RLHF algorithms we test, online DPO is found to be most robust to off-policy data, and robustness increases with the scale of the policy model. We study further compute optimizations for asynchronous RLHF but find that they come at a performance cost, giving rise to a trade-off. We verify the scalability of asynchronous RLHF by training a general-purpose chatbot from LLaMA 3.1 8B on an instruction-following task ~40% faster than a synchronous run while matching final performance. Finally, we extend our results to math and reasoning to demonstrate asynchronous RL can finetune Rho 1B on GSM8k ~70% faster while matching synchronous accuracy.

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

↑