Module 19 · Bias In, Bias Out

Why does a face filter work on some faces and not others?

Lesson 19.1 · Lopsided Data

Rosa · Owen

Trained on a pile of faces. Owen’s kind of face wasn’t in the pile.

Rosa finds out how the filter was trained: a big pile of photos, mostly of the same kind of face.

It got very good at those. It got no practice at all on faces like Owen’s.

A model can only learn what it’s shown, and nobody showed it Owen.

The short answer

Because it practiced on some faces and not others. The pile of training photos was lopsided, and the model’s skill is lopsided in exactly the same shape. Nobody chose that on purpose. Somebody didn’t check, which turns out to be enough.

Try it yourself

Choose how lopsided the training photos are, train a toy face detector, then test it on both groups equally.

What you just did has a name

Training data bias

When the examples a model learns from over-represent some people or cases and under-represent others, the model’s mistakes pile up on the under-represented ones.

The model isn’t choosing. It’s doing exactly what it was taught, and it was taught unevenly.

A few more things

It’s Module 6 with consequences

The lunch line survey got the wrong answer about lunch. A face model trained on a lunch-line sample of faces gets the wrong answer about people. Same mistake, sampling bias, different stakes.

Overall accuracy hides it

A model that’s 99 percent accurate on the majority group and 70 percent on a small minority group can report 97 percent overall. The number looks fine. The people it fails on are hidden inside the average.

Check the groups separately

The fix for the number is simple: report accuracy per group, not just overall. The fix for the model is more examples of the people it fails on. Both take deciding to look.

Go deeper

The longer version, if you want it.

Where lopsided data comes from

Rarely from malice. Usually from convenience: the photos that were easiest to collect, the users who signed up first, the records that were digitized, the language the engineers spoke. Each is a small tilt. Stack them and the training set describes a narrow slice of the world, and the model treats that slice as everyone.

This is why “more data” isn’t always the answer. Ten times more of the same kind of photo makes the model more confident about the same narrow slice. The question is more data of whom.

Quick check

A voice assistant was trained mostly on adult voices from one region. Who is it most likely to misunderstand?

Let’s take it slower

A model is a student who only studied the chapters it was handed. Give it ten chapters on one group and half a page on another, and it will ace the first group and stumble on the second. Not out of spite. It never got the reps. So when someone says a model is biased, the first question is what the pile of examples looked like: who filled it and who was barely in it. Wherever the pile was thin, expect the mistakes to be thick.

More examples

1

Translation app meets slang

A translation app trained on news articles and legal documents handles a formal letter perfectly and mangles a text full of slang. The slang wasn’t in the pile. The app isn’t bad at your language, it’s bad at the part of it nobody showed it.

2

The step tracker and the wheelchair

A fitness tracker counts steps because the people who tested it walked. A wheelchair user gets zero activity for a hard day of pushing. Nobody decided to leave them out. The test group did that by being who it was.

Back to the question

So why does the filter work on some faces and not others?

Show the answer

Because it practiced on some faces and not others. The pile of training photos was lopsided, and the model’s skill is lopsided in exactly the same shape. Nobody chose that on purpose. Somebody didn’t check, which turns out to be enough.

One last question

A face model is 97 percent accurate overall. Is it fair?

Talk Card

Talk Card · 19.1

Train a model on mostly one kind of example and it gets worse at everyone else. The overall accuracy looks fine. The people it fails on are hidden inside the average.

Data to AI · pettigrewlab.com/learn

Next lesson