Generalizable Black-Box Adversarial Attack With Meta Learning

Fei Yin, Yong Zhang, Baoyuan Wu, Yan Feng, Jingyi Zhang, Yanbo Fan, Yujiu Yang

Introduction

Deep Neural Networks (DNNs) are notoriously vulnerable to adversarial attacks—small, human-imperceptible perturbations that lead to misclassification. While white-box attacks, where model parameters are known, are highly efficient, real-world scenarios often present a "black-box" challenge. In these cases, attackers only have access to model outputs, such as confidence scores, necessitating thousands of queries to find a successful perturbation. This "query-hungry" nature makes attacks computationally expensive and easy to detect by rate-limiting defenses.

This paper introduces the Meta Conditional Generator (MCG) framework, which reframes adversarial attacks as a meta-learning problem. By leveraging both model-level and example-level transferability, MCG significantly reduces query costs, often achieving success in a single query.

The MCG Framework

The core innovation of MCG is treating the attack on each image as a separate "task" within a meta-learning context. The framework consists of several key components:

1. Conditional Generative Flow (c-Glow)

Instead of a standard deterministic network, MCG utilizes a Conditional Generative Flow. This allows the model to learn the distribution of effective perturbations conditioned on a specific benign image, rather than just a single fixed change.

2. Meta-Training for Transferability

The generator is trained using the REPTILE meta-learning algorithm across a wide variety of images. This process aims to find a set of initial model parameters that can be rapidly adapted to any new, unseen image. This addresses "example-level transferability," recognizing that perturbations across different images often share underlying geometric properties.

3. Surrogate Modeling and Adaptation

To bridge the gap between training and the real-world target, MCG employs a white-box surrogate model. During the "meta-test" phase, the framework uses a three-stage pipeline to maximize efficiency:

  • Surrogate Fine-tuning: Initial query feedback from the target black-box model is used to update the surrogate, making it a better proxy.
  • Generator Adaptation: The updated surrogate then guides the rapid fine-tuning of the meta-generator for the specific target image.
  • Attack Boosting: The generator's output serves as a high-quality initialization for off-the-shelf black-box attacks (e.g., NES or Square Attack), providing a massive "head start."
The three-stage meta-test pipeline of MCG, involving surrogate fine-tuning, generator adaptation, and target model attack.

Experimental Evaluation

The framework was evaluated on rigorous benchmarks including CIFAR-10, CIFAR-100, ImageNet, and the real-world Imagga Tagging API.

Query Efficiency

The most striking result is the reduction in query counts. For untargeted attacks on CIFAR-10, MCG reduced the median query count to 1.0 across multiple target architectures (ResNet-18, VGG-16, WRN-50). This indicates that over 50% of images were successfully attacked on the very first attempt, a significant improvement over standard query-based methods.

Comparison of query efficiency between standard NES and MCG-boosted NES across various target models, highlighting the 1.0 median query result.

Generalizability and Robustness

MCG demonstrates strong cross-dataset generalizability; a generator trained on CIFAR-10 remains effective when attacking CIFAR-100. Furthermore, the method maintains high Attack Success Rates (ASR) against models protected by common defenses like JPEG compression, random noise, and adversarial training, where standard black-box attacks often struggle.

Conclusion

By shifting the perspective of adversarial attacks from isolated optimization problems to a meta-learning task, the MCG framework achieves unprecedented query efficiency in black-box settings. While the initial meta-training is computationally intensive, the resulting "plug-and-play" booster significantly lowers the barrier for executing effective and stealthy adversarial attacks in the real world.

Summary updated

BibTeX
@article{yin2023generalizable,
  author = {Fei Yin and Yong Zhang and Baoyuan Wu and Yan Feng and Jingyi Zhang and Yanbo Fan and Yujiu Yang},
  title = {{Generalizable Black-Box Adversarial Attack With Meta Learning}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2023},
}
Figure