A Long Way to Go: Investigating Length Correlations in RLHF

Prasann Singhal, Tanya Goyal, Jiacheng Xu, Greg Durrett
10/5/2023
cs.CLcs.LG

Official code: PrasannS/rlhf-length-biases (27 stars, last commit 2024-03-13).

Abstract

Great success has been reported using Reinforcement Learning from Human Feedback (RLHF) to align large language models, with open preference datasets enabling wider experimentation, particularly for "helpfulness" in tasks like dialogue and web question answering. Alongside these improvements, however, RLHF also often drives models to produce longer outputs. This paper demonstrates, on three diverse settings, that optimizing for response length is, much more than previously thought, a significant factor behind RLHF. Studying the strategies RL optimization uses to maximize reward, we find improvements in reward to largely be driven by increasing response length, instead of other features. Indeed, we find that even a purely length-based reward reproduces most downstream RLHF improvements over supervised fine-tuned models. Testing a comprehensive set of length-countering interventions, we identify the dominant source of these biases to be reward models, which, by studying training dynamics, we find are non-robust and easily influenced by length biases in preference data.

View on arXivView PDF

Code Implementations(1)

270Shell, PythonAug 16, 20232 years ago

Similar Papers

Cite this paper

@article{singhal2023long,
  title  = {A Long Way to Go: Investigating Length Correlations in RLHF},
  author = {Prasann Singhal and Tanya Goyal and Jiacheng Xu and Greg Durrett},
  year   = {2023},
  eprint = {2310.03716},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.03716v2}
}

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

Discussion