[Paper Review] PRADA: Protecting against DNN Model Stealing Attacks
PRADA is a novel, generic defense that detects deep neural network (DNN) model stealing attacks by analyzing the distribution of consecutive API queries from clients; it detects all prior model extraction attacks with 100% accuracy and zero false positives by identifying deviations from normal (Gaussian) query patterns, offering a lightweight, stateful detection mechanism effective across diverse DNN models and input data types.
Machine learning (ML) applications are increasingly prevalent. Protecting the confidentiality of ML models becomes paramount for two reasons: (a) a model can be a business advantage to its owner, and (b) an adversary may use a stolen model to find transferable adversarial examples that can evade classification by the original model. Access to the model can be restricted to be only via well-defined prediction APIs. Nevertheless, prediction APIs still provide enough information to allow an adversary to mount model extraction attacks by sending repeated queries via the prediction API. In this paper, we describe new model extraction attacks using novel approaches for generating synthetic queries, and optimizing training hyperparameters. Our attacks outperform state-of-the-art model extraction in terms of transferability of both targeted and non-targeted adversarial examples (up to +29-44 percentage points, pp), and prediction accuracy (up to +46 pp) on two datasets. We provide take-aways on how to perform effective model extraction attacks. We then propose PRADA, the first step towards generic and effective detection of DNN model extraction attacks. It analyzes the distribution of consecutive API queries and raises an alarm when this distribution deviates from benign behavior. We show that PRADA can detect all prior model extraction attacks with no false positives.
Motivation & Objective
- To demonstrate the feasibility of effective, generic DNN model extraction attacks using optimized synthetic queries and hyperparameter tuning.
- To identify key factors influencing model extraction success, such as hyperparameter selection, output precision (probabilities vs. labels), and substitute model architecture.
- To develop PRADA, the first generic, stateful defense that detects model extraction attacks by monitoring deviations in the distribution of consecutive client queries.
- To provide a detection mechanism that is effective across diverse DNN models and input data types without relying on model or data distribution assumptions.
- To offer a practical, open-source solution for protecting MLaaS and API-hosted models from model stealing while maintaining service availability for legitimate clients.
Proposed method
- Proposes new model extraction attacks that generate synthetic queries using optimization techniques to maximize information gain from the target model's prediction API.
- Employs cross-validated hyperparameter search to improve the performance of the substitute model, outperforming random or fixed hyperparameter selection.
- Analyzes the impact of prediction output format—class labels versus confidence probabilities—on both substitute model accuracy and adversarial example transferability.
- Designs PRADA as a stateful defense that monitors the distribution of successive queries from a single client, modeling normal behavior as a Gaussian distribution.
- Triggers an alarm when the query distribution deviates significantly from the expected Gaussian distribution, indicating potential model extraction activity.
- Uses statistical hypothesis testing (e.g., Kolmogorov-Smirnov test) to detect non-Gaussian behavior in query sequences, enabling real-time detection without requiring model or data distribution knowledge.
Experimental results
Research questions
- RQ1Can model extraction attacks be significantly improved by optimizing synthetic query generation and training hyperparameters?
- RQ2How does the use of prediction probabilities versus class labels affect the transferability of adversarial examples and the accuracy of substitute models?
- RQ3To what extent does the architectural similarity between the target and substitute models influence the success of model extraction attacks?
- RQ4Can a generic, stateful detection mechanism be designed that works across diverse DNN models and input data types without false positives?
- RQ5Is it possible to detect model stealing attacks without prior knowledge of the training data distribution or model architecture?
Key findings
- The proposed model extraction attacks achieve up to 46 percentage points higher prediction accuracy and 29–44 percentage points higher transferability of adversarial examples compared to prior state-of-the-art methods.
- Cross-validated hyperparameter search significantly improves substitute model performance, outperforming fixed or randomly selected hyperparameters.
- Prediction probabilities are crucial for high transferability of adversarial examples, while class labels alone are sufficient for high substitute model accuracy.
- Using the same architecture for the substitute model leads to better transferability, while a more complex architecture can increase prediction accuracy.
- PRADA detects all prior model extraction attacks with 100% detection rate and zero false positives, even when tested on diverse benign data distributions.
- PRADA is effective across different DNN models and input data types, and does not degrade the performance of legitimate prediction services.
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.