What is AI fairness?
AI fairness is the goal that an AI system does not unfairly discriminate against people or groups and that outcomes and errors are not unfairly distributed across groups, together with the methods for measuring and achieving it.
It differs from algorithmic bias as goal from problem: bias is systematic skew, while fairness is the aim of removing it. Fairness metrics are different mathematical definitions of this goal; they can conflict, so there is no single universal definition of fairness.
- Topic
- Responsible AI and governance
- Also known as
- Algorithmic fairness, fairness in AI
How AI fairness works
- A fairness definition suited to the context is chosen, such as demographic parity, equalised odds or equal opportunity (group fairness).
- Outcomes and error rates are measured separately for protected groups (bias audit).
- Where gaps appear, bias mitigation such as data rebalancing, training constraints or threshold adjustment is applied.
- Results and the reason for the chosen metric are documented; measurement is repeated as model and data change.
In more detail
Individual, counterfactual and intersectional fairness
Fairness approaches extend beyond group fairness to individual fairness (requiring that similar individuals receive similar outcomes regardless of group membership) and counterfactual fairness, which tests whether a decision would change if only a protected attribute (and its causal descendants) were altered. Relying solely on group averages can mask unfair treatment of specific individuals or overlapping subgroups.
Three-stage bias mitigation and the accuracy trade-off
Bias mitigation techniques are commonly grouped into three pipeline stages: pre-processing (reweighting or resampling training data), in-processing (adding fairness penalties or adversarial debiasing during training) and post-processing (adjusting group-specific decision thresholds after training). Each stage trades off differently between implementation cost, model retraining needs and predictive performance.
Fairness in generative models and representational harms
In generative AI and large language models, fairness is not limited to tabular classification scores; it includes representational harms such as occupational stereotyping, asymmetric refusal rates, toxicity disparities across demographic prompts and degraded accuracy in non-English or low-resource languages.
Commonly confused terms
| Term | How it differs |
|---|---|
| Algorithmic bias | Algorithmic bias is a systematic skew in data, model outputs or error rates across groups, whereas AI fairness is the normative and technical objective of preventing or mitigating unfair discrimination. |
| Individual fairness in AI | Group fairness measures statistical parity of outcomes or error rates across protected demographic groups, whereas individual fairness requires that two individuals with similar relevant features receive similar outcomes regardless of group membership. |
| Explainable AI | Explainability clarifies how or why a model reached a decision, whereas fairness evaluates whether those decisions and error distributions treat protected individuals or groups equitably; an explainable model can still be unfair. |
Why AI fairness matters for on-premises AI
In decisions affecting people, such as credit, insurance, hiring and health, fairness bears directly on reputation and on affected people's rights. Removing protected attributes from a model does not ensure fairness alone; proxies such as postcode can keep disparate impact alive. Measuring fairness often needs demographic data, which must be balanced against privacy. Running subgroup tests in-house lets sensitive data be checked without leaving the organisation.
An insurer measures outcome and error gaps across age and gender groups in its premium model; gaps found are fixed by updating the model and the rationale is documented.
Common questions
Does removing protected attributes ensure fairness?
No. The model can learn the same information from proxies such as postcode or occupation. Outcomes must be measured by group.
Is a single fairness metric enough?
Often not. Fairness metrics can conflict; the one suited to the context is chosen and the choice documented.
Related terms
- AI fairness metrics
- Algorithmic bias
- Group fairness in AI
- AI bias mitigation
- AI bias audit
- Disparate impact in AI
Sources
- Barocas, Hardt and Narayanan, Fairness and Machine Learning
- Hardt, Price and Srebro, Equality of Opportunity in Supervised Learning, 2016
- Mehrabi et al., A Survey on Bias and Fairness in Machine Learning, 2019
In the glossary: Glossary, E to L