Black-box adversarial attacks using Evolution Strategies

Hao Qiu, Leonardo Lucio Custode, Giovanni Iacca · DOI

Introduction

Deep neural networks (DNNs) have demonstrated remarkable performance in computer vision, yet they remain susceptible to adversarial perturbations—carefully crafted, often imperceptible noise that induces misclassification. While white-box attacks leverage internal model gradients to generate these perturbations, real-world scenarios often present a "black-box" challenge. In such cases, attackers only have access to model outputs (e.g., class probabilities or labels) without knowledge of the underlying architecture or gradients.

This paper investigates the efficacy of Evolution Strategies (ES), a class of black-box optimization algorithms inspired by natural selection, for generating adversarial attacks. By comparing three distinct ES variants, the research identifies the most robust and efficient methods for compromising state-of-the-art image classifiers.

Methodology

The core challenge of black-box attacks is navigating a high-dimensional search space without gradient information. The authors evaluate three optimization strategies:

  1. (1+1)-ES: A simple local search algorithm that maintains a single candidate solution. It applies random mutations and retains the new version only if it improves the objective function (i.e., increases the target misclassification probability).
  2. Natural Evolution Strategies (NES): An approach that estimates a search gradient by sampling noise around the current solution and moving in the direction of higher fitness.
  3. Covariance Matrix Adaptation Evolution Strategy (CMA-ES): A sophisticated population-based algorithm. Unlike the others, CMA-ES adapts a covariance matrix to learn the second-order geometry of the fitness landscape, allowing it to navigate complex optimization surfaces more effectively.

Dimensionality Reduction: The Upscaling Trick

Optimizing a perturbation for a standard $224 \times 224$ pixel image involves over 150,000 variables. To make this computationally feasible, the authors employ a dimensionality reduction technique. Instead of evolving the full-resolution noise, they evolve a $32 \times 32$ tensor. This smaller tensor is then upscaled to the required dimensions using nearest-neighbor interpolation before being added to the original image. This "upscaling trick" significantly reduces the search space, accelerating the convergence of the ES algorithms.

Experimental Evaluation

The study utilizes the ImageNet dataset to test attacks against three prominent architectures: VGG-16, ResNet-50, and Inception-v3. The attacks are categorized into two types:

  • Untargeted Attacks: The goal is to cause the model to predict any incorrect class.
  • Targeted Attacks: The goal is to force the model to predict a specific, pre-defined incorrect class.

Results and Key Insights

The experiments reveal significant performance disparities between the chosen evolution strategies.

The Superiority of CMA-ES

CMA-ES emerged as the most effective algorithm across all metrics. In untargeted attacks on VGG-16, CMA-ES achieved a 100% success rate, outperforming NES (94.8%) and (1+1)-ES (80.2%). Its efficiency was equally notable; CMA-ES required an average of only 155 queries to successfully fool VGG-16, whereas (1+1)-ES required over 2,000 queries.

The Targeted Attack Gap

The performance gap widened significantly during targeted attacks, which are inherently more difficult. On ResNet-50, CMA-ES maintained a robust 77.09% success rate. In contrast, NES and (1+1)-ES struggled immensely, yielding success rates of only 4.24% and 6.22%, respectively. This suggests that the population-based approach and covariance adaptation of CMA-ES are critical for navigating the narrow optimization paths required for targeted misclassification.

Model Robustness

Among the tested architectures, Inception-v3 proved to be the most resilient. It consistently required more queries and resulted in lower success rates for the weaker ES variants. This robustness is likely attributed to its more complex architectural features compared to VGG-16 and ResNet-50.

Discussion and Conclusion

The findings underscore the power of population-based evolution strategies in the black-box setting. CMA-ES's ability to model the fitness landscape allows it to avoid local optima that frequently trap simpler algorithms like (1+1)-ES. Furthermore, the success of the upscaling trick demonstrates that adversarial perturbations do not require high-frequency noise to be effective; low-dimensional structures are often sufficient to bypass DNN defenses.

While this study focuses on vanilla pre-trained models, it sets a benchmark for black-box vulnerability. Future research should extend these methods to models protected by adversarial training and explore multi-objective optimization to balance attack success with perturbation invisibility.

Summary updated

BibTeX
@inproceedings{qiu2021black,
  author = {Hao Qiu and Leonardo Lucio Custode and Giovanni Iacca},
  title = {{Black-box adversarial attacks using Evolution Strategies}},
  booktitle = {GECCO Companion},
  year = {2021},
  doi = {10.1145/3449726.3463137},
}
Figure