Abstract
Deep learning (DL) models are known to be highly accurate, yet vulnerable to adversarial examples. While earlier research focused on generating adversarial examples using white-box strategies, later research focused on black-box strategies, as models often are not accessible to external attackers. Prior studies showed that black-box approaches based on approximate gradient descent algorithms combined with meta-heuristic search (i.e., the BMI-FGSM algorithm) outperform previously proposed white- and black-box strategies. In this paper, we propose a novel black-box approach purely based on differential evolution (DE), i.e., without using any gradient approximation method. In particular, we propose two variants of a customized DE with customized variation operators: (1) a single-objective (Pixel-SOO) variant generating attacks that fool DL models, and (2) a multi-objective variant (Pixel-MOO) that also minimizes the number of changes in generated attacks. Our preliminary study on five canonical image classification models shows that Pixel-SOO and Pixel-MOO are more effective than the state-of-the-art BMI-FGSM in generating adversarial attacks. Furthermore, Pixel-SOO is faster than Pixel-MOO, while the latter produces subtler attacks than its single-objective variant.
Introduction
Deep Learning (DL) models are notoriously fragile when faced with adversarial examples: inputs tweaked just enough to fool a model while remaining unchanged to the human eye. Most attack strategies are "white-box," meaning the attacker has full access to the model’s internal weights and gradients.
In the real world, attackers usually face "black-box" scenarios where they can only see the model's inputs and outputs (like an API). Current black-box leaders, such as the BMI-FGSM algorithm, try to "mimic" white-box attacks by using evolutionary algorithms to approximate gradients. However, this is computationally expensive, requiring thousands of iterations and often resulting in "noisy" attacks that change thousands of pixels. This research investigates whether skipping gradient approximation entirely in favor of pure meta-heuristics can yield better, stealthier attacks.
Methods
The proposed approach utilizes Differential Evolution (DE), a population-based optimization algorithm, to evolve a "mask" of pixel changes. Unlike previous methods that evolve the whole image, this approach only encodes the specific modifications.
Two distinct variants were developed:
- Pixel-SOO (Single-Objective Optimization): This variant focuses solely on flipping the model's prediction. It rewards solutions that decrease the confidence of the correct label and increase the confidence of the next-best guess.
- Pixel-MOO (Multi-Objective Optimization): This variant treats the attack as a balancing act. It simultaneously tries to flip the prediction and minimize the number of pixels changed using the Non-dominated Sorting Differential Evolution (NSDE) algorithm to find a Pareto front of optimal trade-offs.
Custom Variation Operators
To optimize the search, three custom operators were designed:
- Add: Inserts a new pixel perturbation.
- Change: Uses standard DE logic to mutate existing perturbations.
- Delete: Removes a perturbation. This is critical for Pixel-MOO, as it allows the algorithm to "prune" unnecessary changes, making the attack as minimal as possible.
Experimental Setup
The study evaluated the attacks against five canonical image classification models: VGG16, VGG19, ResNet50, ResNet101, and ResNet152. For the input data, researchers sampled 50 images from the ImageNet ILSVRC2012 validation set, ensuring a diverse range of 50 unique object classes. The models were treated as strict black boxes, with no access to their internal architectures or weights.
Results
The DE-based approaches dominated the state-of-the-art BMI-FGSM baseline across nearly every metric:
- Success Rate: Pixel-SOO achieved a 100% success rate across all models. In contrast, BMI-FGSM was rarely able to flip predictions within the same search budget.
- Stealth (Pixel Changes): On VGG16, BMI-FGSM changed an average of 8,872 pixels. Pixel-SOO achieved the same goal by changing only 67 pixels, and Pixel-MOO refined that further to just 54 pixels.
- Efficiency: Pure DE found successful attacks in roughly 10 generations, whereas the gradient-approximating baseline (BMI-FGSM) required an average of 240 generations.
Discussion and Future Work
The results suggest that approximating gradients in a black-box setting may be unnecessary. By including a "Delete" operator, the algorithm proved that many pixel changes in standard attacks are spurious and do not contribute to misclassification.
While the results are striking, the authors acknowledge limitations such as the small sample size (50 images) and the computational overhead of multi-objective optimization in some scenarios. Future work will focus on larger-scale testing across the entirety of ImageNet and exploring other multi-objective algorithms like MOEA/D to find even more "invisible" adversarial examples.
Summary updated