Shaping the model: data and training
Robustness and goal generalisation under distribution shift
Make a model keep both its skills and its intended goals when deployment conditions differ from training.
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
- Reinforcement-learning agents can keep their capabilities out of distribution while pursuing the wrong goal; in CoinRun, agents ignored a moved coin and ran to the end of the level. Lauro Langosco, Jack Koch, Lee Sharkey, Jacob Pfau, Laurent Orseau, David Krueger, 2022
- Goal misgeneralisation happens even with a correct specification, across several deep-learning domains, including a large language model that kept asking the user redundant questions. Rohin Shah, Vikrant Varma, Ramana Kumar, Mary Phuong, Victoria Krakovna, Jonathan Uesato, Zac Kenton (DeepMind), 2022
- Across 10 real-world datasets, standard training gave substantially lower out-of-distribution than in-distribution performance, and existing shift-robustness methods did not close the gap. Pang Wei Koh, Shiori Sagawa, Henrik Marklund et al., 2021
- Models that score equally well in training can behave very differently once deployed, a failure the authors call underspecification, seen in vision, medical imaging, language and genomics. Alexander D'Amour, Katherine Heller, Dan Moldovan et al. (40 authors), 2020
- Regret-based environment design was more robust to goal misgeneralisation than domain randomisation in procedurally generated grid worlds. Karim Abdel Sadek, Matthew Farrugia-Roberts, Usman Anwar, Hannah Erlebach, Christian Schroeder de Witt, David Krueger, Michael Dennis, 2025
Open problems
- Existing methods for distribution shift do not close the gap between in-distribution and out-of-distribution performance on real-world data. source
- Regret-based training does not reliably find the ideal policy, and has been shown only in grid worlds. source
- Training data alone often cannot tell apart a model with the intended goal from one with a proxy goal, so evaluation on held-out data may not reveal the problem. source
- How goal misgeneralisation could scale to catastrophic outcomes in more capable systems is argued through hypotheticals rather than observed cases. source
See all open problems in this group
Criticisms
- Out-of-distribution accuracy usually tracks in-distribution accuracy closely across many models and shifts, though the link is weaker for some shifts. John Miller, Percy Liang, Ludwig Schmidt and co-authors
Who works on it
- Google DeepMind: Researchers defined goal misgeneralisation as a robustness failure and gave examples across domains. Goal Misgeneralization: Why Correct Specifications Aren't Enough For Correct Goals (2022)
- University of Cambridge: Researchers in David Krueger's group gave the first empirical demonstrations of goal misgeneralisation. Goal Misgeneralization in Deep Reinforcement Learning (2022)
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
- Goal Misgeneralization: Why Correct Specifications Aren't Enough For Correct Goals, Rohin Shah et al. (2022). Clearest explanation with concrete examples.
- Concrete Problems in AI Safety, Dario Amodei, Chris Olah, Jacob Steinhardt, Paul Christiano, John Schulman, Dan Mané (2016). The classic framing of distributional shift as a safety problem.
- Goal Misgeneralization in Deep Reinforcement Learning, Lauro Langosco et al. (2022). The first empirical demonstrations, including CoinRun.
- WILDS: A Benchmark of in-the-Wild Distribution Shifts, Pang Wei Koh et al. (2021). How large real-world shifts hurt standard models.
Related approaches
- Mesa-optimisation (inner vs outer objective) learned goals inside the model
- Calibration and honest expression of uncertainty knowing when a model is out of its depth
- Weak-to-strong generalisation generalising beyond the supervisor
- Monitoring training runs for reward hacking proxy goals that look right in training
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).