Adversarial Imitation Attack

Mingyi Zhou, Jing Wu, Yipeng Liu, Xiaolin Huang, Shuaicheng Liu, Xiang Zhang, Ce ZhuarXiv 2020

Abstract

Deep learning models are known to be vulnerable to adversarial examples. A practical adversarial attack should require as little as possible knowledge of attacked models. Current substitute attacks need pre-trained models to generate adversarial examples and their attack success rates heavily rely on the transferability of adversarial examples. Current score-based and decision-based attacks require lots of queries for the attacked models. In this study, we propose a novel adversarial imitation attack. First, it produces a replica of the attacked model by a two-player game like the generative adversarial networks (GANs). The objective of the generative model is to generate examples that lead the imitation model returning different outputs with the attacked model. The objective of the imitation model is to output the same labels with the attacked model under the same inputs. Then, the adversarial examples generated by the imitation model are utilized to fool the attacked model. Compared with the current substitute attacks, imitation attacks can use less training data to produce a replica of the attacked model and improve the transferability of adversarial examples. Experiments demonstrate that our imitation attack requires less training data than the black-box substitute attacks, but achieves an attack success rate close to the white-box attack on unseen data with no query.

Introduction

Adversarial attacks—carefully crafted inputs designed to deceive deep learning models—pose a significant security threat. These attacks are generally categorized into white-box and black-box scenarios. White-box attacks assume full knowledge of the target model's architecture and parameters, while black-box attacks operate with limited or no internal knowledge.

Existing black-box strategies face significant limitations. "Substitute attacks" involve training a local model to mimic the target, but they often require massive datasets and suffer from poor transferability of adversarial examples. Conversely, "query-based attacks" (score or decision-based) can be highly effective but require thousands of interactions with the target for every single instance, making them computationally expensive and easily detectable. This paper introduces the Adversarial Imitation Attack, a method that bridges this gap by creating a high-fidelity replica of a target model using a GAN-inspired framework, requiring minimal data and enabling zero-query attacks at deployment.

Methodology: The Imitation Game

The core of the proposed approach is a two-player adversarial game involving three components: a Target Model ($T$), a Generative Model ($G$), and an Imitation Model ($D$).

Schematic of the Adversarial Imitation Attack framework showing the interaction between G, T, and D.

The training process follows a minimax-like objective:

  1. The Generative Model ($G$): $G$ takes an input image $X$ and generates a perturbation $G(X)$. Its objective is to create an adversarial input $\hat{X} = X + G(X)$ such that the outputs of the Target Model ($y_T$) and the Imitation Model ($y_D$) differ ($y_T \neq y_D$). Essentially, $G$ acts as an "adversary" that probes the decision boundaries where the imitation model is currently inaccurate.
  2. The Imitation Model ($D$): $D$ aims to be a perfect replica of $T$. Its objective is to match the target's output ($y_D = y_T$) even for the challenging, perturbed examples generated by $G$.
  3. Generating the Attack: Once $D$ is trained to "shadow" $T$ effectively, it serves as a white-box proxy. Standard adversarial generation techniques (e.g., FGSM, BIM, PGD, CW) are applied to $D$. Because $D$ has been specifically trained to mimic $T$ near its decision boundaries, the resulting adversarial examples exhibit exceptionally high transferability to the original Target Model.

Experimental Setup

The researchers evaluated the imitation attack on two standard benchmarks: MNIST (handwritten digits) and CIFAR-10 (color images across 10 classes). A key focus of the experiments was data efficiency. The imitation model was trained using only a fraction of the original training data (e.g., 9,500 images for CIFAR-10), demonstrating that a high-fidelity clone can be built without access to the target's full training set.

Key Results and Insights

The imitation attack demonstrates a significant performance leap over traditional substitute models. By actively exploring decision boundaries rather than just learning a static mapping, the imitation model captures the target's logic more precisely.

Comparison of attack success rates on CIFAR-10 across different attack methods.

As shown in Figure 4, for the CIFAR-10 dataset targeting a VGG-16 model, the imitation attack achieved success rates far exceeding standard substitute models. For instance, using the Basic Iterative Method (BIM), the imitation attack reached a 97.06% success rate in non-targeted scenarios, nearly matching the 98.96% white-box baseline and vastly outperforming the 47.27% success rate of a standard substitute model.

Key Insights:

  • Active Boundary Exploration: The generator "pokes" the target model's boundaries, forcing the imitation model to learn exactly where the target is vulnerable.
  • Query Efficiency at Deployment: While training the imitation model requires queries, the actual attack phase is query-independent. This allows for rapid, undetectable attacks once the replica is built.
  • Architecture Agnostic: The imitation model does not need to share the same architecture as the target. A simpler model can effectively "steal" the decision logic of a more complex one.

Discussion and Limitations

While powerful, the Adversarial Imitation Attack has certain constraints. The initial training phase requires a high volume of queries to the target model, which could be flagged by sophisticated anomaly detection systems. Furthermore, the attack's success is tied to the strength of the Generative Model ($G$); if $G$ fails to find diverse boundary cases, the imitation model's fidelity will suffer. Future research could extend this framework beyond image classification into domains like Natural Language Processing (NLP) or malware detection.

Summary updated

BibTeX
@misc{zhou2020adversarial,
  author = {Mingyi Zhou and Jing Wu and Yipeng Liu and Xiaolin Huang and Shuaicheng Liu and Xiang Zhang and Ce Zhu},
  title = {{Adversarial Imitation Attack}},
  year = {2020},
  eprint = {2003.12760},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.12760},
}
Figure