Automated Decision-based Adversarial Attacks

Qi-An Fu, Yinpeng Dong, Hang Su, Jun ZhuarXiv 2021 · OpenReview

Abstract

Deep learning models are notoriously fragile, yet decision-based black-box attacks—where an attacker only observes final labels—remain a significant challenge for security researchers. Historically, these attacks have relied on manually engineered heuristics. This paper introduces AutoDA, a framework that automates the discovery of adversarial attack algorithms using program synthesis. By searching through a domain-specific language of basic mathematical operations, AutoDA discovers algorithms that are significantly more query-efficient and simpler than state-of-the-art human-designed methods.

Introduction

Adversarial attacks are essential for stress-testing AI safety. However, decision-based attacks represent a "hard mode" for researchers. Because the attacker only receives a discrete label (e.g., "Cat" or "Dog"), they cannot utilize gradients to find the path to the nearest error. Existing methods, such as the Boundary Attack or Evolutionary Attack, rely on human intuition to propose random walks or geometric optimizations. These manual approaches are often sub-optimal and fail to explore the full range of possible mathematical strategies for finding adversarial examples.

Researchers from Tsinghua University addressed this by asking: Why design these attacks by hand when we can automate the discovery process? Their solution, AutoDA, treats attack discovery as a program synthesis problem, evolving new, highly efficient algorithms from scratch.

Methods

The authors treat attack discovery as a program synthesis problem focused on finding the most effective logic for generating adversarial perturbations.

The Search Space and DSL

They defined a Domain Specific Language (DSL) consisting of 10 basic operations, ranging from simple scalar arithmetic to vector-wise operations and norms. This restricted language ensures that the discovered programs remain computationally efficient and interpretable.

The Domain Specific Language (DSL) used by AutoDA, consisting of 10 basic mathematical operations for program synthesis.

Efficient Search Strategy

To navigate a search space of billions of potential programs, AutoDA employs several optimization techniques:

  1. Template-Based Search: The search uses a "random walk" framework as a skeleton, focusing specifically on optimizing the generate() function—the logic that moves from a current adversarial image to a slightly improved one.
  2. Pruning and Priors: Programs are immediately discarded if they fail to use all inputs or fail a "distance test" (ensuring the program actually moves closer to the original image). The search is also biased toward compact programs.
  3. Proxy Evaluation: To speed up discovery, candidates are evaluated on a "shrunk" version of EfficientNet-B0 using a subset of CIFAR-10, allowing for the evaluation of nearly 300,000 programs per second per GPU.

Key Results

The discovered algorithms, named AutoDA 1st and 2nd, were compared against three established human-designed attacks: Boundary, Evolutionary, and Sign-OPT.

Query Efficiency and Success Rates

The primary breakthrough of AutoDA is its query efficiency. In real-world scenarios, minimizing queries is vital to avoid detection. On a normally trained ResNet50 (CIFAR-10), AutoDA 1st achieved a 95.9% success rate with only 2,000 queries, whereas the human-designed Boundary attack managed only 10.7% at the same budget.

Performance comparison across different models and training regimes. AutoDA 1st and 2nd (dotted lines) consistently achieve lower distortion and higher success rates with fewer queries than baselines.

Robustness and Transferability

AutoDA's discovered algorithms demonstrated remarkable transferability. Despite being discovered on a small proxy model, they outperformed baselines on high-resolution ImageNet models and models specifically trained with adversarial defenses. Against an $\ell_\infty$ adversarially trained Wide ResNet, AutoDA 1st achieved a 19.2% success rate at 2,000 queries, nearly doubling the performance of Sign-OPT (11.3%).

Discussion and Insights

One of the most surprising findings was the simplicity of the discovered logic. The top-performing AutoDA algorithms used only 10 to 13 operations, making them more compact than the human-designed Boundary Attack (~20 operations). Furthermore, the discovered programs shared operational patterns with existing attacks, suggesting that while human intuition is "rational," it was simply less optimized than the machine-discovered strategies.

Future work may involve expanding the search space to include $\ell_\infty$ norm constraints and adapting the framework for targeted attacks, where the goal is to force a specific incorrect label rather than any misclassification.

Summary updated

Abstract

Deep learning models are vulnerable to adversarial examples, which can fool a target classifier by imposing imperceptible perturbations onto natural examples. In this work, we consider the practical and challenging decision-based black-box adversarial setting, where the attacker can only acquire the final classification labels by querying the target model without access to the model's details. Under this setting, existing works often rely on heuristics and exhibit unsatisfactory performance. To better understand the rationality of these heuristics and the limitations of existing methods, we propose to automatically discover decision-based adversarial attack algorithms. In our approach, we construct a search space using basic mathematical operations as building blocks and develop a random search algorithm to efficiently explore this space by incorporating several pruning techniques and intuitive priors inspired by program synthesis works. Although we use a small and fast model to efficiently evaluate attack algorithms during the search, extensive experiments demonstrate that the discovered algorithms are simple yet query-efficient when transferred to larger normal and defensive models on the CIFAR-10 and ImageNet datasets. They achieve comparable or better performance than the state-of-the-art decision-based attack methods consistently.
BibTeX
@misc{fu2021automated,
  author = {Qi-An Fu and Yinpeng Dong and Hang Su and Jun Zhu},
  title = {{Automated Decision-based Adversarial Attacks}},
  year = {2021},
  eprint = {2105.03931},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.03931},
}
Figure