NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Domain Adaptation meets Individual Fairness. And they get along

Debarghya Mukherjee, Felix Petersen, Mikhail Yurochkin, Yuekai Sun · DOI

Abstract

Algorithmic fairness and domain adaptation are traditionally treated as distinct research areas. This paper demonstrates a deep, bidirectional connection between the two. We show that enforcing Individual Fairness (IF)—the principle that similar individuals should receive similar outcomes—serves as a powerful inductive bias for generalizing to out-of-distribution (OOD) data. Conversely, we demonstrate that Domain Adaptation (DA) techniques can be repurposed to achieve individual fairness by treating protected demographic groups as distinct "domains." Our findings suggest that the challenges of algorithmic bias and distribution shift are fundamentally linked by the need to ignore uninformative dissimilarities in data.

Introduction

Machine learning models frequently struggle with two critical challenges: algorithmic bias and distribution shift. Algorithmic bias often manifests when models perform poorly on underrepresented demographic groups, while distribution shift occurs when a model encounters data in the real world that differs from its training environment. Historically, the fairness community has developed interventions to mitigate bias, while the robustness community has focused on domain adaptation to handle shifts.

This paper argues that these two problems are two sides of the same coin. By focusing on Individual Fairness (IF), we explore how the inductive bias required to treat similar individuals consistently also provides the necessary smoothness for a model to survive covariate shifts—where the input distribution changes but the underlying labeling logic remains constant.

1. Fairness as an Inductive Bias for Robustness

Individual Fairness is mathematically grounded in the concept of Lipschitz continuity. If we define a model $f(x)$, IF requires that $f(x)$ produces similar outputs for similar inputs $x$ and $x'$. This is often enforced using regularizers such as the graph Laplacian to ensure smoothness across the data manifold.

The authors prove (Theorems 2.4 and 2.7) that if the true underlying function is "fair" (smooth), then enforcing IF during training acts as a constraint that improves accuracy on unseen distributions. Essentially, by forcing the model to ignore irrelevant variations between similar individuals, the model becomes less likely to overfit to the specific idiosyncrasies of the training distribution, leading to better OOD generalization.

2. Domain Adaptation as a Tool for Fairness

Standard Domain Adaptation methods, such as Domain-Adversarial Neural Networks (DANN) or Variational Adversarial Domain Adaptation (VADA), aim to find a data representation $\Phi(X)$ that is domain-invariant. In these settings, a discriminator is trained to distinguish between domains, while the encoder is trained to fool the discriminator.

The novelty of this paper lies in splitting a single dataset into "domains" based on protected attributes (e.g., Domain A = Men, Domain B = Women). By applying DA to align these demographic domains, the model learns a representation that is invariant to the protected attribute. This effectively enforces individual fairness without requiring a pre-defined, hand-crafted "fair metric," which is a common bottleneck in traditional IF research.

Experimental Evaluation

The study evaluates these bidirectional strategies on two textual datasets known for inherent biases:

  • Bios: A dataset for predicting occupations from biographies, characterized by significant gender imbalances (e.g., a higher frequency of male examples for "attorney" and female examples for "nurse").
  • Toxicity: A dataset of online comments where models often spuriously associate "identity tokens" (e.g., "gay", "black") with toxicity due to biased training labels.

Key Results

  • Fairness improves OOD Accuracy: On the Bios dataset, the IF-based method SenSeI improved "Worst per gender" accuracy to 80.2%, compared to the 77.9% baseline. On the Toxicity dataset, the GLIF method boosted the True Negative Rate for identity groups from 75.0% to 84.5%.
  • DA improves Fairness: When using Domain Adaptation to enforce fairness, the Wasserstein-based DA (WDA) method significantly improved Prediction Consistency (PC). On the Toxicity dataset, WDA achieved 65.4% PC, a notable improvement over the 62.1% baseline, while maintaining competitive overall accuracy.

Discussion: Uninformative Dissimilarity

The core insight of this work is the concept of "Uninformative Dissimilarity." In the context of fairness, we want a model to ignore variations caused by sensitive attributes that should not affect the outcome. In domain adaptation, we want to ignore variations caused by domain-specific noise. Both fields are essentially attempting to filter out the same type of "noise" to isolate the true "signal."

Enforcing fairness is therefore not just a moral or legal constraint; it is a functional one. If a practitioner knows that a person's gender should not influence a job prediction, enforcing that constraint makes the model more robust when it encounters a new distribution with a different gender balance.

Limitations and Conclusion

While the results are promising, the theoretical framework primarily assumes covariate shift, where the relationship between features and labels remains stable. While the authors provide some extensions for non-covariate shift in their appendices, the primary results rely on this assumption. Additionally, the DA-for-fairness approach requires a clear method for partitioning data into groups, which may be difficult in complex scenarios involving intersecting identities.

In conclusion, this paper demonstrates that Individual Fairness and Domain Adaptation are complementary. By treating protected groups as domains, we can leverage robust optimization tools to build fairer models; by enforcing fairness constraints, we can build models that generalize better to the real world.

Summary updated

BibTeX
@inproceedings{mukherjee2022domain,
  author = {Debarghya Mukherjee and Felix Petersen and Mikhail Yurochkin and Yuekai Sun},
  title = {{Domain Adaptation meets Individual Fairness. And they get along}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=XSNfXG9HBAu},
}
Figure