Abstract
In many machine learning applications, such as medical imaging, the labels and sensitive attributes (e.g., sex) are the causal drivers of the observed data (e.g., an X-ray). This paper explores these "anti-causal" settings, demonstrating that the objectives of fairness and robustness are mathematically intertwined. Specifically, enforcing the separation fairness criterion is shown to be equivalent to achieving risk invariance across distribution shifts. Through empirical evaluation on the CheXpert dataset, we find that algorithms designed for robustness, such as weighted Maximum Mean Discrepancy (WM-MMD), often provide more stable and effective fairness guarantees than those designed to enforce fairness directly.
Introduction
Machine learning models frequently exploit "shortcuts"—spurious correlations between a target label ($Y$) and a protected attribute ($V$). For instance, if a training set contains a higher prevalence of a disease in one demographic, a model may learn to use demographic membership as a proxy for the disease. This leads to two critical failures: unfairness, where the model discriminates based on irrelevant traits, and fragility, where the model's performance collapses when deployed in environments with different demographic distributions. While various criteria for fairness (e.g., independence, separation) and robustness (e.g., risk invariance) exist, their relationship has remained poorly understood. This work clarifies this link through a causal lens.
Causal Framework for Anti-Causal Prediction
The authors focus on the anti-causal prediction setting. Unlike causal prediction (where features $X$ cause $Y$), here the label $Y$ and the sensitive attribute $V$ generate the observed features $X$.
As illustrated in the causal graph above, $Y$ generates a sufficient statistic $X^*$, which, along with the sensitive attribute $V$, determines the observed input $X$. A spurious correlation (indicated by the dashed line) often exists between $Y$ and $V$ in the training data. The goal is to learn a predictor that relies on $X^*$ rather than the shortcut provided by $V$.
Theoretical Links
The paper establishes two fundamental propositions linking fairness and robustness in this setting:
- Proposition 1: A model satisfying the separation criterion (where predictions are independent of $V$ given $Y$) is guaranteed to be risk-invariant across a family of distribution shifts in $P(Y, V)$.
- Proposition 2: The optimal risk-invariant predictor in this anti-causal setting naturally satisfies the separation criterion.
These results suggest that in anti-causal tasks, "separation" is the appropriate fairness metric as it aligns with the underlying data-generating process. Conversely, "independence" (demographic parity) may force the model to ignore valid information, creating a conflict with robustness.
Methodology and Algorithms
To evaluate these theoretical insights, the authors compare three regularization strategies using Maximum Mean Discrepancy (MMD):
- Conditional MMD (C-MMD): Directly enforces separation by penalizing differences in representations across groups, conditioned on the label $Y$.
- Weighted Marginal MMD (WM-MMD): A robustness-oriented approach that uses reweighting to simulate an "ideal distribution" where $Y$ and $V$ are independent.
- Marginal MMD (M-MMD): Enforces independence (demographic parity).
The study utilizes the CheXpert dataset for pneumonia detection, with patient sex as the sensitive attribute. The authors intentionally biased the training data to create a strong spurious correlation between sex and the disease label.
Key Results
The experimental results confirm the theoretical link between robustness and fairness:
- Robustness-Fairness Synergy: Models with lower risk variance (better robustness) consistently showed fewer violations of the Equalized Odds (separation) criterion.
- Superiority of WM-MMD: The robustness-motivated WM-MMD algorithm outperformed direct fairness enforcement (C-MMD). It achieved higher out-of-distribution (OOD) AUROC and smaller fairness gaps.
- Stability: WM-MMD proved significantly more stable during training. While C-MMD requires "data-slicing" within batches—leading to volatile gradients—the reweighting approach of WM-MMD provides a more consistent signal across training and validation.
- OOD Performance: While standard Deep Neural Networks (DNNs) achieved high in-distribution accuracy by exploiting shortcuts, they failed on shifted distributions. Fairness-constrained models, though potentially less accurate on biased training data, proved to be the optimal strategy for maintaining performance in new environments.
Conclusion
This research highlights that the choice of fairness criterion must be informed by the causal structure of the task. In anti-causal settings, fairness and robustness are not competing goals but are two sides of the same coin. Future work should investigate these relationships in "causal" prediction scenarios and extend the framework to non-binary attributes and more complex data structures.
Summary updated