[Paper Review] Defending Against Machine Learning Model Stealing Attacks Using Deceptive Perturbations
This paper proposes a defense against machine learning model stealing attacks by injecting deceptive perturbations into model output probabilities, preserving top-1 accuracy while forcing attackers to discard probability scores. The method degrades stolen model accuracy by at least 20% or increases query cost by up to 64×, even under defense-aware adversaries, with minimal impact on the protected model's utility.
Machine learning models are vulnerable to simple model stealing attacks if the adversary can obtain output labels for chosen inputs. To protect against these attacks, it has been proposed to limit the information provided to the adversary by omitting probability scores, significantly impacting the utility of the provided service. In this work, we illustrate how a service provider can still provide useful, albeit misleading, class probability information, while significantly limiting the success of the attack. Our defense forces the adversary to discard the class probabilities, requiring significantly more queries before they can train a model with comparable performance. We evaluate several attack strategies, model architectures, and hyperparameters under varying adversarial models, and evaluate the efficacy of our defense against the strongest adversary. Finally, we quantify the amount of noise injected into the class probabilities to mesure the loss in utility, e.g., adding 1.26 nats per query on CIFAR-10 and 3.27 on MNIST. Our evaluation shows our defense can degrade the accuracy of the stolen model at least 20%, or require up to 64 times more queries while keeping the accuracy of the protected model almost intact.
Motivation & Objective
- To address the growing threat of machine learning model stealing via cloud-based inference APIs, where adversaries use model confidence scores to replicate proprietary models.
- To maintain high utility of the protected model while significantly degrading the performance of stolen models.
- To force attackers to abandon probability-based queries and resort to slower, label-only attacks, even when they are aware of the defense mechanism.
- To evaluate the defense’s robustness against advanced, defense-aware attacks, including noise inversion and alternative loss functions.
Proposed method
- Introduces a reversible, non-linear perturbation layer—Reverse Sigmoid—applied to model output probabilities to distort confidence scores while preserving the correct predicted class.
- The defense injects controlled noise into logits before softmax, making probability values misleading for attackers but preserving the top-1 prediction for legitimate users.
- The perturbation is designed to be ambiguous, so multiple original logits map to the same probability, disrupting gradient-based model inversion and transfer learning.
- Evaluates the defense using a variety of attack strategies: probability-based queries (e.g., Sample), label-only queries (Argmax), and defense-aware attacks like noise inversion and MSE loss optimization.
- Employs both linear regression and multi-layer perceptron (MLP) models to attempt to invert the perturbation, simulating real-world reverse-engineering attempts.
- Quantifies utility loss via KL divergence and nats, and measures attack success using model agreement, cosine similarity, and accuracy on stolen models.
Experimental results
Research questions
- RQ1Can a defense that preserves top-1 accuracy still degrade the performance of stolen models when attackers use confidence scores?
- RQ2How effective is the defense against attackers who are aware of the defense mechanism and attempt to reverse or adapt to it?
- RQ3To what extent does the defense increase the query budget required for successful model stealing?
- RQ4Can attackers recover original model probabilities through inversion attacks, and how well do these attacks perform?
- RQ5How does the defense perform across diverse datasets, architectures, and attack parameters?
Key findings
- The defense reduces stolen model accuracy by at least 20% across all evaluated datasets and architectures, even under strong attack conditions.
- The attack requires up to 64 times more queries to achieve comparable performance when probability scores are discarded, forcing attackers to use the argmax-only baseline.
- On CIFAR-10, the defense injects 1.26 nats of noise per query, and on MNIST, 3.27 nats, with minimal impact on the protected model’s accuracy.
- Even with full knowledge of the defense parameters, attackers fail to recover useful probability distributions—MLP inversion achieves only 0.22 agreement, far below the 0.78 of the argmax-only baseline.
- The Reverse Sigmoid defense remains effective against attacks using the same defense layer or MSE loss, due to inherent ambiguity in the perturbation mapping.
- The defense maintains high utility for legitimate users while significantly degrading the generalization and transferability of stolen models, especially for adversarial example generation.
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.