Sparse Adversarial Attack via Perturbation Factorization

Yanbo Fan, Baoyuan Wu, Tuanhui Li, Yong Zhang, Mingyang Li, Zhifeng Li, Yujiu Yang

Abstract

Deep Neural Networks (DNNs) are highly susceptible to adversarial attacks, where subtle input modifications lead to incorrect classifications. While most research focuses on dense attacks that modify every pixel, sparse attacks—which aim to perturb as few pixels as possible—present a significant combinatorial challenge. We introduce SAPF (Sparse adversarial Attack via Perturbation Factorization), a novel framework that factorizes perturbations into two distinct components: pixel selection and perturbation magnitude. By reformulating this as a Mixed Integer Programming problem solved via $\ell_p$-Box ADMM, we achieve state-of-the-art performance. Our method demonstrates a 100% success rate on ImageNet and CIFAR-10, producing attacks that are both more efficient and less perceptible than previous methods.

Introduction

The vulnerability of DNNs to adversarial examples poses a critical security risk. Sparse attacks are particularly interesting because they reveal the minimum evidence required to flip a model's prediction. However, generating these attacks is difficult because it requires solving two problems simultaneously: identifying which pixels to change (a massive combinatorial search) and determining the optimal magnitude for those changes. Previous approaches often relied on inefficient greedy heuristics or lacked precise control over the number of modified pixels.

Methodology

The core innovation of SAPF is the factorization of the perturbation $\epsilon$ into the element-wise product of two variables:

  • $G$ (Selection): A binary variable (0 or 1) indicating whether a pixel is modified.
  • $\delta$ (Magnitude): A continuous variable representing the intensity of the change.

This factorization allows the attack to be formulated as a constrained optimization problem. To handle the discrete nature of $G$, we employ the $\ell_p$-Box ADMM technique, which relaxes the binary constraint into a continuous space defined by the intersection of a box and a sphere.

We further extend this framework into two specialized variants:

  1. SAPF-GS (Group-wise Sparsity): Encourages perturbations to cluster in meaningful regions.
  2. SAPF-VI (Visual Imperceptibility): Utilizes local image variance to hide perturbations in high-texture areas, making them less visible to human observers.

Experimental Results

We evaluated SAPF on the CIFAR-10 and ImageNet datasets against standard models like Inception-v3. SAPF consistently achieved a 100% Attack Success Rate (ASR).

Visual comparison of the SAPF attack against the C&W-l0 baseline. SAPF achieves misclassification with significantly lower distortion and more localized perturbations.

As shown in the figure above, SAPF outperforms the state-of-the-art C&W-$\ell_0$ attack in several key metrics. While C&W-$\ell_0$ often scatters noise across the entire image, SAPF's perturbations are more concentrated on discriminative features of the object. Quantitatively, SAPF requires fewer perturbed pixels and results in lower $\ell_2$ and $\ell_\infty$ distortion norms. For instance, in the "Whippet to Langur" attack, SAPF significantly reduced the total perturbation magnitude compared to the baseline.

Key Insights

  • Joint Optimization: Optimizing selection and magnitude simultaneously leads to "cleaner" and more effective attacks than sequential or heuristic methods.
  • Interpretability: Sparse perturbations naturally target the most influential parts of an image (e.g., a bird's head), providing insights into what features the DNN prioritizes for classification.
  • Precision Control: The use of a cardinality constraint allows users to specify the exact number of pixels to be modified, offering finer control over the attack's budget.

Conclusion and Future Work

SAPF provides a robust and flexible framework for generating sparse adversarial examples. While the method is computationally more intensive than simple heuristics due to gradient calculations for both factors, its efficiency in terms of pixel budget and visual quality is superior. Future research will focus on evaluating SAPF against adversarially trained models and further optimizing the convergence speed of the ADMM-based solver.

Summary updated

BibTeX
@inproceedings{fan2020sparse,
  author = {Yanbo Fan and Baoyuan Wu and Tuanhui Li and Yong Zhang and Mingyang Li and Zhifeng Li and Yujiu Yang},
  title = {{Sparse Adversarial Attack via Perturbation Factorization}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  doi = {10.1007/978-3-030-58542-6\_3},
}
Figure