Distributional robustness
Distributional robustness is the ability of an AI model to keep performing well when the data it meets in use is distributed differently from its training data, including on minority groups within that data.
Standard training assumes that the data a model will see in use looks like the data it learned from, and minimises its average error on that training data. Real deployments break the assumption: a medical model meets a new hospital's scanners, a camera model meets a new location, a language model meets new slang. The property described here is about how gracefully performance holds up when that happens.
Even small shifts hurt. In 2019 Benjamin Recht and colleagues rebuilt test sets for two standard image benchmarks, CIFAR-10 and ImageNet, following the original collection process as closely as they could. Across many models, accuracy fell by 3 to 15 percentage points on CIFAR-10 and 11 to 14 points on ImageNet. They traced the drop not to overfitting the old test sets but to the models struggling with images that were only slightly harder. The WILDS benchmark, released in December 2020, collected 10 datasets with real shifts, such as tumour identification across hospitals and wildlife monitoring across camera traps, and found that models did substantially worse out of distribution, a gap that existing methods did not close.
One response is distributionally robust optimisation, or DRO. Instead of minimising average loss on the training data, it minimises the worst-case expected loss over a set of plausible test distributions. A widely cited 2019 paper by Shiori Sagawa, Pang Wei Koh, Tatsunori Hashimoto and Percy Liang applied group DRO to neural networks: divide the training data into predefined groups, for example by known spurious patterns, and minimise the loss on the worst group. In their Waterbirds example, most water birds in training appear on water and most land birds on land, so a model can cheat by looking at the background; group DRO makes it pay for failing on water birds photographed on land. Applied naively it did not help, but with stronger regularisation than usual it raised worst-group accuracy by 10 to 40 percentage points while keeping average accuracy high.
The practical lesson is that average accuracy hides failures. A model that is right 95 per cent of the time overall can be wrong far more often for a particular group or setting. Testing on deliberately shifted data and on each subgroup, then monitoring for drift after deployment, is how teams find out before users do.
Models learn whatever patterns help on their training data, including shortcuts that do not hold elsewhere, such as using an image's background to identify a bird. When the data in use differs, those shortcuts break. Studies have found accuracy drops of more than 10 percentage points from shifts that look minor to people. It is a training approach that minimises a model's worst-case expected loss over a set of possible test distributions, instead of its average loss on the training data. Group DRO, a common version, minimises the loss on the worst-performing of several predefined groups. Closely. When groups are defined by demographics, minimising worst-group error means not letting a model trade poor performance on a minority for good average accuracy. The same methods serve both reliability and fairness goals. Evaluate it on data from settings it was not trained on, such as a different site, time period or population, and report results for each subgroup, not only the average. Benchmarks such as WILDS provide ready-made shifted test sets for research.Common questions
Why do AI models fail on new data?
What is distributionally robust optimisation?
How is this related to fairness?
How can I test whether a model handles distribution shift?
Search for "distribution shift benchmark", "group DRO", "WILDS benchmark" or "out-of-distribution generalisation". Machine learning conference papers on arXiv are the primary sources, and benchmark websites publish current leaderboards. Be cautious with vendor claims that a model generalises well unless they report results on data from outside the training distribution.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.