Lesson 1 of 6 Responsible AI Principles

Recognizing and Supporting Fairness in AI Systems

This lesson explains fairness, the principle that AI systems should treat all people fairly. It is usually the first principle Microsoft lists, and exam scenarios about unequal outcomes between groups of people test it.

Learning outcomes

After completing this lesson, you will be able to:

  • Explain what fairness means for an AI system.
  • Identify where bias in a model comes from, such as historical data and proxy features.
  • Identify the practices that support fairness throughout a system's life.

What fairness means

A fair AI system allocates opportunities, resources and quality of service equally to people in similar situations, regardless of characteristics such as gender, ethnicity, age, disability or religion. Fairness concerns arise wherever AI influences decisions about people: hiring, lending, insurance, healthcare, education and law enforcement are the classic examples.

Two kinds of unfairness are commonly described. Allocation harm occurs when a system distributes opportunities or resources unevenly, such as a recruitment model that ranks women's applications lower. Quality-of-service harm occurs when a system works less well for some groups, such as face or speech recognition that is less accurate for certain skin tones or accents. Generative AI adds a third concern: stereotyping, when generated text or images reinforce stereotypes about a group.

Sort into groups

Which kind of harm?

Exam skills 1.1.1

Identify the kind of unfairness each scenario describes.

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

Where bias comes from

Models learn patterns from data, including unwanted ones. Historical data can encode past discrimination; data can under-represent some groups; and seemingly neutral features can act as proxies for protected characteristics, as a postcode can stand in for ethnicity or income. Removing a sensitive column therefore does not guarantee a fair model.

The following diagram shows how each source of bias reaches the model's outcomes.

Where bias in a model comes from. Historical data can encode past discrimination, some groups can be under-represented in the data, and seemingly neutral features such as a postcode can act as proxies for protected characteristics. The model learns all of these patterns, so its outcomes can differ for similar people. Removing the sensitive column does not remove a proxy, so it does not guarantee a fair model.
A model reproduces the patterns in its data.

Supporting fairness

Fairness is supported throughout the system's life. Teams collect representative data, define which groups and outcomes matter, and measure performance separately for each group rather than relying on overall accuracy. They review features that could act as proxies, test generative output with prompts about different groups, and keep a person involved in consequential decisions. Monitoring after release detects bias introduced by new data or new users.

Select all that apply

Building a fairer screening model

Exam skills 1.1.1

Choose the measures that support fairness in a model that screens job applications.

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

Identifying a fairness issue

A bank's loan-approval model has 92% overall accuracy. An audit shows that applicants over 60 with similar income and credit history are approved half as often as younger applicants. Which responsible AI principle does this finding concern?

The issue is that similar people receive different outcomes because of age, which is an allocation harm and therefore fairness.

It is not primarily reliability and safety, because the model behaves consistently; it is not transparency, although explaining decisions would help the bank detect the problem; and it is not inclusiveness, which concerns whether people can access and use the system at all.

Check yourself

Does removing a sensitive attribute, such as gender, from the training data make a model fair?

Show answer

No. Other features can act as proxies for it, so quality must still be measured for each relevant group.

Exam Tips

Remember for the exam

  • Similar people receiving different outcomes is a fairness concern.
  • Measure quality for each relevant group, not only overall.
  • Removing a sensitive attribute does not remove proxies for it.