Fair Feature Distillation for Visual Recognition

Sangwon Jung, Donggyu Lee, Taeeon Park, Taesup Moon · DOI

Abstract

Deep learning models often face a significant trade-off between predictive accuracy and algorithmic fairness. While standard Knowledge Distillation (KD) effectively transfers performance from a teacher to a student model, it frequently propagates or amplifies the teacher's inherent biases. This paper introduces Fair Feature Distillation (MFD), a framework that utilizes Maximum Mean Discrepancy (MMD) to align a student's feature distributions with the teacher's group-averaged representations. This approach effectively "washes out" sensitive attributes while preserving high-fidelity predictive features. Experimental results across multiple datasets demonstrate that MFD consistently improves both accuracy and fairness compared to state-of-the-art baselines.

Introduction

In visual recognition tasks, models often inadvertently rely on sensitive attributes—such as race, gender, or skin tone—to make predictions. Traditional "in-processing" fairness methods typically require training from scratch and often sacrifice accuracy by discarding useful information from pre-trained models. Conversely, standard KD methods prioritize accuracy but fail to address fairness, leading students to inherit the "prejudices" of their teachers. MFD addresses this gap by treating the teacher as a source of rich, albeit biased, information and filtering it through a distribution-matching objective.

Methodology: MMD-based Fair Distillation

The core of MFD is a "washing out" strategy implemented via Maximum Mean Discrepancy (MMD). Rather than forcing a student to match the teacher's features on an instance-by-instance basis, MFD encourages the student to align with the teacher’s group-averaged feature distribution for a specific class.

The MFD framework aligns student feature distributions with teacher distributions using MMD loss to ensure group-agnostic representations.

The Objective Function

The student model minimizes a multi-task loss function consisting of a standard classification loss and an MMD fairness regularizer. This regularizer minimizes the distance between the student's group-conditioned features ($p_{a,y}^S$) and the teacher's mean representation ($p_y^T$) for that class. By averaging across protected groups (e.g., different races within the "attractive" class), group-specific biases are neutralized, leaving only common predictive features.

Experimental Evaluation

The researchers evaluated MFD on three datasets representing different bias challenges: CIFAR-10S (synthetic color skew), UTKFace (age classification with race bias), and CelebA (attractiveness prediction with gender bias).

Key Results

MFD consistently outperformed both standard KD (e.g., FitNet, HKD) and dedicated fairness methods (e.g., Adversarial Debias). Notably, standard KD methods often increased the model's bias ($DEO_M$) because they were too effective at replicating the teacher's flawed logic.

Quantitative comparison on CIFAR-10S showing MFD achieving the highest accuracy and lowest fairness gap ($DEO_M$) compared to various baselines.

On CIFAR-10S, MFD achieved 82.77% accuracy (surpassing the teacher's 79.62%) while reducing the fairness gap ($DEO_M$) from 31.32% to 6.08%. Similar trends were observed in UTKFace and CelebA, where MFD reduced bias by over 70% while maintaining or slightly improving accuracy.

Discussion and Insights

  • Distribution Matching vs. Instance Matching: By matching distributions, the model gains the flexibility to ignore instance-specific noise (like skin tone) in favor of class-wide patterns.
  • The Teacher as a Filter: MFD demonstrates that even a biased teacher contains valuable features. The distillation process acts as a filter, extracting "wisdom" while discarding "prejudice."
  • Stability: A strategic sampling approach within mini-batches ensures that each group-label pair is represented, maintaining gradient stability during MMD optimization.

Conclusion and Future Work

MFD provides a robust framework for building fair and accurate visual recognition models. While current results are promising, future work could explore multi-layer distillation to capture more complex fair features and investigate the framework's effectiveness in model compression scenarios.

Summary updated

BibTeX
@inproceedings{jung2021fair,
  author = {Sangwon Jung and Donggyu Lee and Taeeon Park and Taesup Moon},
  title = {{Fair Feature Distillation for Visual Recognition}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.01194},
}
Figure