Topic 1 of 5 · 3 min read
Sources of bias in model outputs
Goal: Trace a biased output back to its likely source: training data, labels or post-training.
AI bias is not one mistake in one place: skewed training data, human labelling choices and post-training preferences each push a model's answers in a direction, and you can often guess which one by looking at the pattern.
Check yourself · 1 of 3
A chatbot writes stories where every doctor is a man and every nurse is a woman. Which source fits this pattern best?
Why it matters
If you know where a bias likely came from, you know what can be fixed and what cannot. You cannot edit the internet. You can change a prompt, add a review step or pick another tool. NIST, the US standards agency, groups AI bias into three kinds: statistical (how data and models are built), human (the habits of the people involved) and systemic (the unequal world the data comes from). All three are at work in one chatbot.
The three main sources
- Training data. A model learns from huge amounts of text and images written by people. Those people are not a fair sample of the world. Some languages, countries, ages and viewpoints are over-represented. Old stereotypes sit in the text too. A well-known 2016 study found that word associations learned from news text linked "programmer" with men and "homemaker" with women. The model did not choose this. It copied what it read.
- Labels and choices. People decide what to collect, what to filter out and how to label examples. A rater who marks one dialect as "unprofessional" teaches the model that rule. Even a benchmark can be skewed: the Gender Shades audit found that two popular face datasets were over 79 percent lighter-skinned faces, and three commercial systems made far more errors on darker-skinned women than on lighter-skinned men.
- Post-training preferences. After pre-training, companies tune a model with human feedback so it sounds helpful and polite. Raters tend to share a background and a set of tastes, so the model can lean toward their view of a good answer. Safety tuning can also overcorrect and refuse or hedge more on some topics or groups than others.
How to trace a biased output
Ask three questions. Is the pattern about who appears in the world, as in "the nurse is always she"? That points to data. Is it about how one group is described or judged? That points to labels. Is it a smooth, cautious, one-sided tone on a hot topic? That points to post-training.
Before and after
Before: "The model is biased, so it is broken and useless."
After: "The model defaults to male names for engineers, which matches its training text. I will name the people in my prompt and check the result."
The second reading leads to an action.
What goes wrong
- People blame the user's prompt alone, when the default came from the data.
- People assume more data fixes it. Bigger data can copy more of the same skew.
- People assume a newer model has no bias. Every model has some. Newer ones just show it in different places.
Examples
Two patterns, two sources
Pattern 1: Asked for a short story about a surgeon, the model writes "he" nine times out of ten. This is a data pattern: surgeons in its text were mostly men.
Pattern 2: Asked to review a cover letter written in a regional dialect, the model calls it "informal and unpolished" while praising the same content in standard English. This looks like a label pattern: raters tied one style to quality.
The fixes differ. For the first, name the surgeon in your prompt. For the second, state the criteria (clear, accurate, relevant) and tell the model to ignore dialect.
A face-analysis audit
The Gender Shades team did not test one average score. They split results by skin type and gender. The overall numbers looked fine, but the worst group had error rates up to 34.7 percent while the best group had 0.8 percent. The data behind the benchmarks had few darker-skinned faces. One average hid the gap.
Key points
- NIST sorts AI bias into statistical, human and systemic sources, and a real chatbot shows all three.
- Training data over-represents some groups and carries old stereotypes, and the model copies both.
- Human choices about what to collect, filter and label add their own skew.
- Post-training on rater feedback can tilt tone and answers toward the raters' tastes.
- Knowing the source tells you what you can fix: prompts and review steps, not the training set.
Common mistakes
- Blaming only the user's prompt, when the default comes from the data or tuning.
- Believing that more data always removes bias, when it can repeat the same skew at larger scale.
- Treating one fix, such as a single system prompt rule, as proof the source is gone.
- Assuming a newer or more expensive model is free of bias, instead of testing it.
Check yourself · 2 of 3
Which statement about the three sources of AI bias is true?
Check yourself · 3 of 3
A company says: "We trained on 10 times more text, so our model has no bias." What is the best reply?
Practice items, not counted towards your mastery.
Start here
- Towards a Standard for Identifying and Managing Bias in AI (NIST SP 1270) (opens in a new tab)PaperFree
NIST's plain split of AI bias into statistical, human and systemic sources.
- AI Risk Management Framework (NIST) (opens in a new tab)StandardFree
A widely used checklist for mapping, measuring and managing AI risks, bias included.
- Evaluating and mitigating discrimination in language model decisions (Anthropic) (opens in a new tab)ArticleFree
A worked swap test: change age, gender or race in a decision prompt and measure the gap.
More for this topic
- Man is to Computer Programmer as Woman is to Homemaker? (Bolukbasi et al.) (opens in a new tab)PaperFree
Shows how stereotypes in text data end up inside a model's learned word associations.
- Gender Shades (Buolamwini and Gebru, 2018) (opens in a new tab)PaperFree
The classic audit: error rates split by skin type and gender instead of one average.
Where to go in your country
- EU AI Act explorer (opens in a new tab)DocsFreeEU
Where to read the EU rules that treat AI in hiring and credit as high risk.