GreedyFool: Distortion-Aware Sparse Adversarial Attack

Xiaoyi Dong, Dongdong Chen, Jianmin Bao, Chuan Qin, Lu Yuan, Weiming Zhang, Nenghai Yu

TL;DR

GreedyFool is a novel sparse adversarial attack that fools deep neural networks (DNNs) by perturbing significantly fewer pixels than previous state-of-the-art methods. By combining a two-stage greedy optimization process with a GAN-based "distortion map," it achieves higher attack success rates—especially in targeted scenarios—while remaining remarkably difficult for both humans and automated detection systems to spot.

What Problem Does This Paper Address?

Most adversarial attacks are "dense," meaning they make tiny, imperceptible changes to every pixel in an image (constrained by $l_\infty$ or $l_2$ norms). In contrast, sparse attacks (constrained by the $l_0$ norm) aim to fool a model by modifying only a handful of pixels.

Sparse attacks are mathematically challenging because finding the optimal subset of pixels to perturb is an NP-hard problem. Existing methods like JSMA are too computationally expensive for high-resolution images, while others like SparseFool often perturb more pixels than necessary or produce "noisy" artifacts that are easily detected by steganalysis (machine-led detection of hidden data). GreedyFool aims to bridge this gap by maximizing both sparsity (modifying fewer pixels) and invisibility (creating stealthier perturbations).

Methods

The authors propose a two-stage framework to efficiently find the optimal pixels to perturb:

  1. Stage 1: Increasing (Greedy Selection): The algorithm iteratively selects the most effective pixels to modify. Unlike previous methods that rely solely on gradients, GreedyFool uses a Distortion-Aware approach. It calculates a perturbation weight by multiplying the gradient (which indicates how much a pixel affects the model's output) with a "distortion map." This ensures the attack prioritizes pixels that are both highly influential to the model and easily "hideable" from observers.
  2. Stage 2: Reducing (Pruning): Once a successful adversarial sample is found, the algorithm enters a "reduce" stage. It greedily removes the least important pixels from the set of perturbed points, checking if the attack remains successful. This step eliminates redundancies inherent in the first stage's greedy search.

The GAN-based Distortion Map

A key innovation in GreedyFool is the use of a Generative Adversarial Network (GAN) to create the distortion map.

GAN-based framework for generating the distortion map.

Instead of using hand-crafted rules like local variance, the GAN learns which regions of an image can semantically "absorb" noise without alerting a discriminator. This map guides the attack toward textures and complex areas where changes are naturally less noticeable to both humans and machines.

Datasets and Evaluation

The researchers evaluated GreedyFool on two standard computer vision benchmarks:

  • CIFAR-10: A dataset of small $32\times32$ images.
  • ImageNet: A large-scale dataset of high-resolution images, using a subset of 5,000 images for testing.

Evaluation was performed against several popular architectures, including Inception-v3, ResNet-50, VGG-16, and DenseNet-161.

Key Insights

  • Gradient Direction is Fragile: The authors found that in sparse attacks, the magnitude and direction of the gradient are much more sensitive than in dense attacks. While dense attacks often succeed using just the sign of the gradient (e.g., Fast Gradient Sign Method), sparse attacks require precise values to remain effective with few pixels.
  • The "Reduce" Stage is Vital: Greedy algorithms are inherently "short-sighted." A pixel that seemed important in early iterations might become redundant later. Explicitly adding a pruning stage allowed the authors to reduce the number of perturbed pixels by nearly 20% in some cases.
  • Machine Invisibility vs. Human Invisibility: An attack might look fine to a human but be obvious to a "steganalysis" model. By using a GAN to guide pixel selection, GreedyFool specifically targets the weaknesses of automated adversarial detectors.

Key Results

GreedyFool demonstrates significant improvements over existing methods in both sparsity and success rates.

Comparison of non-targeted attack performance.
  • Superior Sparsity: On ImageNet, to achieve a 100% success rate in non-targeted attacks, GreedyFool required a median of only 27 pixels, compared to 80.5 pixels for SparseFool—a 3x improvement.
  • Targeted Attack Success: Targeted attacks (forcing the model to predict a specific incorrect class) are notoriously difficult for sparse methods. With a budget of 200 pixels on ImageNet, GreedyFool achieved a 15.52% success rate, while the previous best (PGD0) only managed 5.56%. When the budget increased to 1,000 pixels, GreedyFool's success rate jumped to 84.86%.
  • Harder to Detect: In a "cat-and-mouse" test, a binary CNN classifier was trained to detect adversarial images. It caught SparseFool images with 86.79% accuracy but struggled with GreedyFool, only achieving 67.90% accuracy.

Limitations and Future Work

  • Computational Overhead: Training the GAN to generate the distortion map is an "offline" cost. While the attack itself is fast once the GAN is trained, the initial setup is more complex than hand-crafted methods.
  • High Magnitude Perturbations: While the attack is sparse (few pixels), the changes to those specific pixels can be large (high $\epsilon$). While the GAN helps hide these, extremely high-magnitude changes might still be vulnerable to simple "clipping" or denoising defenses.
  • Future Directions: The authors suggest exploring how this distortion-aware logic could be applied to $l_2$ and $l_\infty$ attacks to make dense perturbations even stealthier.

Summary updated

BibTeX
@inproceedings{dong2020greedyfool,
  author = {Xiaoyi Dong and Dongdong Chen and Jianmin Bao and Chuan Qin and Lu Yuan and Weiming Zhang and Nenghai Yu and Dong Chen},
  title = {{GreedyFool: Distortion-Aware Sparse Adversarial Attack}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=7z1k8IMjU6P},
}
Figure