Learning Fair and Transferable Representations

Luca Oneto, Michele Donini, Andreas Maurer, Massimiliano PontilarXiv 2019

Abstract

As machine learning models are increasingly deployed in high-stakes domains such as hiring and credit scoring, ensuring algorithmic fairness has become a critical requirement. However, fairness often fails to generalize when a model is applied to new, unseen tasks—a phenomenon known as discriminatory transfer. This paper proposes a multitask learning (MTL) framework designed to learn data representations that are both accurate and fair by design. By enforcing demographic parity directly on a shared representation, the authors demonstrate that fairness properties can be preserved even when the representation is leveraged for entirely new tasks.

1. Introduction

The transition of machine learning from controlled laboratory environments to critical decision-making roles has highlighted the risks of algorithmic bias. While many existing methods address fairness for a single, specific task, they often fail to maintain these properties when the model or the underlying representation is transferred to a different context. This paper addresses the challenge of "discriminatory transfer" by asking whether it is possible to learn a fundamental representation of data that is inherently fair. The goal is to "scrub" sensitive information (e.g., gender or race) from the representation while retaining features necessary for predictive accuracy, thereby making any future task built on that representation "fair by default."

2. Methodology

The authors utilize a Multitask Learning (MTL) framework combined with low-rank matrix factorization to achieve their objectives.

2.1 Shared Representation

The framework assumes that multiple related tasks share a common underlying structure. The weight matrix for these tasks is decomposed into two components: a shared representation matrix ($A$) and task-specific weights ($B$). This structure allows the model to learn features that are useful across a variety of related problems.

2.2 Linear Fairness Constraint

To ensure "Demographic Parity"—where model decisions are statistically independent of sensitive attributes—the authors impose a constraint directly on the representation matrix $A$. Specifically, they require that the mean of the represented data for one demographic group is equal to the mean for another.

2.3 Optimization via Convex Relaxation

Because achieving exact demographic parity is a complex, non-convex optimization problem, the authors employ a first-order moment approximation. This relaxation transforms the problem into a linear constraint, which can be efficiently solved using alternating minimization techniques. This approach balances computational efficiency with the rigor of fairness requirements.

2.4 Theoretical Generalization

A key contribution of the paper is the provision of rigorous mathematical learning bounds. These proofs demonstrate that if a representation is fair across a sufficient number of training tasks, it is highly likely to remain fair for new tasks drawn from the same underlying distribution.

3. Experimental Evaluation

The proposed method, "Fair constrained MTL," was evaluated against several state-of-the-art baselines using three real-world datasets where gender was the sensitive attribute:

  • School Dataset: Examination records from 139 secondary schools in London, aimed at predicting exam scores.
  • UNIGE Dataset: A proprietary dataset from the University of Genoa used for student grade prediction.
  • Movielens (100k): A benchmark movie rating dataset used to predict user preferences.

4. Key Results and Insights

The experimental results highlight several advantages of the MTL-based fair representation:

  • Accuracy vs. Fairness Trade-off: The proposed method significantly reduced fairness risk with minimal impact on accuracy. For instance, on the School dataset, the fairness risk for new tasks dropped from 0.121 (in unconstrained models) to 0.022, while maintaining competitive predictive performance.
  • Superior Transferability: When tested on tasks not seen during training, the fair MTL approach maintained higher levels of fairness compared to other popular methods, such as the Variational Fair Autoencoder.
  • Robustness: The results remained consistent regardless of whether the sensitive feature was explicitly included in the model's functional form, confirming that the learned representation successfully internalized the fairness constraints.

5. Discussion and Limitations

The study demonstrates that fairness can be treated as a global property of the input representation rather than a local constraint on model output. By observing multiple tasks simultaneously, the model better distinguishes between truly predictive features and discriminatory correlations.

However, the current framework is limited to linear representations and models. While effective and computationally efficient, it does not yet incorporate non-linear deep learning architectures. Furthermore, the focus is strictly on Demographic Parity; future work could extend this framework to other fairness definitions, such as Equalized Odds, which account for ground-truth differences between groups.

6. Conclusion

This paper provides a robust framework for learning fair and transferable representations. By integrating fairness constraints into the foundational layers of a multitask learning model, the authors offer a path toward machine learning systems that are fair by design and capable of maintaining those standards across diverse applications.

Summary updated

BibTeX
@misc{oneto2019learning,
  author = {Luca Oneto and Michele Donini and Andreas Maurer and Massimiliano Pontil},
  title = {{Learning Fair and Transferable Representations}},
  year = {2019},
  eprint = {1906.10673},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1906.10673},
}
Figure