PLS-based approach for fair representation learning

Elena M. De-Diego, Adrián Pérez-Suay, Paula Gordaliza, Jean-Michel Loubes · DOI

Abstract

Machine learning models often inherit and amplify biases present in training data, leading to discriminatory outcomes in sensitive applications. This paper introduces Fair Partial Least Squares (Fair PLS), a supervised dimensionality reduction technique designed for fair representation learning. By incorporating the target variable into the dimensionality reduction process, Fair PLS learns representations that maintain high predictive utility while actively minimizing statistical dependence on sensitive demographic attributes. Experimental evaluations across several benchmark datasets show that Fair PLS consistently outperforms unsupervised alternatives like Fair PCA, providing a more favorable trade-off between accuracy and fairness.

Introduction

As automated decision-making systems become ubiquitous in domains such as hiring, finance, and criminal justice, ensuring algorithmic fairness is paramount. A prominent strategy is Fair Representation Learning (FRL), which aims to transform raw data into a lower-dimensional space that preserves task-relevant information while scrubbing away links to protected attributes (e.g., race, gender).

Existing FRL methods often rely on Principal Component Analysis (PCA). However, PCA is unsupervised and identifies directions of maximum variance without considering the target variable. This can lead to the loss of highly predictive features that exhibit low variance. To address this, we propose a supervised approach based on Partial Least Squares (PLS), which explicitly optimizes for the covariance between the learned representation and the target variable.

Methodology

Standard PLS identifies latent components that maximize the covariance between input features ($X$) and the target variable ($Y$). We extend this framework to Fair PLS by introducing a fairness regularization term.

The Fair PLS Objective

The objective function is modified to maximize the covariance with the target while penalizing the squared covariance with the sensitive attribute ($S$): $$\max_{w} \text{Cov}^2(Xw, Y) - \eta \text{Cov}^2(Xw, S)$$ where $\eta$ is a hyperparameter controlling the trade-off between utility and fairness.

Optimization and Extensions

Due to the non-convexity introduced by the fairness penalty, we employ an efficient Gradient Descent algorithm for optimization. To capture non-linear relationships and handle multiple sensitive attributes, we further develop Kernel Fair PLS using the Hilbert-Schmidt Independence Criterion (HSIC). Additionally, the framework can be adapted to satisfy Equality of Odds by utilizing conditional cross-covariance.

Experimental Evaluation

We evaluated Fair PLS on several standard fairness benchmarks, including Adult Income, German Credit, Law School, Diabetes, COMPAS, and Communities and Crimes. These datasets cover both classification and regression tasks with various sensitive attributes such as race, gender, and age.

Key Results

Fair PLS demonstrates a superior accuracy-fairness trade-off compared to baseline methods. For instance, on the Adult Income dataset, Fair PLS maintained over 83% accuracy while achieving perfect Demographic Parity, whereas Fair PCA dropped to approximately 76.5% accuracy under similar constraints.

As shown in the table above, increasing $\eta$ effectively reduces the squared covariance between the learned representation and the sensitive attribute ($Cov^2(r_\eta(\mathbf{X}), S)$) across all datasets. While this often comes at a slight cost to the target covariance ($Cov^2(r_\eta(\mathbf{X}), Y)$), the supervised nature of PLS ensures that predictive utility remains robust compared to unsupervised methods.

Discussion and Conclusion

The primary advantage of Fair PLS is its ability to guide dimensionality reduction using the target variable, preventing the inadvertent removal of critical predictive signals. Furthermore, the linear version of Fair PLS maintains interpretability, allowing practitioners to understand the contribution of original features to the fair representation.

While the iterative optimization required for Fair PLS is more computationally intensive than the closed-form solutions for standard PCA, its runtime remains comparable to standard PLS implementations. Future work includes applying this framework to Large Language Models (LLMs) to surgically remove biases from latent embedding spaces, potentially leading to fairer text generation and classification.

Summary updated

BibTeX
@misc{dediego2025pls,
  author = {Elena M. De-Diego and Adrián Pérez-Suay and Paula Gordaliza and Jean-Michel Loubes},
  title = {{PLS-based approach for fair representation learning}},
  year = {2025},
  eprint = {2502.16263},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.16263},
}
Figure