Bias in AI starts long before the model
Most of it gets baked in before anyone writes a prompt, and the good news is you can usually see it coming.
By Adrian Davies · · 2 min read
I once gave a talk on bias in AI at an AWS meetup. Afterwards the same question kept coming up, again and again. Which model is the fair one?
It's a good question. I just think it's looking in the wrong place.
A model is a mirror
A model learns from whatever it's shown. Feed it a lopsided history and you get a lopsided model, only faster and more sure of itself. Any unfairness it has, it picked up from the data, and then it repeats it at scale.
Think of teaching someone to cook from one family's recipe book. They'll get very good at that family's food. Ask them for anything else and they'll guess.
The best known example is still one of the clearest. Amazon built an experimental tool to rank job applicants and trained it on ten years of CVs. It learned to mark people down for the word "women's", as in a women's chess club. The industry had hired mostly men, so the model decided men looked like good hires. Reuters reported in 2018 that the company had dropped it.
Faces tell the same story. The Gender Shades study, also from 2018, tested commercial facial analysis systems. Error rates were up to around 35 per cent for darker skinned women, and under 1 per cent for lighter skinned men. Nobody set out to build that. The photos the systems learned from just didn't look like the world.
Where it creeps in
- What you collect. Who's missing from the data? Who's in it, but only in one kind of situation?
- What you call success. If "good" means whatever happened in the past, the model learns old habits.
- Who tests it. A team that all looks and sounds the same will miss the same things.
- Where it's used. A model that's fine in one place can be unfair in another.
Average accuracy hides the people it fails.
Four questions before anything ships
- Who is this for, and who's missing from the data?
- What happens to someone when it gets it wrong?
- Can a human see the decision and overturn it?
- Are you checking the results for each group, as well as the average?
None of these need a data science degree. You need one person in the room who's willing to ask, and a team that's willing to wait for the answer.
The model is the last step
Choosing a model does matter. But by the time you get there, most of the decisions that make a system fair or unfair have already been made, by people, in spreadsheets and meeting rooms.
That's the bit that gives me hope, because it means you can design a lot of the bias out long before anything ships.
Start with the people, then the data, and pick the model last.