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.
Efficient Search Strategy
To navigate a search space of billions of potential programs, AutoDA employs several optimization techniques:
- 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. - 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.
- 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.
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