Fairness meets Cross-Domain Learning: a new perspective on Models and Metrics

Leonardo Iurada, Silvia Bucci, Timothy M. Hospedales, Tatiana TommasiarXiv 2023 · DOI · arXiv

Introduction

Deep learning models often inherit "spurious correlations" from training data, leading to biased performance across different demographic subgroups. While algorithmic fairness has emerged as a critical field of study, it currently faces two significant challenges: the "leveling down" trap—where fairness is achieved by reducing performance for all groups—and a narrow focus on classification tasks, neglecting regression-based applications like facial landmark detection.

This paper proposes a paradigm shift by reframing fairness through the lens of Cross-Domain (CD) learning. By treating demographic groups as distinct "domains," the authors demonstrate that existing CD algorithms can effectively mitigate bias while maintaining or even improving overall model performance.

Methodology

Subgroups as Domains

The core hypothesis of this work is that demographic subgroups (e.g., categorized by gender, age, or skin tone) can be treated as separate domains. In this framework, the goal of fairness becomes synonymous with domain generalization: ensuring a model performs robustly across varying data distributions.

Conceptual overview of treating demographic subgroups as domains in cross-domain learning to improve fairness.

As illustrated above, cross-domain learning techniques aim to align features across these demographic "domains," reducing the performance gap (Difference in Accuracy) without necessarily sacrificing the accuracy of the best-performing group.

The Harmonic Fairness (HF) Metric

To address the "leveling down" trap, the authors introduce the Harmonic Fairness (HF) score. Traditional metrics often focus solely on the gap between groups, ignoring absolute performance. The HF score balances Maximum Group Accuracy (MGA) and the Difference in Accuracy (DA) relative to a baseline.

Visualization of the trade-off between Maximum Group Accuracy (MGA) and minimum Group Accuracy (mGA) used to evaluate model fairness and performance.

By utilizing a structure similar to a harmonic mean, the HF metric penalizes models that achieve fairness by degrading performance for all groups, instead favoring models that achieve a Pareto improvement—increasing the performance of the "worst-off" group without significantly harming others.

Experimental Setup

The researchers evaluated 14 cross-domain learning algorithms (e.g., DANN, AFN, RSC) against 3 specialized fairness methods across diverse benchmarks:

  • Classification: CelebA (facial attributes), COVID-19 Chest X-Rays (pathology detection), and Fitzpatrick17k (clinical skin conditions categorized by skin tone).
  • Regression (Landmark Detection): The authors introduced a benchmark using the UTK Face dataset to evaluate fair landmark detection, measuring Normalized Mean Error (NME) and Success Detection Rate (SDR) across age and skin tone groups.

Key Insights and Results

CD Methods as Fairness Solutions

A primary finding is that general-purpose CD algorithms frequently outperform specialized fairness methods. For instance, on the CelebA dataset, Adaptive Feature Norm (AFN) and Domain-Adversarial Neural Networks (DANN) consistently achieved the highest HF scores. In medical imaging (Fitzpatrick17k), self-supervised methods like RelRot provided the best balance of equity and accuracy.

Fairness Transferability

The study revealed a "transfer effect": models trained to be invariant to one sensitive attribute (e.g., gender) often showed improved robustness to others (e.g., age). This suggests that learning to ignore one type of spurious visual correlation helps the model generalize better overall.

Beyond Classification

In the realm of facial landmark detection, baseline models exhibited significant performance discrepancies (>5% SDR) between groups. CD methods like RegDA and AFN effectively closed these gaps, proving that the domain-centric approach is highly effective for regression tasks where traditional fairness interventions often struggle.

Conclusion

By bridging the gap between fairness and cross-domain learning, this research provides a broader set of tools for developing equitable AI. The introduction of the Harmonic Fairness metric ensures that progress in fairness does not come at the cost of overall utility, while the expansion into landmark detection highlights the pervasive nature of bias in computer vision. Future work will explore the scalability of these methods to more complex tasks like object detection and semantic segmentation.

Summary updated

Abstract

Deep learning-based recognition systems are deployed at scale for several real-world applications that inevitably involve our social life. Although being of great support when making complex decisions, they might capture spurious data correlations and leverage sensitive attributes (e.g. age, gender, ethnicity). How to factor out this information while keeping a high prediction performance is a task with still several open questions, many of which are shared with those of the domain adaptation and generalization literature which focuses on avoiding visual domain biases. In this work, we propose an in-depth study of the relationship between cross-domain learning (CD) and model fairness by introducing a benchmark on face and medical images spanning several demographic groups as well as classification and localization tasks. After having highlighted the limits of the current evaluation metrics, we introduce a new Harmonic Fairness (HF) score to assess jointly how fair and accurate every model is with respect to a reference baseline. Our study covers 14 CD approaches alongside three state-of-the-art fairness algorithms and shows how the former can outperform the latter. Overall, our work paves the way for a more systematic analysis of fairness problems in computer vision. Code available at: https://github.com/iurada/fairness_crossdomain
BibTeX
@misc{iurada2023fairness,
  author = {Leonardo Iurada and Silvia Bucci and Timothy M. Hospedales and Tatiana Tommasi},
  title = {{Fairness meets Cross-Domain Learning: a new perspective on Models and Metrics}},
  year = {2023},
  eprint = {2303.14411},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.14411},
}
Figure