In this lesson: why an AI learns the gaps in its examples as well as the pattern, why more of the same doesn't fix it but variety does, and where unfairness in AI comes from.
1. Red things only
We gave an AI another sorting puzzle, with plain box names that give no clue. "Box A: a red apple, a strawberry, a cherry, a red grape. Box B: a green pepper, a lettuce, a cucumber, a green leaf. Use only these examples, not what you already know. Which box does a green apple go in?"
Before you read on: which box would you bet on, and why?
Its first word (DeepSeek, October 2026) was "Box A". Then it said it was sorting by colour, so a green apple must go in Box B. It noticed the two answers didn't match and settled on Box B: "all red things are in Box A, all green things are in Box B."
So it bet on colour, but only after going both ways. Why both ways? Look at the examples again.
It bet on colour, after going both ways
2. It learns the gaps too
Every fruit was red and every vegetable was green. So two rules fit perfectly, as in the snack puzzle in the last lesson: "fruit or vegetable" (as we sort them in the kitchen) and "red or green". Nothing in the examples could tell the AI which one was meant, so when it met a green apple it had to bet.
That isn't a silly mistake. An AI learns whatever is in its examples, including the gaps. If the examples share something you didn't mean, such as a colour, it can learn that instead. (This chat model didn't change and wasn't retrained: it just read our examples in one message. An AI that learns from examples picks up their gaps in the same way, only much more.)
Two rules fit, so it has to bet
3. The fix is variety, not just more
Then we added to the boxes. Box A also got a green grape, a banana and a lime; Box B got a red pepper, a red onion and a carrot. Same question. This time it said Box A, because "Box A holds fruits, Box B holds vegetables."
Here is a fix that sounds sensible and is wrong: "Add 100 more red apples so it learns what an apple is." How would you catch it? Ask whether the new examples split the two rules apart. 100 more red fruits don't; they make "red means Box A" look even more certain. What worked was a handful of examples that break the accidental pattern: green fruit, and red things that aren't fruit.
Good examples:
- Cover the range: different colours, sizes and shapes in each box.
- Break the accidental pattern: if everything in one box shares something you don't care about, add one that doesn't.
- Test on new things: ones that weren't in the examples.
Rule 3 is how you check a fix worked. A sorter (an AI that puts things into boxes) can get the examples it was shown right just by remembering them, so only new things show what it learned. Before you trust a sorter, give it a few things it has never seen, such as a green pear and a red radish. If it puts the pear in Box A and the radish in Box B, it most likely learned the real rule; the more such tests it passes, the surer you can be. If it sorts them by colour, the gap is still there. Your apps work the same way: in a project, the agent ends each reply with what it checked; you check too, on new cases you didn't build it from.
Break the pattern, don't add more of it
4. Ask what's missing before you train
You can find gaps before they cause trouble, and an AI can help. Say you want to teach a sorter "bag" or "not a bag" from photos, and your examples are 5 black school backpacks and 5 lunch boxes. Ask: "What accidental patterns could it learn instead of the real one, and which 4 examples should I add to stop that?"
A good answer points out that it might learn "black means bag", or "only backpacks are bags", and suggests a red backpack, a black shoulder bag, a black lunch box and a green cloth bag. You still choose the examples. The AI just helps you see what's missing.
Ask what it could learn by accident
5. Where unfairness comes from
Imagine a sorter for "good at PE" trained only on photos of the school football team. It might learn that good at PE means wearing a football shirt, and miss the best swimmer in your class.
When an AI treats some people unfairly, that's called bias. One common cause is one-sided examples, as here; another is examples that copy unfair choices people made before. You may hear "a computer only does maths, so it can't be unfair." The maths isn't mean, but it copies the examples faithfully, gaps and all. Fair maths plus one-sided examples gives a one-sided result.
So whenever someone makes a sorter for your school, say "who should join the debate club", ask who was easy to collect examples of, and who is missing from that pile. If the examples are last year's members, ask too whether the people who picked them were fair. The people missing from the examples are the ones it is likely to get wrong. The biggest AIs work the same way. They learn from huge piles of text and pictures from the internet, so they are often weaker in languages with less text online, and an image maker asked for "a doctor" may draw mostly one kind of person.
Measure it yourself in Bias Meter, step Swap one word.
Missing from the examples, judged wrong