The Price of Fair PCA: One Extra Dimension

Samira Samadi, Uthaipon Tao Tantipongpipat, Jamie Morgenstern, Mohit Singh, Santosh S. Vempala

TL;DR

Principal Component Analysis (PCA), a common tool for simplifying data, can inadvertently create representations that are less accurate for certain demographic groups. This paper introduces "Fair PCA," a new method that aims to reduce dimensionality while ensuring similar representation fidelity across different populations, and provides a polynomial-time algorithm to achieve this.

What Problem Does This Paper Address?

In machine learning and data analysis, dimensionality reduction techniques like PCA are widely used to simplify complex datasets, making them easier to visualize and analyze. However, this paper highlights a critical issue: PCA can introduce or exacerbate biases by creating data representations that have significantly different levels of accuracy for different demographic groups (e.g., men vs. women, different education levels). This disparity in "fidelity" can lead to unfair outcomes in downstream applications, even when the dataset is balanced in terms of sample sizes. The authors argue that this bias can occur during the data preprocessing stage itself, not just in the final model.

Methods

The core of this paper is the introduction of "Fair PCA." Instead of solely minimizing the overall reconstruction error (as standard PCA does), Fair PCA aims to minimize the maximum loss experienced by any subgroup. This loss is defined as the difference between a group's reconstruction error using the fair projection and its optimal reconstruction error if projected alone.

The authors propose a polynomial-time algorithm to find a "nearly-optimal" Fair PCA projection. This algorithm involves:

  1. Relaxing the problem: The Fair PCA optimization problem is relaxed into a semidefinite program (SDP).
  2. Solving the SDP: The SDP is solved to obtain an intermediate solution.
  3. Reducing rank: A linear program (LP) is then used to reduce the rank of the solution, ensuring it can be represented in a low-dimensional space.

The algorithm guarantees a projection of dimension at most $d+1$ (where $d$ is the target dimension) that achieves the optimal fairness objective.

Datasets

The paper uses two real-world, human-centric datasets for evaluation:

  • Labeled Faces in the Wild (LFW): Used to study gender-based disparities.
  • Default Credit data set: Used to examine disparities between higher and lower educated individuals.

Key Insights and Ideas

  • PCA's hidden bias: Standard PCA can create representations with unequal fidelity for different populations, even with balanced datasets. This is a crucial point, as it suggests bias can be introduced before model training.
  • Fairness as equal representation loss: The paper defines "fairness" in dimensionality reduction not as making groups indistinguishable, but as ensuring that the loss in representation quality for each group, relative to its own optimal projection, is similar.
  • The "one extra dimension" trade-off: The proposed Fair PCA algorithm can achieve fairness with at most one additional dimension compared to the target dimension $d$. This suggests a manageable cost for achieving fairer representations.
  • Importance of preprocessing: The work emphasizes that fairness considerations are critical at all stages of the ML pipeline, including data preprocessing and dimensionality reduction.

Key Results

  • Experiments on LFW and the Credit dataset demonstrate that standard PCA exhibits higher average reconstruction error for certain groups (e.g., women, lower-educated individuals) compared to others.
  • Fair PCA significantly reduces this disparity in reconstruction error across groups.
  • Figure 4 shows that Fair PCA achieves a more balanced "loss" across populations, with the "Fair loss" line falling between the individual losses of standard PCA for the two groups. This indicates an improvement in fairness, though it might come at a slight cost to the better-represented group.
  • The proposed algorithm is shown to be polynomial-time, making it practical for use.

Limitations and Future Work

  • Computational cost: While polynomial-time, the SDP relaxation step can still be computationally intensive for very large datasets. The authors propose a multiplicative weight update method to improve practical runtime.
  • Generalization to k groups: The paper extends the Fair PCA concept to $k$ groups, requiring $k-1$ additional dimensions. Future work could explore whether these extra dimensions are strictly necessary for computational efficiency.
  • Theoretical complexity: The authors pose open questions about the theoretical complexity of optimizing the fairness objective, particularly for $d=1$.
  • Broader impact: The paper suggests that this work is a step towards understanding how standard ML techniques can introduce unfairness, and calls for further research in this area.

Summary updated

BibTeX
@inproceedings{samadi2018price,
  author = {Samira Samadi and Uthaipon Tao Tantipongpipat and Jamie Morgenstern and Mohit Singh and Santosh S. Vempala},
  title = {{The Price of Fair PCA: One Extra Dimension}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=rkE7hIWO-B},
}
Figure