Skip to main content
QUICK REVIEW

[Paper Review] The Wisdom of Hindsight Makes Language Models Better Instruction Followers

Tianjun Zhang, Fangchen Liu|arXiv (Cornell University)|Feb 10, 2023
Topic ModelingComputer Science9 citations
TL;DR

HIR reframes instruction alignment as a goal-conditioned RL problem and uses hindsight instruction relabeling to train language models in a reward-free, supervised two-stage pipeline, outperforming PPO and FARL baselines on BigBench tasks.

ABSTRACT

Reinforcement learning has seen wide success in finetuning large language models to better align with instructions via human feedback. The so-called algorithm, Reinforcement Learning with Human Feedback (RLHF) demonstrates impressive performance on the GPT series models. However, the underlying Reinforcement Learning (RL) algorithm is complex and requires an additional training pipeline for reward and value networks. In this paper, we consider an alternative approach: converting feedback to instruction by relabeling the original one and training the model for better alignment in a supervised manner. Such an algorithm doesn't require any additional parameters except for the original language model and maximally reuses the pretraining pipeline. To achieve this, we formulate instruction alignment problem for language models as a goal-reaching problem in decision making. We propose Hindsight Instruction Relabeling (HIR), a novel algorithm for aligning language models with instructions. The resulting two-stage algorithm shed light to a family of reward-free approaches that utilize the hindsightly relabeled instructions based on feedback. We evaluate the performance of HIR extensively on 12 challenging BigBench reasoning tasks and show that HIR outperforms the baseline algorithms and is comparable to or even surpasses supervised finetuning.

Motivation & Objective

  • Motivate better alignment of language models with human-like instructions without adding RL training complexity.
  • Bridge instruction following with goal-conditioned reinforcement learning to enable data-efficient learning.
  • Leverage both successful and unsuccessful outputs by relabeling instructions to maximize alignment.
  • Develop a simple, parameter-light finetuning method that reuses the pretraining pipeline.

Proposed method

  • Model language instruction alignment as a goal-reaching RL problem with a goal space defined by instruction prompts.
  • Introduce two-stage Hindsight Instruction Relabeling (HIR): online data collection followed by offline relabeling and supervised learning.
  • Use relabeling to generate new instruction prompts that align with the model’s outputs, enabling learning from failures as well as successes.
  • In offline relabeling, apply a scripted feedback function to create new instruction targets and train with standard seq2seq loss.
  • Incorporate a contrastive instruction labeling loss to distinguish outputs across different instructions and entropy regularization to promote exploration.
  • The final training objective is L_final = L_supervise + alpha * L_contrastive + beta * L_entropy.

Experimental results

Research questions

  • RQ1Can hindsight relabeling turn feedback into instruction-based supervision without an explicit reward model?
  • RQ2Does a two-stage online-offline training regime improve instruction alignment more effectively than PPO or FARL baselines?
  • RQ3Is the approach robust across different model sizes (base and large FLAN-T5) and task types?
  • RQ4What is the impact of entropy and contrastive losses on performance and data efficiency?

Key findings

  • HIR outperforms PPO and FARL baselines on 12 BigBench reasoning tasks when using FLAN-T5-large.
  • On hard tasks like Tracking Shuffled Objects (5) and (7), HIR surpasses the best baseline by substantial margins.
  • HIR yields strong gains even with smaller base models (FLAN-T5-base) across multiple tasks.
  • Ablations show entropy regularization, label smoothing, and sub-output sampling each contribute to performance gains.
  • Across model sizes, HIR achieves significant improvements, indicating robustness to base model capacity.

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.