Understanding the Effects of RLHF on LLM Generalisation and Diversity

Robert Kirk, Ishita Mediratta, Christoforos Nalmpantis, Jelena Luketina, Eric Hambro +2 more
10/1/2023

No official code found. Best implementation: facebookresearch/rlfh-gen-div (50 stars, last commit 2024-01-19).

Abstract

Large language models (LLMs) fine-tuned with reinforcement learning from human feedback (RLHF) have been used in some of the most widely deployed AI models to date, such as OpenAI's ChatGPT or Anthropic's Claude. While there has been significant work developing these methods, our understanding of the benefits and downsides of each stage in RLHF is still limited. To fill this gap, we present an extensive analysis of how each stage of the process (i.e. supervised fine-tuning (SFT), reward modelling, and RLHF) affects two key properties: out-of-distribution (OOD) generalisation and output diversity. OOD generalisation is crucial given the wide range of real-world scenarios in which these models are being used, while output diversity refers to the model's ability to generate varied outputs and is important for a variety of use cases. We perform our analysis across two base models on both summarisation and instruction following tasks, the latter being highly relevant for current LLM use cases. We find that RLHF generalises better than SFT to new inputs, particularly as the distribution shift between train and test becomes larger. However, RLHF significantly reduces output diversity compared to SFT across a variety of measures, implying a tradeoff in current LLM fine-tuning methods between generalisation and diversity. Our results provide guidance on which fine-tuning method should be used depending on the application, and show that more research is needed to improve the tradeoff between generalisation and diversity.

View on arXivView PDF

Code Implementations(1)

This is code for most of the experiments in the paper Understanding the Effects of RLHF on LLM Generalisation and Diversity

507Python, DockerfileNov 10, 20232 years agoNOASSERTION

Cite this paper

@article{kirk2023understanding,
  title  = {Understanding the Effects of RLHF on LLM Generalisation and Diversity},
  author = {Robert Kirk and Ishita Mediratta and Christoforos Nalmpantis and Jelena Luketina and Eric Hambro and Edward Grefenstette and R. Raileanu},
  year   = {2023},
  eprint = {2310.06452},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2310.06452},
  journal = {ICLR 2023 2023}
}

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

Discussion