NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Cross-Domain Transferability of Adversarial Perturbations

Muzammal Naseer, Salman H. Khan, Muhammad Haris Khan, Fahad Shahbaz Khan, Fatih Porikli

Introduction

Deep Neural Networks (DNNs) are notoriously vulnerable to adversarial perturbations—tiny, often invisible changes to an image that cause a model to misclassify it. A key concern for security is transferability: the ability of an attack crafted for one model to work on another "black-box" model.

However, most existing attacks have a major crutch: they rely on the specific data distribution of the target domain. If you want to attack an ImageNet classifier, you usually need ImageNet-like data to craft the attack. This paper tackles the challenge of domain-agnostic attacks, demonstrating that adversarial attacks don't need to see your data to break your model.

Overview of cross-domain transferability

By using a generative network trained with a novel "relativistic" loss, the authors create adversarial perturbations that transfer across entirely different image domains. For example, an attack trained on paintings or cartoons can successfully fool a classifier trained on medical images or natural photos with success rates near 99%.

Methods: A Generative Framework with Relativistic Loss

The authors propose a generative framework to create instance-agnostic perturbations. Instead of calculating a specific noise pattern for every single image (which is computationally expensive), they train a generator to produce a perturbation for any input.

Generative architecture and Relativistic Loss

The "secret sauce" of this approach is the Relativistic Cross-Entropy (RCE) loss:

  • Standard Attack: Usually tries to make the model's prediction for the "noisy" image as wrong as possible.
  • Relativistic Attack: Forces the generator to maximize the "fooling gap"—the difference between the model’s confidence in the correct class for the clean image versus the noisy image.

By focusing on this relative change rather than an absolute score, the generator learns to find "domain-invariant" adversarial patterns. These patterns target the fundamental ways DNNs process features, rather than just exploiting specific quirks of a single dataset.

Datasets and Evaluation

The authors tested their approach by training on "source" domains and attacking "target" domains:

  • Source Domains (Training): Paintings (80k images), Comics (50k images), and a subset of ChestX-ray images (10k images).
  • Target Domain (Evaluation): ImageNet (natural images).
  • Models: They tested against a variety of architectures, including VGG-16, VGG-19, ResNet-152, Inception-v3, and ChexNet (a Dense-121 model for medical imaging).

Key Insights and Results

  • Common Adversarial Space: The most striking finding is that different image domains share a common adversarial space. The features that fool a model on a cartoon are surprisingly similar to those that fool a model on a photo of a bird.
  • High Success Rates: An adversarial function learned on Paintings or Comics fooled ImageNet classifiers with success rates as high as ~99% (with a perturbation budget of $l_\infty \le 10$).
  • Cross-Domain Mastery: Even when trained on medical ChestX-ray images, the attack achieved an 88% fooling rate against a VGG-16 model trained on natural ImageNet photos.
  • Relativistic Loss is Key: RCE provides much stronger gradients during training than standard cross-entropy. This prevents the generator from "getting stuck" once the model is initially fooled, leading to much more robust and transferable perturbations.
  • Universal beats Instance-Specific: Traditionally, instance-specific attacks (tailored to one image) were thought to be stronger than universal ones. This paper flips that script, showing that their universal generator actually outperforms state-of-the-art instance-specific methods when attacking models that have been "hardened" with adversarial training, showing a staggering ~86.46% average increase in fooling rates compared to previous state-of-the-art methods (like MI-FGSM).
  • Texture vs. Content: Even "low-texture" source domains like X-rays can generate perturbations that fool "high-texture" models like those trained on ImageNet, suggesting that these attacks are hitting fundamental structural vulnerabilities in DNNs.

Limitations and Future Work

While highly effective, the approach has limitations. Because the perturbations are instance-agnostic (with a budget of $l_\infty \le 10$), the "noise" pattern is often visible as a consistent texture overlay if one looks closely. Furthermore, while the paper shows transferability from Comics/Paintings to ImageNet, it doesn't deeply explore if any random data works as a source, or if there's an optimal "distance" between domains for training.

As is common in the "arms race" of adversarial machine learning, these findings suggest that current adversarial training (which usually uses domain-specific noise) may be insufficient. Future work will likely need to focus on domain-invariant defenses to counter these highly transferable, domain-invariant attacks.

Summary updated

BibTeX
@inproceedings{naseer2019cross,
  author = {Muzammal Naseer and Salman H. Khan and Muhammad Haris Khan and Fahad Shahbaz Khan and Fatih Porikli},
  title = {{Cross-Domain Transferability of Adversarial Perturbations}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
}
Figure