[Paper Review] Divide, Denoise, and Defend against Adversarial Attacks
This paper proposes D3, a non-differentiable, attack-agnostic defense that divides input images into overlapping patches, denoises each using a non-differentiable matching pursuit algorithm with a learned dictionary of clean patches, and reconstructs the image. It achieves 34.4% robust accuracy on ImageNet under white-box FGSM attacks—significantly outperforming prior work that reported 0% accuracy—demonstrating state-of-the-art robustness without adversarial fine-tuning.
Deep neural networks, although shown to be a successful class of machine learning algorithms, are known to be extremely unstable to adversarial perturbations. Improving the robustness of neural networks against these attacks is important, especially for security-critical applications. To defend against such attacks, we propose dividing the input image into multiple patches, denoising each patch independently, and reconstructing the image, without losing significant image content. We call our method D3. This proposed defense mechanism is non-differentiable which makes it non-trivial for an adversary to apply gradient-based attacks. Moreover, we do not fine-tune the network with adversarial examples, making it more robust against unknown attacks. We present an analysis of the tradeoff between accuracy and robustness against adversarial attacks. We evaluate our method under black-box, grey-box, and white-box settings. On the ImageNet dataset, our method outperforms the state-of-the-art by 19.7% under grey-box setting, and performs comparably under black-box setting. For the white-box setting, the proposed method achieves 34.4% accuracy compared to the 0% reported in the recent works.
Motivation & Objective
- To address the vulnerability of deep neural networks to adversarial perturbations in security-critical applications.
- To develop a defense mechanism that is robust against unknown, gradient-based attacks without requiring adversarial fine-tuning.
- To maintain high clean image accuracy while improving robustness through dimensionality reduction and non-differentiable denoising.
- To design a defense that is inherently resistant to gradient-based attacks by making the transformation non-differentiable.
- To analyze the tradeoff between clean accuracy and robustness under black-box, grey-box, and white-box attack settings.
Proposed method
- The input image is divided into overlapping patches to reduce effective dimensionality and limit the adversary’s search space.
- Each patch is denoised independently using a variant of matching pursuit (MP) with a dictionary of clean image patches selected via a novel patch-selection algorithm.
- The dictionary is constructed to include diverse, salient patches with high minimum angular distance between atoms to enhance robustness.
- The denoising process is non-differentiable, preventing gradient-based back-propagation attacks such as FGSM and BPDA.
- Randomization is applied to the dictionary selection process to further improve robustness in white-box settings.
- A reconstruction step combines denoised patches into a final image, preserving semantic content while removing adversarial noise.
Experimental results
Research questions
- RQ1Can a non-differentiable, patch-based denoising defense achieve state-of-the-art robustness on large-scale datasets like ImageNet?
- RQ2How does the tradeoff between clean accuracy and robustness vary with patch size, sparsity, and dictionary properties?
- RQ3To what extent can the defense resist white-box attacks when the adversary knows the network and defense mechanism?
- RQ4Does the defense remain effective under black-box and grey-box settings, especially when the adversary lacks access to the defense mechanism?
- RQ5Can the defense be made more robust through randomization without degrading clean accuracy?
Key findings
- Under white-box FGSM attacks, D3 achieves 34.4% top-1 accuracy on ImageNet, compared to 0% reported in prior work, demonstrating a significant improvement.
- In the grey-box setting, D3 outperforms state-of-the-art defenses by 19.7% in robust accuracy on ImageNet.
- With randomization, D3 improves robust accuracy from 13.0% to 34.4% under the BPDA attack, showing enhanced resilience to gradient-based attacks.
- Larger patch sizes (up to 32×32) improve robustness by reducing the effective search space for adversaries, though they slightly degrade reconstruction quality.
- On simpler tasks (e.g., 50 ImageNet classes), D3 maintains high clean accuracy (91.7%) and achieves 70.9% robust accuracy under white-box attacks.
- On CIFAR-10, D3 achieves 87% clean accuracy and 80% robust accuracy under FGSM attack, outperforming most existing defenses except those specialized for FGSM.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.