An Efficient and Margin-Approaching Zero-Confidence Adversarial Attack

Yang Zhang, Shiyu Chang, Mo Yu, Kaizhi QianarXiv 2019

Abstract

There are two major paradigms of white-box adversarial attacks that attempt to impose input perturbations. The first paradigm, called the fix-perturbation attack, crafts adversarial samples within a given perturbation level. The second paradigm, called the zero-confidence attack, finds the smallest perturbation needed to cause mis-classification, also known as the margin of an input feature. While the former paradigm is well-resolved, the latter is not. Existing zero-confidence attacks either introduce significant approximation errors, or are too time-consuming. We therefore propose MARGINATTACK, a zero-confidence attack framework that is able to compute the margin with improved accuracy and efficiency. Our experiments show that MARGINATTACK is able to compute a smaller margin than the state-of-the-art zero-confidence attacks, and matches the state-of-the-art fix-perturbation attacks. In addition, it runs significantly faster than the Carlini-Wagner attack, currently the most accurate zero-confidence attack algorithm.

Introduction

In the field of adversarial machine learning, white-box attacks—where the attacker has full access to the model's parameters—are essential for evaluating robustness. These attacks generally fall into two categories. Fix-perturbation attacks operate within a predefined "budget," attempting to find any misclassification within that limit. In contrast, zero-confidence attacks seek the absolute minimum perturbation required to flip a model's prediction, a value known as the margin.

Comparison of (a) Zero-Confidence and (b) Fix-Perturbation attack paradigms.

Zero-confidence attacks are challenging to optimize. Current methods like DeepFool are efficient but often inaccurate due to over-simplification of the model's geometry. Conversely, the Carlini-Wagner (CW) attack provides high precision but is computationally expensive, often requiring slow binary search processes. MARGINATTACK is designed to bridge this gap, offering both high precision and computational efficiency.

Methodology: The MARGINATTACK Framework

The core of MARGINATTACK is an iterative "two-step dance" inspired by Rosen’s gradient projection method, tailored for the non-convex landscapes of neural networks.

  1. The Restoration Move: This step linearizes the model's constraints to "hop" the input toward the decision boundary ($c(x)=0$). It aims to reach a state where the model is on the verge of misclassification.
  2. The Projection Move: Once near the boundary, this step "slides" the sample along the boundary to minimize its distance from the original image $x_0$. This balances staying in the adversarial region while reducing the perturbation magnitude.
The iterative process of MARGINATTACK, alternating between Restoration and Projection moves to reach the decision boundary.

To further enhance performance, the framework includes a Target Scan feature to identify the geographically closest "wrong" class and a Box Constraint handler to ensure pixel values remain within valid ranges (e.g., [0, 1]).

Experimental Evaluation

The researchers evaluated MARGINATTACK across several standard benchmarks, including MNIST, CIFAR-10, and ImageNet (using a pre-trained ResNet-50). It was also tested against the MNIST Adversarial Examples Challenge, a benchmark for models hardened by adversarial training.

Key Results

  • Accuracy: MARGINATTACK consistently found smaller margins than DeepFool and outperformed the CW attack on MNIST, CIFAR-10, and ImageNet in both $L_2$ and $L_\infty$ norm tests.
  • Efficiency: The framework demonstrated significant speedups. On CIFAR-10, it was 3x to 7x faster than CW variants. On ImageNet, it was nearly 3.5x faster than CW Bin5.
  • Robustness: In the MNIST Adversarial Challenge, MARGINATTACK was the top-performing zero-confidence attack, showing resilience against "gradient masking" defense tactics.

Conclusion

MARGINATTACK provides a highly efficient and accurate framework for computing adversarial margins. By treating the decision boundary as a complex manifold and utilizing a diminishing step size scheme for convergence, it avoids the slow search processes of previous state-of-the-art methods. While currently a white-box method, its ability to handle the non-smooth discontinuities of modern neural networks makes it a robust tool for security evaluation. Future work may explore optimal parameter configurations and global optimization strategies to further refine margin estimation.

Summary updated

BibTeX
@misc{zhang2019efficient,
  author = {Yang Zhang and Shiyu Chang and Mo Yu and Kaizhi Qian},
  title = {{An Efficient and Margin-Approaching Zero-Confidence Adversarial Attack}},
  year = {2019},
  eprint = {1910.00511},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.00511},
}
Figure