# A Survey on Bias and Fairness in Machine Learning

Survey maps how bias enters data, algorithms and user feedback in AI

Ninareh Mehrabi, Fred Morstatter, Nripsuta Saxena, Kristina Lerman, Aram Galstyan · arXiv · 2019-8-23

- **Problem** Biased data and algorithm design can give unequal outcomes for particular groups. User choices logged as new training data can then amplify that bias over time.
- **Method** The survey places data, algorithms and users in one feedback loop where each bias can strengthen the next. It groups mitigation methods as pre-processing, in-processing and post-processing.
- **Results** Light-skinned subjects make up 79.6% of IJB-A and 86.2% of Adience.

## Where unfair outcomes come from

The running example is COMPAS, a risk score that United States courts use when deciding pretrial release, and an investigation found that it wrongly flags African-American offenders as likely to reoffend more often than Caucasian offenders. Similar failures appear elsewhere, such as a beauty-contest AI that disfavoured darker-skinned contestants and camera software that overpredicts Asians as blinking.

The survey's central move is to treat two sources of unfairness separately: bias carried in by the data, and bias produced by how algorithms are built, which can appear even when the data are clean.

Once a biased model is deployed, its outputs shape what users do, and those user choices are logged and fed back as new training data. A search ranking that places some results at the top draws more clicks to them, so those results look more popular and keep their place, and the cycle repeats. The survey therefore models data, algorithms and users as one loop in which each bias can strengthen the next.

## Bias types placed on the loop

The first group covers biases in data that machine learning training then picks up, and measurement bias is the first of these. It comes from the way features are selected and recorded, so a proxy can stand in poorly for the quantity the model is meant to capture. In COMPAS, prior arrests and arrests of friends and family served as proxies for riskiness, and minority communities are policed more often, so their arrest counts are higher.

The survey warns that a higher arrest count in these groups does not show that their members are more dangerous, because the way those groups are assessed and controlled differs.

Omitted variable bias appears when an important variable is left out of the model. Historical bias carries existing social inequality into the data even when sampling and feature selection are sound. A 2018 image search for women CEOs returned fewer female CEO images, which mirrors the fact that only 5% of Fortune 500 CEOs were women. The survey raises the question of whether a search algorithm should reproduce that reality at all.

Emergent bias appears after deployment, when population, cultural values or societal knowledge change and the system no longer fits its users.

## Skewed datasets and hidden subgroups

IJB-A and Adience are dominated by light-skinned subjects, at 79.6% and 86.2% respectively, which skews analysis for the underrepresented dark-skinned groups. The same skew would be invisible in a summary that only reports overall accuracy, because the majority group determines most of the score.

Splitting subjects only by male and female hides part of the problem. Widely used datasets can carry the same problem into every system built on them, and ImageNet and Open Images were reported to suffer from representation bias, with the authors calling for geographic diversity in their construction.

In medicine, skewed samples are more harmful, because the groups left out are the ones that already receive less accurate care. In a study of the 23andMe genotype dataset, 2,098 (87%) of 2,399 individuals who had shared their genotypes publicly were European, while only 58 (2%) were Asian and 50 (2%) were African. A study of UK Biobank reported a healthy volunteer selection bias, which means the sample may not represent the population it was drawn from.

## Explainable and unexplainable discrimination

A group difference is explainable when another attribute accounts for it, and such a difference is not treated as illegal discrimination. In the UCI Adult dataset, average income is higher for men, but women work fewer hours per week on average, so working hours account for much of the gap. Forcing equal average incomes by ignoring hours would push pay in the other direction and produce reverse discrimination against men.

The survey reports a method that quantifies explainable and illegal discrimination separately, both in the data and in a classifier's decisions.

Unexplainable discrimination is the case where no other attribute justifies a group's worse treatment, and it is therefore illegal. The same work presents local techniques that remove only the unexplainable part, leaving the explainable differences in decisions intact. These techniques act on the training data, so the data contain no unexplainable discrimination after the change.

## Three stages where mitigation can act

Mitigation methods are grouped by where they act: pre-processing, in-processing and post-processing. Pre-processing transforms the training data to remove the underlying discrimination, and it applies only when the training data may be changed. In-processing modifies the learning algorithm itself, either by changing the objective function or by adding a constraint during training.

Post-processing works on a holdout set after training and reassigns the labels of a black-box model, which is the only option when the model cannot be changed.

Debiasing has spread from general machine learning into natural language processing and deep learning, including fair representations and fair word embeddings. Disparate learning processes allow protected attributes during training but avoid them at prediction time, aiming at treatment and impact disparity. The protected attributes that matter for housing and credit decisions are listed in the Fair Housing and Equal Credit Opportunity Acts, which the survey tabulates.

Table 4 assigns the reviewed algorithms to these three groups, so readers can locate a method by its access requirement.

## Fair classification, regression and structured prediction

Several classification methods target subgroup fairness, equality of opportunity and equalized odds, and disparate treatment and impact. One multitask approach imposes fairness constraints and maximizes the average accuracy of each group instead of the overall accuracy, which helps minority groups. Preferential Sampling resamples the training data to make a discrimination-free set, and a classifier is then learned on that set.

A later method uses an attention mechanism for post-processing, which is also presented as providing interpretability.

For regression, the price of fairness (POF) measures the trade-off between accuracy and fairness, and the reviewed work introduces three fairness penalties. Individual fairness penalizes a model for treating two instances from different groups differently, with the penalty weighted by how far apart their labels are. Group fairness asks that, on average, the two groups have similar labels, and hybrid fairness treats positively and negatively labeled cross pairs similarly across the groups.

A separate regression study considers statistical parity and bounded group loss, and a decision tree approach covers disparate impact and treatment.

After training, the model amplified the skew, and man filled only 16% of cooking images. Fair PCA addresses the finding that vanilla PCA can exaggerate reconstruction error for one group, and it aims for similar representational richness across groups rather than indistinguishable representations.

## Gender bias across NLP pipelines

In word analogy tests, man was mapped to computer programmer and woman to homemaker, which led to a method that identifies a gender subspace and then debiases gender-neutral words. Hard debiasing neutralizes and equalizes words, while soft debiasing moves embeddings as little as possible while reducing bias, with a parameter controlling the trade-off.

GN-Glove tries to keep gender information in some dimensions while leaving the others free of it. A later argument holds that many word-embedding debiasing techniques hide bias rather than remove it. In ELMo, the training corpus has male entities nearly three times as common as female entities, and this skew carries into the contextualized embeddings.

The WinoBias benchmark measures gender bias in coreference resolution. The mitigation generates auxiliary data by swapping male and female entities, trains on the combined data, and uses debiased word2vec-style embeddings. Other work shows that three coreference systems resolve pronouns for many occupations in a gender-biased way.

A bias metric for language models compares the probability of a word under female-gendered and male-gendered words, and the language model adds a regularization term that reduces the projection of embeddings onto the gender subspace. Reducing bias came with a compromise on perplexity, and word-level metrics were reported as more effective than corpus-level metrics.

The SEAT measure adapts WEAT to sentence encoders, and BERT was found to be more immune to measured bias than the other encoders, although the authors do not claim it is bias-free.

In a translation example, friend should become the female form in Spanish whether the sentence says nurse or doctor, yet a doctor sentence produced the male form. Applying the existing embedding debiasing methods inside the machine translation pipeline reduced the bias and raised system performance by one BLEU score. In the Europarl dataset, male speakers produce 67.39% of sentences, and the authors tagged the speaker's gender on the English source side, which helped in most but not all cases.

Named entity recognition systems were found to tag female names as non-person entities, or not to tag them at all, more often than male names. Six evaluation metrics quantify these errors, with unweighted and frequency-weighted versions for each of three error types. The training data were also found to contain fewer versatile female names, which the survey links to the bias.

## Open problems and limits of the evidence

The comparisons in this survey are drawn from cited works and benchmark evaluations, not from new experiments run for the survey. The field is described as relatively new, and existing fairness methods are compared on benchmarks such as COMPAS, Adult and German.

Several definitions of fairness are disparate, so it is hard to tell how one solution would fare under another definition. Unifying these definitions is an open problem, and it would also help with incompatibility among current definitions. Equity, which gives each group the resources it needs to succeed, has received little attention compared with equality.

Searching for unfairness in a given dataset is only partly addressed, with detection of Simpson's paradox as one step in data bias.

## Paper info

- **Authors**: Ninareh Mehrabi, Fred Morstatter, Nripsuta Saxena, Kristina Lerman, Aram Galstyan
- **Venue**: arXiv · Preprint
- **First published**: 2019-8-23
- **Added**: 2026-11-11
- **Updated**: 2022-1-25
- **Version**: v3
- **arXiv**: 1908.09635
- **Category**: cs.LG
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1908.09635v3) · [PDF ↗](https://arxiv.org/pdf/1908.09635v3)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Ninareh Mehrabi, Fred Morstatter, Nripsuta Saxena, Kristina Lerman, Aram Galstyan (2019). A Survey on Bias and Fairness in Machine Learning. arXiv:1908.09635v3. https://arxiv.org/abs/1908.09635v3

**BibTeX**

```
@misc{mehrabi2019survey,
  title = {{A Survey on Bias and Fairness in Machine Learning}},
  author = {Ninareh Mehrabi and Fred Morstatter and Nripsuta Saxena and Kristina Lerman and Aram Galstyan},
  year = {2019},
  eprint = {1908.09635},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1908.09635v3}
}
```

## Related papers

- [Equality of Opportunity in Supervised Learning](https://refivu.com/en/papers/97e846bf-1b27-4e7b-934a-caa8326bd5e9-equality-of-opportunity-in-supervised-learning.md)
- [Explainable Artificial Intelligence (XAI): Concepts, Taxonomies, Opportunities and Challenges toward Responsible AI](https://refivu.com/en/papers/3f686a20-03db-4642-80bb-f85fafc1d04f-explainable-artificial-intelligence-xai-concepts-taxonomies.md)
- [The No-U-Turn Sampler: Adaptively Setting Path Lengths in Hamiltonian Monte Carlo](https://refivu.com/en/papers/e0f0ea3e-b264-41df-ace0-6689f5d123b5-the-no-u-turn-sampler-adaptively-setting-path.md)
- [Fair prediction with disparate impact: A study of bias in recidivism prediction instruments](https://refivu.com/en/papers/63f46b07-c8ea-4844-bd07-458032bf0b42-fair-prediction-with-disparate-impact-a-study-of.md)
- [AI Fairness 360: An Extensible Toolkit for Detecting, Understanding, and Mitigating Unwanted Algorithmic Bias](https://refivu.com/en/papers/2f8b2e40-a990-42ac-bf4e-2865e4425590-ai-fairness-360-an-extensible-toolkit-for-detecting.md)

## Other paper commentary

- [Artificial Intelligence: the global landscape of ethics guidelines](https://refivu.com/en/papers/d19d6be2-ce31-43ea-b84d-0b4bbe03543f-artificial-intelligence-the-global-landscape-of-ethics.md)
- [Towards A Rigorous Science of Interpretable Machine Learning](https://refivu.com/en/papers/584740f7-6441-4b76-a65b-06c10d825506-towards-a-rigorous-science-of-interpretable-machine-learning.md)
- [Stop Explaining Black Box Machine Learning Models for High Stakes Decisions and Use Interpretable Models Instead](https://refivu.com/en/papers/96d240ca-7c32-4f79-8167-c2beafc2a38f-stop-explaining-black-box-machine-learning-models-for.md)
- [UMAP: Uniform Manifold Approximation and Projection for Dimension Reduction](https://refivu.com/en/papers/44ccc549-6643-4369-889c-f60f3d61cbf4-umap-uniform-manifold-approximation-and-projection-for.md)
- [A Unified Approach to Interpreting Model Predictions](https://refivu.com/en/papers/f0be20fa-d9a3-4802-80ea-831a1c564ae5-a-unified-approach-to-interpreting-model-predictions.md)
- [XGBoost: A Scalable Tree Boosting System](https://refivu.com/en/papers/e3112070-6898-4fad-83b9-27d6d96c62be-xgboost-a-scalable-tree-boosting-system.md)
- [ADADELTA: An Adaptive Learning Rate Method](https://refivu.com/en/papers/e2abf038-96af-4e19-bbda-5c8262404473-adadelta-an-adaptive-learning-rate-method.md)
- [Dynamic Graph CNN for Learning on Point Clouds](https://refivu.com/en/papers/a7ba9236-fc2d-445b-bae5-b02e11ac4255-dynamic-graph-cnn-for-learning-on-point-clouds.md)
- [Unsupervised Cross-lingual Representation Learning at Scale](https://refivu.com/en/papers/6b2842f9-6ee4-433e-84ed-ae8dc85bdb0a-unsupervised-cross-lingual-representation-learning-at-scale.md)
- [ShuffleNet V2: Practical Guidelines for Efficient CNN Architecture Design](https://refivu.com/en/papers/d1e3c93e-79dc-4e3d-a949-2f726da0b409-shufflenet-v2-practical-guidelines-for-efficient-cnn.md)
- [Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Coding](https://refivu.com/en/papers/7b8d214e-c983-4cf0-910e-176f0c996770-deep-compression-compressing-deep-neural-networks-with.md)
- [Cascade R-CNN: Delving into High Quality Object Detection](https://refivu.com/en/papers/8374d444-20db-4d12-9b4c-6fa3eca5e1d6-cascade-r-cnn-delving-into-high-quality-object.md)

## Terms in this paper

- [machine translation](https://refivu.com/en/terms/13d9e0810ff4-machine-translation)
- [Coreference resolution](https://refivu.com/en/terms/833bc9442de4-coreference-resolution)
- [named entity recognition](https://refivu.com/en/terms/9fb3660a6152-named-entity-recognition)
- [Word Embedding](https://refivu.com/en/terms/f14f4214edb7-word-embedding)
- [Bias](https://refivu.com/en/terms/4d68487c08cf-bias)
- [COMPAS](https://refivu.com/en/terms/4e5630e527a8-compas)
- [structured prediction](https://refivu.com/en/terms/a0b29df8d207-structured-prediction)
- [Equality of Opportunity](https://refivu.com/en/terms/49ed66a96356-equality-of-opportunity)
- [Equalized odds](https://refivu.com/en/terms/f85a98b96a76-equalized-odds)
- [IJB-A](https://refivu.com/en/terms/07037a41871f-ijb-a)
- [In-processing](https://refivu.com/en/terms/c29fde886e43-in-processing)
- [post-processing](https://refivu.com/en/terms/e509ba7bb9c8-post-processing)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/74d1cfa5-92d6-42d0-bf31-348c21768dc6-a-survey-on-bias-and-fairness-in-machine)
