OMG-Attack: Self-Supervised On-Manifold Generation of Transferable Evasion Attacks

Ofir Bar Tal, Adi Haviv, Amit H. Bermano · DOI

Abstract

Evasion Attacks (EA) are used to test the robustness of trained neural networks by distorting input data to misguide the model into incorrect classifications. Creating these attacks is a challenging task, especially with the ever increasing complexity of models and datasets. In this work, we introduce a self-supervised, computationally economical method for generating adversarial examples, designed for the unseen black-box setting. Adapting techniques from representation learning, our method generates on-manifold EAs that are encouraged to resemble the data distribution. These attacks are comparable in effectiveness compared to the state-of-the-art when attacking the model trained on, but are significantly more effective when attacking unseen models, as the attacks are more related to the data rather than the model itself. Our experiments consistently demonstrate the method is effective across various models, unseen data categories, and even defended models, suggesting a significant role for on-manifold EAs when targeting unseen models.

Introduction

Evasion attacks (EAs) aim to fool neural networks by introducing subtle perturbations to input data. However, traditional methods often suffer from two primary weaknesses: overfitting to specific model decision boundaries (white-box) and generating "off-manifold" noise. Off-manifold perturbations deviate significantly from the natural data distribution, making them easier for robust models to detect or filter out.

OMG-Attack addresses these issues by focusing on the data distribution itself. By generating "on-manifold" attacks—perturbations that look like real data features—the method achieves high transferability to unseen black-box models and models equipped with defensive mechanisms.

Methodology: The OMG-Attack Framework

The OMG-Attack framework utilizes a self-supervised generative approach to create adversarial examples without requiring labeled data. The architecture consists of three core components:

  1. The Generator ($G$): An encoder-decoder network that produces perturbations. Unlike standard $L_\infty$ norm attacks, OMG-Attack projects perturbations onto an $L_1$ ball. This allows the generator to concentrate its budget on strategic semantic regions rather than spreading noise across the entire image.
  2. The Discriminator ($D$): A PatchGAN discriminator that distinguishes between original and attacked images, forcing the generator to produce on-manifold perturbations that mimic natural data.
  3. Self-Supervised Contrastive Loss: Inspired by SimCLR, this loss encourages the generator to shift the image's internal representation in a surrogate model's latent space, ensuring the attack is effective even without class labels.
The OMG-Attack training pipeline, illustrating the interaction between the Generator, Discriminator, and Contrastive Loss.

Experimental Evaluation

The researchers evaluated OMG-Attack across three domains: MNIST (digits), GTSRB (traffic signs), and CUB-200 (birds). Transferability was tested by training the generator on a surrogate model (e.g., ResNet-18) and evaluating it on unseen architectures (e.g., ResNet-50).

Visual Analysis of Perturbations

A key advantage of OMG-Attack is the nature of its perturbations. While traditional attacks like AdvGAN often produce high-frequency noise, OMG-Attack generates semantic-like modifications. For instance, in bird images, the perturbations might subtly alter the shape of a beak or the texture of feathers, keeping the image on the data manifold.

Visual comparison of original images and perturbations generated by AdvGAN versus OMG-Attack. Note how OMG-Attack perturbations (Diff) appear more semantically related to the data.

Key Results

  • High Transferability: On the GTSRB dataset, transferring an attack from a small CNN to a ResNet-50 achieved a 58.89% success rate, vastly outperforming traditional gradient-based methods (~11%).
  • Defeating Defenses: On MNIST, OMG-Attack maintained a 99.33% success rate against defended models, where standard attacks typically drop to near 0%.
  • Generalization to Unseen Data: The model successfully attacked bird species it was never trained on, outperforming baselines by 10-50% in Attack Success Rate (ASR).

Discussion and Conclusion

OMG-Attack demonstrates that "on-manifold" attacks are more robust and transferable because they exploit the shared data distribution that all models learn, rather than the specific quirks of a single architecture. While the $L_1$ norm allows for effective semantic targeting, it can sometimes lead to visible perturbations in simpler domains like MNIST. Future work will focus on refining budget constraints to maintain high transferability while further improving imperceptibility.

Summary updated

BibTeX
@misc{tal2023omg,
  author = {Ofir Bar Tal and Adi Haviv and Amit H. Bermano},
  title = {{OMG-Attack: Self-Supervised On-Manifold Generation of Transferable Evasion Attacks}},
  year = {2023},
  eprint = {2310.03707},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.03707},
}
Figure