Distributionally Robust Fair Principal Components via Geodesic Descents

Hieu Vu, Toan Tran, Man-Chung Yue, Viet Anh NguyenICLR 2022

Abstract

Principal component analysis is a simple yet useful dimensionality reduction technique in modern machine learning pipelines. In consequential domains such as college admission, healthcare and credit approval, it is imperative to take into account emerging criteria such as the fairness and the robustness of the learned projection. In this paper, we propose a distributionally robust optimization problem for principal component analysis which internalizes a fairness criterion in the objective function. The learned projection thus balances the trade-off between the total reconstruction error and the reconstruction error gap between subgroups, taken in the min-max sense over all distributions in a moment-based ambiguity set. The resulting optimization problem over the Stiefel manifold can be efficiently solved by a Riemannian subgradient descent algorithm with a sub-linear convergence rate. Our experimental results on real-world datasets show the merits of our proposed method over state-of-the-art baselines.

Introduction

Principal Component Analysis (PCA) is a cornerstone of dimensionality reduction. However, its standard objective of minimizing total reconstruction error often introduces a hidden bias. In datasets where a majority group exhibits high variance and a minority group has distinct characteristics, standard PCA naturally aligns with the majority. This results in a disproportionately high reconstruction error for the minority group, which can lead to unfair outcomes in downstream applications like credit scoring or medical diagnosis.

While "Fair PCA" methods have been developed to address this, they often lack robustness to data perturbations and lack the flexibility to transition back to standard PCA when fairness constraints are relaxed. This paper introduces RFPCA (Distributionally Robust Fair PCA), a framework that ensures dimensionality reduction is both equitable across subgroups and resilient to distributional shifts.

Methodology: Distributionally Robust Fair PCA

The RFPCA approach is built upon three core pillars designed to balance accuracy, fairness, and robustness.

1. The Objective Function

Instead of solely minimizing the average reconstruction error, RFPCA minimizes a weighted sum of the total reconstruction error and the error gap between demographic subgroups. This allows for a tunable trade-off between global performance and group-level equity.

2. Distributional Robustness (DRO)

To handle noise and potential biases in training data, the authors employ a "min-max" strategy. They optimize for the worst-case scenario within a "moment-based ambiguity set"—a neighborhood of distributions defined by a Wasserstein-type divergence. This ensures that the learned projection remains effective even if the test data distribution deviates slightly from the training set.

3. Riemannian Optimization on the Stiefel Manifold

PCA requires projection axes to be orthonormal. This constraint defines the Stiefel manifold. The authors developed a Riemannian subgradient descent algorithm that operates directly on this curved mathematical space. This approach ensures that the orthogonality constraints are strictly maintained throughout the optimization process, leading to a sub-linear convergence rate.

Key Insights and Visualizing the Trade-off

A critical finding of this work is the "impossibility result": for many data distributions, achieving perfect fairness (zero error gap) is mathematically impossible without satisfying specific rank conditions. Consequently, RFPCA utilizes a penalty-based approach rather than hard constraints.

Figure 1: Comparison of projection directions for standard PCA, Samadi et al. (2018), and intermediate fair projections on a synthetic dataset with two groups.

As shown in Figure 1, standard PCA (red) aligns with the primary axis of variance for the majority group (Group 0). In contrast, fair methods like Samadi et al. (green) and the proposed RFPCA (intermediate vectors) shift the projection axis to better capture the variance of the minority group (Group 1), thereby reducing the disparity in reconstruction quality.

By adjusting the fairness parameter ($\lambda$), practitioners can explore a "Pareto frontier," visualizing the exact trade-off between total accuracy and subgroup equity. Notably, RFPCA is a true generalization of classical PCA; setting the fairness and robustness parameters to zero recovers the standard PCA solution.

Experimental Results

The authors evaluated RFPCA against state-of-the-art baselines (e.g., FairPCA, CFPCA) across 15 diverse real-world datasets, ranging from social and financial data (e.g., German Credit) to biological and technical datasets (e.g., LFW, SkillCraft).

  • Superior Fairness: RFPCA achieved the lowest subgroup error gap (ABDiff) on 11 out of 15 datasets.
  • Balanced Performance: It maintained high accuracy, achieving the lowest total reconstruction error (ARE) on 9 out of 15 datasets.
  • Robustness: Toy experiments demonstrated that increasing the "ambiguity radius" (robustness level) improved performance on target data, validating the distributionally robust framework.

Conclusion and Future Directions

RFPCA provides a robust and flexible framework for fair dimensionality reduction. While the current implementation focuses on binary sensitive attributes, theoretical extensions for multi-group fairness exist. Future work may focus on improving computational efficiency for web-scale datasets and automating hyperparameter selection for the fairness and robustness weights.

Summary updated

BibTeX
@inproceedings{vu2022distributionally,
  author = {Hieu Vu and Toan Tran and Man-Chung Yue and Viet Anh Nguyen},
  title = {{Distributionally Robust Fair Principal Components via Geodesic Descents}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=9NVd-DMtThY},
}
Figure