TL;DR
This paper introduces a novel self-supervised method to learn fair representations without requiring sensitive demographic labels (like race or gender) during training. By using a small labeled validation set to reweigh unlabeled training samples based on gradient similarity, the model achieves state-of-the-art fairness and accuracy across multiple benchmarks while respecting data privacy.
The Challenge of Demographic-Aware Fairness
Most "fair" machine learning algorithms are demographic-aware: they require explicit labels for sensitive attributes (e.g., "this person is female," "this person is Black") to identify and mitigate bias. However, in the real world, collecting this data is often impossible due to legal restrictions like GDPR or privacy concerns.
Furthermore, most fairness research focuses on supervised learning. In many scenarios, we have a mountain of unlabeled data and only a tiny sliver of labeled data. The authors ask: Can we improve fair classification without sensitive information and without labels during the primary training phase?
Methods: Reweighing-Based Contrastive Learning
The authors propose a reweighing-based contrastive learning framework. Here is the breakdown of their approach:
- Contrastive Learning Foundation: The model uses a standard contrastive encoder (like SimCLR) to learn representations by bringing "positive" pairs (augmentations of the same image) closer together and pushing "negative" pairs apart in embedding space.
- The "Top-k" Validation Objective: Instead of just minimizing average loss, the authors focus on the top-k validation loss. This is a relaxation of the "Min-Max" fairness philosophy, which aims to improve performance for the worst-off groups.
- Gradient-Based Reweighing (The "Secret Sauce"): This is the core innovation. During each training iteration, the model calculates two gradients:
- The gradient of the contrastive loss for a training sample.
- The average gradient of the "hardest" (top-k) samples in a small, labeled validation set.
- Alignment as Weight: If a training sample’s gradient points in a similar direction to the validation gradient (measured by an inner product), it means that sample is "helpful" for minimizing the loss on the hardest cases. That sample is assigned a higher weight. If the gradients conflict, the sample is downweighted or discarded for that iteration.
This allows the model to "filter" the massive unlabeled dataset, focusing on the data points that actually help the model become fairer and more accurate for underrepresented groups.
Key Insights
- Fairness via Proxy: You don't need demographic labels for your entire training set if you have a small, high-quality validation set that represents your fairness goals. The validation set acts as a "compass" for the unsupervised training.
- Bridging the Gap: Contrastive learning often suffers from "false negatives" (treating two different images of the same class as negatives). By using gradient alignment with a labeled validation set, the model naturally mitigates this sampling bias.
- Min-Max Strategy: By focusing on the "top-k" (hardest) validation samples, the model implicitly prioritizes demographic groups that the model usually struggles with, leading to better group fairness without ever "seeing" the group labels during training.
Key Results
The proposed method consistently outperformed or matched state-of-the-art "fairness without demographics" methods like DRO (Distributionally Robust Optimization) and ARL (Adversarially Reweighted Learning) across standard benchmarks like CelebA, Adult (UCI Income), and COMPAS.
COMPAS Dataset (Recidivism Prediction) The method achieved a Disparate Impact of 17.46%, significantly lower (fairer) than the fully supervised baseline (22.32%) and ARL (21.37%), while maintaining comparable accuracy (~63.7%).
Adult Dataset (Income Prediction) It achieved the lowest Equalized Odds (17.63%) among all methods that do not use demographics, proving it can effectively balance error rates across groups.
Efficiency: Unlike adversarial methods (ARL) which can be unstable to train, the authors provided a rigorous theoretical proof that their gradient-based reweighing method converges to a critical point.
Limitations and Future Work
- Validation Set Dependency: The method relies on a small labeled validation set. If this set is too small or contains its own heavy biases, the "compass" might point the model in the wrong direction.
- Noisy Labels: The current work assumes the validation labels are clean. The authors suggest that future research should explore how the model handles "noisy" or incorrectly labeled validation data.
- Sampling Strategies: The authors noted that exploring different ways to sample the validation set could further improve the robustness of the learned representations.
Summary updated