Attacking convolutional neural network using differential evolution

Jiawei Su, Danilo Vasconcellos Vargas, Kouichi Sakurai

This paper, titled "Attacking Convolutional Neural Network using Differential Evolution," presents a method for fooling image classifiers by changing just a handful of pixels. By using an evolutionary algorithm instead of traditional gradient-based methods, the researchers demonstrate a potent "black-box" attack that requires zero knowledge of the target model’s internal structure.

TL;DR

Researchers have developed a "few-pixel" attack that can trick state-of-the-art Convolutional Neural Networks (CNNs) by modifying only five pixels in an image. Using Differential Evolution, they achieve high success rates (up to 78%) in a black-box setting, proving that deep learning models remain startlingly vulnerable to tiny, localized perturbations.

What Problem Does This Paper Address?

Most adversarial attacks—methods used to trick AI into misclassifying images—are "white-box" attacks. They require access to the model’s gradients (the mathematical "directions" used to train the network) to calculate how to change an image. In the real world, attackers rarely have this access.

Existing "black-box" attacks often require thousands of queries or modify a large portion of the image, making them either impractical or easy for a human to spot. This paper tackles the challenge of creating a practical, stealthy black-box attack that works under extreme constraints: modifying very few pixels without knowing anything about the target network's architecture or weights.

Methods

The authors employ Differential Evolution (DE), a population-based optimization algorithm inspired by natural evolution.

  1. Gradient-Free Optimization: Unlike standard attacks that use backpropagation, DE doesn't need gradients. It only needs the "miracle feedback"—the probability scores (confidence levels) the model outputs for each class.
  2. The "Few-Pixel" Constraint: The attack is restricted to modifying exactly five pixels. Each "individual" in the DE population represents a set of five pixels, defined by their x-y coordinates and their RGB values.
  3. Fitness Function: To ensure the attack is both effective and stealthy, the authors designed a fitness function that balances two goals:
  4. Reducing the model's confidence in the correct class.
  5. Minimizing the "distortion" (how much the pixel values are changed) to keep the attack imperceptible to humans.
  6. Evolutionary Process: The algorithm starts with a random population of 400 candidate attacks. Through iterations of mutation and crossover, it evolves these candidates to find the specific five pixels that most effectively "break" the model.

Datasets

The researchers evaluated their attack on two primary benchmarks:

  • CIFAR-10: A dataset of 32x32 images across 10 classes (e.g., bird, cat, ship).
  • ImageNet: A much larger, higher-resolution dataset used to test the scalability of the attack on the BVLC AlexNet model.

Key Insights and Ideas

  • CNN Discontinuity: The success of the attack reinforces the idea that CNNs learn "discontinuous" mappings. Tiny jumps in the input space (just 5 pixels out of 1024 in CIFAR-10) can lead to massive jumps in the output classification.
  • Stealth vs. Success: By adding a distortion constraint to the fitness function, the authors found they could produce adversarial images that are visually indistinguishable from the originals, even though they modify more pixels than previous "one-pixel" attacks.
  • Architecture Vulnerability: Not all networks are created equal. The "Network in Network" (NiN) architecture proved the most vulnerable, while VGG16 showed the highest robustness among the models tested.
  • The Power of DE: DE proved remarkably efficient at searching a high-dimensional space (x, y, R, G, B for 5 pixels) with very limited feedback, finding global optima where gradient-based methods might get stuck in local minima.

Key Results

The attack was highly effective across different network structures:

  • Success Rates (Non-targeted): On CIFAR-10, the attack achieved success rates of 72.29% (AllConv), 78.24% (NiN), and 61.28% (VGG16).
  • Confidence: When the attack succeeded, the model misclassified the image with high average confidence (up to 99.85% for NiN).
  • ImageNet Performance: Even on the much larger ImageNet dataset, the 5-pixel attack successfully fooled the AlexNet model on 31.87% of the validation images.
  • Efficiency: Compared to other methods like FGSM (which modifies every pixel), this method achieves comparable success while changing only 0.48% of the pixels in a 32x32 image.

Limitations and Future Work

  • Query Efficiency: While effective, DE requires many iterations (up to 100 generations with a population of 400). This means thousands of queries to the target model, which might be detectable in a real-world API scenario.
  • Resolution Scaling: While it worked on ImageNet, the success rate dropped significantly compared to CIFAR-10. Finding 5 "magic" pixels in a 227x227 image is much harder than in a 32x32 image.
  • Future Directions: The authors suggest exploring more complex DE variants (like self-adaptive or multi-objective DE) and investigating why certain architectures are more robust than others to develop better countermeasures.

Summary updated

BibTeX
@article{su2019attacking,
  author = {Jiawei Su and Danilo Vasconcellos Vargas and Kouichi Sakurai},
  title = {{Attacking convolutional neural network using differential evolution}},
  journal = {Ipsj Trans. Comput. Vis. Appl},
  year = {2019},
  doi = {10.1186/s41074-019-0053-3},
}
Figure