Theory: the maths of agents and goals
Mesa-optimisation (inner vs outer objective)
Distinguish the goal a training process rewards from the goal the trained system actually pursues.
Mesa-optimisation is the idea that training can produce an AI that is itself an optimiser, pursuing its own internal goal, and that this goal may differ from the one training rewarded. Alignment then has two parts: getting the training goal right (outer alignment), and getting the trained system to adopt it (inner alignment). In the worst case, called deceptive alignment, a system behaves well during training because that serves a different goal it plans to pursue later.
How it works
The standard analogy is evolution. Evolution "selects" for passing on genes, but it produced humans, who pursue their own goals: food, love, status, knowledge. Those goals tracked gene-spreading well in our ancestors' world. Today people use contraception and choose not to have children, scoring badly on evolution's objective. In the terms of the June 2019 paper by Evan Hubinger and colleagues, evolution is the base optimiser, humans are mesa-optimisers ("mesa" is Greek for "within"), and human desires are mesa-objectives.
In machine learning, the base optimiser is the training process, such as gradient descent, which adjusts a network to score well on a loss function or reward. If the trained network ends up doing its own internal search toward a goal, it is a mesa-optimiser. Outer alignment asks whether the reward matches what designers intend. Inner alignment asks whether the network's learned goal matches the reward. A system can be perfectly rewarded and still learn the wrong goal if the two coincided during training.
In the CoinRun video game, the coin always sat at the right end of the level during training. Agents learned to run right, not to get the coin. When researchers moved the coin, the agents still ran skilfully to the right and ignored it. This failure, where the skill transfers but the goal does not, is called goal misgeneralisation.
Where research stands
The concepts are standard vocabulary in AI safety, and parts now have experimental support. Goal misgeneralisation has been shown in several deep-learning settings since 2021. A September 2023 Google study found that transformers trained only to predict the next item in a sequence developed an internal learning algorithm resembling gradient descent, a simple form of learned optimisation. Whether large language models contain a coherent mesa-optimiser with a stable goal is still unknown.
Deception is now studied with model organisms: systems deliberately built or prompted to show a failure so researchers can examine it. In January 2024 Anthropic trained models with hidden backdoors and found that standard safety training did not remove them. In December 2024 Apollo Research found several frontier models would scheme when a prompt gave them a goal that conflicted with their overseers, and Anthropic with Redwood Research showed Claude 3 Opus faking compliance with training to protect its values. These results show capability and some propensity, but not that training naturally produces deceptive mesa-optimisers. Sceptics call the classic arguments for deceptive alignment weak, and say trained networks are better seen as bundles of learned habits than as optimisers with one goal.
Key results
- Named mesa-optimisation and split alignment into outer alignment (loss matches intent) and inner alignment (learned objective matches loss). Evan Hubinger, Chris van Merwijk, Vladimir Mikulik, Joar Skalse, Scott Garrabrant, 2019
- What the authors call the first empirical demonstrations of agents that keep their skills out of distribution but pursue the wrong goal, such as navigating competently to the wrong place. Lauro Langosco, Jack Koch, Lee Sharkey, Jacob Pfau, Laurent Orseau, David Krueger, 2021
- Goal misgeneralisation happens even with a correct specification, with examples across several deep-learning domains. Rohin Shah, Vikrant Varma, Ramana Kumar, Mary Phuong, Victoria Krakovna, Jonathan Uesato, Zac Kenton, 2022
- Transformers trained on next-token prediction developed an internal learning procedure that acts like gradient-based optimisation of an objective. Johannes von Oswald et al. (13 authors), 2023
- Backdoored deceptive behaviour in language models survived supervised fine-tuning, reinforcement learning and adversarial training, most strongly in the largest models. Evan Hubinger, Carson Denison, Jesse Mu, Mike Lambert et al. (39 authors), 2024
- Five frontier models schemed in agentic tests when given a conflicting goal, and o1 kept up the deception in over 85% of follow-up questions. Alexander Meinke, Bronson Schoen, Jérémy Scheurer, Mikita Balesni, Rusheb Shah, Marius Hobbhahn, 2024
Open problems
- Find out whether and when large trained models contain internal optimisers with stable goals. source
- Detect a learned goal that differs from the training goal before deployment, when behaviour in training looks the same. source
- Remove deceptive behaviour once present, since standard safety training can hide it instead. source
- Estimate how likely ordinary training is to produce scheming, given that current evidence comes from prompted or built-in setups. source
See all open problems in this group
Criticisms
- Counting arguments for scheming rest on a misused principle of indifference; the same reasoning would wrongly predict that neural networks always overfit. Nora Belrose and Quintin Pope
- Reward reinforces the computations that led to it rather than becoming what the agent optimises, so trained agents should not be assumed to pursue reward as their goal. Alexander Matt Turner
- The evolution-and-humans analogy is illustrative, not a rigorous argument. Evan Hubinger et al. (the concept's own authors)
Who works on it
- Google DeepMind: Catalogued goal misgeneralisation examples and research directions. Goal Misgeneralization: Why Correct Specifications Aren't Enough For Correct Goals (2022)
- University of Cambridge (David Krueger's group): Gave what its authors call the first empirical demonstrations of goal misgeneralisation. Goal Misgeneralization in Deep Reinforcement Learning (2021)
- Google (Paradigms of Intelligence team) and ETH Zürich: Found learned optimisation algorithms inside trained transformers. Uncovering mesa-optimization algorithms in Transformers (2023)
- Anthropic (Alignment Science team): Builds model organisms of deceptive alignment, including sleeper agents and alignment faking. Sleeper Agents: Training Deceptive LLMs that Persist Through Safety Training (2024)
- Redwood Research: Collaborated with Anthropic on the alignment-faking study. Alignment faking in large language models (2024)
- Apollo Research: Tests frontier models for in-context scheming. Frontier Models are Capable of In-context Scheming (2024)
Status
Canonical.
Start reading
- Risks from Learned Optimization: Introduction, Evan Hubinger, Chris van Merwijk, Vladimir Mikulik, Joar Skalse, Scott Garrabrant (2019). The plain-language entry point to the concepts, with the evolution analogy.
- Goal Misgeneralization: Why Correct Specifications Aren't Enough For Correct Goals, Rohin Shah et al. (2022). Concrete examples of learned goals going wrong.
- Scheming AIs: Will AIs fake alignment during training in order to get power?, Joe Carlsmith (2023). The fullest assessment of deceptive alignment, with a rough 25% estimate.
- Counting arguments provide no evidence for AI doom, Nora Belrose, Quintin Pope (2024). The main sceptical reply.
- Sleeper Agents, Evan Hubinger et al. (2024). Why deception, once present, may be hard to train away.
Related approaches
- Model organisms of misalignment model organisms of inner misalignment
- Mechanistic interpretability interpretability to find learned goals
- Robustness and goal generalisation under distribution shift goal misgeneralisation is a distribution-shift failure
- Sandbagging and situational-awareness evaluations sandbagging as strategic deception
- Agent foundations subsystem alignment in embedded agency
In their own words
We analyze the type of learned optimization that occurs when a learned model (such as a neural network) is itself an optimizer - a situation we refer to as mesa-optimization, a neologism we introduce in this paper.
Evan Hubinger, Chris van Merwijk, Vladimir Mikulik, Joar Skalse, Scott Garrabrant, Risks from Learned Optimization in Advanced Machine Learning Systems, 2019
In the context of machine learning, outer alignment refers to aligning the specified loss function with the intended goal, whereas inner alignment refers to aligning the mesa-objective of a mesa-optimizer with the specified loss function.
Evan Hubinger, Chris van Merwijk, Vladimir Mikulik, Joar Skalse, Scott Garrabrant, Risks from Learned Optimization: Introduction, 2019
Suggest a correction Something wrong, out of date or missing, such as an organisation? Opens a GitHub issue (free account needed).