Efficient fair principal component analysis

Mohammad Mahdi Kamani, Farzin Haddadpour, Rana Forsati, Mehrdad Mahdavi

Introduction

Principal Component Analysis (PCA) is a fundamental tool in data science for dimensionality reduction. However, standard PCA is often "fairness-blind," prioritizing the variance of majority groups and leading to higher reconstruction errors for minority groups. When this biased data is used in downstream tasks like hiring or credit scoring, existing inequalities are amplified. Previous attempts to address this, known as Fair PCA, relied on computationally expensive Semi-Definite Programming (SDP) and often required adding "extra dimensions" to the target subspace to satisfy fairness constraints.

The Problem with Traditional Fair PCA

Existing state-of-the-art methods for Fair PCA face two primary bottlenecks: computational complexity and dimensionality expansion. Algorithms based on SDP typically exhibit a time complexity of $O(d^{6.5})$, making them impractical for high-dimensional datasets. Furthermore, these methods often necessitate a fair dimension larger than the target dimension $r$ (e.g., $r + k - 1$ for $k$ groups) to guarantee fairness, which compromises the efficiency of the data compression.

Proposed Methodology: Pareto Fair PCA

This work introduces a shift from constrained optimization to Multi-Objective Optimization, seeking a Pareto optimal solution that balances reconstruction accuracy across different sensitive groups without computational bloat.

  1. Disparity Error: Fairness is defined by the difference between a group's reconstruction loss in the global subspace versus their optimal local subspace loss.
  2. Pareto Optimality: Instead of enforcing strict equality of loss—which can severely degrade overall accuracy—the algorithm identifies a Pareto Fair Subspace. In this state, no group's fairness can be improved without negatively impacting another group's reconstruction accuracy.
  3. Adaptive Gradient Descent (GD): By utilizing a first-order GD algorithm rather than SDP, the authors find a descent direction that simultaneously minimizes the main PCA loss and all fairness objectives.

Complexity and Dimensionality Analysis

The proposed gradient-based approach offers significant theoretical advantages over previous schemes, as summarized in the table below.

Comparison of Fair PCA schemes regarding complexity and required dimensions.

As shown in the comparison, this work reduces time complexity to $O(r^2d/\epsilon^2)$ and, crucially, achieves fairness within the exact target dimension $r$, eliminating the need for the "extra dimensions" required by Samadi et al. (2018) and Morgenstern et al. (2019).

Experimental Evaluation

The algorithm was evaluated on the Adult Dataset (predicting income with gender and race as sensitive features) and the Credit Dataset (predicting credit history with sex and marriage status as sensitive features).

  • Superior Trade-offs: The Pareto Fair PCA achieved lower average disparity errors than SDP-based methods while maintaining a total reconstruction loss nearly identical to standard (unfair) PCA.
  • Downstream Impact: Using the fair subspace to train a Support Vector Machine (SVM) resulted in a dramatic drop in the Difference of Equality of Opportunity (DEO), a key measure of classification bias.
  • Scalability: The GD approach handles multiple sensitive groups (such as the five race categories in the Adult dataset) more effectively than previous methods that struggled beyond binary cases.

Conclusion

By framing Fair PCA as a multi-objective optimization problem solved via gradient descent, this research provides a scalable and dimension-efficient alternative to traditional SDP-based solvers. This approach ensures that fairness in unsupervised learning can be achieved without sacrificing the core benefits of dimensionality reduction, providing a more equitable foundation for subsequent machine learning tasks.

Summary updated

BibTeX
@article{kamani2019efficient,
  author = {Mohammad Mahdi Kamani and Farzin Haddadpour and Rana Forsati and Mehrdad Mahdavi},
  title = {{Efficient fair principal component analysis}},
  journal = {Machine Learning},
  year = {2019},
  doi = {10.1007/s10994-021-06100-9},
}
Figure