Fast and Efficient MMD-Based Fair PCA via Optimization over Stiefel Manifold

Junghyun Lee, Gwangsu Kim, Mahbod Olfat, Mark Hasegawa-Johnson, Chang D. Yoo

Introduction

Principal Component Analysis (PCA) is a cornerstone of dimensionality reduction, widely used to extract the most informative features from high-dimensional data. However, standard PCA is "fairness-blind," often inadvertently preserving or amplifying biases related to protected attributes such as race, gender, or age. This paper, presented at AAAI 2022, introduces MBF-PCA, a robust and computationally efficient framework designed to balance data utility with social fairness.

The Limitations of Prior Fair PCA

Previous attempts at "Fair PCA" (notably FPCA) faced two significant hurdles. First, they often relied on Gaussian assumptions, attempting only to match the means and covariances of different groups. This approach fails when groups have identical moments but distinct underlying distributions. Second, these methods frequently employed Semidefinite Programming (SDP) relaxations, which are computationally expensive and prone to "variance leakage," where useful information is lost during the reduction process.

Methodology: MMD and Stiefel Manifold Optimization

MBF-PCA addresses these issues through two primary innovations:

  1. Δ-Fairness via Maximum Mean Discrepancy (MMD): Instead of matching simple statistics, MBF-PCA uses MMD, a kernel-based metric that measures the distance between entire distributions in a high-dimensional feature space. This non-parametric approach ensures that dimensionality-reduced data distributions are nearly identical across protected groups, regardless of their original shape.
  2. Optimization on the Stiefel Manifold: The principal components of PCA form a Stiefel manifold—a set of matrices with orthonormal columns. Rather than using slow convex relaxations, the authors optimize directly on this manifold using the Riemannian Exact Penalty Method with Smoothing (REPMS). This allows fairness to be treated as a hard constraint: maximizing variance preservation while ensuring the MMD between groups remains near zero.

Experimental Evaluation

The authors evaluated MBF-PCA against several benchmarks, including synthetic "counter-example" datasets and real-world datasets like UCI COMPAS (recidivism), Adult Income (census data), and German Credit (credit scoring).

Comparison of dimensionality reduction methods: (a) Original 3D data with two groups, (b) Standard PCA fails to merge distributions, (c) FPCA shows partial merging with significant variance leakage, (d) MBF-PCA successfully aligns distributions while preserving data structure.

Key Results

  • Superior Fairness and Utility: On the German Credit and Adult Income datasets, MBF-PCA achieved lower MMD and better demographic parity than standard PCA and FPCA. Crucially, it retained significantly more explained variance, leading to higher accuracy in downstream classification tasks.
  • Computational Efficiency: MBF-PCA offers a dramatic speedup. While FPCA’s runtime grows exponentially with dimensionality (taking over 25 minutes for $p=100$), MBF-PCA completes the same task in seconds.
  • Visual Alignment: As shown in the comparative plots, MBF-PCA effectively "merges" the distributions of protected groups into a single, fair representation, whereas competing methods often leave them clearly separated or significantly distorted.

Conclusion and Future Work

MBF-PCA represents a significant step forward in fair machine learning, providing a tool that is both theoretically rigorous and practically scalable. While the current implementation scales well with dimensionality, the $O(n^2)$ complexity of MMD relative to sample size remains a target for future optimization. The authors suggest that incorporating stochastic (mini-batch) optimization and exploring combinations with "Sparse PCA" are promising avenues for further research.

Summary updated

BibTeX
@inproceedings{lee2022fast,
  author = {Junghyun Lee and Gwangsu Kim and Mahbod Olfat and Mark Hasegawa-Johnson and Chang D. Yoo},
  title = {{Fast and Efficient MMD-Based Fair PCA via Optimization over Stiefel Manifold}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i7.20699},
}
Figure