Deep RL from Human Preferences — Talks, Press, and Discussion
Press & Blog Coverage
-
OpenAI blog, “Learning from human preferences” (13 June 2017). OpenAI’s post on the paper. It says the algorithm “needed 900 bits of feedback from a human evaluator to learn to backflip”.
-
rl-teacher, GitHub. An open implementation by co-author Tom Brown; its README describes it as “an implementation of Deep Reinforcement Learning from Human Preferences”.
-
Hugging Face blog, “Illustrating Reinforcement Learning from Human Feedback (RLHF)”. An overview of RLHF for language models that lists this paper as RLHF applied to preferences between Atari trajectories.
Q&A (answers from the paper)
Q1: Why compare two clips instead of giving each a score? The authors write: “we found it much easier for humans to provide consistent comparisons than consistent absolute scores, especially on the continuous control tasks” (Section 3.3). Comparisons are fitted with the Bradley-Terry model (Section 2.2.3, Eq. 1).
Q2: How much human feedback was needed? Feedback on less than 1% of the agent’s interactions (Abstract). The robotics experiments used 700 human queries and the Atari experiments 5,500 (Section 3.1). The Hopper backflip used 900 queries in less than an hour (Section 3.2).
Q3: What happens when two clips look equally good? The human can say they are equally good; then the label µ is uniform, half for each clip. Clips the human cannot compare are left out (Section 2.2.2).
Q4: How does the reward model deal with human mistakes? It assumes a 10% chance that the human answers uniformly at random, because people make errors at a constant rate even when the difference is large (Section 2.2.3).
Q5: Why remove episode ends from the environment? Termination conditions can encode information about the task, so the agent could learn from them without the human. The robotics tasks replace them with a penalty, and Atari agents get no life-loss or episode-end signals; for synthetic feedback the oracle gives a penalty at episode ends (Appendix A).
Q6: What was the most important part of the method? In the ablations, training the reward model only on queries gathered at the start (no online queries) did poorly: the predictor captured only part of the true reward, and on Pong the agent learned to avoid losing points but not to score (Section 3.3).
Common Misconceptions
-
“In RLHF, humans write the reward function.” Correction: the human only compares pairs of clips. The reward function is a neural network fitted to those comparisons (Section 2.2).
-
“RLHF was invented for language models.” Correction: this paper used Atari games and simulated robots (Section 3). InstructGPT applied RLHF to GPT-3 in 2022 and cites this paper for it.
-
“It needs expert labellers.” Correction: the paper uses non-expert human preferences (Abstract) and says this lets agents be taught by non-expert users (Section 1).
-
“The learned reward matches the true reward.” Correction: the paper reports that its method has more difficulty matching RL on the harder Atari games; on SpaceInvaders and Breakout synthetic feedback never matched RL (Section 3.1.2).
Real Citations
- Christiano, P. F., Leike, J., Brown, T. B., Martic, M., Legg, S., & Amodei, D. (2017). Deep Reinforcement Learning from Human Preferences. NIPS 2017. arXiv:1706.03741.
- Bradley, R. A., & Terry, M. E. (1952). Rank Analysis of Incomplete Block Designs: I. The Method of Paired Comparisons. Biometrika. (Preference model)
- Mnih, V., et al. (2016). Asynchronous Methods for Deep Reinforcement Learning. ICML. (A2C, used for Atari)
- Schulman, J., et al. (2015). Trust Region Policy Optimization. ICML. (TRPO, used for robotics)
- Ouyang, L., et al. (2022). Training Language Models to Follow Instructions with Human Feedback. arXiv:2203.02155. (InstructGPT, uses RLHF)