Boosting Black-Box Attack with Partially Transferred Conditional Adversarial Distribution

Yan Feng, Baoyuan Wu, Yanbo Fan, Li Liu, Zhifeng Li, Shu-Tao Xia

Abstract

Black-box adversarial attacks often suffer from high query complexity and surrogate bias, limiting their practicality in real-world scenarios. This paper introduces CG-ATTACK, a novel framework that bridges the gap between transfer-based and query-based methods. By utilizing a conditional generative flow (c-Glow) to model the Conditional Adversarial Distribution (CAD), the method transfers only structural mapping parameters from surrogate models while optimizing distribution parameters on-the-fly. Experimental results demonstrate that CG-ATTACK achieves a 100% success rate on multiple benchmarks, often requiring a median of just one query.

Introduction

Adversarial attacks—small, intentional perturbations designed to fool deep neural networks (DNNs)—are typically categorized as white-box or black-box. While black-box attacks are more realistic, they often require thousands of queries to find a successful perturbation, making them susceptible to detection.

To improve efficiency, researchers frequently employ adversarial transferability, attacking a known surrogate model in hopes that the perturbation transfers to the target. However, "surrogate bias"—discrepancies in architecture or training data between models—often causes these transfers to fail. CG-ATTACK addresses this by identifying and transferring only the robust structural components of the adversarial space.

Methodology

The core innovation of CG-ATTACK is the modeling of the Conditional Adversarial Distribution (CAD), which represents the probability distribution of perturbations capable of fooling a model for a specific input.

Overview of the CG-ATTACK framework, illustrating the generative process (a), training on surrogate models (b), and the partial transfer of mapping parameters $\phi$ to attack the target model (c).
  1. Conditional Generative Flow (c-Glow): The framework uses a c-Glow model to learn an invertible mapping between a simple Gaussian distribution and the complex distribution of successful perturbations.
  2. Partial Parameter Transfer: The authors propose that the structural mapping parameters ($\phi$)—which capture how perturbations relate to image features—are highly transferable. In contrast, the Gaussian parameters ($\mu$ and $\sigma$) are model-specific. CG-ATTACK transfers $\phi$ and learns $\mu$ and $\sigma$ during the attack.
  3. Evolutionary Optimization: During the query phase, the algorithm uses the target model's feedback to fine-tune $\mu$ and $\sigma$ via a Covariance Matrix Adaptation Evolution Strategy (CMA-ES), allowing the attack to self-correct for surrogate bias.
  4. Dimensionality Reduction: Efficiency is further enhanced by conducting the search in a lower-dimensional space using a Discrete Cosine Transform (DCT).

Experimental Evaluation

The authors evaluated CG-ATTACK across several datasets, including CIFAR-10 and ImageNet, and against real-world systems like the Imagga Tagging API. The evaluation covered both closed-set scenarios (shared training data) and open-set scenarios (disjoint data or classes).

Attack Success Rate (ASR) vs. number of queries across four different architectures. CG-ATTACK (orange) consistently reaches high ASR with significantly fewer queries than baselines, often succeeding on the very first attempt.

Key Results

  • Unprecedented Efficiency: On CIFAR-10, CG-ATTACK achieved a 100% Attack Success Rate (ASR) on ResNet, DenseNet, and PyramidNet. Most notably, the median number of queries required was often 1, indicating that the transferred structural knowledge is remarkably accurate.
  • ImageNet and Real-World Performance: When attacking GoogleNet on ImageNet, the method reached 100% ASR with a median of 21 queries. In a real-world test against the Imagga API, it achieved an 85% ASR with a median of 21 queries, vastly outperforming existing state-of-the-art methods.
  • Robustness to Open-Sets and Defenses: Unlike previous methods that degrade when the target model's training data is unknown, CG-ATTACK remains effective. It also outperformed other black-box methods when attacking models protected by adversarial training.

Discussion and Conclusion

CG-ATTACK demonstrates that the structure of adversarial space is highly transferable across different model architectures. By separating structural knowledge from model-specific distribution parameters, the framework avoids the pitfalls of surrogate bias.

While the method requires an offline pre-training phase to learn the c-Glow mapping, the resulting query efficiency represents a significant leap forward for black-box security testing. Future work may explore different generative architectures or apply this partial transfer logic to universal adversarial perturbations.

Summary updated

BibTeX
@inproceedings{feng2020boosting,
  author = {Yan Feng and Baoyuan Wu and Yanbo Fan and Li Liu and Zhifeng Li and Shu-Tao Xia},
  title = {{Boosting Black-Box Attack with Partially Transferred Conditional Adversarial Distribution}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  url = {https://openreview.net/forum?id=ftGRx6bsC9},
}
Figure