Introduction
Diffusion Models (DMs) have set new standards in generative AI, yet they remain surprisingly fragile. They are highly sensitive to noisy training data, prone to memorizing specific training images—raising significant privacy concerns—and vulnerable to adversarial attacks that can easily derail the generation process.
In classification tasks, these issues are typically mitigated through Adversarial Training (AT), which enforces "invariance": the model's output should remain unchanged if the input is slightly perturbed. However, applying this naive invariance to DMs is counterproductive. Because DMs perform a regression task (predicting noise or scores), forcing them to ignore perturbations causes them to lose track of the underlying data manifold. This research explores the mathematically correct approach to adversarial training for generative regression models.
From Invariance to Equivariance
The fundamental insight of this work is that adversarial training for DMs should focus on equivariance rather than invariance. Instead of training the model to produce the same output for a sample $x_t$ and its perturbed version $x_t + \delta$, the model is trained such that a nudge of $\delta$ in the input results in a corresponding shift of exactly $\delta$ in the predicted denoising step. This ensures that the "denoised" point consistently returns to the intended diffusion trajectory.
Robust Training Strategies
The authors propose two primary variants:
- Robustadv: Utilizes a Fast Gradient Sign Method (FGSM) step to identify the most damaging perturbation within an $\ell_\infty$ ball.
- Robustran: Employs random noise, similar to randomized smoothing techniques.
To prevent over-smoothing of fine details, the magnitude of the perturbation $\delta$ is controlled by an Adaptive Ray Scheduler. This scheduler allows for larger perturbations during the early "noise phase" of diffusion and shrinks them as the model transitions into the "content phase." The training objective incorporates a regularization term ($L_{reg}$) that penalizes discrepancies between the predicted noise of a perturbed sample and the predicted noise of the original sample adjusted by the perturbation.
Experimental Results
The proposed methods were evaluated across synthetic environments and standard benchmarks like CIFAR-10, CelebA, and LSUN Bedroom.
Resilience to Noisy Data
A standout result occurs in "challenging settings" where 90% of the training data is corrupted with Gaussian noise. Under these conditions, a standard DDPM fails significantly (CIFAR-10 FID of 102.68). In contrast, Robustadv achieves an FID of 24.81, nearly matching the performance of models trained on pristine data.
Adversarial Robustness and Anti-Memorization
The robust models also demonstrate superior resistance to "Trajectory Attacks" designed to disrupt generation. While standard models produce unrecognizable noise when 25% of steps are attacked, Robustadv maintains image quality even at a 50% attack rate. Furthermore, by smoothing the trajectory space, the model is less likely to overfit, significantly reducing the generation of "near-duplicate" training samples.
Conclusion and Future Work
Adversarial training acts as a powerful inductive bias for denoising, allowing models to find clean underlying manifolds even in highly corrupted datasets. While the current implementation of Robustadv is approximately 2.5x slower to train due to the extra backward pass required for perturbations, the benefits in robustness and sampling efficiency are substantial. Future work aims to scale these techniques to 100% corrupted settings and integrate them into more advanced diffusion frameworks.
Summary updated