Self-Cleaning Diffusion Models

Adrian Rodriguez-Munoz, Adam Klivans, Antonio Torralba, Constantinos Costis Daskalakis, Giannis DarasNeurIPS 2026

TL;DR

Training generative models requires massive datasets, yet pristine data is rapidly running out while messy, out-of-distribution (OOD) data is everywhere. Self-Cleaning Diffusion unlocks this messy data by first learning an approximate "transport map" to push low-quality samples toward a small set of clean examples, and then injecting calibrated Gaussian noise to blur away the transport map’s inevitable mistakes before training the final model. The result is a generative model that achieves near-oracle quality even when 90% of its training set is heavily corrupted.

What Problem Does This Paper Address?

Scaling generative AI relies on compute, parameters, and data—and high-quality data has become the ultimate bottleneck. While pristine, in-distribution samples are scarce and expensive, imperfect or domain-shifted data (like amateur photos, degraded images, or data from adjacent classes) is abundant.

Currently, practitioners handle messy data using ad-hoc heuristics like aggressive filtering (throwing away most of the dataset) or high-quality fine-tuning. Meanwhile, more principled methods often assume we know the exact mathematical formula of the corruption, add massive compute overhead, or rely purely on adding Gaussian noise to mask distribution shifts. That last approach—used by methods like Ambient Diffusion Omni—works fine for high-frequency static, where a little noise makes clean and corrupted images look identical. However, it fails on low-frequency shifts (like fog, lighting changes, or different object classes), where the amount of noise needed to hide the shift is effectively infinite, forcing the model to ignore the OOD data entirely.

Methods

The core novelty of Self-Cleaning Diffusion is decoupling data cleaning from learning the generative prior, unfolding across three straightforward stages:

Figure 1: Visual illustration of our algorithm. In stage 1, we fit a transport map T between a large set of OOD samples (blue points) and a small set of in-distribution samples (green points). The transported points often land outside of the target manifold since the map is only trained with limited clean targets. In Stage 2, we add noise to the transported samples to “erase” mistakes made by the transport map. The combined set of the limited clean samples and the noisy transformed samples becomes the training dataset for our diffusion model. The transported datapoints only contribute in the high-noise regime of the diffusion process.
  1. Approximate Transport: Using a tiny anchor of clean data and a massive pool of OOD data, the authors train a conditional drifting model (an unpaired distribution-mapping technique) to translate OOD samples into clean-looking ones. Because the clean set is tiny, this transport map is imperfect and leaves behind mild visual artifacts.
  2. Erasing Mistakes with Noise: Rather than feeding flawed transported images directly into a generative model—which would bake those artifacts into the learned prior—the authors inject Gaussian noise up to a minimum threshold, $\sigma_{\text{min}}$. This borrows the Ambient Diffusion Omni trick, but applies it after transport: big structural shifts are already fixed by the map, so a modest dose of noise easily hides the remaining high-frequency artifacts.
  3. Mixed Diffusion Training: Finally, an unconditional diffusion model is trained on the combined dataset. Clean anchor samples are used across all noise levels via a standard denoising loss, while noisy transported samples are used only in the high-noise regime ($\sigma(t) > \sigma_{\text{min}}$) via an ambient loss objective.

To avoid an expensive hyperparameter search for $\sigma_{\text{min}}$, the authors also introduce a clever inference-time shortcut: they evaluate hybrids of a standard model pretrained on all data (used above a candidate threshold) and its clean-finetuned version (used below it) to find the sweet spot before doing a single ambient fine-tuning run.

Datasets

The authors evaluate their framework across standard vision benchmarks adapted into heterogeneous splits (no brand-new raw datasets are collected, though custom benchmark splits are constructed):

  • Synthetically Corrupted ImageNet: Splits of 10% clean and 90% degraded ImageNet images (tested on low-frequency fractal fog, Gaussian blur, color shifts, and additive noise, plus a 5% clean ablation).
  • AFHQ (Animal Faces-HQ): Used for cross-class OOD learning, treating AFHQ Cats as the scarce target distribution and AFHQ Dogs as the abundant OOD dataset.
  • AestheticImageNet: A self-contained split of ImageNet into a "high-aesthetic" target set (Aesthetic Score $\ge 5.0$) and a "low-aesthetic" OOD set ($< 5.0$), testing whether a dataset can transcend its own average quality without external data.

Key Insights and Ideas

  • Stepping toward a tiny empirical sample still gets you closer to the truth: You might worry that mapping millions of OOD points toward a tiny handful of clean images would just cause massive overfitting. Using Wasserstein-2 ($W_2$) optimal transport geometry, the authors prove theoretically that moving part-way toward the empirical clean set strictly reduces the distance to the true underlying distribution—as long as the transport directions roughly align (form an acute angle on average) and don't overshoot.
  • Transport turns impossible low-frequency shifts into manageable high-frequency errors: Gaussian noise alone cannot hide fog or turn a dog into a cat. By letting a transport map handle the heavy semantic and low-frequency lifting, the leftover errors become localized artifacts that moderate Gaussian noise effortlessly erases.
Dataset correction on 90% foggy ImageNet: transport removes the fog while noise masks the resulting artifacts.
  • Decoupling helps even on high-frequency corruptions: Surprisingly, Self-Cleaning Diffusion beats Ambient Diffusion Omni on Gaussian blur too, showing that explicitly fixing data before noising is strictly less wasteful than relying on diffusion noise alone.

Key Results

  • 90% Foggy ImageNet: Self-Cleaning Diffusion achieves an FID of 10.19 (lower is better), virtually matching the 10.13 skyline of an oracle trained on 100% clean ImageNet. It handily beats filtering (72.48), Ambient Omni (72.48, which discards >99.999% of foggy updates), HQ fine-tuning (18.73), and corruption-conditional training (15.38).
  • 90% Blurry ImageNet: Achieves a best FID of 18.14 (at $\sigma_{\text{min}} = 0.397$) and DINOv2 FD of 393.88 (at $\sigma_{\text{min}} = 0.670$), outperforming both Ambient Omni (~30 FID) and transport without noise (20.00 FID).
  • Dogs-to-Cats (AFHQ): Translating dogs into noisy pseudo-cats boosts generation diversity (Vendi Score rises to 41.49 vs. 34.70 for filtering and 39.13 for class-conditioning) while keeping cat class-alignment at 99.12%.
  • AestheticImageNet: Without a single extra image, the method raises the average Aesthetic Score from 4.34 to 4.64 and more than doubles the share of high-aesthetic ($\ge 5.0$) generations from 8.39% to 20.86%.

Limitations and Future Work

  • Gap between theory and practice: The theoretical guarantees analyze idealized, regularized optimal transport maps ($W_2$ geodesics), whereas the practical implementation relies on conditional drifting models trained via gradient descent—a pragmatic but mathematically loose approximation.
  • Unpredictable semantic distances: Knowing a priori whether a given OOD source is "close enough" to help a target domain remains an open question (e.g., quantifying beforehand whether dogs or foxes make better OOD fuel for cats).
  • Overfitting and diversity trade-offs: When clean data is extremely scarce, the transport map can still overfit, requiring early stopping, smaller architectures, or augmentations. Additionally, prioritizing high-aesthetic anchors trades off a small amount of sample diversity for visual quality.
  • Future integrations: The authors note that post-training steering techniques—such as reinforcement learning (RLHF) and inference-time guidance—are orthogonal to Self-Cleaning Diffusion and could be combined with it in future pipelines.

Summary updated

Abstract

We present Self-Cleaning Diffusion Models, a principled and effective framework for training diffusion models from heterogeneous data. In many domains, high-quality data is scarce or expensive to collect, while low-quality and out-of-distribution (OOD) data is abundant. Leveraging these ubiquitous samples is critical for scaling generative models. Still, principled techniques remain elusive, leaving practitioners to rely on simple heuristics such as high-quality finetuning or explicit quality conditioning. Self-Cleaning Diffusion Models bridges this gap by decoupling data correction from prior learning. We first train a transport map between the abundant OOD and the limited in-distribution samples. We then train an unconditional generative prior on a mixture of the few in-distribution samples and *noisy* versions of the transported points. Crucially, this noise injection prevents learning errors in the transport map from propagating to the generative prior. Theoretically, we demonstrate that transporting OOD samples towards the empirical proxy reduces the distance to the underlying distribution under mild assumptions. Empirically, we achieve state-of-the-art results across a diverse range of settings, from mitigating synthetic corruptions to increasing diversity and transcending dataset quality.
BibTeX
@inproceedings{rodriguezmunoz2026self,
  author = {Adrian Rodriguez-Munoz and Adam Klivans and Antonio Torralba and Constantinos Costis Daskalakis and Giannis Daras},
  title = {{Self-Cleaning Diffusion Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=79S41XUgZr},
}
Figure