SoK: Pitfalls in Evaluating Black-Box Attacks

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

Introduction

This "Systematization of Knowledge" (SoK) paper reveals that the field of black-box adversarial attacks is built on shaky evaluative ground. Adversarial attacks—inputs designed to trick machine learning models—are increasingly studied in "black-box" settings, where the attacker can only interact with a model via an API. However, the research landscape is currently a mess of inconsistent assumptions regarding attacker knowledge and resources.

This lack of a unified framework makes it nearly impossible to determine which attacks pose a genuine threat in the real world. Furthermore, the authors argue that current evaluation metrics are often "unfair," favoring complex, slow algorithms over simple, fast ones that an actual attacker would prefer.

A New Taxonomy for Black-Box Attacks

To organize the vast landscape of 164 surveyed attacks published between 2014 and 2023, the authors proposed a rigorous four-dimensional taxonomy based on attacker knowledge:

  1. Query Access: Can the attacker interact with the target model?
  2. API Feedback: Does the API return a single label (Hard-Label), the top-$k$ scores, or a complete confidence vector?
  3. Auxiliary Data Quality: How much does the attacker's local data overlap with the target model's training distribution?
  4. Auxiliary Data Quantity: Is there enough data to train a high-performing local surrogate model?
The proposed taxonomy categorizes existing literature based on auxiliary data quality/quantity and the type of interactive access available.

Experimental Methodology

Beyond the taxonomy, the authors performed "sanity check" experiments. They adapted the popular Square Attack to work in the under-explored Top-K feedback setting and created a Hybrid-Square baseline to demonstrate how easily existing "state-of-the-art" claims can be overturned by combining simple techniques.

Evaluations were conducted using a subset of 100 images from the ImageNet validation set, specifically selecting images that standard architectures (DenseNet, Inception-v3, ResNet, VGG) and "robust" models could classify with 100% accuracy. This ensures a clean baseline for measuring attack success.

Critical Evaluation Pitfalls

The authors identified several key insights that challenge current research practices:

  • The "Top-K" Blind Spot: Most real-world APIs (like Google Cloud Vision) return top-$k$ results, yet research focuses on extremes (top label or full vector). Simple adaptations of existing attacks can become the new SOTA in this realistic middle ground.
  • The Iteration Trap: Comparing transfer attacks by fixing the number of iterations is misleading. Computationally expensive attacks might look better per-step but fail in a time-constrained real-world scenario where a faster, "weaker" attack could run many more iterations in the same wall-clock time.
  • Baseline Inflation: New attacks often appear superior because they are compared against "weak" versions of older attacks. By slightly tweaking a surrogate-based baseline, the authors outperformed recent high-profile attacks by an order of magnitude in query efficiency.

Key Results

The adapted Square: top-k attack significantly outperformed the previous SOTA (NES: top-k). As shown in the figure below, at 10,000 queries, the Square-based method achieves a much higher Attack Success Rate (ASR). Interestingly, it still lags behind some "hard-label" attacks at higher query counts, suggesting that current methods do not yet fully exploit top-$k$ information.

ASR vs. Queries comparison showing the adapted Square: top-k attack significantly outperforming the NES: top-k baseline.

In other comparisons, the Hybrid-Square baseline achieved 100% success with an average of only 117 queries, compared to 1,242 queries for the ODS-RGF attack. Furthermore, when normalizing for wall-clock time instead of iterations, the ranking of popular transfer attacks flipped, highlighting the importance of runtime metrics over arbitrary step counts.

Conclusion

While limited to image classifiers, this study underscores the need for more rigorous evaluation standards in adversarial machine learning. The authors advocate for the community to evaluate attacks in harder settings (targeted attacks on robust models), use local runtime as a primary metric, and develop better criteria for stopping local optimization to maximize transfer success.

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