TL;DR
Diffusion Denoised Smoothing—using a pretrained diffusion model to clean images before inference—promises adversarial defense without retraining. This paper shows that while it protects Vision Foundation Models (VFMs) against standard attacks, it introduces a severe security-utility trade-off: high-noise denoising tanks clean performance by up to 57%, while low-noise denoising is easily bypassed by a novel adaptive attack that integrates the diffusion process into the optimization loop.
What Problem Does This Paper Address?
Vision Foundation Models (VFMs), like DINOv2, generate incredibly rich visual representations useful for everything from semantic segmentation to depth estimation. However, like traditional neural networks, they are highly vulnerable to adversarial attacks—imperceptible pixel perturbations designed to cause catastrophic failures.
A recent, popular defense strategy is Diffusion Denoised Smoothing. The idea is simple: before passing an image to a vision model, pass it through a pretrained diffusion model to add a bit of noise and then denoise it. This process effectively "resets" the image, wiping away any malicious adversarial perturbations.
While this defense has shown promise for simple image classification, its efficacy across more complex, dense downstream tasks (like depth estimation or image retrieval) remained unexplored. This paper investigates whether diffusion-based defenses can truly provide "robustness for free" across diverse real-world vision applications.
Methods
The authors evaluate the security-utility trade-off of Diffusion Denoised Smoothing using DINOv2 (across ViT-S, ViT-B, and ViT-L architectures) equipped with task-specific downstream heads.
Their evaluation framework tests two defense regimes:
- Low-noise diffusion ($t_{\text{min}} = t_{\text{max}} = 10$): Intended to preserve fine image details.
- High-noise diffusion ($t_{\text{min}} = t_{\text{max}} = 396$): Intended to aggressively disrupt adversarial patterns.
They benchmark these defenses against standard adversarial attacks like Projected Gradient Descent (PGD), Momentum Iterative Fast Gradient Sign Method (MI-FGSM), and Scale-Invariant Attack (SIA).
The Novel Adaptive Attack
Crucially, the authors introduce a new attack strategy (Algorithm 1) that targets the defense itself. If an attacker knows a diffusion defense is active, they can incorporate the diffusion denoising step directly into their gradient optimization loop with a given probability ($p_{\text{diffusion}}$). This allows the attack to generate adversarial perturbations that survive the denoising process.
Datasets
The authors benchmarked their approach across three distinct datasets covering four downstream tasks:
- PascalVOC: Evaluated on both Image Classification (Accuracy) and Semantic Segmentation (Mean Intersection over Union / mIoU).
- NYU-Depth: Evaluated on Depth Estimation (Root Mean Square Error / RMSE).
- Revisited Oxford buildings (rOxford): Evaluated on Image Retrieval (Mean Average Precision / mAP).
Key Insights and Ideas
- The Robustness Paradox: VFMs are remarkably resilient to natural image distortions like JPEG compression, blurring, and grayscaling. Yet, a vanilla PGD attack completely destroys their performance, proving that natural robustness does not equal adversarial robustness.
- The Denoising Dilemma: High-noise diffusion successfully neutralizes adversarial attacks, but it introduces severe structural distortions. As seen in Figure 1, it can completely erase objects (like a boat) or introduce heavy semantic noise, leading to catastrophic failures on perfectly clean images.
- Low-Noise is a False Security: While low-noise diffusion maintains excellent performance on clean images, it provides a weak defense. If an attacker uses the authors' adaptive strategy—simulating the diffusion step during gradient descent—they can easily bypass low-noise defenses.
Key Results
The paper's quantitative findings paint a stark picture of the security-utility trade-off:
- Clean Performance Degradation: Applying a high-noise diffusion defense to clean images degrades performance by 14–33% for classification, segmentation, and retrieval. For depth estimation, performance plummets by up to 57% (RMSE increases from 0.55 to 0.79 on ViT-S). These details are comprehensively documented in Table I.
- Defense Effectiveness vs. Standard Attacks: High-noise diffusion is highly effective against standard non-adaptive attacks. For instance, under a standard PGD attack, ViT-S classification accuracy drops to 0.0%, but high-noise defense restores it to 79.4% (see Table II).
- Adaptive Attack Success: When the novel adaptive attack is deployed against a low-noise defense, the defense crumbles. For example, the Scale-Invariant Attack (SIA) optimized with diffusion drops the VFM's classification accuracy down to a mere 6.2%.
Limitations and Future Work
The primary limitation highlighted by this work is that Diffusion Denoised Smoothing cannot yet deliver both high security and high utility simultaneously for dense prediction tasks. High-noise settings destroy adversarial attacks but ruin spatial precision, while low-noise settings preserve precision but fall victim to adaptive attackers.
The authors note that future work must focus on developing smarter denoising pipelines. Specifically, defenses need to selectively strip out adversarial high-frequency noise without destroying the fine-grained semantic and spatial details that foundation models rely on for complex downstream tasks.
Summary updated