Fairness without Demographics through Knowledge Distillation

Junyi Chai, Taeuk Jang, Xiaoqian Wang

TL;DR

This paper introduces a novel framework for achieving group fairness in machine learning without requiring sensitive demographic data (like race or gender) during training. By leveraging knowledge distillation from an overfitted teacher model, the authors generate "soft labels" that act as an implicit reweighting mechanism. This approach significantly improves fairness metrics with minimal impact on overall accuracy.

The Problem: Fairness in the Dark

Most "fair" machine learning algorithms rely on a major assumption: that sensitive demographic information is readily available in the training set to guide the model. In reality, legal restrictions (like the GDPR) or privacy concerns often make collecting this data impossible.

Existing "blind" fairness methods typically follow the Rawlsian Max-Min principle, which tries to maximize the performance of the worst-performing group. However, these constraints are often too rigid; they can lead to a massive "accuracy tax" and don't always succeed in reducing the actual performance gap between groups. The authors seek a way to quantify and correct for distributional disparities without ever seeing a "race" or "gender" tag.

Methods: Knowledge Distillation for Fairness

The core innovation is using Knowledge Distillation (KD)—traditionally a model compression technique—as a tool for fairness.

  1. The Teacher: First, they train a complex "teacher" model (e.g., ResNet-152) to intentionally overfit the training data.
  2. The Student: They then train a simpler "student" model (e.g., ResNet-18). Instead of just learning from the original "hard" labels (0 or 1), the student learns from a combination of hard labels and "soft labels" (continuous probabilities) generated by the teacher.
  3. Mapping Functions: The authors explore two ways to convert the teacher's raw outputs (logits) into these soft labels: a standard Softmax function and a novel Linear mapping.
The KD framework: An overfitted teacher provides soft labels that help the student find a fairer decision boundary.

The intuition is that an overfitted teacher captures the "hardness" of specific samples. By training on these soft labels, the student model is forced to pay more attention to samples near the decision boundary—samples that often belong to disadvantaged or minority groups.

Key Insights and Ideas

  • KD as Implicit Reweighting: The authors provide a theoretical proof showing that training with soft labels is mathematically equivalent to error-based reweighting. It naturally "up-weights" hard samples that are correctly classified by the teacher, which are often the very samples where bias is most prevalent.
  • Overfitting is a Feature, Not a Bug: While we usually avoid overfitting, here it is essential. The teacher must overfit to capture the specific nuances of the training distribution that represent "hard" cases for the student to learn from.
  • Moving the Boundary: Soft labeling allows the model to shift its decision boundary in a way that benefits disadvantaged groups without the heavy-handed constraints of Max-Min fairness.

Datasets and Key Results

The authors evaluated their method on three major benchmarks: New Adult (income prediction), COMPAS (criminal recidivism), and CelebA (facial attribute prediction).

The proposed KD method consistently outperformed state-of-the-art (SOTA) blind fairness alternatives like Distributionally Robust Optimization (DRO) and Adversarially Reweighted Learning (ARL).

  • Fairness Gains: On the New Adult dataset (gender), the student model using linear labels achieved an Equalized Odds score of 11.59%, a massive improvement over the 18.82% of the standard baseline.
  • Accuracy Preservation: Unlike DRO, which often sees accuracy plummet, the KD method maintained high performance. For instance, on CelebA, the KD student achieved ~80.8% accuracy, significantly higher than DRO’s ~76.6%.
  • Consistency: The improvements were consistent across different sensitive attributes (race, gender, age) even though the model never saw those attributes during training.
Results comparing the KD approach to SOTA methods, demonstrating superior accuracy and improved fairness metrics.

Limitations and Future Work

While the results are promising, the authors note a few areas for further exploration:

  • Mapping Functions: Only Softmax and Linear mappings were tested. There may be other functions that better capture the "fairness signal" in the teacher's logits.
  • Distributional Shift: The paper primarily focuses on fairness within the training distribution. How these models perform under significant "covariate shift" (when the test data looks drastically different from the training data) remains an open question.
  • Partial Information: Future work could investigate "hybrid" scenarios where demographic information is available for only a small subset of the data.

Summary updated

BibTeX
@inproceedings{chai2022fairness,
  author = {Junyi Chai and Taeuk Jang and Xiaoqian Wang},
  title = {{Fairness without Demographics through Knowledge Distillation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
}
Figure