Abstract
Diffusion models (DMs) have emerged as powerful generative models for solving inverse problems, offering a good approximation of prior distributions of real-world image data. Typically, diffusion models rely on large-scale clean signals to accurately learn the score functions of ground truth clean image distributions. However, such a requirement for large amounts of clean data is often impractical in real-world applications, especially in fields where data samples are expensive to obtain. To address this limitation, in this work, we introduce FlowDiff, a novel joint training paradigm that leverages a conditional normalizing flow model to facilitate the training of diffusion models on corrupted data sources. The conditional normalizing flow try to learn to recover clean images through a novel amortized inference mechanism, and can thus effectively facilitate the diffusion model's training with corrupted data. On the other side, diffusion models provide strong priors which in turn improve the quality of image recovery. The flow model and the diffusion model can therefore promote each other and demonstrate strong empirical performances. Our elaborate experiment shows that FlowDiff can effectively learn clean distributions across a wide range of corrupted data sources, such as noisy and blurry images. It consistently outperforms existing baselines with significant margins under identical conditions. Additionally, we also study the learned diffusion prior, observing its superior performance in downstream computational imaging tasks, including inpainting, denoising, and deblurring.
Introduction
Diffusion models (DMs) have revolutionized generative AI, producing stunningly realistic images and solving complex inverse problems like deblurring and denoising. However, they typically require massive datasets of perfectly clean images to learn the underlying data distribution. In many real-world fields, such as structural biology (Cryo-EM) or astronomy, clean data is often impossible to obtain—we only have noisy, blurry, or incomplete observations. Existing methods to train DMs on corrupted data often fall short, being limited to specific corruption types or simple noise models. This paper introduces FlowDiff, a joint training paradigm that allows diffusion models to learn clean data distributions directly from corrupted sources.
Methods
FlowDiff solves the "chicken-and-egg" problem of training generative models on dirty data by pairing a Normalizing Flow (which learns to reconstruct clean images) with a Diffusion Model (which learns the data's underlying structure). The framework consists of two main components:
- Amortized Inference (The Restorer): A Conditional Normalizing Flow ($G_\phi$) takes a corrupted image and infers the clean version. Unlike standard networks, flows are invertible, allowing for exact probability calculations and an explicit entropy loss to ensure output diversity.
- Score-based Prior (The Judge): A Diffusion Model ($s_\theta$) acts as the prior, learning the score function of the images produced by the flow.
The training process is a mutual reinforcement loop. The flow generates candidate clean images, and the diffusion model evaluates them, providing a prior loss that pushes the flow toward realism. Simultaneously, the diffusion model updates itself using the flow’s reconstructions. To prevent the models from getting stuck in "bad" local equilibria (memorizing noise), the authors use a Model Reset strategy, periodically resetting one model's weights to retrain it on the other's improved outputs.
Results
The researchers evaluated FlowDiff across three distinct scenarios: MNIST (noise), CIFAR-10 (blur), and real-world biological imaging (tubulins). FlowDiff consistently outperformed baselines like AmbientFlow and SURE-Score in both generative quality and reconstruction accuracy.
On the tubulin dataset, FlowDiff achieved a PSNR of 18.87, significantly higher than AmbientFlow (16.76). Qualitatively, it preserved intricate cellular structures that other models blurred away. In CIFAR-10 deblurring, it reached a PSNR of 21.97 and a SSIM of 0.787, compared to AmbientFlow’s 20.38 and 0.704. Furthermore, the learned prior proved highly effective for downstream tasks it wasn't specifically trained for, such as inpainting.
Conclusion
FlowDiff addresses a critical bottleneck in generative modeling by enabling training on corrupted data. By leveraging the mutual reinforcement between amortized inference and diffusion priors, the framework achieves high-quality results without ever seeing a "clean" ground-truth image. While training stability and the computational cost of normalizing flows remain areas for future improvement, FlowDiff demonstrates a powerful path forward for scientific and medical imaging where clean data is scarce.
Summary updated