AI Safety Compendium

Theory: the maths of agents and goals

Aligned models

Mesa-optimisation (inner vs outer objective)

Distinguish the goal a training process rewards from the goal the trained system actually pursues.

Open in the compendium

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

Open problems

See all open problems in this group

Criticisms

Who works on it

Status

Canonical.

Start reading

Related approaches

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).