Fine-Tuning Language Models with Reward Learning on Policy

Hao Lang, Fei Huang, Yongbin Li
3/28/2024
cs.CLcs.AIcs.LG

Official code: AlibabaResearch/DAMO-ConvAI (1,602 stars, MIT, last commit 2026-01-22).

Abstract

Reinforcement learning from human feedback (RLHF) has emerged as an effective approach to aligning large language models (LLMs) to human preferences. RLHF contains three steps, i.e., human preference collecting, reward learning, and policy optimization, which are usually performed serially. Despite its popularity, however, (fixed) reward models may suffer from inaccurate off-distribution, since policy optimization continuously shifts LLMs' data distribution. Repeatedly collecting new preference data from the latest LLMs may alleviate this issue, which unfortunately makes the resulting system more complicated and difficult to optimize. In this paper, we propose reward learning on policy (RLP), an unsupervised framework that refines a reward model using policy samples to keep it on-distribution. Specifically, an unsupervised multi-view learning method is introduced to learn robust representations of policy samples. Meanwhile, a synthetic preference generation approach is developed to simulate high-quality preference data with policy outputs. Extensive experiments on three benchmark datasets show that RLP consistently outperforms the state-of-the-art. Our code is available at \url{https://github.com/AlibabaResearch/DAMO-ConvAI/tree/main/rlp}.

View on arXivView PDF

Code Implementations(1)

MIT

DAMO-ConvAI: The official repository which contains the codebase for Alibaba DAMO Conversational AI.

1,602252CSS, MDXJul 15, 20229 months agoMIT
conversational-aideep-learningdialognatural-language-processing

Similar Papers

Cite this paper

@article{lang2024finetuning,
  title  = {Fine-Tuning Language Models with Reward Learning on Policy},
  author = {Hao Lang and Fei Huang and Yongbin Li},
  year   = {2024},
  eprint = {2403.19279},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.19279v1}
}

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/2403.19279.svg)](https://codeofpaper.com/paper/2403.19279)

Discussion