Learning from Natural Language Feedback

Jérémy Scheurer, Jon Ander Campos, Jun Shern Chan, Angelica Chen, Kyunghyun Cho, Ethan Perez · OpenReview

Abstract

Pretrained language models often fail to align with human preferences, producing toxic or inaccurate content. While Reinforcement Learning from Human Feedback (RLHF) using binary comparisons is the current industry standard, these comparisons are "low-bandwidth," providing minimal information per evaluation. We propose a three-step algorithm to learn from "high-bandwidth" natural language feedback. By conditioning a large model on feedback to generate refinements, selecting the best refinement via embedding similarity, and finetuning a base model on these targets, we achieve human-level performance in summarization tasks with as few as 100 human-written feedback samples.

The Alignment Problem

Aligning Large Language Models (LLMs) with human intent is a significant challenge. Currently, models are typically tuned using comparisons—where a human selects the better of two outputs. However, this method is inherently limited; it tells the model which output is better, but not why it is better or how to fix specific errors.

Natural language feedback (e.g., "This summary is too long and misses the part about the cat") is "high-bandwidth," containing significantly more information per evaluation. The difficulty lies in training models directly on this unstructured text. This paper introduces a method to bridge this gap by converting descriptive feedback into supervised learning targets.

The process of generating initial outputs and collecting natural language feedback from humans.

The Three-Step Refinement Algorithm

The authors propose a "Refinement" algorithm that turns natural language feedback into a supervised training signal through three stages:

  1. Generate Refinements: Given an input and an initial model-generated output, a human provides feedback. A large "teacher" model (e.g., GPT-3 175B) is prompted to generate multiple candidate refinements (e.g., 20) that incorporate the feedback.
  2. Select the Best (Best-of-N): To identify the highest quality target, the system uses a contrastive text embedding model to measure the similarity between each candidate refinement and the human feedback. The refinement with the highest similarity is chosen as the "gold" target.
  3. Finetune: Finally, a base language model is finetuned using standard supervised learning to produce these high-quality refinements directly from the original inputs, bypassing the need for complex Reinforcement Learning machinery.
The algorithm selects the best refinement based on feedback similarity and finetunes the model on these improved outputs.

Key Insights and Results

Scale as a Prerequisite

A striking finding is that the ability to utilize feedback is an emergent property of scale. Smaller models (like GPT-3 Ada or Babbage) were almost entirely unable to incorporate feedback to improve their outputs. Only the 175B parameter models (Davinci) showed a significant ability to refine their work based on critiques, successfully incorporating feedback in the synthetic task ~38% of the time.

Data Efficiency and Performance

The method proved exceptionally data-efficient. On the Reddit TL;DR summarization dataset, the model reached human-level performance using only 100 samples of human feedback.

  • Human Preference: Summaries generated by the model were preferred by human evaluators 51.0% of the time over actual human-written summaries.
  • Baseline Comparison: The proposed method significantly outperformed the strongest baseline (finetuning on initial summaries) with a win rate of 57.0%.
  • Qualitative Success: Analysis showed that the algorithm's refinements successfully incorporated at least one feedback point 72% of the time.

Conclusion

This work demonstrates that high-quality, descriptive feedback is far more "nutritious" for a model than thousands of simple binary comparisons. By leveraging the reasoning capabilities of large models to generate refined targets, we can align language models to human preferences with minimal human effort. Future research will focus on scaling this to noisier, crowdsourced feedback and more complex domains like code generation.

Summary updated

BibTeX
@inproceedings{scheurer2022learning,
  author = {Jérémy Scheurer and Jon Ander Campos and Jun Shern Chan and Angelica Chen and Kyunghyun Cho and Ethan Perez},
  title = {{Learning from Natural Language Feedback}},
  booktitle = {LNLS @ ACL},
  year = {2022},
  url = {https://openreview.net/forum?id=r6wu2WDhib9},
}
Figure