papers / rlhf2017
Next task →
Research Papers/Post-training and alignment/Deep Reinforcement Learning from Human Preferences
Post-training and alignment · #1 · seminal

Deep Reinforcement Learning from Human Preferences

Paul F. Christiano, Jan Leike, Tom B. Brown, Marten Malinowski, Samuel McClain et al. · 2017 · NeurIPS

1. Research problem

Many RL tasks have goals that are hard to specify as a reward function, while human scoring of every trajectory is too expensive.

2. Motivation

The authors wanted agents to learn complex behaviors from a modest number of human comparisons rather than hand-designed rewards.

3. Previous approaches

Inverse reinforcement learning inferred rewards from demonstrations; preference-based RL existed in simpler settings but had not been scaled to deep RL on visual tasks.

4. Core contribution

Showed that training a reward model from human pairwise preferences over short trajectory segments and then running deep RL on that learned reward can match hand-coded rewards with very few queries.

5. Mathematical formulation

A reward predictor r_hat is fit with the Bradley-Terry probability that segment a is preferred to b equals sigma(sum r_hat(a) - sum r_hat(b)); the agent optimizes r_hat with an RL algorithm.

6. Methodology

Alternately collect human comparisons of sampled trajectory pairs, update the reward model, and train the policy with an off-policy or on-policy RL method.

7. Architecture

Convolutional vision encoder plus policy/value network for Atari; reward model shares the visual encoder.

8. Experimental setup

Seven Atari games and simulated robotic locomotion/manipulation tasks in MuJoCo.

9. Datasets

Atari 2600 games, MuJoCo continuous-control environments, human comparison data collected during training.

10. Results

Achieved comparable or better performance than hand-engineered rewards using roughly a thousand human queries in many tasks, including behaviors like backflips not present in the original reward.

11. Limitations

Reward model can be exploited by the policy, comparisons are noisy and inconsistent, and performance depends on query selection and segment length.

12. Critical analysis

The foundational RLHF paper; its successes and failure modes directly shape modern language-model alignment research.

13. Implementation tasks

  • 1.Implement a Bradley-Terry reward model over trajectory segments on a simple gridworld.
  • 2.Collect synthetic preference labels from a known reward and train an agent with the learned reward.
  • 3.Measure how query count affects policy performance and reward-model accuracy.

14. Follow-up work

  • 1.Fine-Tuning Language Models from Human Preferences (Ziegler et al., 2019)
  • 2.Scaling Laws for Reward Model Overoptimization (Gao et al., 2022)

15. Open research questions

  • 1.How should reward models be evaluated independently of the policies they train?
  • 2.Which query-selection strategies most reduce human labeling cost?
16. Reproduce it. Record the hypothesis, configuration, dataset, metrics and discrepancies in the Experiment Tracker. A reproduction is not complete until you have run the experiments, performed at least one ablation and documented the differences from the reported numbers.