MetaSimulator: Simulating Unknown Target Models for Query-Efficient Black-box Attacks

Chen Ma, Li Chen, Jun-Hai YongarXiv 2020

Abstract

Query-based black-box adversarial attacks are often limited by high query complexity, making them slow and easily detectable by defensive mechanisms. We propose MetaSimulator, a meta-learning framework designed to train a generalized substitute model—the "Simulator"—capable of mimicking the response patterns of unknown target networks. By utilizing a few initial queries for rapid adaptation, the Simulator can estimate gradients locally, significantly reducing the number of expensive queries to the actual target model. Our experiments across CIFAR-10, CIFAR-100, and TinyImageNet demonstrate that the Simulator Attack achieves state-of-the-art success rates with up to a 2x reduction in query overhead compared to existing methods.

Introduction

Adversarial attacks expose critical vulnerabilities in deep neural networks (DNNs) by introducing imperceptible perturbations that lead to misclassification. In practical scenarios, attackers often operate in a black-box setting, where the target model's architecture and weights are unknown. Current state-of-the-art black-box attacks rely on iterative gradient estimation through thousands of queries, which is computationally expensive and vulnerable to rate-limiting defenses.

While transfer-based attacks use local substitute models to bypass queries, they often suffer from low success rates when the substitute model's decision boundaries differ significantly from the target's. This paper introduces a "universal" substitute model that can quickly adapt to mimic any target with minimal feedback, effectively bridging the gap between transfer-based and query-based methods.

Proposed Method: MetaSimulator

The core of our approach is the Simulator, a model trained via meta-learning to learn the response patterns of various DNNs to adversarial noise, rather than just learning classification boundaries.

Meta-Training Framework

The training process involves generating diverse tasks from known architectures. We collect query sequences and output logits (pseudo-labels) from networks like ResNet-50, VGG-16, and MobileNet. Using a Mean Square Error (MSE)-based knowledge distillation loss, the Simulator is trained to minimize the discrepancy between its outputs and those of the sampled networks across these tasks.

The meta-learning framework for training the Simulator across diverse tasks and architectures.

The Simulator Attack Algorithm

Once trained, the Simulator is deployed against an unseen target model through a three-stage process:

  1. Warm-up: The attack sends an initial set of queries to the target model to gather feedback.
  2. Fine-tuning: This feedback is used to rapidly adapt the generalized Simulator to the specific characteristics of the target model.
  3. Simulation: For subsequent iterations, the attack queries the fine-tuned Simulator to estimate gradients. To prevent drift, the attack periodically synchronizes with the real target model every $m$ iterations.
The Simulator Attack process: fine-tuning the pre-trained Simulator with target feedback to enable local gradient estimation.

Experimental Results

We evaluated the Simulator Attack on CIFAR-10, CIFAR-100, and TinyImageNet. To ensure a rigorous test of generalization, the architectures used for meta-training were strictly excluded from the target evaluation set (e.g., PyramidNet-272 and WRN-40).

Efficiency and Success Rate

The Simulator Attack consistently outperformed baselines such as NES, Bandits, and Meta Attack. Key findings include:

  • Query Reduction: The method achieved up to a 2x reduction in average queries compared to the "Bandits" attack. On CIFAR-10 (untargeted $\ell_2$), the attack required only 34–92 queries on average, whereas competitors often required hundreds.
  • High Success Rates: In many test cases, the Simulator Attack reached a 100% success rate with significantly lower query budgets.
  • Robustness Against Defenses: The attack proved effective against defensive models like ComDefend and Feature Distillation, where previous meta-learning approaches struggled.

Conclusion

MetaSimulator represents a significant advancement in query-efficient black-box attacks. By framing the substitute model as a fast-adapting simulator rather than a static classifier, we can transfer the bulk of the query burden from the target model to a local environment. While the initial meta-training is computationally intensive, the resulting efficiency gains during the attack phase make it a potent tool for evaluating the robustness of remote AI systems.

Summary updated

BibTeX
@misc{ma2020metasimulator,
  author = {Chen Ma and Li Chen and Jun-Hai Yong},
  title = {{MetaSimulator: Simulating Unknown Target Models for Query-Efficient Black-box Attacks}},
  year = {2020},
  eprint = {2009.00960},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2009.00960},
}
Figure