Ambient Diffusion: Learning Clean Distributions from Corrupted Data

Giannis Daras, Kulin Shah, Yuval Dagan, Aravind Gollakota, Alex Dimakis, Adam Klivans

Abstract

Generative models typically require large-scale, high-quality datasets to achieve state-of-the-art performance. However, in many domains—ranging from medical imaging to astronomy—clean data is scarce, and the use of sensitive data raises significant privacy concerns regarding model memorization. We present Ambient Diffusion, a framework that enables diffusion models to learn the underlying distribution of clean data using only highly corrupted samples. By employing a "further corruption" training strategy, the model learns to reconstruct clean images without ever observing an uncorrupted example. This approach not only facilitates learning in data-constrained environments but also inherently mitigates the risk of memorizing and leaking sensitive training information.

Introduction

The success of modern diffusion models is largely predicated on the availability of massive, high-fidelity datasets. In practice, obtaining such data is often a bottleneck. For example, MRI scans are frequently subject to motion artifacts or undersampling to reduce patient discomfort, and astronomical observations are inherently sparse. Furthermore, the tendency of diffusion models to memorize training samples poses a significant hurdle for applications involving copyrighted or private medical data.

Ambient Diffusion addresses these challenges by asking a fundamental question: Can a model learn the "true" distribution of data if it only ever observes broken, incomplete, or noisy versions of it?

The Ambient Diffusion Framework

The core innovation of Ambient Diffusion is a training objective centered on the concept of "further corruption."

In standard diffusion training, a clean image is progressively degraded with Gaussian noise, and the model is trained to reverse this process. In the Ambient setting, the starting point is already a corrupted image (e.g., an image where 70% of pixels have been masked).

The "Further Corruption" Strategy

During training, the researchers apply an additional layer of corruption to the already corrupted sample. For instance, if the original sample has a set of missing pixels, the training process removes an additional subset of the remaining pixels. The model is then tasked with predicting the originally corrupted image from this further corrupted version.

The authors liken this to a "test grading" analogy: if students do not know which questions on a test will be graded, they are forced to learn the material for the entire test. Similarly, because the model does not know which pixels were missing initially versus which were removed during the training step, it is forced to learn the underlying structure of the entire data distribution. The authors provide a mathematical proof (Theorem 4.1) demonstrating that the unique minimizer for this objective is the conditional expectation of the full, uncorrupted image.

Sampling and Restoration

To generate clean samples from a model trained on corrupted data, the authors introduce two techniques:

  1. Fixed Mask Sampling: A method to generate new samples by maintaining consistency with the learned distribution.
  2. Reconstruction Guidance: A technique that allows the model to perform inverse problem solving (e.g., inpainting). Notably, Ambient Diffusion can often perform these restorations in a single neural network evaluation, offering a speed advantage over iterative methods like Diffusion Posterior Sampling (DPS).

Experimental Results

The framework was evaluated across several benchmarks, including CelebA-HQ, CIFAR-10, and AFHQ, as well as a specialized Brain Tumor MRI dataset.

Robustness to Extreme Corruption

Ambient Diffusion demonstrates remarkable robustness, successfully learning clean distributions even when 90% of the pixels in every training image are missing. In comparative tests, it significantly outperformed AmbientGAN, which is often prone to training instability and mode collapse when faced with high corruption levels.

Privacy and Memorization

A key finding of the research is that corruption acts as a natural privacy feature. In standard generative modeling, memorization is a common failure mode where the model outputs near-exact copies of training data. By training on corrupted data, the model is physically unable to memorize the clean version of a specific instance because it never encounters it. Experiments involving the finetuning of a large foundation model (Deepfloyd IF) on corrupted data showed that the model could generate high-quality images without the risk of "leaking" the specific training samples.

Medical Imaging Applications

On the Brain Tumor MRI dataset, Ambient Diffusion successfully learned the general statistics of brain anatomy and tumor structures despite only seeing images with large missing blocks. This suggests high potential for the framework in medical fields where high-quality, full-scan data is difficult to obtain.

Limitations and Future Work

While Ambient Diffusion represents a significant step forward, it is subject to certain trade-offs. There is a clear correlation between the level of training corruption and the quality of the generated samples; higher corruption levels eventually lead to a degradation in FID scores.

Currently, the theoretical framework is optimized for "masking" or "projections." Handling additive measurement noise remains a challenge, though the authors suggest that integrating Stein’s Unbiased Risk Estimate (SURE) could provide a solution. Additionally, while the method empirically reduces memorization, it does not yet provide formal Differential Privacy (DP) guarantees.

Conclusion

Ambient Diffusion provides a robust mathematical and empirical framework for learning clean data distributions from corrupted observations. By turning the problem of data corruption into a training advantage, it opens new avenues for generative modeling in scientific and medical domains where clean data is a luxury, while simultaneously offering a novel approach to data privacy.

Summary updated

BibTeX
@inproceedings{daras2023ambient,
  author = {Giannis Daras and Kulin Shah and Yuval Dagan and Aravind Gollakota and Alex Dimakis and Adam Klivans},
  title = {{Ambient Diffusion: Learning Clean Distributions from Corrupted Data}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=wBJBLy9kBY},
}
Figure