Fair Streaming Principal Component Analysis: Statistical and Algorithmic Viewpoint

Junghyun Lee, Hanseul Cho, Se-Young Yun, Chulhee Yun

Introduction

Principal Component Analysis (PCA) is a fundamental tool in machine learning for dimensionality reduction, data visualization, and feature extraction. However, standard PCA is often criticized for its potential to preserve or even amplify biases present in training data. For instance, if a dataset contains demographic imbalances, PCA may prioritize features that represent the majority group, leading to disparate performance in downstream tasks.

While "Fair PCA" variants have been proposed to address these biases, they typically suffer from two critical limitations: they require the entire dataset to be loaded into memory (making them impractical for high-dimensional or massive datasets), and they lack a rigorous statistical foundation for learnability from finite samples. This paper introduces the Fair Noisy Power Method (FNPM), the first memory-efficient algorithm for fair PCA in a streaming setting, supported by a new theoretical framework called PAFO-learnability.

The "Null It Out" Formulation

To address fairness without the computational overhead of complex optimization constraints, the authors propose a "Null It Out" strategy. This approach identifies an "unfair subspace"—the directions in the data most strongly correlated with sensitive attributes, such as race or gender.

Mathematically, this subspace is defined by the difference in means and the difference in second moments between demographic groups. By projecting the data onto the orthogonal complement of this unfair subspace, the algorithm effectively removes biased information before the PCA process begins. This ensures that the resulting principal components are decorrelated from the sensitive attributes.

The Fair Noisy Power Method (FNPM)

FNPM implements the fairness formulation within a streaming architecture, where data points are processed sequentially and discarded. The algorithm operates in two distinct stages:

  1. Stage 1: Subspace Estimation. As the data stream begins, the algorithm uses a streaming variant of the power method to estimate the unfair subspace $U$. This stage focuses on identifying the biased directions without requiring the storage of the full covariance matrix.
  2. Stage 2: Fair PCA. Once the unfair subspace is sufficiently estimated, the algorithm performs a second pass (or continues the stream) to identify the top $k$ eigenvectors of the remaining "fair" data.

By treating even static datasets as streams, FNPM bypasses the "memory wall" that often crashes standard systems when processing high-resolution data.

Theoretical Framework: PAFO-Learnability

A major contribution of this work is the introduction of Probably Approximately Fair and Optimal (PAFO) learnability. This framework provides the first sample complexity bounds for fair PCA, proving that FNPM converges to a solution that is both sufficiently fair and statistically optimal with high probability.

One key insight from this analysis is the "Price of Fairness." The theoretical results reveal that the bottleneck of the process is the sample complexity required to estimate the unfair subspace. Identifying and removing biased directions requires more data samples than simply finding the directions of maximum variance, highlighting a fundamental trade-off between fairness guarantees and data requirements.

Experimental Results

The researchers evaluated FNPM against several standard benchmarks, focusing on both tabular data and high-resolution imagery.

Scalability and Memory Efficiency

On the CelebA face attributes dataset, FNPM was tested using the original full-resolution images ($218 \times 178$ pixels). Previous Fair PCA methods failed on this task due to memory exhaustion. FNPM successfully processed the data, demonstrating its utility for modern, large-scale computer vision tasks.

Fairness and Accuracy

Using the Adult Income dataset, FNPM reduced demographic parity $(\Delta_{DP})$ from 0.19 (standard PCA) to nearly 0.0. Crucially, this was achieved while maintaining high downstream task accuracy (using a kernel SVM), matching the performance of memory-intensive offline methods.

Qualitative Impact

In qualitative tests on CelebA (using "Eyeglasses" as the sensitive attribute), the algorithm successfully "erased" the features associated with glasses from the projected representations. Visualizations of the unfair subspace confirmed that the algorithm accurately targeted the specific features of the glasses, proving the effectiveness of the "Null It Out" approach.

Limitations and Future Directions

Despite its successes, FNPM has several areas for future refinement:

  • Two-Phase Requirement: The algorithm requires a "burn-in" period to estimate the unfair subspace, meaning it cannot provide reliable projections immediately upon starting the stream.
  • Sensitive Attribute Availability: The current model assumes that sensitive attributes are known for every data point during the training phase, which may not always be feasible in privacy-sensitive contexts.
  • Binary Constraints: While the framework can be extended, the primary theoretical guarantees currently focus on binary sensitive attributes.
  • Eigenvalue Gaps: Like all power-method-based approaches, the convergence of FNPM is sensitive to the "gap" between eigenvalues; if unfair directions are buried in noise, they become harder to isolate.

Conclusion

Fair Streaming PCA represents a significant step forward in making responsible AI scalable. By combining a memory-efficient streaming algorithm with the rigorous PAFO-learnability framework, the authors provide a practical path for performing dimensionality reduction on massive datasets without sacrificing fairness or statistical integrity.

Summary updated

BibTeX
@inproceedings{lee2023fair,
  author = {Junghyun Lee and Hanseul Cho and Se-Young Yun and Chulhee Yun},
  title = {{Fair Streaming Principal Component Analysis: Statistical and Algorithmic Viewpoint}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=TW3ipYdDQG},
}
Figure