Conditional diffusion models improved to correct false data patterns

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

Machine Learning

Summary

Conditional diffusion models, which generate data based on input conditions, sometimes learn incorrect patterns called spurious correlations. These wrong patterns cause the models to produce biased or inaccurate results when applied to new data. The authors introduce DR-Diff, a method that fine-tunes already trained models to correct these mistakes efficiently without starting over. This method reduces errors, works well even if some estimates are off, and helps balance outcomes across different groups in tests.

What this means in practice

  • For machine learning teams: Fine-tune existing diffusion models for different data setups without retraining from scratch, improving accuracy under new distributions.
  • For data scientists in fairness: Reduce bias and disparities between groups in classification tasks linked to generative model outputs by adapting models effectively.

Authors

Eiichi Sakurai, Kenji Yamanishi

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.