Lesson 3 of 13 in this unit
Catch a model taking a shortcut.
Change the background, keep the shape, and investigate what a perfect score was hiding.
By the end: Design a label-preserving intervention that distinguishes an intended signal from a shortcut.
Prerequisites and path options
Why learn this? Catch models that rely on backgrounds or other accidental clues before those clues change in use.
Start with something concrete.
Every triangle in a practice set has a gold background, and every square has a blue background. Two rules score perfectly: read the shape, or just read the color. A score alone cannot tell you which rule a system uses.
Try the interactive modelWe swap every background while leaving each shape unchanged. Which rule should retain its score?
Change one thing. Watch what follows.
Loading this browser experiment…
Understand what changed.
A shorter explanation, with the original worked examples available below. Both explain the same experiment and its limits.
The idea in everyday terms
Imagine that every picture of one shape has the same background. A rule that reads the background and a rule that reads the shape can both get all the familiar examples right. Their scores do not reveal which clue they use.
What to watch in the experiment
Change the background while preserving the shape and its correct label. If the background rule fails, the comparison exposes its dependence on that clue. This is a controlled change: you are asking what happens when one possible shortcut stops working.
What this does not establish
The lab compares supplied rules with access to known scene fields. It does not train a vision model. A changed example must preserve the actual task label before its result can support a shortcut claim.
Open the full worked examples, calculations and limitations
This is the same reference used in Technical mode. Expand it whenever you need the exact numbers, assumptions or further explanation.
A perfect score can hide two explanations
In the original eight examples, shape and background always move together. A rule reading only the background and a rule reading only the shape both score 100%. The data does not distinguish them. A learned system can favor an easy signal if that signal reduces its training loss.
The lab makes the two rules explicit so you can inspect the logic. The shape rule receives the known shape field from our simulated scene; it is not a neural vision model that has solved arbitrary images. The background rule reads only the background field. Their scores demonstrate a problem with evidence, not a contest between trained architectures.
Real examples include an animal classifier using snow instead of anatomy, or a document classifier using a scanner watermark instead of the intended text. More training on the same correlation may reinforce the shortcut.
Change one thing while keeping the answer
Our intervention swaps the background fields named “gold” and “blue”. These original field names appear on the scenes; a display palette can change their appearance without changing the data or rule. The shape, size, and correct label stay the same. The background rule’s score falls from 100% to 0%; the shape rule keeps its score. Now the two explanations make different predictions, so the test can distinguish them.
This supports a precise conclusion: these two rules respond differently to this background intervention. It does not prove that a real image model is robust to lighting, occlusion, rotation, or unfamiliar shapes. Those claims need additional evidence.
Association is not the effect of an action
An association describes patterns in observations. An intervention deliberately changes something. Seeing that ice-cream sales and sunburn often rise together does not mean buying ice cream causes sunburn; hot sunny weather can influence both. A hidden common cause is called a confounder.
Likewise, observing a background alongside an animal is different from changing the background while holding the animal fixed. Observations alone may not reveal what an action would change. Causal conclusions require suitable assumptions, evidence, and often interventions. This toy scene gives us unusually direct control over which properties stay fixed.
Augmentation has to preserve the intended label
Data augmentation can vary background, brightness, or other irrelevant features so that a model cannot depend on one narrow correlation. But the label-preserving assumption matters. Rotating a 6 can make it look like a 9; changing word order can reverse a sentence’s meaning.
Use varied training examples and separate evaluation examples. Do not choose augmentations solely because they improve the same test set you plan to report. For the module challenge, transfer the idea to sentiment analysis: change the website name without changing the review’s meaning, then compare predictions.
A sentiment classifier often sees positive reviews from website A and negative reviews from website B. Which test best probes a website-name shortcut?
Take this idea with you.
Useful interventions separate competing explanations. A robust score under one controlled change supports a limited claim; it does not prove a complete causal understanding.
Explore related topics and the topic map
How this topic connects
Explore this topic on the interactive mapUse these connections to review a foundation or choose where to go next. You can open any topic without completing the others.
What it builds on
- Generalization
Avoid choosing a model that memorizes examples but fails on new ones.
Change the background, keep the shape, and investigate what a perfect score was hiding.
What it enables
- Perception project Apply in a project
Use controlled changes to expose shortcut failures in the perception project’s stress tests.