Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
41 tokens/sec
GPT-4o
60 tokens/sec
Gemini 2.5 Pro Pro
44 tokens/sec
o3 Pro
8 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Efficient RLHF: Reducing the Memory Usage of PPO (2309.00754v1)

Published 1 Sep 2023 in cs.LG, cs.AI, and cs.CL

Abstract: Reinforcement Learning with Human Feedback (RLHF) has revolutionized LLMing 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.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (5)
  1. Michael Santacroce (5 papers)
  2. Yadong Lu (19 papers)
  3. Han Yu (218 papers)
  4. Yuanzhi Li (119 papers)
  5. Yelong Shen (83 papers)
Citations (23)
Youtube Logo Streamline Icon: https://streamlinehq.com