Stochastic sparse adversarial attacks

Hatem Hajri, Manon Césaire, Théo Combey, Sylvain Lamprier, Patrick Gallinari

Introduction

Adversarial attacks typically aim to deceive machine learning models by introducing perturbations constrained by $L_2$ or $L_\infty$ norms, often resulting in subtle changes across all pixels. In contrast, sparse ($L_0$) attacks seek to modify the minimum number of pixels necessary to trigger a misclassification. These attacks are particularly relevant for real-world scenarios, such as physical perturbations (e.g., a few stickers on a sign).

However, finding the optimal set of pixels to perturb is a complex discrete optimization problem. Existing $L_0$ attacks often face a trilemma: they are either computationally expensive (like the Brendel & Bethge attack), fail to scale to high-resolution datasets like ImageNet (like JSMA), or require a manually predefined pixel budget (like Sparse-RS). This paper introduces Stochastic Sparse Adversarial Attacks (SSAA) and the Voting Folded Gaussian Attack (VFGA) to overcome these limitations.

Methodology: Taming Stochasticity

The core innovation of SSAA is treating adversarial perturbations as a stochastic process. The authors utilize "small-time expansion," a mathematical technique from Markov process theory, to approximate how random noise affects model output probabilities using first and second derivatives (gradients).

Folded Gaussian Noise

A critical discovery in this work is the superiority of Folded Gaussian noise ($|N(0, \theta)|$) over standard Gaussian noise. Standard noise has a variance equal to its mean, making it too unpredictable for precise sparse attacks. By "folding" the distribution, the authors create a perturbation with significantly lower variance relative to its expected impact, leading to more stable and predictable convergence.

Figure 1: Progression of target and initial class probabilities for Targeted XSMA (log scale) and Targeted VFGA10. VFGA10 demonstrates a more controlled convergence of class probabilities.

The VFGA Algorithm

The Voting Folded Gaussian Attack (VFGA) follows a four-step iterative process:

  1. Saliency Selection: Gradients identify the most sensitive pixels.
  2. Intensity Sampling: Multiple potential intensities for a pixel are sampled from a folded Gaussian distribution.
  3. Voting: The algorithm evaluates both increasing and decreasing pixel values simultaneously, selecting the most effective direction.
  4. Iteration: The process repeats until the model is successfully fooled.

Key Results and Scaling

VFGA demonstrates remarkable efficiency and effectiveness across both CIFAR-10 and ImageNet benchmarks. Unlike methods like Sparse-RS, which require a fixed budget, VFGA naturally finds the minimum required $L_0$ score for each image.

Performance Metrics

  • Sparsity: On CIFAR-10, VFGA10 required an average of only 17.03 pixels to fool a ResNet18, significantly outperforming Sparse-RS (29.79 pixels).
  • ImageNet Scaling: On Inception-v3, VFGA10 achieved a mean $L_0$ score of 198.25, whereas Sparse-RS required 297.12.
  • Efficiency: VFGA is highly optimized for modern hardware. By batching intensity samples, it reaches success on ImageNet in approximately 1,133 model propagations—nearly five times faster than the high-accuracy B&B attack.
Figure 4: Comparison of success rate and L0 scores between Sparse-RS and VFGA10. VFGA10 achieves a 100% success rate more rapidly and maintains a significantly lower mean L0 score regardless of the allowed pixel budget.

Conclusion

VFGA represents a significant step forward in sparse adversarial research, providing a fast, automated, and scalable method for $L_0$ attacks. While currently a white-box method requiring gradient access, its success with folded noise suggests new avenues for stochastic optimization in adversarial machine learning. Future work may explore black-box adaptations or the use of alternative noise distributions like Poisson noise to further refine attack efficiency.

Summary updated

BibTeX
@inproceedings{hajri2021stochastic,
  author = {Hatem Hajri and Manon Césaire and Théo Combey and Sylvain Lamprier and Patrick Gallinari},
  title = {{Stochastic sparse adversarial attacks}},
  booktitle = {ICTAI},
  year = {2021},
  url = {https://openreview.net/forum?id=6i1xNezjgi},
}
Figure