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.
| Source | Life cycle stage | Typical racial effect |
|---|---|---|
| Historical bias | Data collection | Past discrimination in lending or policing becomes the ground truth |
| Representation bias | Sampling | Darker skin tones underrepresented in image datasets |
| Measurement bias | Label definition | Health cost used as a proxy for health need |
| Proxy discrimination | Feature selection | ZIP code or surname stands in for race |
| Aggregation bias | Modeling | One model fitted to groups with different patterns |
| Deployment bias | Use in practice | A tool used on populations it was never tested on |
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.
| Domain | Observed disparity | Type of harm |
|---|---|---|
| Face analysis | Commercial gender classifiers erred far more on darker-skinned women than lighter-skinned men | Representational and allocative |
| Face recognition | Government testing found higher false match rates for several demographic groups, varying by algorithm | Allocative |
| Criminal risk scores | COMPAS showed higher false positive rates for Black defendants | Allocative |
| Health risk models | Cost-based scores underestimated illness among Black patients | Allocative |
| Generative models | Image and text output reproducing racial stereotypes | Representational |
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.
| Metric | What it compares | Typical use |
|---|---|---|
| Demographic parity | Rate of positive decisions per group | Screening and outreach |
| Disparate impact ratio | Selection rate of one group divided by another | Employment and the four-fifths rule |
| Equalized odds | True and false positive rates per group | Risk assessment and diagnosis |
| Predictive parity | Precision of positive predictions per group | Credit and fraud scoring |
| Calibration within groups | Whether a score means the same risk for each group | Probability-based decisions |
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.
| Stage | Example technique | Main limitation |
|---|---|---|
| Pre-processing | Reweighting or resampling underrepresented groups | Cannot fix a biased label |
| In-processing | Fairness constraints or adversarial debiasing | Can reduce overall accuracy |
| Post-processing | Group-specific decision thresholds | May conflict with anti-discrimination law |
| Data improvement | Collecting more representative samples | Slow and costly |
| Process controls | AI audit, impact assessment, human review | Depends on organizational follow-through |
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.