Overcoming Spurious Correlations in Conditional Diffusion Models via Doubly Robust Target Correction

Eiichi Sakurai, Kenji YamanishiarXiv 2026

TL;DR

DR-Diff is a novel fine-tuning framework that debiases pre-trained conditional diffusion models by correcting for spurious correlations in training data. By leveraging functional gradients to derive a "doubly robust" pseudo-target, it allows models to adapt to new target distributions with a fraction of the computational cost of retraining from scratch.

What Problem Does This Paper Address?

Conditional diffusion models are powerful generative tools, but they are "lazy" learners: they often memorize spurious correlations—non-causal statistical shortcuts—present in their training data. For instance, if a dataset contains a biased link between a sensitive attribute (like race) and an outcome (like bar exam passage), a standard diffusion model will faithfully replicate this bias in its generated samples.

This issue is most acute in out-of-distribution (OOD) regions where certain combinations of conditions are rare or non-existent in the training set. While techniques like importance weighting can theoretically fix this by adjusting the training loss, applying them usually requires retraining a massive model from scratch for every new target distribution. This is computationally prohibitive for most researchers and engineers.

Methods

The authors propose DR-Diff, which avoids the "retrain-from-scratch" bottleneck by fine-tuning an existing, pre-trained "base" model. The core innovation lies in how they define the fine-tuning target:

  1. Functional Gradients: Instead of standard backpropagation, they use a functional gradient approach. They calculate the gradient of a covariate-shift-adjusted loss function in the space of functions, effectively finding the "direction" the base model needs to move to better fit the target distribution.
  2. The Pseudo-Target: This leads to a new training target, $\tilde{\epsilon}_{DR}$, which combines the base model's current prediction with a weighted residual (the difference between the base prediction and the ground-truth noise).
  3. Pseudo-Doubly Robust (DR) Property: This formulation mirrors "Doubly Robust" estimators from causal inference. It provides two layers of protection:
  4. If the base model is already accurate, errors in estimating the density ratio (the weights) won't hurt performance.
  5. If the density ratio is correctly estimated, the model will move in the right direction even if the base model is poorly specified.

This mathematical "safety net" makes DR-Diff remarkably resilient to the estimation errors that typically plague importance-weighting methods.

Datasets

The researchers evaluated DR-Diff on both synthetic and real-world benchmarks:

  • Synthetic Datasets:
  • Causal Cluster: A 2D dataset designed to test generation under strong confounding.
  • Swiss Roll (10D): A complex, non-linear manifold projected into 10 dimensions to test the model's ability to extrapolate geometric structures into OOD regions.
  • Real-World Datasets:
  • LSAC: Law school admission data used to predict bar exam passage, featuring strong spurious correlations with race.
  • Jigsaw: A large-scale text dataset used for toxicity classification, where certain identity mentions (e.g., "Black," "Male") are spuriously linked to toxicity labels.

Key Insights and Ideas

  • Efficiency via Residuals: The "aha moment" is realizing that you don't need to relearn the entire noise-prediction function. By focusing on the residual between the base model and the target distribution, you can achieve adaptation in just 40 epochs, compared to the 100–200 epochs required to train from scratch.
  • Theoretical Resilience: The "Pseudo-DR" property isn't just a buzzword; the authors provide a population-level proof (Theorem 2) that their method guarantees a reduction in target risk as long as the step size is appropriately bounded.
  • Fairness as a Generative Task: The paper demonstrates that fixing the data generator is a viable path to fairer AI. By using DR-Diff to generate "balanced" synthetic data, they can train downstream classifiers that have significantly smaller performance gaps between different demographic groups.
Fig. 1. Spurious correlation and OOD targets in the evaluation datasets. (Top Left) The marginal distributions of Xcond given each class label in the Causal Cluster dataset. The target condition for Class 0 (red star) falls into a zero-density region. (Top Right) The 2D density plot of Xcond for Label 0 in the Swiss Roll dataset. The target condition (red star) is situated outside the observed high-density areas. (Bottom Row) The 2D density plots of Xcond for Label 1 (left) and Label 2 (right) in the Swiss Roll dataset, illustrating the conditional distributions for the remaining classes. In both scenarios, the out- of-distribution (OOD) targets serve as an evaluation of generation capabilities.

Key Results

  • High Fidelity in OOD Regions: On the Swiss Roll dataset, DR-Diff achieved a Sliced Wasserstein Distance (SWD) of 3.66, significantly outperforming the standard base model (4.78) and matching the performance of models trained from scratch on the target distribution.
  • Fairness Gains: In the LSAC task, DR-Diff reduced the False Positive Rate (FPR) gap between racial subgroups from 0.511 to 0.437. Crucially, it did so with a smaller drop in overall accuracy compared to traditional reweighting methods.
  • Visual Confirmation: As seen in Figure 3, DR-Diff successfully recovers the global "roll" structure of the data even in OOD regions where the training data was extremely sparse.
Fig. 2. Quantitative comparison of SWD across methods for OOD targets. The vertical axis represents the Sliced Wasserstein Distance (SWD) between the true distribution and the empirical distribution obtained from each method under OOD target conditions. The color of each plotted point corresponds to results from models trained on datasets generated with the same seed value. Notably, the proposed method achieves high generation performance comparable to WDDPM through only additional training from the Base model.

Limitations and Future Work

  • Modality Constraints: The current study primarily focuses on tabular data and text embeddings. While the method is theoretically "model-agnostic," its performance on high-resolution image generation or video remains to be seen.
  • Causal Assumptions: The method assumes "sufficiency of observed attributes" (no unobserved confounders). In complex real-world systems, hidden factors might still introduce biases that this method cannot fully address.
  • Hyperparameter Sensitivity: The theoretical guarantees require a strict upper bound on the estimated weights. In practice, this necessitates a clipping step during training, which introduces an additional hyperparameter to tune.

Summary updated

Abstract

While conditional diffusion models have achieved remarkable success in generation tasks, they memorize spurious correlations within training data. This causes them to deviate from ideal target distributions. Minimizing a covariate shift-adjusted target risk can address this issue. However, retraining models from scratch for different distributions is computationally prohibitive. To overcome this limitation, we propose DR-Diff, a framework that efficiently fine-tunes pre-trained conditional diffusion models. Specifically, DR-Diff leverages a functional gradient approach to derive a pseudo-target. This pseudo-target captures the residual between the base model's noise prediction and the ground-truth noise under the target distribution. Training the model to fit this pseudo-target enables efficient target adaptation. Theoretically, we prove that DR-Diff guarantees target risk reduction at the population level. It also achieves a pseudo-doubly robust property, providing resilience against density ratio estimation errors and base model misspecifications. Empirically, DR-Diff matches the noise prediction accuracy of models trained from scratch on synthetic datasets. Furthermore, it mitigates inter-group disparities in downstream classification tasks.
BibTeX
@misc{sakurai2026overcoming,
  author = {Eiichi Sakurai and Kenji Yamanishi},
  title = {{Overcoming Spurious Correlations in Conditional Diffusion Models via Doubly Robust Target Correction}},
  year = {2026},
  eprint = {2611.16306},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.16306},
}
Figure