Skip to main content
QUICK REVIEW

[Paper Review] Chain of Hindsight Aligns Language Models with Feedback

Hao Liu, Carmelo Sferrazza|arXiv (Cornell University)|Feb 6, 2023
Topic ModelingComputer Science27 citations
TL;DR

Chain of Hindsight (CoH) finetunes language models by conditioning on sequences of model generations paired with feedback, enabling learning from all feedback without RL, and outperforming SFT and RLHF on summarization and dialogue tasks.

ABSTRACT

Learning from human preferences is important for language models to match human needs and to align with human and social values. Prior works have achieved remarkable successes by learning from human feedback to understand and follow instructions. Nonetheless, these methods are either founded on hand-picked model generations that are favored by human annotators, rendering them inefficient in terms of data utilization and challenging to apply in general, or they depend on reinforcement learning, which often suffers from imperfect reward functions and relies on extremely challenging optimizations. In this work, we propose a novel technique, Chain of Hindsight, that is easy to optimize and can learn from any form of feedback, regardless of its polarity. Our idea is inspired by how humans learn from extensive feedback presented in the form of languages. We convert all types of feedback into sequences of sentences, which are then used to fine-tune the model, allowing us to take advantage of the language comprehension capabilities of language models. We condition the model on a sequence of model generations paired with feedback. By doing so, the model is trained to generate outputs based on feedback, while learning to identify and correct negative attributes or errors. Applying our method to large language models, we observed that Chain of Hindsight significantly surpasses previous methods in aligning language models with human preferences. We report significant improvements on summarization and dialogue benchmarks, with our approach markedly preferred in human evaluations.

Motivation & Objective

  • Address inefficiencies of supervised finetuning and RLHF by leveraging all forms of human feedback.
  • Enable learning from both positive and negative feedback, including natural language guidance.
  • Provide a simple, scalable finetuning framework that avoids reinforcement learning optimizations.
  • Demonstrate improved alignment with human preferences on summarization and dialogue benchmarks.

Proposed method

  • Convert all human feedback into sequences of hindsight feedback paired with model outputs.
  • Finetune a decoder-only Transformer to predict outputs conditioned on previous outputs and their feedback.
  • Mask 0-5% of past tokens during training to prevent copying single examples and improve generalization.
  • Maintain a regularization term that maximizes the log likelihood of the pretraining data to preserve base language modeling.
  • Use cross-entropy loss over non-feedback tokens to train the model while conditioning on feedback sequences.
  • Evaluate on summarization and dialogue tasks using both automatic metrics and human evaluations.

Experimental results

Research questions

  • RQ1How does Chain of Hindsight (CoH) perform compared to SFT, SFT with unlikelihood, conditional SFT, and RLHF on summarization and dialogue benchmarks?
  • RQ2Can CoH effectively learn from both positive and negative feedback, including natural language explanations, without reinforcement learning?
  • RQ3Does incorporating natural language feedback further improve model alignment and human preference satisfaction?
  • RQ4How does model size affect CoH’s performance and scalability relative to baselines?

Key findings

  • CoH substantially outperforms baselines including RLHF and various SFT variants on summarization and dialogue tasks.
  • Human evaluations show CoH is preferred over RLHF and conditional SFT across multiple metrics (accuracy, coherence, coverage in summarization; helpfulness and harmlessness in dialogue).
  • Incorporating natural language feedback (as opposed to binary feedback alone) improves results.
  • CoH demonstrates favorable scaling behavior; advantages grow with larger model sizes.
  • CoH on open-source datasets matches or exceeds Koala-based SFT, and combining CoH with Koala yields further gains.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.