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

高效RLHF:降低PPO的内存占用

Efficient RLHF: Reducing the Memory Usage of PPO

Microsoft(微软)

Michael Santacroce, Yadong Lu, Han Yu, Yuanzhi Li, Yelong Shen

AI总结:

本文提出Hydra-PPO,通过整合SFT与奖励模型并动态开关LoRA,将PPO内存降至低于SFT且延迟降低65%,促进RLHF普及。

摘要:

基于人类反馈的强化学习(RLHF)通过使模型与人类偏好对齐,彻底改变了语言建模。然而,强化学习阶段,即近端策略优化(PPO),所需内存是监督微调(SFT)的3倍以上,这使得大多数从业者难以使用。为解决此问题,我们对PPO的内存节省技术进行了全面的内存使用、性能和训练时间分析。我们通过首先整合SFT和奖励模型,然后在训练过程中动态关闭LoRA,引入了Hydra-RLHF。我们的实验表明:1. 在PPO中使用LoRA可将其内存使用降至低于SFT,同时在四个公开基准上提升对齐性能;2. Hydra-PPO将LoRA-PPO的每个样本延迟降低了高达65%,同时保持其性能。我们的结果表明,Hydra-PPO是一种简单且有前景的解决方案,能够促进RLHF的更广泛使用。

英文摘要:

Reinforcement Learning with Human Feedback (RLHF) has revolutionized language modeling by aligning models with human preferences. However, the RL stage, Proximal Policy Optimization (PPO), requires over 3x the memory of Supervised Fine-Tuning (SFT), making it infeasible to use for most practitioners. To address this issue, we present a comprehensive analysis the memory usage, performance, and training time of memory-savings techniques for PPO. We introduce Hydra-RLHF by first integrating the SFT and Reward models and then dynamically turning LoRA "off" during training. Our experiments show: 1. Using LoRA during PPO reduces its memory usage to be smaller than SFT while improving alignment across four public benchmarks, and 2. Hydra-PPO reduces the latency per sample of LoRA-PPO by up to 65% while maintaining its performance. Our results demonstrate that Hydra-PPO is a simple and promising solution for enabling more widespread usage of RLHF.

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

↑