Ethics & Safety

AI Bias and Fairness Explained: Where It Comes From and How It's Fixed

Where AI bias comes from, US examples in facial recognition, hiring and health care, competing definitions of fairness, and how bias is measured and reduced.

A smiling man holds up a bright yellow sticky note with the letters A.I. handwritten on it, with blurred computer screens behind him
A smiling man holds up a bright yellow sticky note with the letters A.I. handwritten on it, with blurred computer screens behind him

AI bias means a system produces systematically worse outcomes for some groups of people than for others, in ways that are unjustified. It rarely comes from anyone deciding to discriminate. It usually comes from data that reflects past inequalities, goals that measure the wrong thing, or testing that never looked at how different groups fare. Understanding those mechanisms makes the topic much less abstract, and much more fixable.

Where bias comes from

1. Unrepresentative data

A model learns from examples. If some groups are underrepresented, it may perform worse for them. Facial analysis is the classic case: the 2018 Gender Shades study by researchers Joy Buolamwini and Timnit Gebru found that commercial gender classification systems had far higher error rates for darker-skinned women than for lighter-skinned men. A large 2019 evaluation by the National Institute of Standards and Technology also found demographic differences in error rates across many facial recognition algorithms, though the size of the gap varied widely between developers.

2. Historical bias in the data

Even complete, accurate data can encode past discrimination. A hiring model trained on who was hired in the past learns the preferences of past decision-makers. Reuters reported in 2018 that Amazon abandoned an experimental recruiting tool for this reason after it learned to downgrade résumés mentioning women's organizations.

3. The wrong target

Models optimize what they are told to optimize. A 2019 study published in Science examined a widely used US healthcare algorithm that predicted which patients needed extra care by using past healthcare spending as a stand-in for medical need. Because less money had historically been spent on Black patients with the same level of illness, the algorithm underestimated their needs. The data was accurate; the target was flawed.

4. Proxies

Removing sensitive attributes such as race or sex does not guarantee fairness. Zip codes, names, schools, shopping patterns and gaps in employment can all correlate with protected characteristics, so a model can rediscover them.

5. Feedback loops

When a model's outputs shape future data, bias can compound. If a system directs more scrutiny to certain neighborhoods or customers, it generates more records about them, which then reinforce the original pattern.

6. Deployment mismatch

A model tested in one setting can behave differently in another: a medical tool validated at one hospital system, a speech recognizer trained mostly on certain accents, or a language model used for a task it was never evaluated on.

Bias in generative AI

Chatbots and image generators raise their own issues. Image models may default to stereotypes when asked for "a doctor" or "a CEO." Language models can reflect stereotypes from internet text, respond differently depending on names or dialects in a prompt, or perform less well in languages other than English. Developers use filtering, fine-tuning and testing to reduce these patterns, but they are not fully solved, and corrections can overshoot in the other direction.

What does "fair" mean?

This is where the topic gets genuinely hard. Researchers have proposed many mathematical definitions of fairness, and several of them conflict.

Definition Plain-English meaning Example concern
Demographic parity Each group receives positive outcomes at similar rates May ignore real differences in qualifications
Equal opportunity Qualified people in each group are approved at similar rates Requires reliable labels of who was "qualified"
Equalized odds Similar true-positive and false-positive rates across groups Can reduce overall accuracy
Calibration A given score means the same risk regardless of group Can coexist with unequal error rates
Individual fairness Similar individuals are treated similarly Requires agreeing on what "similar" means

Researchers have shown that when groups have different underlying base rates, some of these criteria cannot all hold at once. Choosing between them is not purely technical. It is a values decision about which errors are most harmful in a given context, which is why affected communities, domain experts and lawyers belong in the conversation alongside engineers.

How bias is measured and reduced

Responsible teams treat fairness as an engineering requirement, not an afterthought. Common practices include:

  • Disaggregated testing: measuring accuracy and error rates separately for different groups, not just overall.
  • Better data: collecting more representative examples and documenting where datasets came from and what they lack.
  • Rethinking the target: checking whether the thing being predicted is a good proxy for what actually matters.
  • Mitigation techniques: reweighting training data, adjusting decision thresholds, or adding fairness constraints during training.
  • Human review for high-stakes decisions, with the authority to override.
  • Ongoing monitoring after deployment, since performance can drift.
  • Independent audits, which some jurisdictions require for certain uses, such as New York City's rules for automated hiring tools.

The National Institute of Standards and Technology's AI Risk Management Framework is a widely referenced voluntary guide that treats harmful bias as one of several risks organizations should map, measure and manage.

The legal backdrop

In the US, biased outcomes in areas like employment, credit, housing and insurance can violate existing civil rights and consumer protection laws regardless of whether software made the decision. Federal laws such as the Equal Credit Opportunity Act, the Fair Housing Act and Title VII apply, and state attorneys general can act under state law. Some states have added rules specific to automated decision-making, and the landscape continues to change.

Questions to ask before trusting a decision tool

Whether you are buying an AI product for an organization or simply evaluating one at work, a few questions reveal a lot about how seriously bias has been handled:

  1. What data was the system trained and tested on, and does it resemble the people it will be used on?
  2. Has performance been measured separately for different groups, and can the vendor share the results?
  3. What exactly does the model predict, and is that a good stand-in for the outcome that matters?
  4. Who reviews the decisions, and can a person override the system?
  5. How are errors reported and corrected after deployment?
  6. Has anyone independent audited it, and how recently?

Vague answers, or claims that a system is "bias-free," are a warning sign. Credible providers describe known limitations openly.

What you can do as an individual

  • Ask whether AI is involved in a decision that affects you, such as a loan, job application or insurance claim, and whether a human can review it.
  • Request explanations. For credit denials, US law requires lenders to give you the principal reasons, even when an algorithm is used.
  • Notice patterns in AI tools you use and report problems through the provider's feedback channels.
  • Contact regulators such as the Consumer Financial Protection Bureau, the Equal Employment Opportunity Commission or your state attorney general if you believe you were treated unfairly.

Bias in AI is a solvable engineering and governance problem more often than people think, but only when someone measures it. The most important question to ask about any system that makes decisions about people is simple: has anyone checked how it performs for everyone?

Frequently asked questions

Can AI ever be completely unbiased?

Not in an absolute sense. Every system reflects choices about data, goals and trade-offs, and some mathematical definitions of fairness cannot all be satisfied at once. The realistic goal is to measure disparities, reduce harmful ones, and be transparent about the trade-offs that remain.

Is biased AI illegal in the United States?

Biased outcomes can violate existing laws in areas such as employment, lending, housing and insurance, regardless of whether a human or an algorithm made the decision. Agencies and courts apply civil rights and consumer protection laws to automated systems, and some states have added AI-specific requirements.

Why does removing race or gender from the data not fix bias?

Other variables, such as zip code, school, purchase history or employment gaps, can act as proxies for protected characteristics. A model can learn the same pattern indirectly. Fixing bias usually requires measuring outcomes by group, which ironically needs the sensitive data.

Sources

  1. AI Risk Management Framework nist.gov

Topics