# Shortcut Learning in Deep Neural Networks

Deep networks often learn shortcuts that fail under harder test conditions

Robert Geirhos, Jörn-Henrik Jacobsen, Claudio Michaelis, Richard Zemel, Wieland Brendel, Matthias Bethge and 1 more · arXiv · 2020-4-16

- **Problem** Deep networks pass standard tests but break when conditions shift, because they exploit shortcuts. Standard i.i.d. testing gives no warning, since shortcuts and intended rules agree on the test data.
- **Method** The authors unify these failures under shortcut learning. They sort decision rules into a taxonomy by adding constraints until only the intended rule remains.
- **Results** The authors show that i.i.d. test accuracy cannot separate a shortcut rule from the intended one.

## Why shortcuts threaten deep learning

Deep neural networks now match human accuracy on object classification and beat top players in several games. Yet a small change, or a different background, can derail their predictions. The authors argue that many of these failures share one cause, which they call shortcut learning. A shortcut is a decision rule that scores well on standard benchmarks but breaks under harder test conditions, such as real-world use.

A cow classifier can look flawless while treating grass as the real signal for cow. Such a shortcut fails as soon as a cow appears somewhere outside the usual grassland. The pneumonia case follows the same pattern, because the model recognised hospital systems rather than lungs and broke on scans from new hospitals. Because the shortcut and the intended signal agree on the test data, accuracy alone gives no warning.

The machine learning literature already has names for this effect, such as covariate shift, dataset bias and the Clever Hans effect. Biology and education show comparable cases. Rats that seemed to discriminate colours were in fact using the smell of the paint. Students who memorise answers can also score well on multiple-choice exams.

## A toy problem separates the possible decision rules

The key idea is to train a network where location and category are correlated, then test on data where that correlation is broken. A standard fully connected network with three layers learns to read location, although humans would read shape. Shape is the intended rule, and humans typically classify by it.

The taxonomy starts from every possible decision rule and adds constraints until only the intended rule remains. A rule that predicts star whenever a white pixel appears is a non-solution, since moons also contain white pixels. A rule that fits the training images but fails on i.i.d. test images uses overfitting features. Rules that pass the i.i.d.

test can still be shortcuts, and the toy problem admits at least three of them: shape, white-pixel count and location.

On i.i.d. test images the network performs well, so standard testing gives no hint of the problem. When location is controlled for, performance falls to random guessing. An o.o.d. test with randomised object size would instantly invalidate the pixel-count rule, yet the i.i.d. test cannot separate the three rules. The authors note that a convolutional network would be blocked from this shortcut by design.

## Where shortcuts come from

The paper traces shortcuts to two sources: shortcut opportunities in the dataset, and the decision rule the learner picks from them. A dataset offers a shortcut when a background reliably goes with a label, as grass does with cows. Such correlations are natural, which makes them hard to remove. Scaling up the data does not remove them, because large datasets still carry systematic biases.

Discriminative learning picks any feature that separates the training data, without a model of what realistic objects look like. DNNs rely strongly on texture and largely ignore global object shape.

Standard DNNs label certain abstract patterns as guitars with high certainty. The paper's point is that these failures reflect generalisation in an unintended direction, not an absence of generalisation. Adversarial examples can be read as an extreme case, where tiny changes hit the patterns the model uses.

BERT learned that the word not was enough to beat chance on an argument task. That success came without understanding the argument, which is the shortcut pattern again. Reward hacking is the agent-based version, where systems exploit loopholes in a reward function. A hiring tool inferred gender from indirect signals, even after applicant names were removed.

## Testing for shortcuts instead of trusting i.i.d. scores

The authors argue that a dataset is useful only as a proxy for the ability it is meant to measure. ImageNet was meant to measure object recognition, but DNNs seem to rely on counting texture patches. The authors propose Morgan's Canon for machine learning: never explain a result by a high-level ability when a simpler shortcut can account for it.

Morgan developed the original guideline in 1903.

Testing strong baselines is one check, since a baseline that avoids the intended features but still scores high points to a shortcut. Examples include nearest-neighbour methods and answering movie questions without showing the movie. The authors note that the i.i.d. assumption is rarely justified in real-world settings. Education offers an analogy, since essay questions discourage surface learning better than multiple-choice tests.

The authors set three conditions for a good o.o.d. test: a clear distribution shift, a well-defined intended solution, and a test most current models struggle with. The Winograd Schema Challenge shows why tests must evolve, since it later contained more shortcuts than intended. Box I lists examples such as ImageNet-C, which corrupts standard test images in 15 distinct ways.

These examples come from other work, and this paper does not report new results for them.

## Why some shortcuts are easier to learn

Linguistics offers an analogy, the Principle of Least Effort, which says speakers try to minimise the effort of communication. Effort in this analogy depends on more than word length, since anatomy and previous experience also shape language change. For learners, ease depends on the whole setup, not only on the data.

The paper lists four components that set the inductive bias of a model and dataset: structure, experience, goal and learning. Experience is the training data, and blocking specific shortcuts in the training data has reduced adversarial vulnerability and texture bias. Goal is the loss function, and cross-entropy encourages networks to stop once a simple predictor is found.

Learning is the optimiser, and stochastic gradient descent biases networks towards simple functions.

Taken together, these four components decide how easy each solution is to learn.

## Approaches that reach beyond shortcuts

Domain-specific priors and data augmentation can discourage shortcut features. Auto-augment is named as a general form of this strategy.

Adversarial robustness connects to counterfactual explanations, since an adversarial example is the smallest change that alters an output. In robotics, domain randomisation sets simulation parameters at random during training to help transfer to the real world. Disentanglement aims at recovering the true generating factors of the data.

The conclusion offers four recommendations: connect the dots, interpret results carefully, test o.o.d. generalisation, and understand what makes a solution easy to learn. The authors argue that o.o.d. tests should become the rule rather than the exception.

## Limitations

The examples are biased towards Computer Vision, the field where examples are easiest to show. The toy network is the only experiment this excerpt describes.

The evidence for the wider claims comes from cited studies in vision, language, reinforcement learning and fairness. Whether one standard o.o.d. test can replace i.i.d. testing is left open. The authors also leave open how far shortcut learning can be overcome, since overcoming it in its entirety may be impossible.

## Paper info

- **Authors**: Robert Geirhos, Jörn-Henrik Jacobsen, Claudio Michaelis, Richard Zemel, Wieland Brendel, Matthias Bethge, Felix A. Wichmann
- **Venue**: arXiv · Preprint
- **First published**: 2020-4-16
- **Added**: 2026-11-12
- **Updated**: 2023-11-21
- **Version**: v5
- **arXiv**: 2004.07780
- **DOI**: 10.1038/s42256-020-00257-z
- **Category**: cs.CV · cs.AI · cs.LG · q-bio.NC
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/2004.07780v5) · [PDF ↗](https://arxiv.org/pdf/2004.07780v5)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Robert Geirhos, Jörn-Henrik Jacobsen, Claudio Michaelis, Richard Zemel, Wieland Brendel, Matthias Bethge, Felix A. Wichmann (2020). Shortcut Learning in Deep Neural Networks. arXiv:2004.07780v5. https://doi.org/10.1038/s42256-020-00257-z

**BibTeX**

```
@article{geirhos2020shortcut,
  title = {{Shortcut Learning in Deep Neural Networks}},
  author = {Robert Geirhos and Jörn-Henrik Jacobsen and Claudio Michaelis and Richard Zemel and Wieland Brendel and Matthias Bethge and Felix A. Wichmann},
  year = {2020},
  eprint = {2004.07780},
  archivePrefix = {arXiv},
  doi = {10.1038/s42256-020-00257-z},
  url = {https://arxiv.org/abs/2004.07780v5}
}
```

## Other paper commentary

- [Barren plateaus in quantum neural network training landscapes](https://refivu.com/en/papers/6ab9d494-e0b9-4bee-b003-0d509557c07c-barren-plateaus-in-quantum-neural-network-training.md)
- [Predicting Depth, Surface Normals and Semantic Labels with a Common Multi-Scale Convolutional Architecture](https://refivu.com/en/papers/e513ebec-7ee7-41d2-bb2e-ed519797b97d-predicting-depth-surface-normals-and-semantic-labels-with.md)
- [KAN: Kolmogorov-Arnold Networks](https://refivu.com/en/papers/6f4194fb-1ce0-4686-96f9-6fc10958db2e-kan-kolmogorov-arnold-networks.md)
- [Network In Network](https://refivu.com/en/papers/27c629ee-aa61-4496-8fca-b1dbef86d705-network-in-network.md)
- [Self-Attention with Relative Position Representations](https://refivu.com/en/papers/9457d4e9-5650-4947-91f7-51a786a383f6-self-attention-with-relative-position-representations.md)
- [Deep Laplacian Pyramid Networks for Fast and Accurate Super-Resolution](https://refivu.com/en/papers/640b6f7c-566c-4cc7-a351-edc07a5183c8-deep-laplacian-pyramid-networks-for-fast-and-accurate.md)
- [BLOOM: A 176B-Parameter Open-Access Multilingual Language Model](https://refivu.com/en/papers/e5a30d68-220d-4a9f-9cf2-26d76639a605-bloom-a-176b-parameter-open-access-multilingual-language.md)
- [Teaching Machines to Read and Comprehend](https://refivu.com/en/papers/c971169f-9440-4e65-a62d-d8affa24f16a-teaching-machines-to-read-and-comprehend.md)
- [Robust Physical-World Attacks on Deep Learning Models](https://refivu.com/en/papers/07947804-f6f2-481e-a0c5-1e222ca2e06f-robust-physical-world-attacks-on-deep-learning-models.md)
- [Speed/accuracy trade-offs for modern convolutional object detectors](https://refivu.com/en/papers/d59f0ced-71a6-4425-a177-e2e9ad7b8370-speed-accuracy-trade-offs-for-modern-convolutional-object.md)
- [Building Machines That Learn and Think Like People](https://refivu.com/en/papers/1c62e17f-b645-4165-8400-ffcbcd4abc96-building-machines-that-learn-and-think-like-people.md)
- [EnlightenGAN: Deep Light Enhancement without Paired Supervision](https://refivu.com/en/papers/1b24a8a7-0c9f-4dc7-b6db-20e08b8a1feb-enlightengan-deep-light-enhancement-without-paired.md)

## Terms in this paper

- [ImageNet](https://refivu.com/en/terms/5eadad128667-imagenet)
- [BERT](https://refivu.com/en/terms/45b639a1d317-bert)
- [adversarial examples](https://refivu.com/en/terms/277fed423ea7-adversarial-examples)
- [ImageNet-C](https://refivu.com/en/terms/9254adbcaa14-imagenet-c)
- [Reward Hacking](https://refivu.com/en/terms/2413bbf555b3-reward-hacking)
- [inductive bias](https://refivu.com/en/terms/04507a4f00d4-inductive-bias)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/429eb10d-b6ea-4d00-b18e-0509b85a5062-shortcut-learning-in-deep-neural-networks)
