Abstract
Given an algorithmic predictor that is "fair" on some source distribution, will it still be fair on an unknown target distribution that differs from the source within some bound? In this paper, we study the transferability of statistical group fairness for machine learning predictors (i.e., classifiers or regressors) subject to bounded distribution shifts. Such shifts may be introduced by initial training data uncertainties, user adaptation to a deployed predictor, dynamic environments, or the use of pre-trained models in new settings. Herein, we develop a bound that characterizes such transferability, flagging potentially inappropriate deployments of machine learning for socially consequential tasks. We first develop a framework for bounding violations of statistical fairness subject to distribution shift, formulating a generic upper bound for transferred fairness violations as our primary result. We then develop bounds for specific worked examples, focusing on two commonly used fairness definitions (i.e., demographic parity and equalized odds) and two classes of distribution shift (i.e., covariate shift and label shift). Finally, we compare our theoretical bounds to deterministic models of distribution shift and against real-world data, finding that we are able to estimate fairness violation bounds in practice, even when simplifying assumptions are only approximately satisfied.
Introduction
Machine learning models are rarely deployed on data that perfectly matches their training set. While the impact of distribution shift on model accuracy is a well-studied problem in AI safety, its impact on fairness is less understood. A model may satisfy strict fairness constraints—such as treating different demographic groups equally—during its initial training phase, yet these guarantees can evaporate when the model encounters a new population. This shift might be caused by geographic differences, temporal changes, or even strategic behavior where users adapt to the model's decision boundaries.
This research addresses the critical question: Can we trust a "fair" model when the world changes? By introducing a mathematical framework to calculate the "worst-case scenario" for fairness violations, this work allows practitioners to certify whether a model’s fairness guarantees will hold under a bounded degree of distribution shift.
Theoretical Framework
The authors treat distribution shift as an adversarial process occurring within a bounded domain. The framework is built upon three primary mathematical pillars:
- Premetric Functions: Fairness and distribution shifts are defined using "premetrics," a flexible mathematical approach to measuring the distance between probability distributions.
- Vector-Bounded Shifts: Rather than assuming a specific cause for data changes, the framework assumes the shift is bounded by a known vector. This allows the model to remain agnostic about whether the shift originates from changes in features ($X$) or labels ($Y$).
- General Upper Bounds: By utilizing Lipschitz and subadditivity conditions, the authors derive a generic upper bound for transferred fairness violations. This serves as a "safety envelope" for model deployment.
Geometric Interpretation
A unique technical contribution of this work is the geometric interpretation of fairness in Hilbert space. By visualizing fairness violations as angles between vectors, the authors are able to bound "Equal Opportunity" violations using trigonometric relationships, providing a more intuitive understanding of how shifts pull a model away from its fairness targets.
Analyzing Specific Shifts
The research provides detailed derivations for two common scenarios:
- Covariate Shift: Occurs when the distribution of features ($X$) changes, but the relationship between features and labels ($Y$) remains constant. This is common when moving a model between different geographic regions.
- Label Shift: Occurs when the proportion of labels ($Y$) changes, but the features associated with those labels remain consistent. This often happens over time as societal or economic trends evolve.
One significant insight is the accuracy-fairness trade-off in transfer. For label shifts, the bound on fairness violation is proportional to the difference between the True Positive Rate (TPR) and False Positive Rate (FPR). This implies that a highly accurate classifier might be less robust regarding fairness transferability than a more stochastic one, as sharp decision boundaries can be more sensitive to population changes.
Empirical Validation
The theoretical bounds were validated using both synthetic simulations and large-scale real-world data.
Synthetic Models
The authors employed "Strategic Response" models, where agents change their features to obtain better outcomes, and "Replicator Dynamics" from evolutionary game theory. These tests confirmed that less stochastic classifiers (those with very sharp boundaries) are more prone to large fairness violations under shift.
Real-World Data: The American Community Survey (ACS)
Using the Folktables package, the authors analyzed over 1.5 million data points from the US Census (2014–2018). They tested two primary types of real-world shift:
- Geographic Shift: Training a model on data from California and testing it on Illinois.
- Temporal Shift: Training on 2014 data and testing on 2018 data.
In these experiments, the theoretical bounds consistently provided a reliable upper limit on the actual fairness violations observed. For example, in temporal shifts, the label shift bound for Demographic Parity remained within the same order of magnitude as the real-world change, proving the framework's utility as a practical safety tool.
Conclusion and Future Work
This research demonstrates that fairness is inherently fragile; even small, realistic shifts can significantly degrade a model's ethical guarantees. However, by assuming a "budget" for potential distribution shifts, practitioners can calculate a safety margin for fairness metrics.
Future research will focus on compound shifts, where covariate and label shifts occur simultaneously, and on developing better methods for estimating the initial "bound" ($B$) of the shift, which currently requires significant domain expertise. By integrating more sophisticated models of human behavior, the framework can be further refined to provide even tighter bounds for socially consequential AI deployments.
Summary updated