Introduction
Deep neural networks (DNNs) have demonstrated remarkable performance in computer vision tasks, yet they remain vulnerable to adversarial attacks. These attacks involve subtle, often imperceptible perturbations added to input images that can lead models to make incorrect predictions with high confidence. Traditional defense strategies generally fall into two categories: adversarial training, which is computationally intensive, and input denoising, which attempts to "clean" the image before classification.
However, existing denoising methods face two significant challenges. First, most are "additive," attempting to predict and subtract a noise map, which often fails to preserve fine image details. Second, they struggle with varying attack strengths (denoted by $\epsilon$); a denoiser optimized for heavy noise may over-smooth clean images, while one tuned for subtle noise may fail against strong attacks. This paper introduces AdvFilter, a novel framework that utilizes predictive pixel-wise filtering and multi-domain learning to address these limitations.
Methodology: From Additive Denoising to Predictive Filtering
AdvFilter shifts the paradigm from additive noise subtraction to filtering-based denoising. Instead of predicting a global noise map, the model predicts a unique $K \times K$ filter kernel for every pixel in the image. This approach leverages local context more effectively, allowing the model to smooth out adversarial perturbations while maintaining sharp edges and textures.
The Y-Net Architecture
To handle the spectrum of possible attack intensities, the authors developed a "Y-Net" architecture. This design features a shared encoder that branches into two specialized decoder heads:
- Head 1 ($sl$): Optimized for very small (nearly clean) and very large perturbations.
- Head 2 ($m$): Specifically targeted at median-strength perturbations, a range where standard denoisers typically underperform.
Uncertainty-aware Fusion
Rather than choosing a single output, AdvFilter employs an uncertainty-aware fusion module. By analyzing the predicted kernels, the system generates an uncertainty map. If the kernels indicate high-frequency adversarial noise, the fusion module creates a weight map to dynamically blend the outputs of the two decoder heads, ensuring the optimal filter is applied to each specific region of the image.
Multi-domain Learning and Adaptation
AdvFilter is trained using a multi-domain learning strategy across twelve different attack intensities simultaneously. This allows the model to generalize across a wide range of threats, from subtle perturbations to heavy noise.
As shown in the visualization above, the uncertainty maps reflect the model's awareness of the perturbation level, allowing it to adjust the filtering strength accordingly. This adaptability ensures high performance on both clean and attacked images.
Experimental Results
The researchers evaluated AdvFilter on three benchmarks: NeurIPS-2017DEV, CIFAR10, and SVHN, using the Projected Gradient Descent (PGD) attack as the primary evaluation metric.
Key Findings:
- Robustness Recovery: On the NeurIPS-2017DEV dataset, where a standard ResNet50's accuracy drops to 0% under strong attacks, AdvFilter restores accuracy to approximately 27-30%.
- Superior Image Quality: AdvFilter consistently achieved higher Peak Signal-to-Noise Ratio (PSNR) and Structural Similarity Index (SSIM) compared to additive methods, indicating that the filtered images are visually closer to the originals.
- Defense Synergy: The study demonstrated that denoising and adversarial training are complementary. When AdvFilter was combined with "Feature Denoising" (a state-of-the-art adversarial training method), the model's accuracy on highly perturbed images ($\epsilon = 0.5$) increased by 5.7x.
Conclusion
AdvFilter represents a significant advancement in adversarial defense by replacing rigid additive denoising with flexible, predictive pixel-wise filtering. By utilizing a multi-domain Y-Net architecture and uncertainty-aware fusion, it provides a robust pre-processing layer that adapts to varying attack strengths. Future work aims to extend this framework to non-additive corruptions, such as natural weather effects, to create more universally resilient vision systems.
Summary updated