Introduction
Deep learning models are notoriously "data hungry" and often "lazy." When a dataset contains spurious correlations—shortcuts that allow for high accuracy without learning the underlying task—networks will exploit them. For example, if a face dataset contains mostly older men and younger women, an age-predictor might learn to use gender as a proxy for age. This leads to fundamental issues of fairness and transparency, especially as AI is deployed in sensitive domains like law, medicine, and recruitment. This paper introduces the Joint Learning and Unlearning (JLU) algorithm, designed to strip unwanted biases from a neural network's internal feature representations.
The Problem of Spurious Correlations
The authors highlight that networks naturally gravitate toward the easiest path to minimize loss. If protected attributes like gender or ancestral origin are correlated with the target label in the training set, the model's embeddings will encode these biases rather than the intended features.
As shown in the dataset analysis, significant imbalances between classes (e.g., age vs. gender) create "shortcuts" that hinder generalization on unbiased, real-world data. The JLU method aims to break these correlations by making the network intentionally "blind" to specific variations.
Methods: Joint Learning and Unlearning (JLU)
The proposed JLU framework consists of a primary branch for the main task and one or more secondary branches for the biases to be removed.
The core innovation lies in the training process, which utilizes three distinct loss functions:
- Primary Loss: A standard softmax loss to ensure the network learns the main task (e.g., age classification).
- Secondary Classification Loss: Trains a small classifier to identify the bias from the feature embedding.
- Confusion Loss: The "unlearning" mechanism. It calculates the cross-entropy between the bias classifier's output and a uniform distribution.
By minimizing the confusion loss, the algorithm effectively "confuses" the network about the biased attribute, forcing the feature representation to be as uninformative as possible regarding the secondary task. This adversarial-style setup ensures that the final decision is based only on task-relevant features.
Datasets and Validation
The study utilizes three main datasets to test the framework:
- LAOFIW (Labeled Ancestral Origin Faces in the Wild): A new dataset containing 14,000 images across four ancestral origins.
- IMDB: A high-quality subset of 60,000 celebrity face images, cleansed using the Microsoft Azure Face API to fix noisy age and gender labels.
- AFLW: Used specifically to demonstrate the removal of geometric variations like pose (yaw).
Key Results and Insights
The JLU method demonstrates significant improvements in both fairness and accuracy across several benchmarks:
- Extreme Bias Recovery: In a scenario where all women were young and all men were old in the training set, a standard classifier achieved only 70% accuracy on a balanced test set. The JLU-enhanced model reached 86% accuracy by ignoring the age-gender shortcut.
- Bias Reduction: For age classification, unlearning gender reduced the KL-divergence between male and female prediction distributions from 0.049 to 0.027, indicating more equitable treatment across genders.
- Feature Erasure: Multi-bias experiments showed that recoverable information for spurious attributes could be reduced to near-random chance. For example, pose classification accuracy dropped from 66% to 24% (where random is 20%).
- Intentional Blindness: t-SNE visualizations confirmed that JLU effectively removes clusters based on biased attributes, proving the embeddings become truly agnostic to the neutralized features.
Conclusion
The JLU algorithm provides a robust framework for ensuring neural networks remain focused on relevant features while ignoring spurious variations. While some attributes, like ancestral origin, are more deeply intertwined with facial features and thus harder to erase, the method offers a clear path toward fairer AI. Future work may involve dynamic weighting of confusion losses to better handle stubborn biases.
Summary updated