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

CorrAttack: Black-box Adversarial Attack with Structured Search

Zhichao Huang, Yaowei Huang, Tong Zhang

TL;DR

This paper introduces CorrAttack, a novel black-box adversarial attack method that frames the problem as a time-varying contextual bandit. By leveraging the structured nature of image blocks and employing Bayesian optimization, CorrAttack achieves state-of-the-art success rates and query efficiency on challenging datasets like ImageNet and real-world APIs.

What Problem Does This Paper Address?

Adversarial attacks aim to fool machine learning models by making subtle, imperceptible changes to input data. While "white-box" attacks (where the model's architecture and parameters are known) are well-studied, "black-box" attacks (where only the model's output can be queried) are more realistic in real-world scenarios. Existing black-box methods often rely on transferring attacks from substitute models or estimating gradients through numerous queries, which can be inefficient or ineffective. This paper specifically tackles the "score-based" black-box attack setting, where the attacker can query the model to obtain loss scores (or probabilities) but doesn't know its internal workings. The challenge is to efficiently find adversarial perturbations that minimize the loss with a limited number of queries.

Methods

CorrAttack frames the adversarial attack as a time-varying contextual bandit problem. Here's a breakdown of their approach:

  • Structured Search Space: Instead of treating the entire image as a single entity, CorrAttack divides the image into blocks. This structured approach leverages the local correlation properties of adversarial perturbations.
  • Contextual Bandit Formulation: Each block modification is considered an "arm" in a contextual bandit. The attacker receives a "reward" (reduction in loss) after taking an action (modifying a block). The "context" is derived from features of the block, such as its location and PCA components.
  • Bayesian Optimization with Gaussian Process Regression: To efficiently explore this structured action space and learn the reward function, CorrAttack employs Bayesian optimization. A Gaussian Process (GP) is used to model the reward function, allowing it to predict the expected reward for unseen actions and guide the search towards promising modifications.
  • Time-Varying Adaptation: The bandit problem is "time-varying" because the optimal strategy might change as the attack progresses. CorrAttack incorporates a forgetting mechanism in its GP to adapt to these changes and prioritize recent data.
  • Hierarchical Approach: The attack is performed hierarchically, starting with larger blocks and progressively refining the search to smaller blocks, further improving efficiency.
  • Two Variants:
    • CorrAttackDiff: Uses finite differences to estimate the gradient and aims to minimize the loss.
  • CorrAttackFlip: Approximates the attack by flipping block values within a budget, inspired by previous methods like PARSI.

Datasets

The primary dataset used for evaluation is ImageNet. The authors also tested their method on the Google Cloud Vision API to demonstrate its effectiveness on a real-world, black-box model.

Key Insights and Ideas

  • Structure is Key: The paper highlights that adversarial perturbations exhibit local correlations, and exploiting this structure by dividing the image into blocks significantly improves attack efficiency.
  • Bandits for Attacks: Framing adversarial attacks as contextual bandits provides a powerful framework for efficient exploration and learning in black-box settings.
  • GP for Reward Prediction: Gaussian Processes are highly effective at modeling the complex, often non-linear, reward functions in adversarial attacks, enabling intelligent search.
  • Adaptability Matters: The "time-varying" nature of the bandit problem is crucial. The ability to adapt to changing optimal strategies through mechanisms like GP forgetting is vital for sustained attack success.
  • Hierarchical Search Pays Off: Breaking down the search into coarse-to-fine stages dramatically reduces the number of queries needed.

Key Results

CorrAttack demonstrated state-of-the-art performance across various experiments:

  • ImageNet (Undefended Models): CorrAttackFlip achieved the highest success rates with significantly fewer queries compared to other leading methods like ZOO, NES, NAttack, Bandits, and PARSI on VGG16, Resnet50, and Densenet121 architectures. For instance, on Resnet50, CorrAttackFlip achieved 100% success with only 150 queries for an untargeted attack, while other methods required hundreds or thousands of queries.
  • ImageNet (Defended Models): CorrAttackFlip also outperformed other methods on a defended model (ResNeXt DenoiseAll), showing its robustness against defenses.
  • Google Cloud Vision API: CorrAttackFlip successfully attacked the real-world API, changing classification results with high success rates and query efficiency, outperforming NAttack, BayesOpt, and PARSI.
  • Efficiency: The paper emphasizes CorrAttack's superior query efficiency, often requiring orders of magnitude fewer queries than previous methods, especially for complex models and defended networks.

Limitations and Future Work

  • Feature Engineering: While the paper shows that location and PCA features are beneficial, they suggest that exploring other features, such as embeddings from transfer-based attacks, could further improve performance.
  • Norm Generalization: The current work focuses on the $l_\infty$ norm. The authors propose generalizing the contextual bandit formulation to other $l_p$ norms to enhance query efficiency.
  • Defense Against CorrAttack: While CorrAttack is effective, they suggest that adversarial training specifically against CorrAttack might be a viable defense, though it might not generalize to other attack types.

Summary updated

BibTeX
@misc{huang2020corrattack,
  author = {Zhichao Huang and Yaowei Huang and Tong Zhang},
  title = {{CorrAttack: Black-box Adversarial Attack with Structured Search}},
  year = {2020},
  eprint = {2010.01250},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.01250},
}
Figure