Find a course

Module 2: Bias and FairnessLesson 5 of 1112 min

Reducing Bias in Practice

Apply practical methods to reduce bias before, during and after model training, include affected people, and keep meaningful human oversight.

Step 1 of 12Learn

There is no single fix

Once a team finds a fairness problem, the natural question is "how do we fix it?" There's no single button, but there is a well-established toolkit. Techniques are usually grouped by when they're applied.

Before training (pre-processing): fix the data and framing.

  • Reframe the target. The biggest win in the health algorithm case came from predicting a better measure of health need, such as number of active chronic conditions, instead of cost.
  • Improve representation. Collect more data from underrepresented groups, ideally in partnership with those communities, rather than just copying existing examples.
  • Check labels. Audit how labels were created, use multiple diverse labelers, and write clear labeling guidelines.
  • Examine features for proxies. Test whether features like ZIP code or school name strongly predict protected characteristics, and decide whether they are justified.
  • Reweight or resample so that groups are balanced in training.

These changes address causes rather than symptoms, so they are often the most durable fixes. They also require domain knowledge: understanding why costs differed between groups took health expertise, not just data science.

Step 2 of 12Practice · Choose one

In the health algorithm case, which change addressed the root cause of the bias?

Step 3 of 12Learn

During and after training

During training (in-processing): build fairness into the model. Developers can add fairness constraints so the model optimizes accuracy while keeping a chosen fairness measure, such as the gap in true positive rates, within a limit. Open-source toolkits offer ready-made methods. The trade-off is often a small loss of overall accuracy in exchange for a large gain in fairness; studies frequently find the accuracy cost smaller than teams expect.

After training (post-processing): adjust how outputs are used. For example, decision thresholds can be set so that error rates are more similar across groups. This is quick but has limits: it doesn't fix the underlying model, and in some legal contexts, such as US employment, using different thresholds explicitly by protected group can itself be unlawful. Legal advice matters here.

Testing and evaluation. Whatever the method, measure results:

  • Break performance down by group and by intersections of groups, such as older women or young men of a particular ethnicity. Gender Shades found the largest errors at the intersection of skin tone and gender.
  • Test on data that reflects the real deployment population.
  • Use red teaming and scenario testing to probe how the system behaves on unusual or adversarial inputs.

Monitoring after launch. Populations, behavior and data pipelines change. A model that was fair at launch can drift. Schedule regular fairness checks and investigate complaints as signals, not noise.

Step 4 of 12Chart

Fairness constraint: small accuracy cost, big gap reduction

Fairness constraint: small accuracy cost, big gap reductionLine chart with 4 categories: None: Overall accuracy 90%, Gap in approval rates between groups 20%; Light: Overall accuracy 89.7%, Gap in approval rates between groups 11%; Medium: Overall accuracy 89.1%, Gap in approval rates between groups 5%; Strong: Overall accuracy 87.5%, Gap in approval rates between groups 2%.0%20%40%60%80%100%NoneLightMediumStrongStrength of fairness constraint
Illustrative pattern; real trade-offs depend on the data and the measure chosen.
Fairness constraint: small accuracy cost, big gap reduction
Strength of fairness constraintOverall accuracyGap in approval rates between groups
None90%20%
Light89.7%11%
Medium89.1%5%
Strong87.5%2%

Step 5 of 12Practice · Sort into groups

Classify each technique by when it is applied.

Tap an item, then tap its group (or drag it there).

Step 6 of 12Practice · Diagram

Where bias fixes plug in

Where did the biggest fix in the health algorithm case happen?

Tap the shape that answers the question, then press Check.

Where bias fixes plug inProcess diagram: Before training → During training → After training → In use.BeforetrainingDuringtrainingAftertrainingIn use
Before training

Reframe the target, improve representation, audit labels, reweight.

During training

Fairness constraints or penalties in the objective.

After training

Adjust thresholds, add human review for borderline cases.

In use

Monitor by group, handle appeals, retrain as data shifts.

Step 7 of 12Learn

Involve the people affected

Technical fixes can't answer the most important questions: Which errors matter most? Is this system acceptable at all? What does "fair" mean here? Those questions need input from the people who will live with the results.

Participatory design brings affected communities, frontline workers and domain experts into the process early: during problem framing, not just at the end for feedback. Tenants can say what a fair screening process looks like; caseworkers know how a benefits system will be used under time pressure; patients know which errors they'd find unacceptable.

Diverse teams help, too. Teams with varied backgrounds are more likely to notice that a face dataset lacks darker skin tones or that a voice assistant struggles with certain accents. Diversity isn't a substitute for systematic testing, but it widens the set of questions people think to ask.

Contestability turns individual experience into a correction mechanism. People affected by an automated decision should be able to:

  1. know that an automated system was involved;
  2. get a meaningful explanation of the main reasons;
  3. challenge the decision and have a human review it;
  4. get errors corrected, with the correction feeding back into the system.

In several of the public sector failures you studied, families and students struggled precisely because these four steps didn't exist or didn't work.

Step 8 of 12Practice · Diagram

How much say do affected people get?

A community panel helps choose which fairness measure a benefits system uses. Which level is that closest to?

Tap the shape that answers the question, then press Check.

How much say do affected people get?Scale: Inform, Consult, Involve, Collaborate, Empower.11.522.533.544.551Inform2Consult3Involve4Collaborate5Empower
Adapted from the widely used IAP2 spectrum of public participation.
Inform

Tell people a system exists.

Consult

Ask for feedback on a near-final design.

Involve

Work with them throughout so concerns shape decisions.

Collaborate

Share decisions, such as which errors matter most.

Empower

They decide, including whether the system is used at all.

Step 9 of 12Practice · Put in order

Order the steps a person should be able to take to contest an automated decision.

Drag the items, or use the arrow buttons, to put them in order.

  1. Get a meaningful explanation of the main reasons
  2. Learn that an automated system was involved
  3. Challenge the decision and have a human review it
  4. Get errors corrected, with fixes fed back into the system

Step 10 of 12Note

Step 11 of 12Practice · Select all that apply

A company finds its customer service AI routes calls from some regions to slower queues. Which steps are part of a sound response? Select all that apply.

Select all that apply.

Step 12 of 12Practice · True or false

Adding a fairness constraint during training usually makes a model completely useless because it destroys accuracy.