[Paper Review] Shape Defense
This paper proposes two shape-aware defense methods for CNNs to improve robustness against adversarial attacks by leveraging edge maps. The first uses adversarial training with edge maps as an additional input channel; the second employs a conditional GAN to reconstruct clean images from edge maps. Both methods significantly improve robustness against FGSM and ℓ∞ PGD-40 attacks across 10+ datasets, while also enhancing resilience to natural corruptions and poisoning attacks.
Humans rely heavily on shape information to recognize objects. Conversely, convolutional neural networks (CNNs) are biased more towards texture. This fact is perhaps the main reason why CNNs are susceptible to adversarial examples. Here, we explore how shape bias can be incorporated into CNNs to improve their robustness. Two algorithms are proposed, based on the observation that edges are invariant to moderate imperceptible perturbations. In the first one, a classifier is adversarially trained on images with the edge map as an additional channel. At inference time, the edge map is recomputed and concatenated to the image. In the second algorithm, a conditional GAN is trained to translate the edge maps, from clean and/or perturbed images, into clean images. The inference is done over the generated image corresponding to the input’s edge map. A large number of experiments with more than 10 data sets have proved the effectiveness of the proposed algorithms against FGSM and `1 PGD-40 attacks. against FGSM and `l∞ PGD-40 attacks. Further, we show that edge information can a) benefit other adversarial training methods, b) be even more effective in conjunction with background subtraction, c) be used to defend against poisoning attacks, and d) make CNNs more robust against natural image corruptions such as motion blur, impulse noise, and JPEG compression, than CNNs trained solely on RGB images. From a broader perspective, our study suggests that CNNs do not adequately account for image structures and operations that are crucial for robustness. The code is available at: https://github.com/[masked].
Motivation & Objective
- To address the inherent vulnerability of CNNs to adversarial examples, which stems from their over-reliance on texture over shape.
- To investigate whether incorporating structural shape information—specifically edge maps—can improve model robustness.
- To develop defense mechanisms that are effective not only against adversarial attacks but also against natural image corruptions and poisoning attacks.
- To explore whether edge-based features can enhance existing adversarial training methods.
Proposed method
- Train a classifier using adversarial examples generated from images augmented with edge maps as an additional input channel, with edge maps recomputed at inference time.
- Train a conditional GAN to translate edge maps (from clean or perturbed images) into corresponding clean images, using the generated image for inference.
- Use edge maps as a structural prior that remains stable under small, imperceptible perturbations, making them robust to adversarial noise.
- Integrate edge maps into standard adversarial training pipelines to improve generalization and robustness.
- Apply background subtraction to enhance the effectiveness of edge-based features in isolating object structures.
- Leverage the invariance of edge maps to moderate perturbations to build defenses resilient to FGSM and ℓ∞ PGD-40 attacks.
Experimental results
Research questions
- RQ1Can edge maps serve as a stable structural prior to improve CNN robustness against adversarial attacks?
- RQ2How does incorporating edge maps into adversarial training affect performance on FGSM and ℓ∞ PGD-40 attacks?
- RQ3Can edge-based reconstruction via conditional GANs outperform standard adversarial training in defense scenarios?
- RQ4To what extent do edge-based defenses generalize to natural image corruptions such as motion blur and JPEG compression?
- RQ5Can edge-based features improve robustness against data poisoning attacks?
Key findings
- The proposed edge-based defenses achieve significant robustness improvements against FGSM and ℓ∞ PGD-40 attacks across more than 10 datasets.
- Edge maps enhance the performance of other adversarial training methods, suggesting compatibility and additive benefits.
- Combining edge maps with background subtraction further increases robustness, indicating the importance of foreground structure.
- The defenses are effective against data poisoning attacks, demonstrating resilience beyond standard adversarial examples.
- CNNs trained with edge maps show superior robustness to natural image corruptions such as motion blur, impulse noise, and JPEG compression compared to standard RGB-only models.
- The edge-based approach improves generalization by encouraging models to rely more on structural shape than on texture cues.
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.