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

Learning Transferable Adversarial Examples via Ghost Networks

Yingwei Li, Song Bai, Yuyin Zhou, Cihang Xie, Zhishuai Zhang, Alan L. Yuille

TL;DR

Ghost Networks improve the "transferability" of adversarial attacks—the ability of an image to fool a model it wasn't designed for—by creating a massive ensemble of "virtual" models on-the-fly. By applying random feature-level perturbations to a single base network, this method achieves state-of-the-art black-box attack performance without the prohibitive cost of training multiple independent models.

What Problem Does This Paper Address?

Adversarial attacks involve making tiny, human-imperceptible changes to an image that cause a Convolutional Neural Network (CNN) to misclassify it. In a white-box setting, the attacker has full access to the model's weights and can easily find these weaknesses. However, in a black-box setting, the attacker has no access to the target model.

To solve this, researchers rely on transferability: an adversarial image generated for Model A often fools Model B. The most effective way to boost transferability is to attack an ensemble of multiple models simultaneously. The problem is that training a diverse set of high-performing models is computationally expensive and memory-intensive. Most researchers are limited to ensembling just a handful of models, which restricts the attack's effectiveness.

Conceptual overview of Ghost Networks enhancing transferability compared to a single base network.

Methods

The authors introduce two core innovations to break the computational bottleneck:

  1. Ghost Networks (Network Erosion): Instead of training new models, they "erode" an existing base model to create "ghost" versions. They propose two types of erosion:
  2. Dropout Erosion: They densely apply dropout to every block of a network. By randomly toggling units during the attack process, they create a "huge set of diverse models" from one set of weights.
  3. Skip Connection Erosion: For residual networks (like ResNet), they multiply the identity skip-connection path by a random scalar. This forces the attack to find features that are robust across different "depths" of the network.
Comparison between a standard residual block (a) and an eroded residual block (b) used in Ghost Networks.
  1. Longitudinal Ensemble: Standard ensembles average the gradients of $N$ models at every step of the attack, which is $N$ times slower than a single-model attack. In a longitudinal ensemble, the attacker picks just one random ghost network at each iteration of the optimization. This keeps the computational cost nearly identical to a single-model attack while effectively "visiting" a vast number of different model architectures over the course of the attack.

Datasets

The researchers evaluated their method using:

  • ILSVRC 2012 (ImageNet): Specifically, a subset of 5,000 images that were correctly classified by all base models to ensure the attack's success wasn't due to pre-existing errors.
  • NeurIPS 2017 Adversarial Challenge: A benchmark competition dataset used to compare against top-tier existing attack submissions.

Key Insights and Ideas

  • Diversity Over Training: You don't need to independently train models to get a good ensemble. Randomly perturbing the internal structures of a single trained model provides enough architectural diversity to find highly transferable adversarial directions.
  • The "Virtual" Advantage: Ghost networks are never stored or trained. They exist only as a set of random parameters applied during the forward/backward pass of the attack, making the method incredibly memory-efficient.
  • Plug-and-Play: Ghost Networks aren't a new attack algorithm; they are a "plug-in" that enhances existing iterative attacks like I-FGSM and Momentum-based (MI-FGSM) attacks.

Key Results

  • Beating the Best: By applying Ghost Networks to the top-ranked submission from the NeurIPS 2017 Adversarial Competition, the authors improved its average black-box attack rate from 33.57% to 39.59%.
  • Efficiency: In single-model tests, attacking an ensemble of 10 ghost networks outperformed attacking the base model alone across almost all target architectures (e.g., success on ResNet-101 jumped from 31.3% to 40.1% for MI-FGSM).
  • Multi-Model Scaling: When combined with a standard ensemble of three real models, adding ghost networks pushed the attack success rate to 54.3%, significantly higher than the standard ensemble's 46.8%.

Limitations and Future Work

  • Architecture Specificity: The current erosion techniques (Dropout and Skip Connection) are tailored to specific common CNN structures. While they work on ResNets and Inception models, they may need adaptation for newer architectures like Vision Transformers.
  • Erosion Types: The paper focuses on feature-level perturbations. Future work could explore eroding other components, such as Batch Normalization layers or ReLU activation functions, to further increase the diversity of the ghost ensemble.
  • Defense Generalization: While the method works well against standard and adversarially-trained models, its effectiveness against more exotic "denoising" or "randomization" defenses remains an open question.

Summary updated

BibTeX
@inproceedings{li2020learning,
  author = {Yingwei Li and Song Bai and Yuyin Zhou and Cihang Xie and Zhishuai Zhang and Alan L. Yuille},
  title = {{Learning Transferable Adversarial Examples via Ghost Networks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i07.6810},
}
Figure