Optimal transport based adversarial patch to leverage large scale attack transferability

Pol Labarbarie, Adrien Chan-hon-tong, Stéphane Herbin, Milad Leyli-abadiICLR 2024

TL;DR

Researchers have developed a new way to create "adversarial patches"—small, printable images that fool AI—that are significantly more effective at transferring between different types of neural networks. By using Optimal Transport to align the feature distributions of attacked images with target classes, they created the first patches capable of simultaneously deceiving both classical Convolutional Neural Networks (CNNs) and modern Vision Transformers (ViTs).

The Challenge of Transferability in Adversarial Attacks

Adversarial Patch Attacks (APA) represent a fascinating and frightening subfield of AI security. Unlike "invisible" pixel perturbations that alter an entire digital image, these are physical-world threats: a sticker on a stop sign or a patch on a piece of clothing that causes an object detector to see a "toaster" instead of a "pedestrian."

The biggest hurdle for these attacks is transferability. Most patches are "white-box" attacks, meaning they are optimized to fool a specific, known model. When an attacker tries to use that same patch against a different "black-box" model (one the attacker hasn't seen or trained against), the attack usually fails. This is especially true when moving between vastly different architectures, like jumping from a ResNet (CNN) to a Swin Transformer.

Current methods usually try to push an image across a specific model's decision boundary or toward a specific target point in the feature space. The authors argue this approach is too narrow; it overfits the specific "geometry" of one model, making the attack brittle when applied elsewhere.

A Distribution-Oriented Approach

To solve this, the authors propose a distribution-oriented approach based on Optimal Transport (OT).

Instead of forcing the features of an attacked image to cross a specific line or move toward a single "target point," they aim to make the entire distribution of attacked images look like the distribution of a target class (e.g., making the feature distribution of "banana" images mimic that of "bird houses").

Comparison of adversarial attack strategies: decision boundary, feature point, and the proposed distribution-based approach.

The Secret Sauce: Sliced-Wasserstein Distance

To measure the "distance" between these distributions, the researchers use the Wasserstein distance (also known as the Earth Mover's Distance).

  • The Bottleneck: Standard OT is computationally expensive to solve ($O(n^3 \log n)$), making it impractical for high-dimensional deep learning features.
  • The Innovation: They utilize the Sliced-Wasserstein distance (SWD), which projects high-dimensional distributions into 1D representations where the distance is much easier and faster to calculate. This makes the optimization fast enough for practical, large-scale use.

By minimizing this distance in the deep feature layers of a "source" network, they create a patch that captures the "essence" of the target class in a way that is universally recognized across different AI architectures.

Key Insights: The Universal Feature Space

  • Distributions > Points: Pushing features toward a single target point is unstable. If that point happens to be well-classified by one model but misclassified by another, the attack won't transfer. Aligning entire distributions is much more robust.
  • Bridging the Architecture Gap: The paper suggests that the deepest layers of neural networks—regardless of whether they are CNNs or Transformers—tend to represent class information in similar ways. By attacking the distribution in these deep layers, the patch learns features that are "meaningful" to almost any high-performing classifier.

Experimental Results

The study primarily used ImageNet-1K, splitting the validation set into 40,000 images for training the patches and 10,000 for testing. They tested against a massive "zoo" of architectures, including ResNet, DenseNet, VGG, EfficientNet, ConvNext, and various Vision Transformers (DeiT, Swin).

The quantitative jump in performance is significant, particularly in "black-box" transfer tests where the target model is unknown:

  • Superior Transferability: Their method achieved a mean Targeted Success Rate (tSuc) of ~21-22% across all model families. For comparison, traditional methods like GAP or LaVAN often hovered between 2% and 15%.
  • Transformer-to-CNN Success: This is the first method shown to effectively "cross-pollinate" attacks. When a patch was designed on a Swin Transformer, it could still fool CNNs with high reliability.
  • Physical World Viability: In "hybrid" experiments where patches were printed and then scanned back into the computer, their patches maintained a 12.4% success rate even against state-of-the-art defense mechanisms like Local Gradients Smoothing.
Comparison of the proposed method against prior adversarial patch attacks across different transferability and defense scenarios.

Limitations and Future Work

While highly effective, the approach has a few limitations:

  • Data Requirements: Unlike some "zero-shot" attacks, this method requires a set of images from the target class to build the target distribution.
  • Adversarial Training: Models that have been specifically "adversarially trained" (trained to expect and resist attacks) remain very difficult to fool, with success rates often dropping below 10%.
  • Complexity of Layers: The authors found that attacking multiple layers simultaneously helps, but choosing the right layers is still somewhat of an art. Future work could involve automating the selection of optimal feature layers for the attack.

Reference: Labarbarie, P., Chan-Hon-Tong, A., Herbin, S., & Leyli-Abadi, M. (2024). Optimal transport based adversarial patch to leverage large scale attack transferability. ICLR 2024.

Summary updated

BibTeX
@inproceedings{labarbarie2024optimal,
  author = {Pol Labarbarie and Adrien CHAN-HON-TONG and Stéphane Herbin and Milad Leyli-abadi},
  title = {{Optimal transport based adversarial patch to leverage large scale attack transferability}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=nZP10evtkV},
}
Figure