Optional cookies help us improve the website, measure ads and link visits to applications.Privacy policy.

Unit 2: Reward misspecification and instrumental convergence

Resources: Reward misspecification and instrumental convergence

Language models often "hallucinate" realistic false facts. Fine-tuning them using human feedback makes this less common, but also makes the hallucinations harder to distinguish from the truth.
This week starts off by focusing on reward misspecification: the phenomenon where our default techniques for training ML models often unintentionally assign high rewards to undesirable behaviour. Behaviour which exploits reward misspecification to get a high reward is known as reward hacking.
This type of alignment failure happens due to our failure to capture our exact desires for the resulting systems' behaviour in the reward function or loss function that we use to train machine learning systems. Failure to solve this problem is an important source of danger from advanced systems if they're built using current-day techniques, which is why we're spending a week on it.
We start by looking at some toy examples when rewards are hard-coded or based on human feedback. We'll then look at two techniques engineers working with foundation models use to overcome reward misspecification in advanced systems: Reinforcement Learning from Human Feedback (RLHF) and Inverse Reinforcement Learning (IRL). We’ll also examine the limitations of these techniques. Note that RLHF is much more of a focus, and the two readings on IRL should only be done after you feel like you understand the rest of the material in this week.
The second key topic this week is instrumental convergence: the idea that AIs pursing a range of different rewards or goals will tend to converge to a set of similar instrumental strategies. Broadly speaking, we can summarize these strategies as aiming to gain power over the world. Instrumental convergence therefore provides a bridge between the narrow examples of reward misspecification we see today, and the possibility of large-scale disempowerment from AI; a reading by Christiano provides an illustration of how this might occur.

By the end of the unit, you should be able to:
- Explain how reward functions can fall short of specifying our intentions.
- Understand what a reward function is and why they're used.
- Define the terms 'reward misspecification' and 'reward hacking'.
- Examine whether reward hacking could play a part in catastrophic failure in advanced systems.
- Explain what RLHF is and why it is proposed as a way to help deal with reward misspecification.
- Predict ways in which RLHF could lead to undesirable outcomes, given an arbitrary environment and task.
- Understand what IRL is and why it is proposed as a way to help deal with reward misspecification.
- Explain why IRL is not typically used to learn human wishes, in modern systems.
- List the proposed instrumental goals, and evaluate to what extent it appears to be a reward misspecification problem.

Resources (1 hr 20 mins)

  • Specification gaming: the flip side of AI ingenuity

    This reading demonstrates that default techniques for training RL agents often lead to bad behaviour due to the difficult of designing reward functions which correctly specify desirable behavior.
    Krakovna et al. showcase examples of agents exploiting misspecified rewards in simple environments (behaviour which is known as reward hacking). Try to get an intuitive understanding from this article of why reward hacking is hard to prevent.
    Note that 'specification gaming', as referred to in the article, is an umbrella term which includes reward hacking by RL agents as well as analogous behaviour by non-RL agents.

    Create a free account to track your progress and unlock access to the full course content.

  • Learning from Human Preferences

    This reading introduces the idea of Reinforcement Learning from Human Feedback (RLHF). Make sure you understand the training setup used, as we'll refer back to it in future weeks. Note RLHF was briefly mentioned in the previous resource, but this resource explains the setup in more detail.
    Christiano et al. use RLHF to train agents to perform tasks difficult to specify using hard-coded reward functions. However, the latter part of the article demonstrates that this method can still lead to reward misspecification problems.

    Create a free account to track your progress and unlock access to the full course content.

  • Learning to Summarize with Human Feedback

    Stiennon et al. fine-tuned a language model using a reward model trained with RLHF techniques. The fine-tuning makes it better at the hard-to-specify task of summarising books.
    This reading will combine your understanding of what it means to fine-tune foundation language models with RLHF. Also, explore how over-optimising the reward model they train can lead to misbehaviour of the overall system, from the section "Optimising the Reward Model".

    Create a free account to track your progress and unlock access to the full course content.

  • The alignment problem from a deep learning perspective

    As a reminder, 'reward hacking' happens when a model exploits a reward misspecification to achieve a high reward whilst not optimising for the initial goal we tried to communicate.
    This reading argues that reward hacking will become much harder to detect once AIs have situational awareness: the ability to apply abstract knowledge to the specific context in which they're run.
    Situational awareness may enable deceptive reward hacking, where a system reward hacks by reasoning about how to fool the humans who are providing feedback.

    Create a free account to track your progress and unlock access to the full course content.

  • Optimal Policies Tend To Seek Power

    This resource examines a hypothesis for another way that ML systems could maximise reward in unexpected ways: seeking power. In other words, systems could develop 'instrumental' goals' like resources, self-preservation and self-enhancement.
    However, note that reinforcement learning algorithms do not necessarily train systems which will maximize reward. The reward maximization frame is leaky in general, although it may sometimes be a useful heuristic. For another perspective on reinforcement learning, see Reward is not the optimization target.
    Turner et al. flesh out the arguments from Bostrom (2014, see below) by formalizing the notion of power-seeking in the reinforcement learning context, and proving that many agents converge to power-seeking. (See also the corresponding blog post and paper.)
    Less technical readers may find this chapter from 'Superintellligence' a helpful introduction to the same concepts.

    Create a free account to track your progress and unlock access to the full course content.

  • What failure looks like

    Christiano describes a world that 'goes out with a whimper' due to the reward misspecification problem.
    The core argument in part I is that by trying to specify humanity's objectives, we get exactly what we ask for and not what we would have wished for. The argument in part I is closely related to Goodheart's law, which may aid your understanding of the argument being made.

    Create a free account to track your progress and unlock access to the full course content.

  • Inverse reinforcement learning example

    This is a very quick video which explains how IRL works. Try to focus on the ways in which it's different to RLHF. Specifically, it infers human preferences from our behaviour rather than directly querying our preferences.
    For more technical details on how IRL is implemented, optionally read the first half of this article.

    Create a free account to track your progress and unlock access to the full course content.

  • The easy goal inference problem is still hard

    Christiano makes the case that IRL is not a perfect solution to the 'goal inference problem'. It states that to infer preferences, it's necessary to understand how humans are biased and flawed, which seems very hard to do from observation alone.

    Create a free account to track your progress and unlock access to the full course content.

Optional Resources