Enforcing Conditional Independence for Fair Representation Learning and Causal Image Generation

Jensen Hwa, Qingyu Zhao, Aditya Lahiri, Adnan Masood, Babak Salimi, Ehsan Adeli · DOI

Introduction

In the quest for algorithmic fairness, the goal is often to ensure a model's prediction ($\hat{y}$) is independent of a protected attribute ($s$, like race or gender), conditioned on the true label ($y$). This is known as the Equalized Odds criterion. Traditional approaches usually fall into two traps: "blind invariance," which strips out useful information and hurts accuracy, or "output-only constraints," which leave underlying internal representations biased.

This research introduces a novel training paradigm that enforces Conditional Independence (CI) directly within high-dimensional latent representations. By disentangling sensitive attributes from semantic features, the method enables both fair classification and "causal" image generation, where specific traits can be modified without affecting others.

Overview of the proposed framework for conditionally independent representation learning and causal image generation.

Methodology: JS-Divergence and Dynamic Sampling

The authors characterize the CI constraint ($s \perp v | y$, where $v$ is the latent representation) as the difference between two Jensen-Shannon (JS) divergence terms. Minimizing this difference forces the distribution of latent features to be identical regardless of the sensitive attribute, provided the true label is the same.

To calculate these divergences in a latent space that is learned "on the fly," the authors developed Dynamic Sampling. As shown in the architectural detail below, the system samples with replacement from the current training batch to approximate the required "fair" distribution, similar to a bootstrapping procedure. This allows the model to partition the semantic latent space into a "variant" portion (capturing the sensitive attribute) and an "invariant" portion (enforced to be independent of it).

Detailed view of the CI loss calculation using discriminators and dynamic sampling to approximate fair feature distributions.

Experimental Results

The framework was evaluated across synthetic and real-world datasets:

  • Synthetic Gaussian Kernels: In a controlled environment with confounding variables, the model achieved a balanced accuracy of 0.84 (near the theoretical fair maximum) while reducing correlation to the protected attribute to a negligible 0.055.
  • Gender Shades: On this real-world dataset of face images, the method achieved 96.6% balanced accuracy in sex classification, outperforming established baselines like BR-Net while maintaining a low Equalized Odds (EO) gap of only 5.0%.
  • Visual Fidelity: Unlike previous methods that often produced blurred images when enforcing invariance, this approach maintained high reconstruction quality by leveraging Diffusion Autoencoders (DiffAE).

Key Insights and Causal Disentanglement

The biggest breakthrough is that enforcing fairness in the latent representation is more robust than doing so in the label space. It prevents biased information from "leaking" through the network.

Furthermore, by partitioning the latent space, the model achieves Causal Disentanglement. This allows for causal image generation: a user can take a person's face and "adjust" the skin-type portion of the latent code to see how the model's perception changes while keeping their identity and facial structure intact. This highlights the model's ability to distinguish between "benign correlations" and unfair biases.

Limitations and Future Work

The authors acknowledge that the current implementation focuses on a single sensitive attribute; extending this to multiple attributes may increase computational overhead due to additional discriminators. Additionally, as seen in synthetic experiments, very high values of the fairness hyperparameter ($\lambda$) can introduce training instability, suggesting a delicate balance must be struck between accuracy and fairness. Future work may move toward more complex causal settings, such as mediational analysis.

Summary updated

BibTeX
@misc{hwa2024enforcing,
  author = {Jensen Hwa and Qingyu Zhao and Aditya Lahiri and Adnan Masood and Babak Salimi and Ehsan Adeli},
  title = {{Enforcing Conditional Independence for Fair Representation Learning and Causal Image Generation}},
  year = {2024},
  eprint = {2404.13798},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.13798},
}
Figure