Skip to content
mentoor

Topic 1 of 5 · 4 min read

Where bias enters an AI system

Goal: Trace a biased outcome in a hiring or lending example to the stage where the bias entered.

Bias does not appear in one place. It enters at a particular stage of a system's life, and you fix it differently depending on which stage it came from.

Check yourself · 1 of 3

A lender removes the race column from its training data, but the model still approves fewer applicants from certain postcodes. What is the likely cause?

Choose one answer

Why it matters

When a hiring or lending tool treats groups differently, the first reaction is "the model is biased". That is too vague to act on. Retraining the same model on the same data repeats the problem. You need to find the stage.

The six entry points

  1. Historical data. The data records past decisions made by people. If a company hired mostly men for ten years, a model trained on "who got hired" learns to copy that, even if the data is accurate.
  2. Skewed samples. The data does not cover everyone the system will serve. A speech tool trained mostly on one accent makes more errors on others.
  3. Biased labels. The thing you call "ground truth" is itself a human judgement. "Good employee" labelled by manager ratings carries the managers' preferences. "Crime" labelled by arrests carries where police patrol.
  4. Proxy features. You remove gender or race from the inputs, but postcode, school name, or a gap in work history still predict it. The model uses the stand-in.
  5. Design choices. What the system is asked to optimise, which threshold it uses, and who was in the room when it was specified. Optimising for "likely to repay" is a choice about what counts as success.
  6. Feedback loops. The system's output changes the data it learns from next. If a tool sends more police to one area, more arrests there follow, and the next version sees more "evidence".

NIST groups these into statistical, human and systemic bias. The point for you: ask "at which stage?" before asking "how do we fix it?"

Before and after

Weak diagnosis: "Our loan model discriminates against applicants from the east side."

Better: "The model never sees race, but postcode is an input (proxy). Past approvals in the east side were low because of branch closures (historical data). Rejected applicants never get a repayment record, so the model cannot learn it was wrong (feedback loop)." Now each cause has a different fix: drop or test the proxy, review the history, and sample some rejected cases to learn from.

What goes wrong

  • Removing the sensitive column and declaring the system fair. Proxies fill the gap.
  • Blaming the algorithm when the labels are the problem. A better model learns the biased labels more accurately.
  • Fixing the data once and never looking again. Feedback loops re-create the gap after launch.

A language model adds one more route: it learned from a large body of human text, so it carries associations from that text before you add any data of your own.

Examples

A hiring model that never sees gender

A company trains a screening model on ten years of hires and removes the gender column.

Stage What happened
Historical data Past hires were mostly men, so "hired" rewards the same profile
Proxy feature Membership of a men's sports club and certain university names still predict gender
Biased label "Top performer" came from manager ratings that favoured the majority

Dropping the column fixed none of the three.

A loan model and a feedback loop

Applicants the model rejects never take a loan, so the next training run has no repayment record for them. The model only sees outcomes for people it approved, which confirms its own earlier choices. Fix: approve a small, reviewed sample of borderline cases so the data includes outcomes for people the model would have refused.

Key points

  • Bias can enter at the data, the labels, the features, the design or after launch, and each stage needs its own fix.
  • Removing a sensitive attribute does not remove bias when other inputs act as proxies for it.
  • Labels such as manager ratings or arrest records are human judgements, not neutral truth.
  • A feedback loop lets a system's own decisions create the evidence for its next version.
  • Naming the stage where bias entered is the first step of any mitigation.

Common mistakes

  • Treating a model that does not take race or gender as input as unbiased.
  • Assuming that more data fixes bias, when more of the same history repeats it.
  • Looking for bias only in the algorithm and not in the labels or the data collection.
  • Checking fairness once before launch and never again.

Check yourself · 2 of 3

A hiring model is trained on past 'top performer' ratings given by managers. Which stage of bias does this most directly risk?

Choose one answer

Check yourself · 3 of 3

A policing tool sends more patrols to District 4, which then records more arrests, which the next model version reads as proof District 4 needs more patrols. This is an example of what?

Choose one answer

Practice items, not counted towards your mastery.

Start here