Towards Leveraging the Information of Gradients in Optimization-based Adversarial Attack

Jingyang Zhang, Hsin-Pai Cheng, Chunpeng Wu, Hai Li, Yiran ChenarXiv 2018

Abstract

Adversarial attacks are essential for evaluating the robustness of Deep Neural Networks (DNNs). However, existing methods often face a trade-off between computational efficiency and the quality of adversarial perturbations. This paper introduces a hybrid optimization-based attack that leverages gradient information to guide the search process. By constraining perturbations to the direction of the loss gradient and optimizing per-pixel magnitudes, the proposed method achieves high success rates with minimal distortion and significantly reduced iteration counts compared to the industry-standard Carlini & Wagner (CW) attack.

Introduction

The security of Deep Neural Networks (DNNs) is frequently challenged by adversarial attacks—small, often imperceptible perturbations designed to cause misclassification. Current methodologies generally fall into two categories: fast but coarse gradient-based methods like the Fast Gradient Sign Method (FGSM), and precise but computationally expensive optimization-based methods like the Carlini & Wagner (CW) attack. While CW attacks produce high-quality adversarial samples with low $\ell_2$ distortion, their iterative nature makes them impractical for large-scale evaluations. This research aims to bridge this efficiency gap by incorporating gradient information directly into the optimization framework.

Methodology: Gradient-Guided Optimization

The core innovation of this work is the "Gradient Guidance" strategy. In traditional optimization attacks, every pixel is treated as an independent variable, leading to a vast search space. The authors propose a constraint where the perturbation $\delta$ is defined as a function of the loss gradient $g$:

$$\delta = -\theta \cdot \frac{g}{\|g\|_2}$$

Here, $g$ represents the normalized gradient direction that most influences the classification, and $\theta$ is a per-pixel magnitude parameter. Instead of optimizing the pixel values directly, the algorithm uses the Adam optimizer to tune $\theta$. This approach effectively narrows the search space by forcing the algorithm to prioritize directions that point toward the decision boundary.

Visual comparison of optimization paths on a 2D synthetic dataset. The proposed method follows a more direct, "rational" path toward the decision boundary compared to the standard CW attack.

By baking the gradient into the update rule, the algorithm avoids wasted iterations in directions that do not contribute to flipping the label. This "shortcut" logic is visually demonstrated in synthetic 2D datasets, where the proposed method moves more perpendicularly to the decision boundary than standard optimization techniques.

Experimental Evaluation

The method was evaluated on two benchmark datasets:

  • CIFAR-10: Using a standard CNN architecture (76.7% accuracy).
  • ImageNet: Using a pre-trained Inception v3 model to test scalability.

Key Results

The proposed method, labeled "Our1," demonstrated superior performance across multiple metrics. On the CIFAR-10 dataset, it achieved an $\ell_2$ distortion of 0.856, significantly lower than the 1.876 achieved by the comparable CW6 configuration.

Performance metrics on CIFAR-10. The 'dist' column shows that the proposed method (Our1) consistently achieves lower $\ell_2$ distortion than CW and other baseline attacks across various confidence levels (0 to 25).

Furthermore, the efficiency gains were most apparent on the large-scale ImageNet dataset. The proposed method reached a 100% success rate in just 52 iterations, whereas the CW attack required over 300 iterations to reach a similar success level, often with higher distortion. The method also proved robust in "high-confidence" scenarios, maintaining a 100% success rate where other methods required excessive distortion or failed to converge.

Conclusion and Future Work

By leveraging gradient information to guide optimization, this paper provides a more efficient path to generating high-quality adversarial examples. While the method shows clear advantages in white-box settings, future research could explore its sensitivity to hyperparameters and its performance in black-box scenarios where gradients are not directly accessible. Additionally, further study into the transferability of these high-confidence adversarial samples across different model architectures would be beneficial.

Summary updated

BibTeX
@misc{zhang2018towards,
  author = {Jingyang Zhang and Hsin-Pai Cheng and Chunpeng Wu and Hai Li and Yiran Chen},
  title = {{Towards Leveraging the Information of Gradients in Optimization-based Adversarial Attack}},
  year = {2018},
  eprint = {1812.02524},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1812.02524},
}
Figure