Extracting Cloud-based Model with Prior Knowledge
Not on the map. Why?
Abstract (arXiv)
Machine Learning-as-a-Service, a pay-as-you-go business pattern, is widely accepted by third-party users and developers. However, the open inference APIs may be utilized by malicious customers to conduct model extraction attacks, i.e., attackers can replicate a cloud-based black-box model merely via querying malicious examples. Existing model extraction attacks mainly depend on the posterior knowledge (i.e., predictions of query samples) from Oracle. Thus, they either require high query overhead to simulate the decision boundary, or suffer from generalization errors and overfitting problems due to query budget limitations. To mitigate it, this work proposes an efficient model extraction attack based on prior knowledge for the first time. The insight is that prior knowledge of unlabeled proxy datasets is conducive to the search for the decision boundary (e.g., informative samples). Specifically, we leverage self-supervised learning including autoencoder and contrastive learning to pre-compile the prior knowledge of the proxy dataset into the feature extractor of the substitute model. Then we adopt entropy to measure and sample the most informative examples to query the target model. Our design leverages both prior and posterior knowledge to extract the model and thus eliminates generalizability errors and overfitting problems. We conduct extensive experiments on open APIs like Traffic Recognition, Flower Recognition, Moderation Recognition, and NSFW Recognition from real-world platforms, Azure and Clarifai. The experimental results demonstrate the effectiveness and efficiency of our attack. For example, our attack achieves 95.1% fidelity with merely 1.8K queries (cost 2.16) on the NSFW Recognition API. Also, the adversarial examples generated with our substitute model have better transferability than others, which reveals that our scheme is more conducive to downstream attacks.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). First posted on arXiv 7 Jun 2023.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2023: 1; 2024: 1; 2025: 3.
5 papers.
- 2025HoneypotNet: Backdoor Attacks Against Model Extractioncited by 5
- 2023SAME: Sample Reconstruction against Model Extraction Attackscited by 4
- 2024VidModEx: Interpretable and Efficient Black Box Model Extraction for High-Dimensional Spacescited by 1
- 2025Attackers Can Do Better: Over- and Understated Factors of Model Stealing Attackscited by 0
- 2025I Stolenly Swear That I Am Up to (No) Good: Design and Evaluation of Model Stealing Attackscited by 0
- 2025I Stolenly Swear That I Am Up to (No) Good: Design and Evaluation of Model Stealing Attacks29 Aug 2025
- 2025Attackers Can Do Better: Over- and Understated Factors of Model Stealing Attacks8 Mar 2025
- 2025HoneypotNet: Backdoor Attacks Against Model Extraction2 Jan 2025
- 2024VidModEx: Interpretable and Efficient Black Box Model Extraction for High-Dimensional Spaces4 Aug 2024
- 2023SAME: Sample Reconstruction against Model Extraction Attacks17 Dec 2023