TL;DR
This paper tackles the challenge of Fair Domain Generalization (FairDG)—ensuring that machine learning models remain both accurate and fair when deployed on unseen target domains. By deriving novel information-theoretic upper bounds, the authors develop a practical two-stage training framework that optimizes the trade-off between utility and fairness, significantly outperforming existing methods on real-world vision and language tasks.
What Problem Does This Paper Address?
Machine learning models often degrade when deployed in environments different from their training data (known as domain shift). While Domain Generalization (DG) techniques help models adapt to unseen domains, they typically ignore algorithmic fairness. Conversely, standard fairness methods mitigate bias across demographic groups but fail to generalize when the domain changes; a model that is fair during training can become highly unfair in a new environment.
The authors address the combined problem of FairDG: how to train a model that jointly minimizes both prediction error (expected risk) and fairness violations (such as performance disparities across racial or gender groups) in an entirely unseen target domain. Prior theoretical attempts scaled poorly to complex, real-world scenarios involving multi-class classification or multiple demographic groups.
Methods
The authors first derive new mathematical upper bounds for both expected risk and fairness violations (specifically Equalized Odds) using Mutual Information (MI). Guided by these bounds, they show that the FairDG problem can be reduced to minimizing specific conditional mutual information terms between the model's representations, the source domains, and the sensitive attributes.
Because computing mutual information directly on high-dimensional data is notoriously difficult, the authors introduce a practical framework:
- Differentiable Dependence Metric: They substitute MI with Distance Correlation (dCor) to enforce conditional independence.
- Domain and Group Encoders: Instead of using raw categorical labels for domains and sensitive groups, they train auxiliary encoders to map these labels into continuous latent spaces, capturing subtle intra-group similarities.
- Two-Stage Pareto Optimization:
- Stage 1: Train the domain and group encoders to represent the metadata.
- Stage 2: Freeze those encoders and train the main feature encoder and classifier. They use a loss-conditional training strategy, allowing a single model to learn the entire Pareto front of the utility-fairness trade-off by conditioning the network on a trade-off parameter $\lambda$ at runtime.
Datasets
The framework was evaluated on three distinct, high-dimensional real-world datasets:
- CelebA (Vision): Classifying hair color across different hairstyles (domains), with the intersection of perceived gender and age acting as the sensitive attribute.
- AffectNet (Vision): Classifying facial expressions across different age groups (domains), using perceived race as the sensitive attribute.
- Jigsaw (Text): Classifying toxicity levels in text comments across different toxicity types (domains), with gender-related terms serving as the sensitive attribute.
Key Insights and Ideas
- The Information-Theoretic Advantage: Traditional domain generalization bounds rely on explicit distribution matching (like JS divergence or Hellinger distance), which scales poorly ($|Y| \times |D_S|$). The proposed MI bounds avoid this combinatorial explosion, making the approach highly scalable to multi-class, multi-group settings.
- Continuous Latent Representations for Metadata: Treating discrete domain or demographic labels as continuous vectors (via pre-trained encoders) is much more effective than using raw categorical labels, as it preserves latent structural similarities between groups.
- "You Only Train Once" for Fairness: By incorporating loss-conditional training, practitioners don't need to retrain dozens of models to find the right balance between accuracy and fairness. A single trained model can be dynamically adjusted at inference time simply by sliding the $\lambda$ parameter.
Key Results
The proposed method consistently achieved a superior utility-fairness trade-off compared to both fairness-only methods and state-of-the-art FairDG baselines (like FEDORA and FATDM-StarGAN).
- Higher Hypervolume Indicator (HVI): The method generated a much better Pareto front across all datasets, dominating competing approaches (see Figure 3).
- Quantifiable Gains: On the CelebA dataset, the method achieved an accuracy of 88.7% while reducing the Equalized Odds (EOD) violation to 8.2%, whereas standard Empirical Risk Minimization (ERM) suffered from a 14.2% fairness violation at a lower accuracy of 82.8%.
- Metric Superiority: Ablation studies demonstrated that Distance Correlation (dCor) significantly outperformed alternative dependence metrics like MINE or HSIC.
Limitations and Future Work
- Dependence on Source Domains: Like all domain generalization methods, the performance relies on having a sufficiently diverse set of source domains during training.
- Granularity vs. Effort: While splitting training data into finer domain granularities improves the utility-fairness trade-off, doing so requires extra human annotation effort.
- Non-Monotonicity: The trade-off curve is not perfectly smooth or strictly monotonic due to stochastic errors inherent in empirical risk minimization and distance correlation estimation over finite sample sizes. The authors suggest exploring larger data regimes to smooth out these variations in future work.
Summary updated