TL;DR
Training diffusion models on corrupted data protects data privacy and copyright, but existing methods rely on clunky, manually coordinated iterative loops. This paper introduces SFBD Flow, a continuous optimization framework that transforms this discrete process into a smooth, continuous flow. The resulting algorithm, Online SFBD, eliminates training restarts, cuts training time by 50%, and achieves state-of-the-art image generation quality.
What Problem Does This Paper Address?
Diffusion models are notorious data hogs, and their tendency to memorize training data raises severe privacy and copyright concerns. A promising workaround is to train models entirely on corrupted data (e.g., images obscured by heavy pixel-wise Gaussian noise) so the network never sees the sensitive originals. Mathematically, it is possible to recover the clean data distribution from these noisy observations using a technique called density deconvolution.
A recent state-of-the-art method, Stochastic Forward-Backward Deconvolution (SFBD), successfully achieves this but relies on a cumbersome alternating loop: denoise a batch of corrupted samples, fine-tune the model on these samples, reset the optimizer, and repeat. This discrete process requires manual coordination, discards valuable optimizer momentum, and is computationally expensive to implement.
Methods
The authors elegant solution is to reinterpret SFBD through the lens of geometry and continuous optimization.
- Alternating Projections: They prove that standard SFBD can be viewed as alternating projections between two spaces of stochastic processes (Markov projections for fine-tuning and Diffusion projections for denoising), as illustrated in Figure 1a.
- SFBD Flow: By introducing a step-size parameter $\gamma \in (0, 1]$ to control the update ratio of the dataset, they show that taking the limit as $\gamma \to 0$ transforms the discrete steps into a continuous functional gradient descent (Figure 1b). This eliminates the need to stop and reset the model.
- Online SFBD: Instead of training a sequence of separate networks, they train a single network continuously. Denoised samples are updated in an exponential moving average (EMA) fashion.
- Adaptive Step Size: To account for imperfect neural network training, the authors introduce an adaptive scheme that dynamically adjusts the step size $\gamma$ based on the Kernel Inception Distance (KID) between clean and denoised samples.
- Asynchronous Denoising: To maximize efficiency, the denoising process runs independently on a separate background GPU, allowing the main training loop to run uninterrupted.
Datasets
The framework was evaluated on two standard image benchmarks:
- CIFAR-10 ($32 \times 32$ resolution)
- CelebA ($64 \times 64$ resolution)
In all setups, the bulk of the data was heavily corrupted with additive Gaussian noise (with noise levels $\sigma$ up to 1.38). The models were given access to only a tiny fraction of clean, copyright-free images (ranging from a mere 50 images up to 10% of the dataset) to help capture local structures and guide convergence.
Key Insights and Ideas
- Smoothness Over Catastrophic Shifts: In standard SFBD ($\gamma=1$), completely replacing the dataset at each iteration forces a massive distribution shift, causing optimizers like Adam to diverge unless they are completely reset. By moving to an infinitesimal step size ($\gamma \to 0$), the target distribution shifts smoothly, preserving optimizer momentum and accelerating training.
- A Unified Perspective: The authors reveal a hidden connection to consistency constraint-based methods (like TweedieDiff). They mathematically demonstrate that these methods are actually simplified, single-gradient-step approximations of Online SFBD. By avoiding the rough approximations made by TweedieDiff, Online SFBD achieves superior stability and image quality.
Key Results
- Superior Image Quality: Online SFBD consistently outperforms strong baselines like TweedieDiff+ and standard SFBD. For example, on CIFAR-10 with 10% clean samples, adaptive Online SFBD achieved a Fréchet Inception Distance (FID) of 2.49, outperforming TweedieDiff+ (2.81) and standard SFBD (2.58). Remarkably, it even beats standard DDPM models trained exclusively on clean data (4.04).
- 50% Faster Training: By turning the training loop into a continuous process and utilizing asynchronous denoising, Online SFBD slashes total optimization time by roughly half compared to standard SFBD (e.g., reducing CIFAR-10 training from 96 hours down to 60 hours).
Limitations and Future Work
- Memory Overhead: Maintaining a running cache of denoised samples requires additional memory storage compared to standard training pipelines.
- Clean Data Anchor: The framework still relies on a small pool of clean data to anchor the deconvolution process; performance degrades if clean samples are entirely unavailable.
- Scalability to High Resolutions: The experiments were conducted on relatively low-resolution datasets ($32\times32$ and $64\times64$). Demonstrating the efficacy of SFBD Flow on large-scale, high-resolution datasets (like ImageNet or stable-diffusion scale data) remains an open avenue for future research.
Summary updated