Buffer Zone based Defense against Adversarial Examples in Image Classification

Kaleel Mahmood, Phuong Ha Nguyen, Lam M. Nguyen, Thanh V. Nguyen, Marten van Dijk

TL;DR

This paper introduces "buffer zones" as a novel defense mechanism against adversarial attacks on image classification models. By creating these buffer zones, the authors significantly reduce the success rate of sophisticated black-box attacks while maintaining competitive clean accuracy, offering a tunable trade-off between security and performance.

What Problem Does This Paper Address?

Deep neural networks (DNNs), particularly Convolutional Neural Networks (CNNs), are highly susceptible to adversarial attacks. These attacks involve making small, often imperceptible, perturbations to input images that cause the DNN to misclassify them with high confidence. While many defenses have been proposed, they often focus on white-box attacks (where the attacker has full knowledge of the model) and are not robust against adaptive black-box adversaries who have limited access to the model but can strategically query it. This leaves real-world applications vulnerable, as many services only expose black-box access. The paper aims to bridge this gap by developing a defense that is effective against adaptive black-box attacks and introduces a new metric to properly evaluate such defenses.

Methods

The core of the proposed defense, named BUZz, is the concept of "buffer zones." These are regions in the decision space between classes, where inputs falling into them are classified as adversarial. This forces attackers to introduce larger perturbations to cross these zones, making them more likely to be visually perceptible. BUZz can be realized through two main approaches:

  1. Thresholding: A single classifier is used, and a threshold is applied to its confidence scores. If the score for the predicted class falls below this threshold, the input is flagged as adversarial.
  2. Multiple Networks with Image Transformations: This approach uses an ensemble of networks, each with unique, secret image transformations (e.g., linear transformations and resizing). These transformations aim to break the transferability of adversarial examples between networks, making it harder for an attacker to craft a universal adversarial perturbation. A majority vote or unanimous decision among these networks determines the final classification.

The paper also introduces a new metric, δ, which combines the drop in clean accuracy (γ) and the attacker's success rate (α) into a single value: δ = γ + (p - γ)α. A smaller δ indicates a better defense.

Datasets

The authors evaluate their proposed defense on two popular image classification datasets:

  • Fashion-MNIST: A dataset of grayscale images of clothing items.
  • CIFAR-10: A dataset of 32x32 color images across 10 object classes.

Key Insights and Ideas

  • Buffer Zones as a Fundamental Security Property: The paper argues that buffer zones are crucial for robust defense. By creating these "no-man's-land" regions, the defense inherently requires larger perturbations to fool the model, which are more likely to be visually detectable.
  • Trade-off Between Clean Accuracy and Security: The research highlights that achieving high security against sophisticated attacks often comes at the cost of a slight drop in clean accuracy. The proposed δ metric effectively quantifies this trade-off, allowing for a more nuanced comparison of defenses.
  • Adaptive Black-Box Adversaries are a Real Threat: The paper emphasizes the importance of defending against adaptive black-box attacks, which are more realistic in many deployment scenarios than white-box attacks.
  • Image Transformations for Breaking Transferability: The use of unique image transformations within an ensemble of networks is shown to be effective in reducing the transferability of adversarial examples, a key challenge in black-box defense.
  • Tunable Defense: The BUZz defense offers a spectrum of choices, allowing users to select a configuration that best balances their need for high clean accuracy versus robust security.

Key Results

  • Reduced Attack Success Rate: BUZz achieves significantly lower attack success rates compared to state-of-the-art defenses. For the strongest black-box adversary, BUZz-8 achieved an attack success rate as low as 7% on CIFAR-10 and 11% on Fashion-MNIST.
  • Acceptable Clean Accuracy Drop: While BUZz does incur a drop in clean accuracy, it is within an acceptable range, typically 11-18%.
  • Improved δ Metric: The proposed BUZz defenses consistently achieve lower δ values compared to other defenses, indicating a better overall trade-off between security and clean accuracy. For instance, BUZz4 achieved δ = 0.22 or 0.23 on CIFAR-10.
  • Robustness to Stronger Attacks: The paper introduces a "mixed black-box attack" which is more powerful than existing ones, and BUZz demonstrates effectiveness against it.

Limitations and Future Work

  • Computational Cost: While the implementation of buffer zones is straightforward, the ensemble-based approach with multiple networks can increase computational overhead.
  • Finding Optimal Transformations: The paper notes that finding effective image transformations for the multi-network approach required significant effort to balance security and clean accuracy.
  • Future Research Directions:
    • Investigating the combination of BUZz with other defense techniques like adversarial retraining.
  • Exploring a wider range of image transformations and their impact on transferability.
  • Developing more efficient methods for constructing synthetic models for black-box attacks.
  • Further analysis of the security implications of keeping image transformations private (though the paper argues their current defense does not rely on this secrecy).

Summary updated

BibTeX
@misc{mahmood2021buffer,
  author = {Kaleel Mahmood and Phuong Ha Nguyen and Lam M. Nguyen and Thanh V. Nguyen and Marten van Dijk},
  title = {{Buffer Zone based Defense against Adversarial Examples in Image Classification}},
  year = {2021},
}
Figure