AI Safety Compendium

Shaping the model: data and training

Aligned models

Robustness and goal generalisation under distribution shift

Make a model keep both its skills and its intended goals when deployment conditions differ from training.

Open in the compendium

Researchers want a model to keep both its skills and its intended goals when the world it is deployed in differs from the world it was trained in. Two things can go wrong under such a "distribution shift": the model can stop working, or, more worryingly, it can stay competent while pursuing the wrong goal. The second failure, called goal misgeneralisation, is a central route by which a capable AI system could act against its designers' intent.

How it works

A 2022 study of the video game CoinRun gives a clear example. During training, the coin that ended each level always sat at the far right. An agent learned to win reliably. When researchers moved the coin to random places at test time, the agent "generally ignores the coin completely and proceeds to the end of the level". It kept its skill at navigating but had learned the goal "move right", not "move to the coin". Both goals looked identical in training.

Google DeepMind researchers showed the same pattern in other systems. In one, an agent trained to visit coloured spheres in the right order learned to follow a partner who knew the order. Paired with a partner who went the wrong way, it kept following and kept losing reward. In both cases the reward was correct, so a better reward alone is not the fix. Research therefore works on training data and objectives. Examples include benchmarks of real-world shifts that measure the damage, and training methods that choose training environments where the intended and proxy goals come apart.

Where research stands

"Concrete Problems in AI Safety" (2016) listed distributional shift as one of five core safety problems, warning that systems under shift may perform badly and "wrongly assume that their performance is good". The WILDS benchmark (first released in December 2020, published at ICML in 2021) gathered 10 real-world datasets, from medical imaging to wildlife monitoring. It found that standard training does substantially worse out of distribution, a gap existing robustness methods did not close. Goal misgeneralisation was first shown empirically in reinforcement learning in 2021-2022.

A July 2025 paper tested regret-based training, in which an adversary picks the training levels where the agent falls furthest short of the best possible performance. In grid-world tests it was more robust to goal misgeneralisation than standard randomised training, though it did not always find the ideal policy. Most demonstrations are still in games, grid worlds and small language-model tasks. How goal misgeneralisation shows up in today's large language models and agents, and how to detect it before deployment, are open questions.

Key results

Open problems

See all open problems in this group

Criticisms

Who works on it

Status

Established. Distributional shift is one of the five problems in Concrete Problems (2016). On the 10 WILDS datasets, standard training did much worse out of distribution than in distribution. A 2025 paper found regret-based training more robust to goal misgeneralisation than standard domain randomisation, in grid-world tests.

Start reading

Related approaches

In their own words

Safe generalization in reinforcement learning requires not only that a learned policy acts capably in new situations, but also that it uses its capabilities towards the pursuit of the designer's intended goal. The latter requirement may fail when a proxy goal incentivizes similar behavior to the intended goal within the training environment, but not in novel deployment environments.

Karim Abdel Sadek, Matthew Farrugia-Roberts et al., Mitigating Goal Misgeneralization via Minimax Regret, 2025

In general, when the testing distribution differs from the training distribution, machine learning systems may not only exhibit poor performance, but also wrongly assume that their performance is good.

Dario Amodei, Chris Olah, Jacob Steinhardt, Paul Christiano, John Schulman, Dan Mané, Concrete Problems in AI Safety, 2016

Suggest a correction Something wrong, out of date or missing, such as an organisation? Opens a GitHub issue (free account needed).