Lesson 2 of 4 Enterprise AI Risk Management

Bias Across the AI Lifecycle

Bias in AI is often treated as a data problem, but it can enter at every stage of the lifecycle. This lesson explains where bias comes from and why fairness must be monitored continuously.

Learning outcomes

After completing this lesson, you will be able to:

  • Identify where bias can enter across the AI lifecycle.
  • Explain how fairness is measured and why bias drift requires ongoing monitoring.
  • Match bias mitigations to each stage of the lifecycle.
  • Describe bias in generative AI and how counterfactual prompts reveal it.

Where bias can enter

Bias in AI refers to systematic errors that produce unfair outcomes for some groups. The following steps trace where it can enter across the lifecycle.

  1. Problem framing

    Choosing a target that encodes past inequity, such as predicting "successful employees" from historical promotions.

  2. Data collection

    Under-representing groups, or collecting data in ways that differ between groups.

  3. Labelling

    Inconsistent or prejudiced human labels, such as subjective ratings.

  4. Model design and evaluation

    Optimising only overall accuracy, which can hide poor performance for minority groups.

  5. Deployment

    Using a model for a population or purpose it was not designed for.

  6. Feedback loops

    The model's decisions shape future data, reinforcing its patterns, such as fewer loans to an area leading to less repayment data from it.

The following diagram traces the entry points described above, including the feedback loop.

Where bias can enter the AI lifecycle: problem framing that encodes past inequity, data collection that under-represents groups, inconsistent or prejudiced labelling, evaluation on overall accuracy only, deployment to a population or purpose the model was not designed for, and feedback loops in which the model's decisions shape the data it later learns from.
Bias can enter long before training and keep growing after launch, which is why it is checked at every stage.
Match the pairs

Where bias enters

Exam skills 3.3.2

Match each example with the lifecycle stage where bias entered.

Log in to try this activity Interactive activities are free with an account.

Measuring fairness

Fairness is assessed by comparing outcomes and error rates across groups, such as approval rates, false positive rates or accuracy. Different fairness definitions can conflict, so the organisation must choose which matter for the use case, with legal and ethical input. For ML models, tools such as Amazon SageMaker Clarify measure bias in data and predictions. For generative AI, evaluation sets with varied names, dialects and contexts reveal whether outputs differ inappropriately between groups.

Mitigating bias at each stage

Because bias can enter at every stage, mitigation also happens at every stage. The following table pairs each entry point with typical mitigations.

StageTypical mitigation
Problem framingQuestion whether the target reflects past inequity; involve affected stakeholders in defining success
Data collectionCheck representation of relevant groups; collect additional data where groups are under-represented
LabellingUse clear guidelines, diverse labellers and agreement checks
Model design and evaluationEvaluate performance and errors by group, not only overall
DeploymentConfirm that the population and purpose match those the model was built for
Feedback loopsMonitor outcomes over time and test decisions that the model would not normally make

Bias in generative AI

Generative models learn from very large bodies of text and images that reflect society's stereotypes, so they can reproduce them: describing professions with gendered language, depicting some groups in stereotyped roles, or giving lower-quality answers in some languages and dialects. These are often representational harms, affecting how groups are portrayed, rather than decisions about individuals.

A practical test is the counterfactual prompt: the same request is submitted with only a name, gender, age or dialect changed, and the outputs are compared. Differences that are not justified by the request reveal bias. Mitigations include prompt instructions, guardrails, human review of public content and choosing models whose providers document their bias testing.

True or false

Bias in generative AI

Exam skills 3.3.2 · 3.3.3

Check four statements about bias in generative models.

Log in to try this activity Interactive activities are free with an account.

Bias drift

A model that was fair at launch can become unfair. Bias drift occurs when the population, behaviour or data changes, for example when a new customer segment arrives that was under-represented in training, or when a feedback loop gradually amplifies a small disparity. Fairness must therefore be monitored in production, with metrics measured by group at regular intervals, thresholds that trigger review, and retraining or redesign when needed.

Fairness through unawareness

Removing protected attributes such as gender or ethnicity from the data does not remove bias. Other features, such as postcode, name or employment history, can act as proxies.

Scenario questions

Fair at launch, unfair later

Exam skills 3.3.2

Practise recognising and responding to bias drift.

Log in to try this activity Interactive activities are free with an account.
Worked example

A fair launch that drifts

A bank's credit model passed fairness testing before launch. Two years later, the bank expanded into a new region with a younger population and different employment patterns. Complaints suggest approval rates for younger applicants are now much lower than for comparable older applicants. What happened and what should the bank do?

This is bias drift: the new population differs from the training data, so a model that was fair at launch now disadvantages a group. The bank should measure approval and error rates by age group in the new region, investigate which features drive the disparity, retrain with representative data or adjust the model, and add ongoing fairness monitoring with thresholds, so that future drift is detected before complaints arise.

Worked example

A job advertisement generator

A recruitment team uses a generative model to draft job advertisements. A review finds that advertisements for engineering roles use language associated with men, such as "dominant" and "competitive", while those for administrative roles use language associated with women. Applications from under-represented groups have fallen. What should the team do?

The model is reproducing stereotypes from its training data, and because job advertisements influence who applies, the bias affects access to employment. The team should test drafts systematically, for example by generating advertisements for many roles and checking the language used; add instructions and an approved style guide for inclusive wording; require human review against the guide before publication; and monitor the diversity of applicants. Because recruitment is a high-risk area, the use should also be recorded and classified in the AI inventory.

Check yourself

Does removing gender from a hiring model's data remove gender bias?

Show answer

No. Other features can act as proxies, so outcomes must still be measured by group.

Exam Tips

Remember for the exam

  • Bias can enter at problem framing, data collection, labelling, design, deployment and through feedback loops.
  • Removing protected attributes does not remove bias; proxies remain.
  • Fairness at launch is not enough: monitor for bias drift by group in production.
  • Mitigate bias at every stage, from problem framing to feedback loops.
  • Generative AI can reproduce stereotypes; test with counterfactual prompts that change only one attribute.