Efficient Black-Box Adversarial Attack Guided by the Distribution of Adversarial Perturbations

Yan Feng, Baoyuan Wu, Yanbo Fan, Zhifeng Li, Shutao Xia

Abstract

Adversarial attacks in black-box settings often suffer from high query complexity due to surrogate bias. This paper introduces CG-ATTACK, a framework that leverages a conditional generative flow model (c-Glow) to learn the distribution of successful perturbations from white-box surrogates. By employing a "partial transfer" mechanism—transferring the structural mapping while fine-tuning distribution parameters via target model queries—CG-ATTACK achieves state-of-the-art efficiency, frequently requiring only a single query to succeed.

Introduction

Deep Neural Networks (DNNs) are vulnerable to adversarial perturbations. In black-box scenarios, where model internals are unknown, attackers must rely on queries or transferability from white-box surrogates. However, architectural and data differences between surrogate and target models introduce "surrogate bias," leading to inefficient attacks. CG-ATTACK addresses this by modeling the entire distribution of adversarial perturbations rather than single examples, allowing for a more robust transfer of information.

Methodology

The core of CG-ATTACK is the Conditional Generative Flow (c-Glow) model, which captures the Conditional Adversarial Distribution (CAD) for a given image.

Framework Overview

The attack proceeds in two main phases:

  1. Energy-Based Training: The c-Glow model is trained on surrogate models. It treats adversarial loss as an energy function, learning to map Gaussian noise into the complex space of effective perturbations.
  2. Partial Transfer Mechanism: The authors identify that the mapping parameters ($\phi$) of the flow model are largely model-agnostic, whereas the distribution parameters ($\mu, \sigma$) are sensitive to specific model biases. CG-ATTACK transfers $\phi$ to the target task but optimizes $\mu$ and $\sigma$ from scratch using queries to the target model.
The CG-ATTACK framework: (a) c-Glow architecture, (b) surrogate training via energy-based modeling, and (c) partial transfer and query-based optimization on the target model.

Optimization

To refine the distribution on the target model, the framework uses the Covariance Matrix Adaptation Evolution Strategy (CMA-ES). To further enhance efficiency, the search is conducted in a low-frequency space using the Discrete Cosine Transform (DCT).

Experimental Results

The researchers evaluated CG-ATTACK on CIFAR-10 and ImageNet against various state-of-the-art (SOTA) black-box attacks, including Signhunter and TREMBA.

Efficiency and Success Rate

A standout result is the median query count of 1 on several CIFAR-10 models for untargeted attacks. This indicates that for over half the test cases, the very first sample from the transferred distribution was successful in fooling the target model.

Comparison of CG-ATTACK against SOTA methods for untargeted and targeted attacks across multiple architectures. CG-ATTACK consistently achieves higher ASR with significantly lower median queries.

Robustness and Real-World Application

  • Adversarial Training: Against robustly trained models, CG-ATTACK maintained a high success rate (64.3% ASR on CIFAR-10), outperforming the next best method by over 6%.
  • Real-World API: The method achieved an 85% success rate against the Imagga Tagging API with a median of only 21 queries, demonstrating its practical effectiveness in the wild.

Conclusion

CG-ATTACK represents a significant step forward in black-box adversarial research. By shifting the focus from transferring specific examples to transferring the underlying distribution of perturbations, the method effectively mitigates surrogate bias. While it requires offline pre-training, the dramatic reduction in online query complexity makes it a formidable tool for evaluating model robustness.

Summary updated

BibTeX
@inproceedings{feng2020efficient,
  author = {Yan Feng and Baoyuan Wu and Yanbo Fan and Zhifeng Li and Shutao Xia},
  title = {{Efficient Black-Box Adversarial Attack Guided by the Distribution of Adversarial Perturbations}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  url = {https://openreview.net/forum?id=ftGRx6bsC9},
}
Figure