Learning Fair Invariant Representations under Covariate and Correlation Shifts Simultaneously

Dong Li, Chen Zhao, Minglai Shao, Wenjun Wang

Introduction

Machine learning models often struggle when deployed in environments where the data distribution differs from the training set. This "distribution shift" is particularly problematic for fairness-critical applications. Two primary types of shifts occur: covariate shift, where the marginal distribution of features changes (e.g., image rotations), and correlation shift, where the relationship between a sensitive attribute and the target label varies across domains.

Illustration of simultaneous covariate and correlation shifts.

While existing literature often addresses these shifts in isolation, real-world scenarios frequently involve both simultaneously. Ignoring these combined shifts can lead to models that are either inaccurate on novel data or, worse, propagate and amplify historical biases. This paper introduces FLAIR (Fairness-aware LeArning Invariant Representations), a framework designed to achieve domain generalization while strictly maintaining model fairness under both shift types.

Methodology: The FLAIR Framework

FLAIR addresses the challenge of simultaneous shifts through a three-pronged architectural approach: disentanglement, fair representation learning, and invariant classification.

The FLAIR architecture for learning fair invariant representations.

Disentanglement via Transformation

The model utilizes a dual-encoder system: a content encoder ($h_c$) and a style encoder ($h_s$). The core assumption is that "content" (the label-relevant features) should remain invariant across domains, while "style" (domain-specific traits like rotation or lighting) captures the variance. A decoder ($D$) ensures that these factors can reconstruct the original input, enforcing transformation-invariance and preserving essential information.

Fair Representation Learner

The heart of FLAIR is its prototype-based representation learner ($g$). Instead of passing raw content features directly to a classifier, FLAIR maps them to $K$ latent prototypes based on a Gaussian Mixture Model (GMM). This bottleneck serves two fairness objectives:

  1. Group Fairness: It enforces statistical parity by ensuring the probability of a content factor mapping to a specific prototype is equal across different sensitive groups.
  2. Individual Fairness: It ensures that similar individuals are mapped to similar representations by clustering them around the same prototypes.

Invariant Classifier

Finally, an invariant classifier is trained on these "scrubbed" and domain-invariant representations. The training process employs a primal-dual algorithm to optimize the trade-off between classification accuracy and the constraints of fairness and domain invariance.

Experimental Evaluation

The authors evaluated FLAIR against state-of-the-art baselines across three diverse datasets: Rotated-Colored-MNIST (RCMNIST), which features both rotation and varying label-color correlations; the NYPD Stop-and-Frisk tabular dataset; and the FairFace image dataset.

Key Results

FLAIR consistently outperformed baselines across all metrics:

  • Accuracy: Maintained high performance despite significant covariate shifts.
  • Group Fairness: Achieved the lowest Demographic Parity Difference ($\Delta_{DP}$), notably on the NYPD dataset.
  • Individual Fairness: Recorded the highest Consistency scores, indicating more equitable treatment of similar individuals.
  • Pareto Optimality: In accuracy-vs-fairness trade-off plots, FLAIR consistently occupied the superior "upper-left" frontier.

Discussion and Conclusion

The success of FLAIR highlights the critical link between fairness and invariance in domain generalization. By using prototypes as a buffer, the model effectively filters out sensitive information while retaining core content. This approach bridges the traditional gap between group and individual fairness. While the framework currently focuses on binary sensitive attributes, it represents a significant step toward deploying robust and fair machine learning models in dynamic, real-world environments.

Summary updated

BibTeX
@inproceedings{li2025learning,
  author = {Dong Li and Chen Zhao and Minglai Shao and Wenjun Wang},
  title = {{Learning Fair Invariant Representations under Covariate and Correlation Shifts Simultaneously}},
  booktitle = {CIKM},
  year = {2025},
  url = {https://openreview.net/forum?id=uqcXbuMf30},
}
Figure