[Paper Review] Extraction of Complex DNN Models: Real Threat or Boogeyman?
This paper evaluates the real-world threat of Knockoff nets, a state-of-the-art model extraction attack on complex DNNs, by testing its effectiveness under realistic conditions. It confirms that while the attack works under idealized assumptions, its success diminishes when API output is restricted to class labels or when queries are drawn from the same data distribution as the victim model—rendering existing detection methods ineffective. The authors propose a defense based on detecting out-of-distribution queries, which achieves up to 99% detection accuracy, but show that a more realistic adversary can still evade detection and successfully extract models.
Recently, machine learning (ML) has introduced advanced solutions to many domains. Since ML models provide business advantage to model owners, protecting intellectual property of ML models has emerged as an important consideration. Confidentiality of ML models can be protected by exposing them to clients only via prediction APIs. However, model extraction attacks can steal the functionality of ML models using the information leaked to clients through the results returned via the API. In this work, we question whether model extraction is a serious threat to complex, real-life ML models. We evaluate the current state-of-the-art model extraction attack (Knockoff nets) against complex models. We reproduce and confirm the results in the original paper. But we also show that the performance of this attack can be limited by several factors, including ML model architecture and the granularity of API response. Furthermore, we introduce a defense based on distinguishing queries used for Knockoff nets from benign queries. Despite the limitations of the Knockoff nets, we show that a more realistic adversary can effectively steal complex ML models and evade known defenses.
Motivation & Objective
- To assess whether model extraction via Knockoff nets is a realistic threat to complex, real-life DNNs.
- To evaluate how changes in adversary capabilities—such as query distribution, API output granularity, and surrogate model architecture—affect attack effectiveness.
- To design and evaluate a defense mechanism that detects Knockoff net queries by distinguishing in- and out-of-distribution inputs.
- To investigate whether existing detection techniques remain effective when adversaries use data from the same distribution as the victim model’s training data.
- To determine whether watermarking or fingerprinting should be prioritized as complementary defenses in the face of undetectable extraction attacks.
Proposed method
- Reproduced and validated the original Knockoff nets attack on five complex DNNs using the same setup as in the original paper.
- Implemented a defense that classifies queries as in-distribution or out-of-distribution using statistical distance measures between query distributions and the victim model’s training data.
- Evaluated the defense’s detection performance under varying conditions, including different surrogate model architectures and API output formats (probability vectors vs. predicted classes).
- Conducted ablation studies to assess the impact of query diversity, data distribution alignment, and model architecture mismatch on attack success.
- Compared the proposed defense to prior detection methods like PRADA, focusing on applicability to Knockoff nets and robustness to evasion.
- Explored the limitations of existing defenses when adversaries use data from the same distribution as the victim’s training data, which renders detection ineffective.
Experimental results
Research questions
- RQ1Under what realistic conditions does the Knockoff nets attack remain effective against complex DNNs?
- RQ2How does reducing the granularity of API output (e.g., returning only predicted classes instead of full probability vectors) affect the success of model extraction attacks?
- RQ3Can in-distribution vs. out-of-distribution query detection effectively detect Knockoff net queries without degrading benign user utility?
- RQ4To what extent does an adversary’s access to data from the same distribution as the victim model’s training data undermine existing detection mechanisms?
- RQ5Can effective model extraction still occur when defenses are in place, and if so, what alternative countermeasures are necessary?
Key findings
- The Knockoff nets attack achieves 53.5% to 94.8% accuracy on surrogate models when using full probability vector outputs and out-of-distribution queries, confirming its effectiveness under the original adversary model.
- The proposed defense detects up to 99% of adversarial queries by distinguishing in- and out-of-distribution inputs, demonstrating high detection accuracy under ideal conditions.
- Attack effectiveness drops significantly when the API returns only the predicted class instead of the full probability vector, reducing the attack’s success rate.
- When adversaries use unlabeled data from the same distribution as the victim model’s training data, the attack becomes highly effective and undetectable by existing methods, including the proposed defense.
- A mismatch between the surrogate model’s architecture and the victim model’s architecture further reduces attack performance, indicating architectural similarity is a key factor in success.
- The study concludes that realistic adversaries can successfully extract complex DNNs and evade detection, making deterrence mechanisms like watermarking essential for protecting model ownership.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.