Learning to Attack with Fewer Pixels: A Probabilistic Post-Hoc Framework for Refining Arbitrary Dense Adversarial Attacks

He Zhao, Thanh Nguyen-Duc, Trung Le, Paul Montague, Olivier De Vel, Tamas Abraham, Jianfei Cai, Dinh Phung

Abstract

Deep neural network image classifiers are susceptible to adversarial evasion attacks. While dense attacks perturb all pixels and are fast to generate, they are easily detectable. Sparse attacks are stealthier but computationally expensive. We propose PVAR (Pixel Vulnerability Adversary Refinement), a probabilistic post-hoc framework that refines dense attacks by selecting only the most effective perturbations. By maximizing mutual information, PVAR reduces the number of perturbed pixels while maintaining attack success. Our framework is significantly faster than existing sparse attacks and makes adversarial images more realistic and less detectable.

Introduction

Adversarial attacks on Deep Neural Networks (DNNs) typically fall into two categories: dense attacks, which perturb every pixel, and sparse attacks, which perturb only a few. Dense attacks often contain "dead weight"—perturbations that do not contribute to misclassification but increase detectability. Conversely, sparse attacks often require complex, time-consuming searches for optimal pixels. We bridge this gap with PVAR, a framework that leverages the speed of dense attacks while achieving the stealth of sparse ones by identifying and retaining only "vulnerable" pixels.

Methodology: The PVAR Framework

PVAR acts as a post-hoc refiner for existing dense attacks (e.g., PGD, AutoAttack). The framework consists of three core components:

  1. Vulnerability Mapping: A U-Net architecture processes a natural image to generate a "vulnerability map" ($\Theta$). This map assigns a score to every pixel, predicting how much a perturbation at that location will help fool the classifier.
  2. Differentiable Selection: To select the top $M$ pixels while maintaining differentiability for training, we utilize the Concrete distribution (a continuous relaxation of the Gumbel-Softmax trick).
  3. Mutual Information Maximization: The model is trained to ensure the refined sparse attack retains the same misclassification label as the original dense attack by maximizing mutual information between their outputs.
Visualizing the refinement process: (a-f) show MNIST digit '4' refinement; (g-l) show natural image refinement. Columns include original images, dense perturbations, vulnerability maps, and the final refined attacks.

Key Insights and Results

Our evaluation across MNIST, CIFAR10, and ImageNet reveals several critical findings:

  • Efficiency and Stealth: PVAR can discard up to 70-90% of dense noise without losing attack power. On CIFAR10, refinement dropped adversarial detector accuracy (DetAUC) from ~0.94 to ~0.74, even though the attack remained 100% successful.
  • Semantic Vulnerability: Vulnerability maps highlight semantic features relevant to the target class. For example, the model learns to keep noise that mimics class-specific features while discarding irrelevant background noise.
  • Speed: By shifting computation to a one-time training phase, PVAR generates attacks nearly instantaneously. On ImageNet, refinement takes 0.06 seconds, compared to 365 seconds for traditional sparse attacks like JSMA.
  • Generalization: A PVAR model trained on one attack type (e.g., PGD) successfully refines others (e.g., BIM) without retraining.

Discussion and Limitations

While PVAR offers significant improvements in speed and stealth, it currently operates under a white-box assumption, requiring access to the target classifier's gradients during training. Furthermore, the refinement quality is inherently bounded by the effectiveness of the initial dense attack. Future work could explore black-box adaptations and use vulnerability maps to improve model robustness by identifying specific feature weaknesses.

Summary updated

BibTeX
@misc{zhao2020learning,
  author = {He Zhao and Thanh Nguyen-Duc and Trung Le and Paul Montague and Olivier De Vel and Tamas Abraham and Jianfei Cai and Dinh Phung},
  title = {{Learning to Attack with Fewer Pixels: A Probabilistic Post-Hoc Framework for Refining Arbitrary Dense Adversarial Attacks}},
  year = {2020},
  eprint = {2010.06131},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.06131},
}
Figure