TL;DR
This paper introduces AutoAdversary, a novel end-to-end method for generating sparse adversarial attacks. By framing pixel selection as a neural network pruning problem, AutoAdversary automatically identifies and perturbs the most impactful pixels, outperforming existing heuristic-based methods in both attack effectiveness and efficiency, especially on larger images.
What Problem Does This Paper Address?
Deep neural networks (DNNs) are susceptible to adversarial examples – subtly modified inputs that cause misclassification. While many attacks perturb all pixels (dense attacks), sparse attacks aim to achieve the same goal by altering only a few pixels, making them potentially harder to detect. However, existing sparse attack methods often rely on heuristic, multi-stage approaches to select which pixels to perturb. This separation of pixel selection and attack optimization can be suboptimal, and these methods can become computationally expensive as image sizes increase. The paper addresses the challenge of efficiently and effectively generating sparse adversarial attacks by integrating pixel selection directly into the attack optimization process.
Methods
AutoAdversary proposes a novel end-to-end framework that integrates pixel selection into the adversarial attack optimization. Instead of using hand-crafted rules, it employs a trainable neural network (an encoder) that takes the adversarial perturbation as input and generates an approximate binary mask. This mask then filters the perturbation, ensuring only selected pixels are modified. The adversarial perturbation and the encoder network are jointly optimized.
Key methodological components include:
- Integrated Pixel Selection: A trainable neural network generates a binary mask, effectively selecting pixels for perturbation. This replaces heuristic methods.
- End-to-End Optimization: The adversarial perturbation and the mask-generating network are optimized simultaneously, allowing the attack to guide pixel selection.
- Binarization with Scaled Sigmoid: A scaled sigmoid function is used to generate an approximate binary mask, with the scaling factor gradually increased during training to achieve near-binary outputs and avoid premature pixel selection.
- Loss Function: The loss function balances the adversarial attack objective (fooling the classifier) with a sparsity constraint on the mask (using the L1-norm), controlled by a dynamic parameter.
- Perturbation Update: The perturbation is updated using a combination of PGD and MI-FGSM, allowing for constraints on both L-infinity and L-infinity norms.
Datasets
- CIFAR-10: Used for training and evaluation.
- ImageNet: Used for evaluation.
The paper uses subsets of these datasets, selecting images that are correctly classified by the target models.
Key Insights and Ideas
- Pixel Selection as Pruning: The core insight is to reframe sparse adversarial attack as a neural network pruning problem, where pixels are treated as "weights" to be pruned. This allows leveraging techniques from pruning research.
- End-to-End Learning for Sparsity: Jointly optimizing the perturbation and the mask generator leads to more effective pixel selection than separate heuristic steps.
- Efficiency on Large Images: By avoiding heuristic pixel selection, AutoAdversary scales better to larger images compared to traditional methods, which often suffer from dramatic increases in computation time.
- Encoder Flexibility: The method is shown to be robust to different encoder architectures (fully-connected, U-net, FCN), suggesting it can serve as a general framework.
Key Results
- High Attack Success Rate (ASR): AutoAdversary achieves 100% ASR on both CIFAR-10 and ImageNet under various perturbation budgets (€).
- Superior Sparsity: It achieves significantly lower L0-norms (fewer perturbed pixels) and L-infinity norms (smaller perturbation magnitudes) compared to state-of-the-art methods like JSMA, GreedyFool, C&W-lo, and SAPF, while maintaining high ASR. For example, on CIFAR-10 with €=8/255, it achieves 100% ASR with an L0-norm of 320.1 (0.532% pixels).
- Competitive Speed: The method is efficient, especially on larger images. The time spent attacking an ImageNet image only increases by 771.40% compared to CIFAR-10, a much smaller growth rate than many competing methods.
- Ablation Studies: Experiments confirm the effectiveness of the integrated approach, showing that random pixel selection is poor, and that the encoder and binarization components are crucial for achieving high ASR and sparsity.
Limitations and Future Work
- Limitations: The paper notes that while the method is efficient, some dense attack methods can be faster if batch processing is heavily optimized, though at the cost of significantly lower ASR. The paper also mentions that the degree of sparsity can be specified by modifying the loss function, implying that achieving extreme sparsity might require further tuning.
- Future Work: The paper suggests that the method's encoder flexibility makes it a general framework for sparse adversarial attacks. Further exploration of encoder architectures or training strategies could potentially yield even better results. The paper also implies that the framework could be adapted for other types of adversarial attacks.
Summary updated