TL;DR
When training generative models on observational data, confounding factors can distort the generated distributions, while standard causal fixes fail if their auxiliary models are misspecified. DoubleGen solves this by introducing a doubly robust training objective that incorporates both a propensity score and an outcome model via cross-fitted augmented inverse probability weighting. If either auxiliary model is correctly specified, DoubleGen eliminates confounding bias, achieving oracle convergence rates and minimax optimality for architectures like diffusion models, flow matching, and autoregressive transformers.
What Problem Does This Paper Address?
Standard generative models excel at mimicking data from the world as it is (factual data). However, scientific inquiry and policymaking often require modeling the world as it would be under an intervention (counterfactual data)—for instance, predicting patient outcomes if a medical treatment were given universally.
In observational data, interventions are typically confounded: sicker patients receive treatment more frequently, or celebrities with certain attributes smile more often. If a generative model is trained only on treated individuals, it inherits confounding bias. Existing causal generative models attempt to adjust for this by modeling auxiliary components (such as propensity scores or joint distributions), but they are only singly robust: if that auxiliary model is incorrectly specified, the generator suffers from misspecification bias.
Methods
DoubleGen reframes existing loss-based generative paradigms—including score-based diffusion, velocity flow matching, and autoregressive next-token prediction—under a unified oracle empirical risk minimization formulation (OracleGen). It then constructs a doubly robust surrogate risk (DoubleGen) using observational data:
- Two-Fold Cross-Fitting: The observational dataset is split into two halves. Nuisance models are trained on one half and evaluated on the other to prevent overfitting.
- Dual Auxiliary Nuisances:
- Inverse Propensity Model ($\alpha$): Estimates the inverse probability of receiving the target intervention given confounders, $\alpha_P(x) = 1/P(A = a^* \mid X = x)$ (e.g., fit via Riesz regression).
- Outcome Model ($\psi$): A conditional generator or transport map that generates outcomes given features, $Y \mid A = a^*, X = x$ (e.g., nearest-neighbor retrieval or conditional diffusion).
- Augmented Inverse Probability Weighted (AIPW) Loss: DoubleGen optimizes a de-biased empirical risk: $$R_n(\theta) = \frac{1}{n} \sum_{j=1}^2 \sum_{z \in \mathcal{Z}_n^{3-j}} \int \left[ \mathbf{1}(a = a^*) \alpha_n^j(x) \{\ell(\theta, y) - \ell(\theta, \psi_n^j(u \mid x))\} + \ell(\theta, \psi_n^j(u \mid x)) \right] \Pi(du)$$ Unbiased stochastic gradients are obtained via Monte Carlo sampling over noise $u \sim \Pi$ and data tuples.
Datasets
- CelebA: 202,599 celebrity face images (162,770 train / 39,829 test) resized to $64 \times 64$. The target intervention is setting everyone to "smiling" ($A = 1$). 31 pre-intervention facial attributes serve as confounders (8 smile-consequent features like "mouth slightly open" were excluded).
- Amazon Reviews 2023: A semi-synthetic benchmark constructed from ~570M product reviews across 48M items. The authors used 38 baseline features (33 product categories and 5 metadata statistics) and injected an amplified, synthetic intervention propensity model (reducing the target intervention rate to 3.5%) to introduce strong confounding with known ground truth.
Key Insights and Ideas
- Doubly Robust Generation: While doubly robust estimation is a staple of classical causal inference for scalar treatment effects, DoubleGen generalizes the principle to the training objectives of deep generative models.
-
Fourth-Order Error Remainder: The theoretical excess risk bound depends on the product of errors: $$\|\alpha_n - \alpha_P\|_{L^2(P_X)}^2 \times d_\Psi^2(\psi_n, \Psi_P)$$ Because this error is fourth-order, both nuisances can converge at relatively slow nonparametric rates ($n^{-1/4}$) while still having a negligible effect on the overall generative model rate.
-
Oracle and Minimax Optimality: The authors prove that the oracle minimax lower bound (with access to unconfounded counterfactual data) lower-bounds the factual causal risk. Under Besov smoothness assumptions, DoubleGen diffusion models match the minimax rate of traditional, non-causal diffusion models up to polylogarithmic factors.
Key Results
- CelebA Diffusion:
- When either the propensity model or the outcome model was misspecified (e.g., outcome model trained only on dark-haired faces), DoubleGen remained robust. In the "Outcome wrong" setting, the plug-in baseline's Fréchet ArcFace Distance (FAD) degraded from 0.87 to 1.90, whereas DoubleGen preserved a score of 0.86.
- While naive models skewed the generated demographics (generating 69% female faces compared to the 59% true population proportion), DoubleGen generated 62% female faces, closely reflecting the underlying population.
- Amazon Reviews (LoRA fine-tuning of Llama-3.2-1B):
- Naive fine-tuning severely suppressed underrepresented categories (generating book-related reviews at 0.24% frequency versus 4.2% in the test set). DoubleGen recovered book reviews at 4.4% frequency.
- Across both well-specified and misspecified settings, DoubleGen achieved superior MAUVE distribution scores (0.82–0.83 vs. 0.72 for naive) and lower 1-Wasserstein star-rating error (0.12–0.17 vs. 0.36 for naive).
Limitations and Future Work
- Heavy Compute Overhead: Training a single diffusion model with cross-fitted nuisances required roughly 300 NVIDIA A6000 GPU hours, limiting extensive hyperparameter sweeps and multi-seed benchmarking.
- Estimation of Difficult Nuisances: Theoretical minimax bounds assume nuisance models can be estimated reasonably well. If confounding relationships are highly nonsmooth, bounds may loosen.
- Representation vs. Confounding Bias: The method adjusts strictly for confounding between the observed intervention and the outcome; it does not correct for underlying representation biases inherent in datasets like CelebA.
Summary updated