SoK: Pitfalls in Evaluating Black-Box Attacks

Fnu Suya, Anshuman Suri, Tingwei Zhang, Jingtao Hong, Yuan Tian, David Evans

TL;DR

Current evaluations of black-box adversarial attacks are plagued by inconsistent threat models, unrealistic evaluation metrics, and misleading comparisons. This Systematization of Knowledge (SoK) introduces a 4-dimensional taxonomy centered on threat models to uncover major research blind spots, demonstrates how wall-clock runtime (not iteration count) should govern fair comparisons, and exposes how simple baseline adaptations can easily overturn published state-of-the-art claims.

What Problem Does This Paper Address?

In black-box adversarial attacks, an attacker crafts adversarial examples against an unknown machine learning model without internal access (e.g., weights or gradients). Over the past decade, dozens of attack techniques—ranging from surrogate-based transfer attacks to query-based optimization—have claimed state-of-the-art performance.

However, the field suffers from a lack of unified evaluation standards:

  1. Mismatched Threat Models: Researchers frequently compare attacks operating under different attacker assumptions (e.g., comparing an attack that has access to local surrogate models against one that starts with zero prior knowledge).
  2. Artificial Constraints: Transfer attacks are conventionally compared under a fixed number of iterations (e.g., 10 or 40), ignoring the fact that per-iteration compute costs vary widely and real adversaries care about maximizing success within a compute/time budget.
  3. Saturation on Easy Tasks: Benchmarks often test only untargeted attacks on standard, non-robust models with generous perturbation budgets, where nearly all attacks achieve ~100% success rate, hiding critical performance differences.

Methods

The authors surveyed 164 black-box attack papers (102 from top security, ML, and computer vision conferences from 2014 to 2023) and organized them into a 4-dimensional taxonomy:

  1. Interactive Query Access: None (transfer attacks) vs. Interactive query access.
  2. API Feedback Granularity: Hard-label (discrete class), Top-$k$ confidence scores, or Complete confidence vector.
  3. Auxiliary Data Quality: No overlap, partial overlap, or complete overlap with the target distribution.
  4. Auxiliary Data Quantity: Insufficient (cannot train useful models) vs. Sufficient (can train surrogates or generative models). Pretrained surrogate availability is tracked as an orthogonal sub-axis.

Using this taxonomy, the authors conduct empirical re-evaluations:

  • Adapting attacks to underexplored settings: They adapt Square Attack to the realistic top-$k$ confidence score setting (Square: top-$k$) using a dynamic scheduler to control perturbation step reduction.
  • Fair baseline construction: They construct Hybrid-Square, combining local surrogate transfer with Square Attack fallback for query-based attacks.
  • Time-normalized benchmarking: They evaluate 11 transfer attacks by wall-clock runtime (30 minutes per batch) rather than arbitrary iteration counts, tracking intermediate adversarial success across iterations.

Datasets

  • ImageNet: Evaluation is performed on 100 randomly sampled images from the ImageNet validation set, selected such that all evaluated target models correctly classify them (100% clean accuracy) to prevent ambiguity in untargeted attack definitions.
  • Models Evaluated:
  • Target models: DenseNet201, Inception-v3, ResNet101, VGG19, and robust models (Inception-v3$\text{adv}$ and IncRes-v2$\text{ens}$).
  • Surrogate models: An ensemble of DenseNet-121, Inception-v4, ResNet-50, and VGG-16 (strictly disjoint from target architectures).

Key Insights and Ideas

  • The Top-$k$ Blind Spot: Despite commercial vision APIs (e.g., Google Cloud Vision, Clarifai) predominantly returning top-$k$ predictions rather than full probability vectors, almost no existing attacks target this space. Even more counterintuitively, existing top-$k$ attacks are outperformed by hard-label attacks (like SignFlip) that discard confidence scores altogether.
  • Iteration Count Is a Deceptive Metric: Setting a fixed iteration budget (e.g., 40 iterations) favors computationally heavy attacks per iteration. When normalized by wall-clock runtime, faster attacks like MIDI-FGSM execute roughly double the iterations of complex baselines in the same time, flipping the leaderboard.
  • Local Surrogate Metrics Cannot Tell You When to Stop: Adversaries cannot rely on local surrogate loss or surrogate success to terminate transfer attack optimization. Surrogate attack success rate hits 100% almost immediately, and local loss keeps declining even when transfer success on the target model plateaus or deteriorates (especially on robust models).
  • Flawed Baseline Comparisons Overturn SOTA Claims: Papers often claim superiority over baselines while actually benefiting from uncredited extra information (such as access to surrogate ensembles).

Key Results

  • Crushing Prior SOTA with a Proper Baseline: ODS-RGF previously reported state-of-the-art query efficiency against surrogate-assisted targets (1,242 average queries at 97.7% Attack Success Rate [ASR]). The authors' simple baseline, Hybrid-Square, achieves 100% ASR in just 117 queries—over a 10× query reduction under the exact same threat model.
  • Top-$k$ Evaluation: The proposed Square: top-$k$ outperforms the previous top-$k$ baseline (NES: top-$k$, which achieves <10% ASR), reaching >30% ASR at 100,000 queries. However, it still trails the hard-label SignFlip attack (~80% ASR), highlighting an unresolved technical gap in how confidence scores are leveraged in constrained API settings.
  • Harder Settings Expose Real Gaps: Under untargeted attacks on standard models, nearly all attacks hit ~100% ASR. In contrast, under targeted attacks, halved perturbation budgets ($\ell_\infty = 8/255$), or adversarially trained models (Inc-v3$_\text{adv}$), ASR drops below 60%, revealing performance spreads of up to ~30% across methods.

Limitations and Future Work

  • Image-Domain Focus: The study focuses exclusively on image classification. While vision is the standard benchmark in adversarial ML, real-world security-critical domains (malware detection, network intrusion, EDR bypasses) operate under different discrete constraints.
  • Static Threat Models: The taxonomy focuses on prediction-time evasion and does not cover dynamic defenses, stateful query detectors, or data poisoning attacks.
  • Future Directions:
  • Developing robust stopping heuristics for transfer attacks that do not depend on deceptive local surrogate losses.
  • Bridging black-box attacks with model extraction and model inversion to bootstrap better surrogates from limited query budgets.
  • Designing dedicated algorithms for realistic API outputs, specifically the top-$k$ score regime.

Summary updated

BibTeX
@inproceedings{suya2024sok,
  author = {Fnu Suya and Anshuman Suri and Tingwei Zhang and Jingtao Hong and Yuan Tian and David Evans},
  title = {{SoK: Pitfalls in Evaluating Black-Box Attacks}},
  booktitle = {SaTML},
  year = {2024},
  url = {https://openreview.net/forum?id=b32Ap8r0fj},
}
Figure