AI Explained

Home › AI Safety & Ethics

How Bias Enters AI Systems and How to Reduce It

Learn where bias in machine learning comes from, including data, labels and proxies, and which checks help teams measure and reduce it.

2026-10-19 · 5 min read

Bias in an AI system means that its errors or outcomes differ in harmful ways across groups of people. It is one of the most documented problems in applied machine learning. Bias does not usually come from a single bad line of code. It enters through the data, the labels, the choice of target and the way results are measured, and it can persist even when the developers intended fairness.

This post explains the main sources of bias, a well-known case study, and the practical checks that help.

Two meanings of bias

In statistics, bias describes a systematic error in an estimate. A model that always predicts slightly too high has a statistical bias. In ethics and law, bias describes unfair treatment of people, often based on protected characteristics such as race, sex or age. The two meanings overlap. A model with a statistical error that falls mainly on one group can produce unfair outcomes even if its average accuracy looks good.

When people discuss AI bias, they usually mean the second sense, though the causes often appear as the first.

Bias in the training data

A model learns patterns from examples, so its behavior reflects the examples it saw. If a dataset contains fewer images of one group, the model has less practice with that group, and its errors tend to be higher. This is called sampling bias or representation bias.

Historical data adds another layer. If past hiring decisions favored one group, a model trained on those decisions may learn the same preference, even if the protected characteristic is removed from the input. Other features, such as schools, zip codes or career gaps, can act as proxies that carry the same information.

Bias in labels and targets

Supervised learning depends on labels, and labels are made by people or by earlier systems. If annotators apply a category inconsistently, the model learns the inconsistency. If a label reflects a biased past judgment, such as a recorded arrest instead of an actual offense, the model learns that bias as if it were ground truth.

Choosing the target also matters. A system that predicts healthcare cost as a stand-in for healthcare need can underestimate the needs of groups that historically received less care, because they spent less money on it. The target looked neutral, but it encoded unequal access.

A well-known measurement example

In 2018, researchers Joy Buolamwini and Timnit Gebru published the Gender Shades study. They tested commercial gender classification systems from several companies on a benchmark balanced across skin tone and gender. The reported error rates for darker-skinned women reached 34.7 percent in the worst case, while error rates for lighter-skinned men were 0.8 percent or lower. The gap showed up because the benchmarks used to evaluate and improve the systems were dominated by lighter-skinned faces.

The study had a clear lesson. Average accuracy hides group differences. A system that scores well overall can fail badly on a subgroup that was rare in its test set. After the publication, several companies updated their systems and released new results.

A comparison of bias sources

Source What goes wrong Example check
Sampling Some groups are underrepresented Count examples per group
Historical Past decisions are learned as truth Compare outcomes with a fair baseline
Label Annotators disagree or reflect past bias Measure inter-annotator agreement
Proxy A neutral-looking feature carries a protected attribute Test correlation with protected groups
Target The goal measures access, not need Ask what the target really represents
Measurement Evaluation sets do not match the population Report results for each group

Each source needs its own check. No single fix addresses all of them.

Fairness metrics can conflict

Teams often want a single fairness number, but several common definitions cannot all be satisfied at once when base rates differ between groups. Researchers including Kleinberg, Mullainathan and Raghavan, and separately Chouldechova, showed in 2016 and 2017 that certain sensible criteria, such as equal error rates and equal predictive values, cannot hold together unless the groups have identical base rates or the predictions are perfect.

This does not mean fairness is impossible. It means teams must choose which harm matters most in their setting and justify that choice. A medical screening tool and a loan approval tool may need different tradeoffs, and both choices should be written down.

Practical steps that help

Several steps reduce bias in practice, and they work best together.

Start with the data. Document where examples came from, who is represented, and what is missing. Datasheets and model cards are common formats for this.

Evaluate by group. Report accuracy, false positive rates and false negative rates for each relevant subgroup, not just overall. Include subgroups that are small in the training data so their results are visible.

Test with people affected by the system. Domain experts and community members often notice problems that a technical team misses, such as a question that is phrased in a way that confuses one group.

Plan for monitoring. Bias can appear after deployment when users, data or environments change. Track outcomes over time and set thresholds that trigger review.

Keep a human path for appeal. Users who are harmed by a decision need a way to contest it, and the organization needs a way to learn from those cases.

What bias mitigation cannot do

Technical methods such as reweighting data, adjusting thresholds and adding fairness constraints can improve results, but they do not remove the underlying social conditions that shape the data. They also trade off against overall accuracy in some cases. The most honest framing is that these methods reduce measurable disparities that a team has chosen to care about, under stated assumptions.

Why group-level reporting is hard in practice

Reporting results for every group sounds simple, but small samples make it difficult. A subgroup with only 40 test examples produces error rates that can swing by many percentage points from one random sample to the next, so a large apparent gap may be noise. Teams should report confidence intervals along with point estimates and avoid drawing firm conclusions from tiny groups until more data is collected.

Intersectional groups make the problem worse. Results for one attribute at a time can look acceptable while a combination, such as one age range and one region, performs much worse. Auditing these combinations requires enough data for each one, which can conflict with privacy goals. Collecting sensitive attributes for auditing is itself a tradeoff, and teams should document how those attributes are stored, who can access them, and why they are needed.

Key takeaways

Bias in AI systems enters through sampling, historical data, labels, proxy features, target choices and measurement. It can appear even when protected characteristics are removed, because other features can carry the same information. The Gender Shades study showed that overall accuracy can hide large subgroup gaps.

Reducing bias starts with documenting data, evaluating every relevant group, involving affected people, monitoring after launch and providing a way to appeal. Fairness definitions can conflict, so each team must choose and justify the tradeoff for its own use case.

More in AI Safety & Ethics

Safety

What Is AI Alignment and Why It Matters

Understand AI alignment, the problem of getting AI systems to pursue the goals people actually intend, and the main approaches researchers use.

5 min read