Efficient RLHF: Reducing the Memory Usage of PPO
Michael Santacroce, Yadong Lu, Han Yu, Yuanzhi Li, Yelong Shen

TL;DR
This paper introduces Hydra-RLHF, a method that reduces memory usage and latency in PPO during RLHF, making it more accessible and efficient for language model alignment tasks.
Contribution
The paper presents Hydra-RLHF, a novel approach combining LoRA and dynamic model switching to significantly cut memory and latency in PPO-based RLHF training.
Findings
LoRA during PPO reduces memory below SFT levels.
Hydra-PPO decreases latency by up to 65%.
Maintains performance across four benchmarks.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling · Reinforcement Learning in Robotics · Software Engineering Research
MethodsEntropy Regularization · Shrink and Fine-Tune · Proximal Policy Optimization
