Hidden Convexity of Fair PCA and Fast Solver via Eigenvalue Optimization
Junhui Shen, Aaron J. Davis, Ding Lu, Zhaojun Bai
TL;DR
This work addresses the fairness gap in PCA by introducing FPCA, which minimizes the maximum subgroup reconstruction loss to equalize fidelity across two subgroups. It reveals a hidden convexity by reformulating FPCA as an optimization over the joint numerical range and develops an efficient eigenvalue-optimization solver (EigOpt) that computes an orthogonal projection basis $U\in\mathbb{O}^{n\times r}$. Compared with the traditional SDR-based FPCA, the proposed method achieves up to 8× speedups while maintaining comparable fairness and accuracy, with reconstruction performance close to standard PCA. The approach is practical for real-world datasets and can be extended to more subgroups, offering a scalable solution for fair linear dimensionality reduction in diverse applications.
Abstract
Principal Component Analysis (PCA) is a foundational technique in machine learning for dimensionality reduction of high-dimensional datasets. However, PCA could lead to biased outcomes that disadvantage certain subgroups of the underlying datasets. To address the bias issue, a Fair PCA (FPCA) model was introduced by Samadi et al. (2018) for equalizing the reconstruction loss between subgroups. The semidefinite relaxation (SDR) based approach proposed by Samadi et al. (2018) is computationally expensive even for suboptimal solutions. To improve efficiency, several alternative variants of the FPCA model have been developed. These variants often shift the focus away from equalizing the reconstruction loss. In this paper, we identify a hidden convexity in the FPCA model and introduce an algorithm for convex optimization via eigenvalue optimization. Our approach achieves the desired fairness in reconstruction loss without sacrificing performance. As demonstrated in real-world datasets, the proposed FPCA algorithm runs $8\times$ faster than the SDR-based algorithm, and only at most 85% slower than the standard PCA.
