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

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

Principal Component Analysis (PCA) is a cornerstone of dimensionality reduction, yet it often inadvertently preserves or amplifies biases against protected groups. This paper introduces MbF-PCA, a novel framework that leverages Maximum Mean Discrepancy (MMD) to ensure fair representations. By formulating the problem as an optimization over the Stiefel manifold and employing the Riemannian Exact Penalty Method with Smoothing (REPMS), the authors achieve superior fairness and computational efficiency compared to existing state-of-the-art methods.

The Challenge of Bias in Dimensionality Reduction

PCA aims to project high-dimensional data into a lower-dimensional space while maximizing variance. However, if the original data contains features correlated with protected attributes (e.g., race, gender), the resulting principal components can encode these biases. Existing Fair PCA (FPCA) methods typically rely on Semidefinite Programming (SDP) relaxations, which are computationally intensive and often limited to matching only the first two moments (mean and covariance) of group distributions. This leaves subtle, higher-order distributional differences untouched, potentially leading to discriminatory downstream outcomes.

MbF-PCA: A Distributional Approach to Fairness

The proposed MbF-PCA addresses these limitations through two key technical pillars:

  1. Maximum Mean Discrepancy (MMD): Instead of simple moment matching, the authors use MMD—a kernel-based statistical measure—to quantify the distance between the full distributions of different groups in the reduced space. Minimizing MMD ensures that the representations of protected groups are statistically indistinguishable in a non-parametric sense.
  2. Manifold Optimization: Rather than using expensive SDP relaxations that scale poorly, the authors solve the optimization problem directly on the Stiefel manifold (the set of matrices with orthonormal columns). Using the Riemannian Exact Penalty Method with Smoothing (REPMS), they maintain the orthogonality constraint naturally, avoiding rank-relaxation errors and providing stronger theoretical guarantees for local optimality.
Visual comparison of group distributions under different PCA methods. MbF-PCA (d) achieves the most significant overlap between protected groups compared to standard PCA (b) and previous FPCA (c).

Experimental Evaluation and Key Results

The authors evaluated MbF-PCA on synthetic datasets designed to hide biases in distribution shapes, as well as real-world benchmarks including COMPAS, German Credit, and Adult Income.

  • Efficiency: MbF-PCA demonstrates remarkable scalability. In synthetic tests, as the data dimension ($p$) increased toward 100, the runtime for previous state-of-the-art FPCA exploded to over 1,500 seconds, while MbF-PCA remained nearly constant at just a few seconds.
  • Fairness: Across all datasets, MbF-PCA consistently achieves lower MMD and Demographic Parity gaps than standard PCA. As shown in the quantitative analysis, MbF-PCA maintains high fairness levels even as the dimensionality of the problem increases.
  • Information Retention: Despite the fairness constraints, the method retains a high percentage of the original data's variance, ensuring the utility of the reduced representation for downstream tasks.
Squared MMD across different dimensions. MbF-PCA (blue) maintains consistently low MMD compared to standard PCA (red), matching or exceeding the fairness of previous FPCA methods (green).

Conclusion

MbF-PCA provides a robust and efficient solution for fair dimensionality reduction. By moving beyond linear moment matching and utilizing efficient manifold optimization, it sets a new benchmark for Fair PCA. While the current focus is on binary protected attributes and local optimality, the framework offers a scalable foundation for future research into multi-group fairness and interpretable fair components.

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