ONE IDEA / DAY← Archive
100 DAYS OF AGI · DAY 19 · 24 OCT 2026

Why can AI pass a test and still fail in the real world?

A model can ace the examples it was tested on—and still stumble when the world changes.

generalisationdistribution shift
THE IDEA

Machine learning models learn patterns from training data and are evaluated on test data. Good test performance is useful evidence, but it is not a guarantee of real-world reliability. If deployment data differs from training data—a distribution shift—the patterns a model relied on may no longer work. A model trained on clear daytime road images, for example, may struggle with fog, glare or an unfamiliar camera.

WHY IT MATTERS

Benchmarks compress a complicated ability into a score. Real users bring new environments, edge cases and behaviours that a test set may not represent. Teams need to ask not only 'How well did it score?' but also 'Who and what is missing from the evaluation, and how will we notice when conditions change?'

TRY THIS

Imagine a plant-disease classifier tested mostly on bright photos of healthy-looking leaves. List three ways real user photos might differ. Design a small stress test for lighting, backgrounds, camera quality and unfamiliar plant varieties. Decide what evidence would make you pause deployment rather than simply report the average accuracy.

WHERE IT BREAKS

You cannot anticipate every shift in advance, and adding more test cases does not guarantee coverage. Monitoring can also miss failures when labels arrive late or affected users are underrepresented. Evaluation needs to be repeated as the system and its environment evolve.

TAKEAWAY

A strong test score is evidence about the test—not a promise about every real-world situation.

BEFORE YOU READ

A model performs well in testing but poorly after a new camera is installed. What should you investigate first?

A. Whether the deployment data differs from the test data

B. Whether the test score was above 90%

Answer: A. Correct. The camera may change colour, lighting or image characteristics, creating a distribution shift that the original test did not cover.

A high score alone cannot explain the failure. Compare real deployment examples with the evaluation data and test for systematic differences.

GO DEEPER