Fair Semi-supervised Representation Learning for Tabular Data Classification

Shuyi Yang, Mattia Cerrato, Dino Ienco, Ruggero G. Pensa, Roberto EspositoSEBD 2023

Introduction

In critical domains such as healthcare and finance, practitioners often face a "double whammy" when building predictive models: a severe scarcity of labeled training data and the presence of historical human biases within those few available labels. While semi-supervised learning (SSL) can leverage large pools of unlabeled data to improve predictive performance, standard SSL methods risk amplifying existing biases because they are optimized solely for pattern recognition rather than fairness.

This paper introduces FairSwiRL (Fair Semi-supervised classification with Representation Learning), a framework designed to learn fair representations of tabular data. By stripping sensitive information from the data while preserving its utility for downstream tasks, FairSwiRL enables the construction of fair classifiers even in label-scarce scenarios.

The FairSwiRL Framework

FairSwiRL utilizes an adversarial autoencoder architecture to achieve three simultaneous objectives:

  1. Feature Reconstruction: A standard encoder-decoder pair ensures the latent representation ($z$) captures the essential structural features of the original input data.
  2. Utility Preservation: An auxiliary classification network is trained on the small labeled subset to ensure that the latent representation $z$ remains highly predictive of the target variable.
  3. Adversarial Debiasing: To enforce fairness, an adversarial classifier attempts to predict sensitive attributes (e.g., race or gender) from the latent representation. Through a Gradient Reversal Layer, the encoder is incentivized to "hide" sensitive information, effectively pitting the representation learner against the adversary.

Because this debiasing occurs during the representation learning phase, the resulting features are model-agnostic and can be utilized by any downstream classifier, such as Random Forests or Support Vector Machines.

Experimental Evaluation

The framework was evaluated on four standard fairness benchmarks: ADULT (income prediction), BANK (subscription prediction), CARD (credit default prediction), and COMPAS (recidivism prediction). Performance was measured using the Matthews Correlation Coefficient (MCC) for accuracy and 1-SAD (Statistical Absolute Difference) for fairness, where a value of 1.0 indicates perfect statistical parity.

Key Results

Robustness Across Classifiers

A key strength of FairSwiRL is its flexibility. Experiments demonstrate that the learned representations are inherently fair and useful regardless of the final supervised model. As shown in the ADULT dataset results, accuracy (MCC) improves as more labeled instances are introduced, while fairness remains relatively stable across various downstream classifiers.

Performance of FairSwiRL on the ADULT dataset across different classifiers as labeled instances increase

Competitive Trade-offs

When compared against state-of-the-art methods like FESF and VFAE, FairSwiRL consistently achieves a superior balance between accuracy and fairness. In many cases, it approaches the "optimal tradeoff line," particularly on the ADULT and BANK datasets.

Accuracy (MCC) vs. Fairness (1-SAD) trade-offs for FairSwiRL and competitors across four datasets. Points closer to the top-right represent a better balance.

The Role of Unlabeled Data

FairSwiRL leverages the entire dataset—both labeled and unlabeled—for adversarial debiasing. This allows the model to learn a globally fair representation, preventing it from overfitting to the specific biases present in the small labeled training set. However, the authors note a classic dilemma: as the number of labels increases, accuracy improves, but the risk of "leaking" correlations between target and sensitive attributes also rises, necessitating careful tuning of the adversarial penalty.

Discussion and Future Work

While FairSwiRL shows strong performance across most benchmarks, results on the COMPAS dataset were more varied, with VFAE occasionally showing stronger results. Additionally, this study focused primarily on Statistical Parity; future research could extend the framework to satisfy other fairness definitions, such as Equalized Odds, or adapt the architecture for non-tabular data types like images and text.

Summary updated

BibTeX
@inproceedings{yang2023fair,
  author = {Shuyi Yang and Mattia Cerrato and Dino Ienco and Ruggero G. Pensa and Roberto Esposito},
  title = {{Fair Semi-supervised Representation Learning for Tabular Data Classification}},
  booktitle = {SEBD},
  year = {2023},
}
Figure