Fair mapping

Sébastien Gambs, Rosin Claude NgueveuarXiv 2022 · DOI

Abstract

Machine learning models often perpetuate historical biases present in training data. Existing pre-processing methods frequently produce unrealistic synthetic data, require model retraining, or struggle with non-binary sensitive attributes. This paper introduces Fair Mapping (FM), a pre-processing technique that utilizes Optimal Transport and Wasserstein GANs to transform protected group data to match a privileged group's distribution. FM preserves data realism, maintains compatibility with legacy models, and supports intersectional fairness. Experimental results across multiple benchmarks show that FM achieves a superior trade-off between fairness, privacy, and utility.

Introduction

The deployment of machine learning in sensitive domains like hiring, lending, and law enforcement has highlighted the risk of algorithmic bias. Standard mitigation strategies involve pre-processing training data to decouple sensitive attributes (e.g., race, gender) from target outcomes. However, current approaches face significant hurdles: they often generate "synthetic-looking" data that lacks realism, necessitate the expensive retraining of existing models due to distribution shifts, and are frequently limited to binary sensitive attributes.

To address these challenges, we propose Fair Mapping (FM). Unlike methods that map data to an artificial "median" distribution, FM transforms data from a protected group to align with an existing "privileged" group's distribution. This ensures the resulting data remains realistic and interpretable while allowing seamless integration with legacy models.

Methodology

Fair Mapping is built upon the Wasserstein GAN (WGAN) framework to implement Optimal Transport. The objective is to map data points from a protected group ($R_{prot}$) to the distribution of a privileged group ($R_{priv}$) with minimal modification, effectively performing a "minimal edit" on the data.

The architecture is structured as a multi-player adversarial game involving several key components:

  • Generator ($G_{Enc}, G_{Dec}$): A mapping function that transforms input data.
  • Standard Discriminator ($D_{std}$): Acts as a critic to ensure the transformation adheres to Optimal Transport principles by minimizing the "distance" moved.
  • Sensitive Attribute Discriminator ($D$): An adversary that attempts to predict the original sensitive attribute from the transformed data, forcing the generator to obscure these traits.
  • Classifier ($C$): A pre-trained model that ensures the transformed data is perceived as belonging to the target privileged group.
Table 1: Definitions of symbols and notations used in the Fair Mapping framework.

A core feature of FM is the Identity Property: data points already belonging to the privileged group are left unchanged by the generator. This preserves the "gold standard" distribution and ensures that the mapping function only intervenes where necessary to mitigate bias.

Experimental Setup

The performance of Fair Mapping was evaluated on three benchmark datasets:

  1. Adult Census Income: Used for predicting income levels, testing both binary (sex) and multi-attribute (sex and race) scenarios.
  2. German Credit: A dataset for credit risk classification, using age as the sensitive attribute.
  3. Lipton: A synthetic dataset modeling hiring decisions based on hair length (a proxy for gender) and work experience.

The evaluation focused on three primary dimensions: Protection (measured by Balanced Error Rate, BER), Utility (task accuracy), and Fairness (Demographic Parity and Equalised Odds).

Results and Discussion

Protection and Fairness

FM demonstrated robust protection of sensitive attributes. On the Lipton dataset, it achieved near-optimal protection (BER $\approx$ 0.5) while maintaining high fidelity. Furthermore, FM successfully reduced gaps in Demographic Parity and Equalised Odds. On the German Credit dataset, FM provided a superior trade-off between data fidelity and protection compared to state-of-the-art baselines.

Utility and Multi-attribute Handling

Unlike many competing methods, FM maintained high task accuracy across most datasets, as the transformed data "plugs in" to existing models without requiring retraining. Notably, FM proved effective in multi-attribute scenarios (e.g., the "Adult2" dataset with four sensitive groups), successfully reducing the inference of combined race and gender attributes where other methods struggled.

Limitations

While effective, the approach can exhibit instability on highly unbalanced datasets where protected groups represent a small fraction of the total data. Additionally, the computational cost is higher than simpler models, and performance is sensitive to the tuning of loss coefficients ($\lambda_C, \lambda_D, \lambda_{D_{std}}, \lambda_R$).

Conclusion

Fair Mapping offers a powerful framework for data sanitization that prioritizes realism and operational efficiency. By leveraging Optimal Transport to map protected data to a privileged distribution, FM mitigates bias while preserving the utility of existing machine learning pipelines. Future work will focus on improving stability for unbalanced datasets and extending the framework to handle unseen groups during inference.

Summary updated

BibTeX
@misc{gambs2022fair,
  author = {Sébastien Gambs and Rosin Claude Ngueveu},
  title = {{Fair mapping}},
  year = {2022},
  eprint = {2209.00617},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.00617},
}
Figure