Perturbation Towards Easy Samples Improves Targeted Adversarial Transferability

Junqi Gao, Biqing Qi, Yao Li, Zhichang Guo, Dong Li, Yuming Xing, Dazhi Zhang

TL;DR

Targeted adversarial attacks—where an attacker fools a model into predicting a specific, incorrect label—are notoriously difficult to "transfer" from a known white-box model to an unknown black-box one. This paper introduces ESMA (Easy Sample Matching Attack), a generative strategy that boosts transferability by aiming perturbations toward "easy" samples in the target class. These samples reside in high-density regions where different models naturally behave more consistently.

What Problem Does This Paper Address?

Adversarial attacks involve making tiny, often invisible changes to an image to trick a neural network. While "non-targeted" attacks (simply making the model predict incorrectly) transfer well between different models, "targeted" attacks (e.g., making the model specifically predict "Goose" instead of "Dog") usually fail when the target model is different from the one used to generate the attack.

The core challenge is that different models learn different decision boundaries, especially in "low-density" regions of the data distribution where samples are sparse. Previous research suggested that non-targeted attacks work best when they push images into these low-density "no man's lands." However, for a targeted attack to work, you don't just want to leave the original class; you want to land firmly within the territory of the target class.

Conceptual diagram illustrating perturbations directed towards the High-Sample-Density-Region (HSDR) of the target domain.

The authors ask a critical question: where in that target territory should we aim to ensure the trick works for any model?

Methods

The authors propose that the most "stable" part of a class's territory is its High-Sample-Density-Region (HSDR)—the area where the most typical examples of that class live. They theoretically and experimentally prove that different neural networks, even with different architectures, show much more consistent behavior in these dense regions.

Models exhibit significantly more consistent behavior (lower output difference) in regions with higher local sample density.

To turn this insight into an attack, they solve two practical hurdles:

  1. Finding the HSDR: Estimating data density in high-dimensional image space is computationally expensive and difficult. The authors prove that "easy samples" (those with very low loss and small gradient norms) are excellent proxies for the HSDR.
  2. Efficient Generation: Instead of training a separate generator for every possible target class (the previous state-of-the-art approach), they develop ESMA.

ESMA uses a single U-Net generator. It employs class embeddings—mathematical representations of each category—guided by the latent features of the source model. During training, the generator learns to perturb a source image so that its features match the "anchor" (an easy sample) of the target class.

Datasets

The researchers evaluated their method using:

  • CIFAR-10: Used for initial proof-of-concept and toy experiments to visualize decision boundaries.
  • ImageNet (ILSVRC2012): The primary benchmark. They followed the standard setup of selecting 10 diverse classes for training the generative models and testing on a separate validation set.
  • Victim Models: They tested against a wide array of architectures, including ResNet, VGG, DenseNet, Inception, and even the Vision Transformer (ViT).

Key Insights and Ideas

  • Consistency in the Crowd: The "aha moment" is that models agree on what a "typical" member of a class looks like. If you can make an adversarial image look like a "perfect" version of a target class in the feature space, almost any model will be fooled.
  • Easy = Dense: The realization that low training loss is a geometric signal. An "easy" sample isn't just one the model got right; it's one that sits in a well-populated part of the manifold, making it a reliable "anchor" for attacks.
  • One Model to Rule Them All: By using class embeddings, ESMA collapses the need for $N$ generators (one per class) into a single multi-target generator. This makes the attack much more practical for real-world deployment.

Key Results

ESMA significantly outperforms the previous state-of-the-art (SOTA) generative method, TTP:

  • Higher Success Rates: On ImageNet, ESMA achieved an average targeted transfer success rate of 51.76% (using ResNet-50 as a source), compared to 43.07% for TTP.
  • Massive Efficiency Gains: Because it uses one model for all classes, ESMA requires only 5% of the storage space of TTP.
  • Faster Training: It reaches these superior results in about 78% of the time required by previous methods.
  • Cross-Architecture Fooling: The attacks remained effective even when transferred to radically different architectures like Vision Transformers (ViT), where it achieved a 21.25% success rate—nearly double the previous best.

Limitations and Future Work

While ESMA is a leap forward, the authors note a few areas for improvement:

  • Distribution Shift: The attack's effectiveness drops when the target model is trained on a different data distribution (e.g., models that have undergone "adversarial training" to be more robust).
  • Scaling to All Classes: The main experiments focused on a subset of 10 classes. While the embedding approach is designed to scale, testing on the full 1000-class ImageNet set remains a future challenge.
  • Defense Evolution: As attacks move toward high-density regions, future defenses might need to focus on making these "stable" regions more robust, rather than just focusing on the edges of the decision boundaries.

Summary updated

BibTeX
@inproceedings{gao2023perturbation,
  author = {Junqi Gao and Biqing Qi and Yao Li and Zhichang Guo and Dong Li and Yuming Xing and Dazhi Zhang},
  title = {{Perturbation Towards Easy Samples Improves Targeted Adversarial Transferability}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=IkD1EWFF8c},
}
Figure