AI on the Internet

Bias in AI Systems

Where unfair patterns in AI come from, how to measure them with a worked example, why fairness goals can clash, and what to ask.

Key takeaways

  • Models learn from data that reflects past behavior and uneven representation, so they can reproduce and amplify those patterns.
  • Removing a sensitive field such as gender rarely solves the problem, because other details can stand in for it.
  • Testing results separately for different groups reveals gaps that a single accuracy number hides.
  • Common fairness measures can conflict, so someone has to decide which errors matter most and say so.
  • People affected by automated decisions need notice, a way to challenge them and a human who can change the outcome.

An AI system is biased, in the sense that matters here, when it produces systematically worse or unfair results for some people than for others without a good justification. A speech recognizer may stumble over certain accents. A screening tool may rank down applicants whose work history looks unlike past hires. A chatbot may assume a doctor is a man.

Bias usually isn't a single bug you can delete. It enters through the data, the goal chosen, the way the system is tested and the way people use it. You can find and reduce it, though doing so involves choices about what "fair" should mean.

What bias means here

Statisticians use "bias" for any systematic error. In public discussion it usually means unfair treatment linked to characteristics such as race, sex, age, disability, language or place. The two overlap but aren't identical. A system can be accurate on average and still fail one group badly.

Context decides how serious it is. A playlist that misjudges your taste is annoying. A tool that influences who gets a loan, a job interview, medical attention or police scrutiny can change lives.

Where it gets in

Entry points for bias
1 Framing the goal A convenient proxy replaces what you really care about. 2 Collecting data Some groups are missing, rare or recorded differently. 3 Labeling Human judgments carry their own assumptions. 4 Training Optimizing the average can sacrifice small groups. 5 Testing One overall score hides uneven error. 6 Deployment New users and over-trusting staff change the effect. Framing the goal A convenient proxy replaces what you really care about. 1 Collecting data Some groups are missing, rare or recorded differently. 2 Labeling Human judgments carry their own assumptions. 3 Training Optimizing the average can sacrifice small groups. 4 Testing One overall score hides uneven error. 5 Deployment New users and over-trusting staff change the effect. 6

The goal. Suppose a company wants "good employees" but trains on who was promoted. If promotions were uneven, the model learns the unevenness. Measuring need by past spending has a similar flaw: people who had less access spent less, which isn't the same as needing less.

The data. Text collected from the web carries the stereotypes in the text. Image sets may show far more of some people, places and customs than others. See where chatbots learn from.

Proxies. Deleting a sensitive column doesn't delete its traces. A postal code, school, name, gap in employment or writing style can correlate with it closely.

Feedback loops. If a system sends more inspections to one area, more violations are recorded there, which seems to confirm the choice. Ranking and recommendation systems can loop the same way.

Bias in chatbots and image generators

Generative systems show bias in subtler ways. Ask for a story about an engineer and a nurse and look at who gets which role. Ask an image tool for a "successful person" and look at the variety. Models may handle widely written languages far better than others, or judge a dialect as less professional.

Developers adjust models after training to reduce these patterns. Adjustment can help, and it can also overcorrect, refusing reasonable requests or inserting variety where historical accuracy was needed. Both are failures of fit between the output and the request.

Measuring it: a worked example

An overall score can hide a lot. Consider an invented screening tool tested on two groups. The numbers below are made up to show the method.

Example: qualified applicants wrongly rejected
Group A 8percent Group B 22percent Group A 8percent Group B 22percent

Hypothetical example: the numbers are made up to show the method, not a quote or an average.

Imagine the tool is correct for most applicants overall. Yet a qualified person in group B is far more likely to be turned away than a qualified person in group A. Only a breakdown by group shows this.

Useful measures include:

  • Selection rate: what share of each group gets the favorable outcome?
  • False negative rate: among those who deserved it, what share was refused?
  • False positive rate: among those who didn't, what share was approved or flagged?
  • Calibration: does a given score mean the same likelihood for each group?

Look at combinations too. A system may seem fine by sex and by age separately and fail older women in particular. Small groups produce noisy estimates, so report the sample sizes.

Why fairness goals can clash

It would be convenient to demand that every measure be equal at once. Mathematical results show that when groups differ in how often the outcome occurs in the data, a score generally can't be calibrated for each group and also have equal false positive and false negative rates, except in special cases such as perfect prediction.

So choices follow. In a medical screening, missing a sick patient may be the worst error. In a fraud flag that freezes accounts, wrongly accusing someone may matter more. These are judgments about values, and they should be made openly by people accountable for them, ideally with input from those affected.

Approach What it changes Limitation
Better data collection Representation and label quality Slow, and may raise privacy concerns
Adjusting training How errors are weighted Can trade accuracy among groups
Changing thresholds Decision cutoffs Legality of group-specific rules varies
Human review Final judgment Reviewers can defer to the machine or add their own bias
Not automating Removes the model The old process may be biased too

A hypothetical from start to finish

Say a clinic network wants software to decide which patients get a follow-up call. It trains a model on past records to predict who will use the most care next year, and calls those people first.

On overall accuracy the model looks good. Then someone breaks results down by neighborhood. Patients from areas with poor transport are rarely selected, even when their test results suggest they're quite unwell. The records show little past care for them, largely because getting to appointments was hard. The model learned who used care, not who needed it.

Several repairs are possible. The team could change the target to a measure closer to need, such as specific health indicators. It could add a rule that certain results always trigger a call. It could check selection rates and missed cases by neighborhood every quarter. And it could ask nurses and patients whether the list matches what they see.

Each repair has costs. Health indicators may also be missing for people who rarely visit. More calls need more staff. The point of the exercise is that the first version's flaw was invisible in its headline score and fairly obvious once someone asked who was being left out and why.

Questions to put to a vendor

If you're buying a system instead of building one, you still carry much of the responsibility. Ask:

  • What exactly does the score predict, and what data stood in for it?
  • Which groups was it tested on, with how many examples, and what were the error rates for each?
  • How different were those test users from yours?
  • What happens when information is missing or unusual?
  • Can you test it yourself on your own cases before relying on it?
  • How will you learn that the model has been changed?
  • What records let you explain a particular decision later?

Vague reassurance that a product is "fair" or "bias free" isn't evidence. A willing vendor can show breakdowns and describe known weaknesses. The habits used to check any claim apply to marketing claims too.

Keeping watch after launch

A system that passed its tests can drift. The population changes, staff learn to enter data in ways that please the score and upstream software is updated. Set a review date, track complaints and overrides, and compare outcomes across groups again. Decide in advance what size of gap would make you pause the system, because that decision is much harder to make once people depend on it.

What organizations should do

  1. Write down what the system decides and who could be harmed.
  2. Question the target variable. Is it the thing you care about, or a stand-in?
  3. Document where data came from and who is missing.
  4. Test by group before launch and on a schedule afterward.
  5. Try matched inputs that differ only in a name or a similar detail.
  6. Tell people automation is involved, give reasons and offer appeal.
  7. Assign an owner with authority to pause the system.

Laws on discrimination, data protection and consumer rights may already require some of this, and newer AI rules add more in places. See the main approaches to AI regulation. Collecting demographic data for testing has its own legal limits, so get advice.

What you can do as a user

Don't treat a confident answer as neutral. Rephrase a request with a different name or group and compare. Ask for sources and alternative viewpoints, and verify anything important, as in checking AI output.

If you think an automated system treated you unfairly, record what you submitted and what came back, ask whether automated tools were used, request human review and contact the relevant regulator, ombudsman, equality body or lawyer. Reporting the problem to the vendor helps others who may not notice it.

A note on explanations

Some tools offer reasons for their outputs. These can help, but an explanation produced after the fact may simplify or miss what actually drove the result. A chatbot asked why it said something will generate a plausible account that isn't a reliable readout of its internal process. Evidence from systematic testing is stronger than any single explanation.

Common questions

Can a model ever be completely unbiased?

Not in every sense at once. The realistic aim is to know the errors, reduce unjustified gaps, keep monitoring and refuse uses where the remaining risk is too high.

Are humans less biased than machines?

Humans have well-documented biases and are inconsistent. A model can be audited at scale, which is an advantage, and it can also apply the same flaw to everyone it touches. The comparison depends on how each process is designed and checked.

Does a larger training set fix it?

More data helps when it fills real gaps. More of the same skewed material mostly repeats the pattern with greater confidence.

Written for 4Internet with AI writing tools and not reviewed line by line by a person. Check anything you rely on with the maker, provider or standard concerned. Report an error.

Keep reading

All 45 articles in AI on the Internet →

Latest news on this topic