Racial bias in AI

Also known as: racial bias in algorithms

On this page 8

Racial bias in AI is a systematic difference in error rates, scores or outcomes that an artificial intelligence system produces for people of different racial or ethnic groups, in ways that cannot be justified by the task itself. In AI ethics, the term covers both unequal performance, such as a face recognition model that misidentifies some groups more often, and unequal allocation, such as a risk model that steers resources away from one group.

Racial bias in algorithms rarely comes from an explicit rule. It usually emerges from data that encode past inequality, from proxy variables that correlate with race, and from design choices about labels, metrics and deployment. Because the harm is statistical, it often stays invisible until outcomes are measured by group.

How racial bias enters an AI system

Racial bias enters an AI system at every stage of the machine learning life cycle, not only at training time. The most common entry points are the historical record that supplies the data, the way the target label is defined, the composition of the training set and the context in which predictions are used.

The table below maps the main sources of bias to the stage where they arise and a typical racial effect. Several of these sources usually act together, which is why removing one cause rarely removes the disparity.

SourceLife cycle stageTypical racial effect
Historical biasData collectionPast discrimination in lending or policing becomes the ground truth
Representation biasSamplingDarker skin tones underrepresented in image datasets
Measurement biasLabel definitionHealth cost used as a proxy for health need
Proxy discriminationFeature selectionZIP code or surname stands in for race
Aggregation biasModelingOne model fitted to groups with different patterns
Deployment biasUse in practiceA tool used on populations it was never tested on
Sources of racial bias across the model life cycle

Label choice deserves particular attention. When a model predicts an observable proxy such as arrests, spending or past hiring decisions instead of the outcome of real interest, it learns the inequality built into the proxy. A well-known health care study found that an algorithm predicting future medical costs systematically underestimated the needs of Black patients, because less money had historically been spent on their care at the same level of illness.

Documented cases and the harms they illustrate

Documented cases of racial bias in AI fall into two families of harm. Allocative harm occurs when a system withholds or grants a resource, such as credit, bail, medical care or a job interview. Representational harm occurs when a system demeans, stereotypes or erases a group, for example through offensive image labels or skewed generative output.

The cases below are widely cited in research and policy because they were measured with disaggregated evaluation, meaning results were broken down by group instead of reported as a single average.

DomainObserved disparityType of harm
Face analysisCommercial gender classifiers erred far more on darker-skinned women than lighter-skinned menRepresentational and allocative
Face recognitionGovernment testing found higher false match rates for several demographic groups, varying by algorithmAllocative
Criminal risk scoresCOMPAS showed higher false positive rates for Black defendantsAllocative
Health risk modelsCost-based scores underestimated illness among Black patientsAllocative
Generative modelsImage and text output reproducing racial stereotypesRepresentational
Widely studied cases of racial bias

These examples share a pattern: overall accuracy looked acceptable, while the error burden fell unevenly. That pattern is the reason auditors insist on reporting per-group metrics rather than a headline accuracy figure.

Measuring racial bias with fairness metrics

Racial bias is measured by comparing a fairness metric across racial groups on held-out data. Each metric formalizes a different idea of equal treatment, and the choice of metric is a normative decision as much as a technical one.

MetricWhat it comparesTypical use
Demographic parityRate of positive decisions per groupScreening and outreach
Disparate impact ratioSelection rate of one group divided by anotherEmployment and the four-fifths rule
Equalized oddsTrue and false positive rates per groupRisk assessment and diagnosis
Predictive parityPrecision of positive predictions per groupCredit and fraud scoring
Calibration within groupsWhether a score means the same risk for each groupProbability-based decisions
Common fairness metrics applied to racial groups

The impossibility theorem of fairness shows that calibration and equal error rates cannot all hold at once when base rates differ between groups, except in degenerate cases. The COMPAS debate illustrated this: the tool was roughly calibrated across groups, yet its false positive rates differed sharply. Practitioners therefore have to state which notion of fairness a system is meant to satisfy and why.

Measurement also requires race data that are often missing or inferred. Inference methods based on name and geography introduce their own errors, and intersectional analysis, for example race combined with gender, quickly runs into small sample sizes and wide confidence intervals.

Why removing race from the data does not work

Deleting the race column, a strategy called fairness through unawareness, does not prevent racial bias. In most real datasets, race is strongly correlated with other features such as residential address, school attended, income history, language patterns or even purchase behavior, and a capable model reconstructs the missing information from these proxies.

Unawareness can also make matters worse. Without the protected attribute, teams cannot measure disparities and cannot apply corrections that depend on group membership. Many fairness researchers therefore recommend collecting race data under strict governance for auditing, while restricting its use as a direct decision input where law requires.

Mitigation methods and their trade-offs

Bias mitigation techniques act before, during or after training. None of them is a complete fix, and each involves a fairness-accuracy trade-off or a legal constraint that has to be assessed for the specific use.

StageExample techniqueMain limitation
Pre-processingReweighting or resampling underrepresented groupsCannot fix a biased label
In-processingFairness constraints or adversarial debiasingCan reduce overall accuracy
Post-processingGroup-specific decision thresholdsMay conflict with anti-discrimination law
Data improvementCollecting more representative samplesSlow and costly
Process controlsAI audit, impact assessment, human reviewDepends on organizational follow-through
Mitigation approaches for racial bias

Technical methods work best inside a governance process: an algorithmic impact assessment before deployment, documentation such as datasheets for datasets and model cards, ongoing monitoring by group after launch and a route for affected people to contest decisions. Regulations increasingly formalize these steps; the EU AI Act, for example, requires data governance and bias examination for high-risk systems.

Common misconceptions

  • Algorithms are neutral by default. A model reflects the data, labels and objectives chosen by people.
  • High accuracy means no bias. An aggregate figure can hide large gaps between groups.
  • Bias requires intent. Racial bias in AI is usually unintentional and structural.
  • One fairness metric settles the question. Different metrics can point in opposite directions.
  • A one-time audit is enough. Populations and data drift, so disparities can reappear after launch.

Explained without jargon

An AI system learns from examples. If those examples come from a world that treated some racial groups unfairly, the system learns the same unfairness. It does not need to know anyone’s race to do this. Clues like a home address can give it away.

Think of a scale that reads a little heavy for some people and correct for others. On average it looks fine. For some people, every reading is wrong. Checking results group by group is the only way to notice the problem and fix it.

A typical use case

A regional hospital network uses a model to choose patients for an extra care management program. Before renewal, its data science team runs a disaggregated audit. It finds that Black and white patients with the same risk score do not have the same health: at equal scores, Black patients have more chronic conditions on average.

The cause is the label. The model was trained to predict next-year medical spending, and historically less had been spent on Black patients with similar illness. The team retrains the model on a direct measure of health need, built from active chronic conditions and avoidable admissions, and compares error rates by group again.

After the change, the share of Black patients selected for the program rises noticeably and the gap in illness at equal scores largely closes. The hospital documents the change, adds quarterly monitoring by group and gives clinicians a way to refer patients the model overlooked.