Introduction
Machine learning models often inadvertently learn and amplify societal biases present in training data. To fix this, researchers typically apply fairness constraints to a model trained from scratch for a specific task. However, modern AI frequently reuses pre-trained models or shared data representations (like embeddings) and fine-tunes them for new tasks.
This introduces the problem of discriminatory transfer: a representation that acts fairly on one task might suddenly exhibit biased behavior when fine-tuned for another, because the underlying representation still secretly harbors sensitive information. This paper tackles the challenge of learning a "sanitized" core representation that guarantees demographic parity (where model decisions are independent of sensitive attributes like gender or race) across any downstream task, seen or unseen.
Methodology
The authors frame this challenge within a Multitask Learning (MTL) setting. The model is split into two parts: a shared representation layer and task-specific prediction heads.
Instead of using adversarial neural networks to scrub sensitive data—a common but notoriously unstable approach—the authors explicitly penalize the distance between the probability distributions of different demographic groups in the representation space. To measure and minimize this distance, they use two advanced mathematical metrics from optimal transport and kernel methods:
- Maximum Mean Discrepancy (MMD): Measures the distance between the means of two distributions mapped into a high-dimensional space.
- Sinkhorn Divergences: An entropy-regularized version of optimal transport (Earth Mover's Distance) that efficiently calculates the cost of morphing one distribution into another.
During training, the loss function balances standard prediction error with these divergence penalties. Crucially, the authors derive statistical learning bounds proving that if the MMD/Sinkhorn distance is small across the training tasks, it is mathematically guaranteed to be small on new tasks drawn from the same environment.
Datasets
The methods were evaluated on three datasets, using gender as the sensitive attribute:
- School (SCH): Examination records of 15,362 students from London schools, used to predict exam scores based on student and school-dependent features.
- University of Genoa (UNI): A proprietary dataset of 5,000 students used to predict first-semester grades based on demographics, financial status, and previous schooling.
- Movielens 100k (MOV): A standard benchmark of 100,000 movie ratings used to predict user preferences.
Key Insights
- Fairness at the Root: By enforcing demographic parity at the representation level rather than the output level, any subsequent model built on this representation is inherently constrained to be fair. You don't have to worry about downstream engineers forgetting to add fairness constraints.
- Multitask Learning is a Catalyst for Fairness: The paper's theoretical bounds reveal a fascinating dynamic: the fairness guarantee for future tasks scales with the number of training tasks. Task diversity forces the model to learn a universally fair representation, rather than just overfitting a fairness constraint to a single specific problem.
- Distance Metrics > Adversaries: Using MMD and Sinkhorn divergences provides a stable, mathematically grounded way to align distributions. This avoids the optimization headaches (like mode collapse) often associated with adversarial fairness methods.
Results
The proposed methods demonstrated superior transferability and outperformed existing baselines in maintaining fairness without sacrificing much accuracy.
- Superior Transferability: When the representation was frozen and used to train a model on a completely new task, the unconstrained baseline (UNC) exhibited high unfairness (Difference of Demographic Parity, or DDP, ranging from 0.075 to 0.139). The proposed MMD and Sinkhorn methods ($M_{MMD}$ and $M_{SNK}$) crushed this bias, dropping DDP to near zero (0.008 to 0.024).
- Beating the State-of-the-Art: The proposed methods consistently outperformed existing adversarial shared-representation baselines. They achieved tighter fairness (lower DDP) while maintaining higher or comparable accuracy.
- Minimal Accuracy Trade-off: Learning a fair representation naturally incurs a slight penalty to raw accuracy (ERR). However, the proposed methods kept this trade-off minimal, generally staying within 1-2% of the error rate of the completely unconstrained, biased models.
Limitations and Future Work
The authors acknowledge that statistical parity is just one definition of fairness, and enforcing it can sometimes violate other fairness definitions (like equal opportunity). They stress that choosing the right fairness metric requires a "human-in-the-loop" and cannot be blindly automated.
For future work, they plan to scale this explicit fair representation learning to deep neural networks (the current experiments utilized 1-hidden layer networks) and focus on making the learned latent representations more interpretable and transparent to human auditors.
Summary updated