Attacking deep networks with surrogate-based adversarial black-box methods is easy

Nicholas A. Lord, Romain Müller, Luca BertinettoICLR 2022

This paper, presented at ICLR 2022, challenges the notion that black-box adversarial attacks need to be complex or query-intensive. By leveraging a simple observation—that deep networks trained on similar tasks learn similar functions—the authors introduce an algorithm that breaks state-of-the-art records with surprisingly few queries.

TL;DR

The authors introduce GFCS (Gradient First, Coimage Second), a simple black-box attack that achieves a 99.9% success rate on ImageNet with a median of only 6 queries. By prioritizing surrogate model gradients and falling back to "coimage" sampling, they demonstrate that transferring adversarial perturbations between different deep networks is much easier than previously assumed.

The Challenge of Black-Box Attacks

Adversarial attacks generally fall into two categories: white-box (where the attacker knows everything about the model) and black-box (where the attacker only sees the model's outputs).

Black-box attacks are inherently harder. Early methods relied on transferability: creating an attack on a "surrogate" model and hoping it works on the "victim." Later "score-based" methods used queries to numerically estimate the victim's gradients, but these are often slow and query-expensive because images have millions of pixels.

Recent work has tried to combine these approaches, but the authors argue these hybrids are often over-engineered and underestimate how well simple transfer actually works. They aim to show that a minimal, search-based approach using surrogate gradients is sufficient to defeat modern networks efficiently.

Methods: Gradient First, Coimage Second (GFCS)

The proposed algorithm, GFCS, follows a straightforward two-stage logic at each step of the optimization process:

Diagram illustrating the GFCS method: attempting direct transfer first, and falling back to coimage sampling if it fails.
  1. Gradient First (Transfer): The algorithm first tries to move in the direction of the surrogate model’s loss gradient. If this step increases the victim's loss, the update is accepted. This directly exploits the "similarity" between models.
  2. Coimage Second (Search): If the direct gradient fails, the algorithm samples a direction from the surrogate’s coimage—the row space of its Jacobian matrix.
  3. Why the coimage? The coimage represents the specific subspace of input features that the surrogate model is actually sensitive to. For an ImageNet model, this reduces the search space from ~270,000 dimensions (pixels) to just 1,000 (the number of output classes).
  4. Optimization: The search uses a variation of SimBA (Simple Black-box Attack), essentially a greedy coordinate ascent with fixed step sizes. It also uses Projected Gradient Ascent (PGA) to ensure the adversarial image stays within a specific distance bound ($\ell_2$-norm bound $\nu$) of the original image.

Key Insights

  • The "Easy" Hypothesis: The core insight is that different architectures (e.g., VGG vs. ResNet) learn fundamentally similar feature responses when trained on the same data. This makes surrogate gradients an incredibly powerful "prior" for search.
  • Dimension Reduction is Key: By restricting the search to the surrogate's coimage, the attacker ignores millions of "dead" directions that the network isn't sensitive to, making the query process orders of magnitude more efficient.
  • Simplicity as a Feature: Unlike competing methods that require online training of a surrogate, GFCS uses off-the-shelf pretrained models and simple "if-else" logic to achieve superior results.

Experimental Results

The authors evaluated GFCS on ImageNet (2000 validation images) and CIFAR-10, targeting victim models like VGG-16, ResNet-50, and Inception-v3 using various surrogate setups.

Performance of GFCS compared to baselines across different victim architectures and surrogate setups.

GFCS significantly outperformed existing state-of-the-art methods (like SimBA-ODS, P-RGF, and Square Attack) in query efficiency:

  • Untargeted Attacks: On a VGG-16 victim using a ResNet-152 surrogate, GFCS achieved a median query count of 6 with a 99.9% success rate. For comparison, the next best method required 8 queries, while others required dozens or hundreds.
  • Targeted Attacks: Even in the much harder targeted setting (forcing the model to pick a specific wrong class), GFCS maintained a massive lead in efficiency.
  • Hardened Networks: The method remained effective even against adversarially trained versions of Inception-v3, proving its robustness.

Limitations and Future Work

While highly effective, the paper notes a few limitations. The threat model assumes the attacker has access to both the victim's class scores and a high-quality surrogate model—a standard benchmark, though its real-world security realism is debated. Furthermore, the method's success relies heavily on the surrogate and victim being trained on similar problems. Future work could investigate cases where this assumption fails, such as finding "niche" networks that learn genuinely unique feature responses.

Summary updated

BibTeX
@inproceedings{lord2022attacking,
  author = {Nicholas A. Lord and Romain Müller and Luca Bertinetto},
  title = {{Attacking deep networks with surrogate-based adversarial black-box methods is easy}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
}
Figure