TL;DR
DiffEM introduces a framework to train diffusion models directly from corrupted or noisy datasets by integrating conditional diffusion models into an Expectation-Maximization (EM) loop. By directly modeling the posterior distribution rather than relying on ad-hoc posterior sampling approximations, DiffEM bypasses a major computational bottleneck, delivering state-of-the-art image reconstruction and generation performance with significantly faster training times.
What Problem Does This Paper Address?
Diffusion models are incredibly powerful at generating high-quality data, but they typically require massive amounts of clean training data. In many real-world applications—such as medical imaging (MRI, CT scans) or astronomical observation—obtaining pristine data is either impossible, prohibitively expensive, or raises privacy and copyright concerns due to data memorization.
While training diffusion models on corrupted data is highly desirable, it fundamentally reduces to solving a complex latent variable problem. Previous attempts to use the Expectation-Maximization (EM) framework for this task trained an unconditional diffusion prior. This forced them to use complex, ad-hoc posterior sampling schemes during the EM algorithm's Expectation step (E-step). These schemes rely on Gaussian approximations of the posterior score function, which introduce hard-to-quantify errors and struggle with highly complex, multi-modal data distributions.
Methods
The authors propose DiffEM, a novel framework that flips the previous paradigm on its head. Instead of learning an unconditional prior and approximating the posterior, DiffEM uses a conditional diffusion model to directly learn the posterior distribution $q_\theta(X|Y)$ given the corrupted observations $Y$.
The algorithm proceeds in two alternating steps:
- The E-step (Expectation): The current conditional diffusion model takes the corrupted dataset and generates a "semi-clean" reconstructed dataset.
- The M-step (Maximization): This newly reconstructed dataset is used to train and refine the conditional diffusion model by minimizing a conditional score-matching loss.
Both the underlying data distribution and the corruption likelihood function are implicitly encoded into the model during this process.
Datasets
The authors evaluated DiffEM across several benchmarks with varying types of synthetic corruption:
- Synthetic Manifold: A 1D curve embedded in a 5-dimensional space ($\mathbb{R}^5$) to test low-dimensional manifold learning.
- CIFAR-10: Evaluated under multiple corruption types, including random pixel masking (75% and 90% deletion), Gaussian blur, JPEG compression, and a mixed model of masking plus Gaussian noise.
- CelebA: Cropped to $64 \times 64$ pixels and evaluated under 50% and 75% random pixel masking.
Key Insights and Ideas
- Eliminating the Approximation Bottleneck: By directly parameterizing the posterior with a conditional diffusion model, DiffEM avoids having to make restrictive structural assumptions (like assuming the posterior is Gaussian). This allows it to handle arbitrary, non-linear, and discrete corruptions like JPEG compression.
- Theoretical Convergence Guarantees: The authors provide a rigorous proof showing that DiffEM enjoys a monotonic improvement property. Modulo the score-matching error, the observation distribution induced by the model gets closer to the true distribution at every single iteration.
- The MAD Effect (Model Autophagy Disorder): The paper highlights a fascinating phenomenon where continuing the EM loop for too many iterations actually causes performance to degrade. Under moderate corruption, this effect is well-controlled and bounded by their theory, but under severe corruption (e.g., aggressive JPEG compression), the model can diverge due to substantial information loss.
Key Results
DiffEM consistently outperformed prior state-of-the-art methods like Ambient-Diffusion and EM-MMPS in both qualitative and quantitative metrics:
- CIFAR-10 (75% Masking): For posterior sampling, DiffEM achieved a Fréchet Inception Distance (FID) of 4.68, beating EM-MMPS (6.49) and Ambient-Diffusion (30.76). When warm-started with an EM-MMPS prior, it reached an even better FID of 4.66 and significantly lower FDDINOv2 scores.
- CelebA (75% Masking): DiffEM achieved a posterior sampling FID of 1.43, drastically outperforming EM-MMPS, which stalled at an FID of 31.22.
- Computational Efficiency: Because DiffEM avoids expensive moment-matching calculations during posterior sampling, it is much faster. On the large CelebA dataset, EM-MMPS required 4.85 hours per EM iteration, whereas DiffEM required just 1.19 hours per iteration—a nearly 4x speedup.
Limitations and Future Work
- Model Autophagy Disorder (MAD): Because the model trains on its own generated outputs over successive iterations, it is susceptible to performance degradation if run for too many loops, especially when the corruption is severe enough to break data identifiability.
- Known Corruption Operator: The current formulation assumes that the forward corruption model or likelihood function $Q(\cdot|X)$ is explicitly known. The authors note that extending DiffEM to handle completely unknown or jointly learned corruption models is an important direction for future research.
Summary updated