Ethics and bias · Read 8 min

What AI bias really is and where it comes from

A model is not born prejudiced: it inherits its bias from the data. Knowing where that bias comes from is the first step to keep from amplifying it.

Bias in artificial intelligence is a systematic tendency of the model to treat some cases better than others, not on the algorithm's whim, but because that is how the data it learned from was distributed. The machine holds no opinions and bears no grudges. It holds up a mirror. And that mirror, once you bring it years of human decisions, hands the human decisions right back: the good ones, the bad ones and the crooked ones.

Let me put it another way, because the word "bias" carries an air of accusation that does not help here. A model learns by imitating examples. If the examples lean to one side, the model learns that lean with the same obedience it uses to tell a cat from a dog. It does not know that one of those patterns is a useful fact and the other is an inherited prejudice. To the model, it is all pattern.

01 · the inheritanceWhat AI bias is and how it arises

An AI model is trained by showing it enormous quantities of examples: résumés, photos, texts, past decisions. From those it draws rules. The trouble starts when those examples do not describe the world as we would wish it to be, but as it was: with its imbalances already baked in.

Think of it as raising a child. A child who only sees the adults at home cook one way will assume that is how everyone cooks. He is neither foolish nor malicious: his sample of the world was simply small and particular. The model does the same, only with millions of examples and with no one to say "careful, what you saw is not the whole of reality".

The algorithm does not invent the prejudice. It inherits it, tidies it up and, if no one stops it, serves it faster.

That is why it is more honest to speak of data and human decisions than of "racist machines". Behind every bias there is a chain: someone gathered the data, someone decided what to measure, someone chose what counted as "success". The model is the last link, the one that runs at scale what the chain carried in from before.

Figura 1 · cómo un dato inclinado se vuelve una regla inclinada
Past data uneven split Model learns the pattern New decisions same lean, at scale
The imbalance does not appear inside the model: it enters with the data and comes out amplified in every new decision. The algorithm is faithful to the example it was given.

02 · the three sourcesWhere it comes from: not all bias lives in the data

It is convenient to think that "cleaning the data" is enough. If only. The United States standards institute, NIST, reviewed the problem and proposed looking at it in three layers, because bias slips in through more than one door [1].

Bias in the data (statistical or computational). The best known one. It happens when the sample does not represent everyone well: examples of one group are missing, another group is overrepresented, or the labels someone assigned came in crooked to begin with. Train a face reader almost entirely on light faces, and guess who it will get wrong most often.

Human bias. The mental shortcuts of those who build the system: which questions get asked, what they decide to measure, what they take as normal. Here the prejudice enters before a single data point exists, at the table where the design is drawn up.

Systemic bias. The most uncomfortable one. It lives in institutions and in history: if for decades a certain post was filled mostly by men, that pattern sits in the records even though no one wrote it down as a rule. The model finds it all the same.

Why "removing gender" is not enough

A common instinct is to delete the sensitive variable (gender, race) and believe the model is thereby blind to it. It does not work. The model reconstructs that variable from correlated clues: the name, the neighborhood, the sports club supported, the vocabulary of the text. Hiding the label does not erase the signal; it only conceals it.

03 · the mirror at workThree cases where the reflection was plain to see

Theory lands better with real scars. Three well documented cases show how a leaning data point turns into a decision that affects people.

Faces. In 2018, Joy Buolamwini and Timnit Gebru audited three commercial systems that classified gender from a photo. The result was a map of the bias: for light skinned men the error was barely 0.8 %; for dark skinned women it reached 34.7 % [2]. Same system, same task, forty times as many errors depending on who you were looking at. The cause was no evil algorithm: it was training sets in which that group scarcely appeared.

Résumés. From 2014 onward, Amazon built an internal tool that scored candidates from one to five stars. They trained it on ten years of résumés received, most of them from men. The model drew the wrong moral: it penalized signals associated with women, such as including the word "women's" or having studied at a women's college. The company ended up scrapping the project [3]. The system hated no one; it simply mimicked its own hiring history to the letter.

Justice. In 2016, ProPublica examined COMPAS, a piece of software that estimated the recidivism risk of defendants in the United States. Among those who did not reoffend, the tool had labeled as "high risk" 45 % of Black defendants against 24 % of white ones [4]. The case remains under methodological debate, but it opened a question that has not been settled: when a system decides on someone's freedom, what exactly does it mean for it to be "fair"?

Figura 2 · Gender Shades: the error was not even
Men, light skin Women, light skin Women, dark skin 0.8 % 7.1 % 34.7 %
Gender classification error rate by subgroup, three audited commercial systems. Source: Buolamwini & Gebru (2018) [2]. The average hid the problem; the breakdown revealed it.

04 · the first stepSeeing it is half the work

None of these systems set out to discriminate. That is the treacherous thing about algorithmic bias: it does not arrive with ill intent, it arrives with efficiency. It takes an inequality that already existed, encodes it into a rule and applies it to thousands of cases per second, without the uncomfortable pause that sometimes stops a person.

That is why the first step is not technical, it is a matter of looking. Before "fixing" a model you have to ask where its data came from, who was left out of the sample, what was defined as success and who defined that definition. A good team measures performance by subgroup, not only the average, because the average is precisely where bias hides in plain sight.

You cannot correct what you do not measure, and you do not measure what you would rather not look at.

Understanding that the model inherits rather than invents changes the whole conversation. It stops being "the machine is unfair" and becomes "these data, these decisions, this history produced this". It is hard news, because it hands responsibility back to us. And it is good news, for the same reason: if bias came in through human decisions, through human decisions it can also go out.

Sources

  1. Schwartz, R., Vassilev, A., Greene, K., Perine, L., Burt, A. & Hall, P. (2022). Towards a Standard for Identifying and Managing Bias in Artificial Intelligence. NIST Special Publication 1270. National Institute of Standards and Technology. nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.1270.pdf.
  2. Buolamwini, J. & Gebru, T. (2018). Gender Shades: Intersectional Accuracy Disparities in Commercial Gender Classification. Proceedings of the 1st Conference on Fairness, Accountability and Transparency, PMLR 81, pp. 77-91. proceedings.mlr.press/v81/buolamwini18a.html.
  3. Dastin, J. (2018). Amazon scraps secret AI recruiting tool that showed bias against women. Reuters, October 10, 2018.
  4. Angwin, J., Larson, J., Mattu, S. & Kirchner, L. (2016). Machine Bias. ProPublica, May 23, 2016. propublica.org/article/machine-bias-risk-assessments-in-criminal-sentencing.

Learn more about AI

See all Learn AI