On the Fairness of Disentangled Representations

Francesco Locatello, Gabriele Abbati, Thomas Rainforth, Stefan Bauer, Bernhard Schölkopf, Olivier Bachem

TL;DR

Disentangled representation learning—which seeks to isolate independent factors of variation in data—is a powerful, unsupervised tool for improving the fairness of downstream tasks. This paper demonstrates that even when sensitive attributes (like gender or race) are unobserved, more disentangled models consistently produce fairer predictions, effectively acting as a "fairness-by-design" mechanism.

What Problem Does This Paper Address?

Machine learning models often inherit or amplify biases present in data. Traditional "fairness" interventions usually require explicit labels for sensitive attributes (e.g., knowing the race or gender of individuals in a dataset) to mitigate bias. However, in many real-world scenarios, these labels are unavailable due to privacy concerns or high labeling costs.

Problem Setup: Accurate predictions while remaining fair to unobserved sensitive variables.

The authors investigate whether disentangled representations can bridge this gap. In a disentangled representation, different dimensions of the data's "code" correspond to distinct, independent physical factors (e.g., in an image of a car, one dimension might represent color, another the model, and another the orientation). The core question is: if we successfully separate these factors without supervision, does the resulting model become fairer by naturally "isolating" sensitive information from the target variables?

Methods

The researchers conducted a massive empirical study using a three-stage pipeline:

  1. Unsupervised Representation Learning: They utilized 12,600 pre-trained models from state-of-the-art disentanglement frameworks, including $\beta$-VAE, AnnealedVAE, Factor-VAE, $\beta$-TCVAE, and DIP-VAE. These models were trained on raw images without any labels.
  2. Downstream Prediction: They trained over 90,000 downstream classifiers (Gradient Boosted Trees) to predict a target variable $y$ from the learned representations $r(x)$, while assuming a sensitive variable $s$ exists but is unobserved during training.
  3. Fairness Evaluation: They measured fairness using Demographic Parity, which quantifies how much a prediction $\hat{y}$ changes based on the sensitive attribute $s$. They also used six different disentanglement metrics (like DCI, MIG, and SAP) to correlate "how disentangled a model is" with "how fair its predictions are."

A key novelty is their adjustment for performance. Since accuracy and disentanglement are often correlated, they used a k-nearest neighbors approach to compare models with similar accuracy, ensuring that fairness gains were truly due to disentanglement rather than just "better" overall models.

Datasets

The study utilized seven benchmark datasets commonly used in representation learning:

  • dSprites, Color-dSprites, Noisy-dSprites, and Scream-dSprites: Variations of 2D shapes with different backgrounds and noise levels.
  • SmallNORB: Images of 3D objects.
  • Cars3D: Renderings of car models at various angles.
  • Shapes3D: 3D shapes in a room with varying colors and scales.

These datasets are ideal because the "ground truth" factors (the actual color, shape, etc.) are known to the researchers for evaluation, even though the models are trained without them.

Key Insights and Ideas

  • Independence $\neq$ Fairness: The authors prove theoretically that even if a target variable (e.g., "is this a car?") and a sensitive variable (e.g., "is the background red?") are statistically independent, a standard neural network can still produce unfair predictions because the raw data "entangles" these factors.
  • Disentanglement as a Filter: Disentanglement helps because it encourages the model to put information about $y$ and $s$ into different dimensions. A downstream classifier can then easily "ignore" the dimensions containing sensitive information, even if it doesn't know which ones they are.
  • The DCI Advantage: Among the many metrics tested, the DCI (Disentanglement, Completeness, and Informativeness) score was the most consistent predictor of fairness across all datasets.
  • Accuracy as a Proxy: Interestingly, the authors found that selecting the most accurate model for a task often leads to a fairer model (84.2% of the time in their experiments). This suggests that in the world of disentangled representations, accuracy and fairness are often aligned.

Key Results

  • Significant Bias in Standard Models: Without disentanglement, the violation of demographic parity (unfairness) reached as high as 15% to 25% on several datasets.
  • Consistent Correlation: There is a strong, negative rank correlation between disentanglement scores and unfairness. As disentanglement increases, unfairness consistently drops.
Correlation between disentanglement scores and unfairness across datasets.
  • Residual Fairness: Even after adjusting for downstream accuracy, more disentangled representations remained fairer than less disentangled ones with the same performance level.

Limitations and Future Work

  • Factor Independence: The study assumes that the target variable and the sensitive variable are independent in the real world. In many social contexts, variables are correlated (e.g., zip code and income). The authors note that studying disentanglement in the presence of correlated factors is a crucial next step.
  • Synthetic Nature: While the study is massive, it relies on synthetic or semi-synthetic image datasets. Testing these correlations on complex, real-world tabular data or natural language remains an open challenge.
  • Unsupervised Identifiability: The authors acknowledge that "perfect" unsupervised disentanglement is theoretically impossible without some form of inductive bias. The paper focuses on the utility of disentanglement once achieved, rather than how to guarantee it.

Summary updated

BibTeX
@inproceedings{locatello2019fairness,
  author = {Francesco Locatello and Gabriele Abbati and Thomas Rainforth and Stefan Bauer and Bernhard Schölkopf and Olivier Bachem},
  title = {{On the Fairness of Disentangled Representations}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=DVNKN2BW3dQu},
}
Figure