Skip to the workspace
Pebellslearn by building
AI Safety and Ethics  ›  Lesson

Bias and Fairness

Bias and Fairness 12 minModels learn patterns, including unfair ones, from their training data, so an AI feature must be tested for unequal treatment and kept away from decisions it should not make alone.

ai engineer / Bias and Fairness

Explore each scene at your own pace.

01 · The rule

The rule

Bias and Fairness

Pedal Point lets the assistant suggest whether to allow a return a few days past the deadline. A staff member notices something odd: requests written in formal English seem to get "yes" more often than requests with spelling mistakes, though the facts are the same. Nobody programmed that. The model learned it.

The rule

Models inherit patterns from their data; test for unequal treatment.

A language model learns from enormous amounts of human writing, and human writing contains stereotypes and unequal patterns. The model can reproduce them in ways that are hard to spot in any single answer:

  • treating people differently based on names, dialect or spelling
  • assuming a person's gender, age or background from small clues
  • giving more thorough help to some kinds of questions than others

Bias matters most when the model's output affects people: approving exceptions, ranking applicants, flagging accounts. For a bike-size recommendation it is a quality issue; for decisions about people it is a fairness issue, and it may also be a legal one depending on where you operate.

Practical steps:

  • Leave out what the decision does not need. If names and addresses are not in the input, they cannot sway the output.
  • Write the rule down. "Allow exceptions up to 7 days late for unused items" gives the model something better to follow than its instincts.
  • Measure, don't guess. Test many cases and compare outcome rates between groups.
  • Keep people in charge of decisions with real consequences. The model can suggest; a person or a fixed rule decides.
Scene 1 of 5
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.