Abstract
Machine learning models trained on historical data frequently replicate and amplify societal biases. This paper introduces the Fair Causal Variational Autoencoder (FCVAE), a novel framework that addresses fairness by treating sensitive attributes as confounders within a structural causal model. Unlike traditional approaches that aim for "fairness through blindness," FCVAE leverages causal awareness to explicitly model the influence of sensitive attributes on both treatments and outcomes. By inferring latent variables from observed proxies, the model accurately estimates individual-level causal effects and derives equitable decision-making policies. Empirical evaluations on semi-synthetic datasets demonstrate that FCVAE significantly reduces estimation error and policy regret while narrowing accuracy gaps between subgroups.
Introduction
Historical datasets used for training machine learning models are often permeated with human prejudice. In domains like predictive policing or credit scoring, models may learn to replicate biased historical patterns rather than identifying true underlying relationships. A critical limitation of standard predictive models is their treatment of these tasks as pure classification problems. In reality, these are decision-making problems where we must choose an intervention (treatment) to achieve a desired outcome.
To achieve true fairness, we must move beyond correlation and embrace causality. Two primary challenges hinder this: selection bias, where counterfactual outcomes are unobserved, and hidden confounders, which bias the relationship between treatments and outcomes.
The Fair Causal VAE (FCVAE)
The authors propose the Fair Causal Variational Autoencoder (FCVAE), which extends the Structural Causal Model (SCM) framework. The core innovation lies in explicitly modeling the sensitive attribute ($A$) as a confounder that influences both the treatment ($T$) and the outcome ($Y$).
Key technical features include:
- Latent Variable Inference: Recognizing that many confounders are unobserved, FCVAE uses a Variational Autoencoder (VAE) to infer a latent variable ($Z$) from observed proxies ($X$). Together, $A$ and $Z$ aim to capture the factors driving bias.
- Treatment-Agnostic Representation Networks (TARNets): The model utilizes neural architectures with separate heads for different treatment and attribute combinations, preventing the signal from being diluted in high-dimensional spaces.
- Counterfactual Reasoning: By learning the joint distribution, the model can perform the "do-operation" to simulate interventions, answering counterfactual questions such as "Would this person have received the same outcome if their sensitive attribute were different?"
Experimental Evaluation
The model was evaluated using a semi-synthetic version of the Infant Health and Development Program (IHDP) dataset. The original dataset, based on a randomized experiment for low-birth-weight infants, was modified to include a sensitive attribute (mother's race) and biased treatment assignments. This setup allowed the researchers to test how well the model handles historical prejudice and hidden confounders even when the most informative proxy features are removed.
Results and Discussion
FCVAE was compared against standard Multi-Layer Perceptrons (MLPs) and the original CVAE (which does not treat the sensitive attribute as a confounder). The results showed:
- Improved Causal Estimation: FCVAE achieved significantly lower PEHE (Precision in Estimation of Heterogeneous Effects), indicating superior accuracy in predicting counterfactuals.
- Reduced Policy Regret: Policies derived from FCVAE were closer to the optimal treatment strategy than those from baseline models.
- Enhanced Fairness: The accuracy gap between different subgroups was consistently smaller with FCVAE, demonstrating a more equitable distribution of model performance across sensitive groups.
Conclusion
The FCVAE framework demonstrates that fairness in machine learning is best achieved through causal awareness rather than blindness. By explicitly modeling the data-generating process and accounting for historical bias as a confounding factor, we can build models that are not only more accurate but also more just. Future work will explore extending this framework to non-binary attributes and decomposing causal paths to further audit bias flow.
Summary updated