Aligning Language Models with Offline Learning from Human Feedback

Jian Hu, Li Tao, June Yang, Chandler Zhou
8/23/2023
cs.CLcs.AI

No official code found. Best implementation: OpenRLHF/OpenRLHF (9,859 stars, Apache-2.0, last commit 2026-05-03).

Abstract

Learning from human preferences is crucial for language models (LMs) to effectively cater to human needs and societal values. Previous research has made notable progress by leveraging human feedback to follow instructions. However, these approaches rely primarily on online learning techniques like Proximal Policy Optimization (PPO), which have been proven unstable and challenging to tune for language models. Moreover, PPO requires complex distributed system implementation, hindering the efficiency of large-scale distributed training. In this study, we propose an offline learning from human feedback framework to align LMs without interacting with environments. Specifically, we explore filtering alignment (FA), reward-weighted regression (RWR), and conditional alignment (CA) to align language models to human preferences. By employing a loss function similar to supervised fine-tuning, our methods ensure more stable model training than PPO with a simple machine learning system~(MLSys) and much fewer (around 9\%) computing resources. Experimental results demonstrate that conditional alignment outperforms other offline alignment methods and is comparable to PPO.

View on arXivView PDF

Code Implementations(1)

OpenRLHF/OpenRLHFCommunity100%
Apache-2.0

An Easy-to-use, Scalable and High-performance Agentic RL Framework based on Ray (PPO & DAPO & REINFORCE++ & VLM & TIS & vLLM & Ray & Async RL)

9,859989Shell, PythonJul 30, 20235 months agoApache-2.0
large-language-modelsproximal-policy-optimizationraylibreinforcement-learningreinforcement-learning-from-human-feedback+3 more

Similar Papers

Cite this paper

@article{hu2023aligning,
  title  = {Aligning Language Models with Offline Learning from Human Feedback},
  author = {Jian Hu and Li Tao and June Yang and Chandler Zhou},
  year   = {2023},
  eprint = {2308.12050},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.12050v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2308.12050.svg)](https://codeofpaper.com/paper/2308.12050)

Discussion