Training Language Models with Language Feedback at Scale

Jérémy Scheurer, Jon Ander Campos, Tomasz Korbak, Jun Shern Chan, Angelica Chen +2 more
3/28/2023
cs.CLcs.AIcs.LG

No official code found. Best implementation: JeremyAlain/imitation_learning_from_language_feedback (26 stars, last commit 2023-03-30).

Abstract

Pretrained language models often generate outputs that are not in line with human preferences, such as harmful text or factually incorrect summaries. Recent work approaches the above issues by learning from a simple form of human feedback: comparisons between pairs of model-generated outputs. However, comparison feedback only conveys limited information about human preferences. In this paper, we introduce Imitation learning from Language Feedback (ILF), a new approach that utilizes more informative language feedback. ILF consists of three steps that are applied iteratively: first, conditioning the language model on the input, an initial LM output, and feedback to generate refinements. Second, selecting the refinement incorporating the most feedback. Third, finetuning the language model to maximize the likelihood of the chosen refinement given the input. We show theoretically that ILF can be viewed as Bayesian Inference, similar to Reinforcement Learning from human feedback. We evaluate ILF's effectiveness on a carefully-controlled toy task and a realistic summarization task. Our experiments demonstrate that large language models accurately incorporate feedback and that finetuning with ILF scales well with the dataset size, even outperforming finetuning on human summaries. Learning from both language and comparison feedback outperforms learning from each alone, achieving human-level summarization performance.

View on arXivView PDF

Code Implementations(1)

This repository contains some of the code used in the paper "Training Language Models with Langauge Feedback at Scale"

265Shell, PythonJan 22, 20233 years ago

Similar Papers

Cite this paper

@article{scheurer2023training,
  title  = {Training Language Models with Language Feedback at Scale},
  author = {Jérémy Scheurer and Jon Ander Campos and Tomasz Korbak and Jun Shern Chan and Angelica Chen and Kyunghyun Cho and Ethan Perez},
  year   = {2023},
  eprint = {2303.16755},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.16755v3}
}

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

Discussion