Abstract
Generative models often inherit confounding biases present in observational data, leading to inaccurate counterfactual simulations. We present DoubleGen, a "doubly robust" framework for training generative models that can accurately estimate counterfactual outcomes. By integrating both a propensity model and an outcome model into the training objective, DoubleGen ensures consistent estimation as long as at least one auxiliary model is correctly specified. We demonstrate the framework's efficacy across Flow Matching, Diffusion, and Autoregressive architectures, showing significant improvements in bias reduction and sample quality on image and language datasets.
Introduction
Modern generative models excel at replicating the distributions found in their training data. However, real-world datasets are frequently plagued by confounding bias—statistical correlations that do not imply causation. For instance, if a dataset contains a disproportionate number of smiling individuals wearing lipstick, a naive model may struggle to generate a "smiling" face without also adding lipstick. This limitation is critical when researchers need to generate counterfactuals: data representing what would happen under a specific intervention (e.g., "What would this population look like if everyone smiled?").
The Challenge of Confounding Bias
Traditional debiasing methods typically rely on a single auxiliary model, such as a propensity score. These "singly robust" methods are fragile; if the auxiliary model is even slightly misspecified, the resulting generative output remains biased. In datasets like CelebA, confounding variables are pervasive. As shown in the table below, attributes like "Lipstick" and "Makeup" are significantly more prevalent in the "Smiling" subset of the data compared to the "Not Smiling" subset.
The DoubleGen Framework
DoubleGen addresses these challenges by applying doubly robust estimation to the generative training objective. The framework utilizes the Augmented Inverse Probability Weighted (AIPW) estimator, which incorporates two "nuisance" models:
- Propensity Model: Estimates the likelihood of the intervention (the treatment) given observed features.
- Outcome Model: A conditional transport map that predicts the outcome under the intervention.
The mathematical advantage of this approach is its resilience: the training objective remains a consistent estimator of the true counterfactual risk even if one of these nuisance models is incorrect. Furthermore, DoubleGen is architecture-agnostic and can be integrated into various state-of-the-art generative paradigms.
Key Insights and Results
Direct Counterfactual Generation
Unlike many causal models that generate intermediate features before the final outcome, DoubleGen generates the counterfactual outcome ($Y^*$) directly. This prevents "error propagation," where minor inaccuracies in complex feature generation (like high-resolution image details) accumulate and distort the final causal inference.
Empirical Performance
- Image Synthesis (CelebA): DoubleGen outperformed naive models in both Fréchet and Kernel distances. Notably, it achieved significantly higher recall, successfully generating diverse smiling faces (such as men with beards) that were underrepresented in the biased training data.
- Language Modeling (Amazon Reviews): In a task involving biased product reviews, a naive model generated "Book" category content only 0.24% of the time despite a ground truth of 4.2%. DoubleGen corrected this frequency to 4.4%, demonstrating near-perfect alignment with the target distribution.
Theoretical Foundations
The authors provide a rigorous proof of oracle optimality. This ensures that, with sufficient data, a model trained via DoubleGen on biased observational data can match the performance of a model trained on ideal, unbiased experimental data.
Conclusion and Future Work
DoubleGen represents a significant step toward reliable causal AI. While it requires additional computational overhead to train auxiliary models and necessitates that at least one nuisance model be reasonably accurate, the gain in robustness is substantial. Future research will focus on extending this framework to conditional sampling, allowing for the generation of counterfactuals for specific individuals (e.g., "How would this specific person look if they were smiling?") rather than just marginal distributions.
Summary updated