InverseNet: Augmenting Model Extraction Attacks with Training Data Inversion

Xueluan Gong, Yanjiao Chen, Wenbin Yang, Guanghao Mei, Qian WangIJCAI 2021

Abstract

InverseNet is a novel model extraction attack designed to steal the functionality of black-box Machine-Learning-as-a-Service (MLaaS) models. Unlike traditional attacks that rely solely on querying with public data, InverseNet leverages model inversion to reconstruct synthetic training data that closely mirrors the victim model's original training set. By strategically selecting high-confidence samples and employing data augmentation, InverseNet achieves superior functional similarity (agreement) with the victim model while significantly reducing the required query budget and evading common detection mechanisms.

Introduction

MLaaS platforms provide access to sophisticated models via APIs, treating them as valuable intellectual property. Model extraction attacks aim to clone these models by training a local substitute model on the outputs of the victim API. However, these attacks often struggle with query efficiency—requiring millions of queries that are both costly and detectable—and data distribution mismatch, where the attacker's public data differs significantly from the victim's private training data. InverseNet addresses these challenges by using model inversion to bridge the gap between public datasets and the victim's private domain.

Methodology

InverseNet operates through a four-phase pipeline designed to maximize the information gained from each query to the victim model.

Overview of the InverseNet attack workflow.
  1. Substitute Model Initiation: The process begins by selecting a representative "coreset" from a public dataset to train an initial, primitive substitute model. This provides a baseline understanding of the target task.
  2. High-Confidence Sample Selection: To improve inversion quality, the attacker identifies samples from the public dataset that the victim model classifies with high confidence. These samples are typically far from the decision boundary and represent the "prototypical" features of a class.
  3. Training Data Inversion: This is the core innovation. The victim model is treated as an encoder. The attacker trains an inversion model (a decoder) to map prediction vectors back into images. This process generates "inversed" samples that approximate the victim's original training data.
  4. Retraining and Augmentation: The substitute model is retrained using these inversed samples combined with heavy data augmentation (e.g., rotation, cropping). This allows the substitute model to learn the victim's decision boundaries much more effectively than using raw public data alone.

Key Results

The effectiveness of InverseNet was evaluated against simulated victims trained on MNIST, GTSRB, and CIFAR10, as well as a real-world pornography detection API from Alibaba Cloud.

Comparison of agreement rates across different query budgets for MNIST, GTSRB, and CIFAR10 datasets.

As shown in the results, InverseNet consistently outperforms state-of-the-art attacks like KnockoffNet and ACTIVETHIEF across all benchmarks. On the MNIST dataset, InverseNet reached a 93.2% agreement rate with only 10,000 queries. For the more complex CIFAR10 dataset, InverseNet achieved higher similarity at a 5,000 query budget than competing methods did at 30,000 queries.

In real-world testing against the Alibaba Cloud API, InverseNet achieved an 80.53% agreement rate with just 5,000 queries. Furthermore, the attack proved resilient against the PRADA defense mechanism. Because InverseNet uses natural-looking public samples and their inversed counterparts, its query distribution remains indistinguishable from benign usage, unlike the "Papernot" attack which is easily detected.

Conclusion

InverseNet demonstrates that model inversion is a powerful tool for enhancing model extraction attacks. By focusing on the quality of queried data rather than just the quantity, it achieves high-fidelity clones with minimal overhead. While the attack still requires a public dataset somewhat related to the target domain, its ability to work with Top-1 labels and evade modern defenses poses a significant threat to the security of MLaaS providers. Future research into defenses may need to focus on per-query knowledge gain, though such measures remain computationally challenging to implement at scale.

Summary updated

BibTeX
@inproceedings{gong2021inversenet,
  author = {Xueluan Gong and Yanjiao Chen and Wenbin Yang and Guanghao Mei and Qian Wang},
  title = {{InverseNet: Augmenting Model Extraction Attacks with Training Data Inversion}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.24963/ijcai.2021/336},
}
Figure