Traditionally, researchers treat algorithmic bias (unfairness toward specific demographic groups) and distribution shift (models failing when the test data differs from the training data) as entirely separate problems. However, this paper argues that many instances of bias are actually caused by distribution shifts—specifically, covariate shift. For example, if a model performs poorly on female attorneys, it is often because they are underrepresented in the training set (a subpopulation shift).
This research reveals a surprising bidirectional synergy between these two fields: enforcing Individual Fairness (IF) acts as a powerful regularizer that improves a model's ability to generalize to new distributions, while Domain Adaptation (DA) techniques can be repurposed to automatically mitigate algorithmic biases. By treating fairness and distribution shifts as two sides of the same coin, the authors provide a framework showing that these two fields actively help each other.
The Bidirectional Framework
The paper explores this relationship in two main directions:
1. Individual Fairness for Domain Adaptation
Individual Fairness requires that "similar individuals be treated similarly." Mathematically, this is often enforced via Lipschitz continuity or Graph Laplacian regularizers. The authors prove that if the "true" relationship between features and labels is individually fair, then enforcing IF during training helps the model extrapolate better from a source domain to a target domain. Essentially, IF acts as an inductive bias that prevents the model from over-relying on "uninformative dissimilarities" (like noise or sensitive attributes) that change between domains.
2. Domain Adaptation for Individual Fairness
DA methods often work by representation alignment—forcing the model to learn features that look the same across different domains. The authors show that if you split your training data based on a sensitive attribute (creating "pseudo-domains"), DA algorithms like DANN or VADA will naturally learn to ignore that sensitive attribute, resulting in an individually fair model. The paper provides a theoretical "Factor Model" to explain this: if a sensitive attribute is what distinguishes two domains, aligning those domains' distributions mathematically forces the model to zero out the influence of that attribute.
Empirical Validation and Key Results
The authors validated their theory using two popular NLP benchmarks:
- Bios Dataset: A collection of professional biographies where the task is to predict a person's occupation. The primary bias involves gender pronouns and names.
- Toxicity Dataset (Civil Comments): A dataset for identifying toxic online comments, where models often incorrectly flag comments simply because they mention certain identity tokens (e.g., "gay," "muslim," "black").
Usually, adding constraints like fairness is expected to decrease accuracy (the "fairness-accuracy trade-off"). This paper suggests that under covariate shift, this trade-off might vanish or even reverse: being fair can actually make a model more accurate on underserved groups.
As shown in the results above, IF interventions—which were never designed with distribution shifts in mind—actually improve out-of-distribution accuracy.
- IF improves OOD Accuracy: On the Bios dataset, IF methods like SenSeI and GLIF significantly improved the "Worst per gender" accuracy (the accuracy of the most disadvantaged group) compared to a standard Empirical Risk Minimization (ERM) baseline (e.g., SenSeI achieved 80.2% vs. the baseline's 77.9%).
- DA improves Fairness: Conversely, using Domain Adaptation methods on "pseudo-domains" split by gender or identity tokens improved Prediction Consistency (a measure of IF). For instance, on the Bios dataset, WDA achieved a consistency of 95.5%, outperforming the baseline's 94.2%.
By forcing the model to be "smooth" across similar individuals, it becomes less likely to latch onto spurious correlations that fail in new environments.
Limitations and Future Work
While promising, the framework has a few limitations:
- The "Fair Metric" Requirement: Individual fairness methods require a pre-defined "fair metric" (knowing which individuals are "similar"). In practice, defining this metric is difficult and often requires deep domain expertise.
- Covariate Shift Assumption: Much of the theory relies on the assumption of covariate shift (where the relationship between features and labels stays the same, but the feature distribution changes).
- Data Splitting Strategies: For the DA-to-Fairness pipeline, the user must decide how to split the data into "domains." While straightforward splits were used here, more sophisticated, automated splitting strategies could further improve results in future work.
Summary updated