A Tutorial on Fairness in Machine Learning

Abstract

1. Introduction

Image for post
Image for post
Fig1. The number of publications on fairness from 2011 to 2017

2. Motivations

Image for post
Image for post
Fig2: The bias in COMPAS. (from Larson et al. ProPublica, 2016)
Image for post
Image for post
Fig3: The bias in the query for Brand Strategist from XING(from Lahoti et al. 2018).
Image for post
Image for post
Fig4: The bias in commercial face recognition services(Buolamwini and Gebru, 2018). DF, DM, LF, LM stand for: darker skin female, darker skin male, lighter skin female and lighter skim male. PPV, TPR, FPR stand for predictive positive value, true positive rate and false positive rate.

3. Causes

4. Definitions of Fairness

4.0 Setup and Notation

4.1 Unawareness

4.2 Demographic Parity

4.3 Equalized odds

4.4 Predictive Rate Parity

4.5 Individual Fairness

Image for post
Image for post
Fig5: illustration of individual fairness

4.6 Counterfactual fairness

Image for post
Image for post
Fig6: some possible causal graphs

4.7 The Impossibility theorem of fairness

Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Fig7: illustration of impossibility theorem(original)
Image for post
Image for post
Fig8: illustration of impossibility theorem(equalized odds is preserved)
Image for post
Image for post
Fig9: illustration of impossibility theorem(PPV is satisfied but NPV is not)

4.7 Trade-off between fairness and accuracy

Image for post
Image for post
Fig10: trade-off between accuracy and demographic parity on a linear classification problem (Zafar et al. AISTATS2017)

5. Fair Algorithms

5.1 Preprocessing

Image for post
Image for post
Fig11: Illustration of preprocessing

Example:

Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post

Pros:

Cons:

5.2 Optimization at Training Time

Example:

Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post

Pros:

Cons:

5.3 Post-processing

Example (Statistical parity/Equality of opportunities):

Image for post
Image for post
Fig12: Finding the optimal equalized odds predictor (left), and equal opportunity predictor (right) (Hardt et al. NIPS2016)

Pros:

Cons:

5.4 Experiment

Dataset:

Experiment results:

Image for post
Image for post
Fig13: Classification error versus constraint violation on test examples with respect to Demographic Parity(DP) and Equalized Odds(EO). The curves plot the Pareto frontiers of several methods. Markers correspond to the baselines. Vertical dashed lines are used to indicate the lowest constraint violations. (Agarwal et al. ICML2018)

5.5 Discussions

6. Summary

What Comes Next

Acknowledgement

Towards Data Science

A Medium publication sharing concepts, ideas, and codes.

Sign up for The Daily Pick

By Towards Data Science

Hands-on real-world examples, research, tutorials, and cutting-edge techniques delivered Monday to Thursday. Make learning your daily ritual. Take a look

By signing up, you will create a Medium account if you don’t already have one. Review our Privacy Policy for more information about our privacy practices.

Check your inbox
Medium sent you an email at to complete your subscription.

Ziyuan Zhong

Written by

CS PhD Student@Columbia U. ML Enthusiast.

Towards Data Science

A Medium publication sharing concepts, ideas, and codes.

Ziyuan Zhong

Written by

CS PhD Student@Columbia U. ML Enthusiast.

Towards Data Science

A Medium publication sharing concepts, ideas, and codes.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store