Skip to main content
QUICK REVIEW

[Paper Review] Defending against Model Stealing via Verifying Embedded External Features

Yiming Li, Linghui Zhu|arXiv (Cornell University)|Dec 6, 2021
Adversarial Robustness in Machine LearningComputer Science6 citations
TL;DR

This paper proposes a novel defense against model stealing by embedding external features into a victim model via style transfer on a few training samples, then verifying ownership using a meta-classifier that detects whether a suspicious model contains these features. The method effectively detects diverse stealing attacks—even multi-stage ones—while preserving model accuracy, with p-values < 10⁻⁵ across all tested attacks on CIFAR-10 and ImageNet.

ABSTRACT

Obtaining a well-trained model involves expensive data collection and training procedures, therefore the model is a valuable intellectual property. Recent studies revealed that adversaries can `steal' deployed models even when they have no training samples and can not get access to the model parameters or structures. Currently, there were some defense methods to alleviate this threat, mostly by increasing the cost of model stealing. In this paper, we explore the defense from another angle by verifying whether a suspicious model contains the knowledge of defender-specified \\emph{external features}. Specifically, we embed the external features by tempering a few training samples with style transfer. We then train a meta-classifier to determine whether a model is stolen from the victim. This approach is inspired by the understanding that the stolen models should contain the knowledge of features learned by the victim model. We examine our method on both CIFAR-10 and ImageNet datasets. Experimental results demonstrate that our method is effective in detecting different types of model stealing simultaneously, even if the stolen model is obtained via a multi-stage stealing process. The codes for reproducing main results are available at Github (https://github.com/zlh-thu/StealingVerification).

Motivation & Objective

  • To address the growing threat of model stealing, where adversaries clone deployed models without access to weights or training data.
  • To overcome limitations of existing verification-based defenses that rely on inherent dataset features, which can lead to false positives due to feature similarity across models.
  • To develop a defense mechanism that enables reliable ownership verification by embedding unique, external features into the victim model.
  • To ensure the defense remains effective even under multi-stage stealing attacks and does not degrade the model’s performance on benign inputs.

Proposed method

  • Embedding external features into the victim model by applying style transfer to a small subset of training images, preserving their original labels.
  • Training a meta-classifier on the victim model’s predictions to detect whether a suspicious model exhibits behaviors indicative of having learned the embedded style features.
  • Using the meta-classifier to distinguish between legitimate models and stolen models based on their response to stylized test images.
  • Selecting stylized images with distinct textures and patterns to maximize feature transferability and detection sensitivity during model stealing.
  • Validating the method on both CIFAR-10 and ImageNet datasets under various attack types, including query-only, label-query, and zero-shot stealing.
  • Employing statistical hypothesis testing (p-values) to evaluate detection performance, with lower p-values indicating stronger evidence of model stealing.

Experimental results

Research questions

  • RQ1Can a defense mechanism based on verifying embedded external features reliably detect model stealing across diverse attack types?
  • RQ2How effective is the proposed method in detecting multi-stage model stealing attacks where the stolen model is generated through sequential, potentially different attack methods?
  • RQ3Does the use of style transfer to embed features in a few training samples enable detection without degrading the model’s accuracy on standard inputs?
  • RQ4How does the proposed method compare to existing verification-based defenses that rely on inherent dataset features, especially in terms of false positive rates?
  • RQ5Can the meta-classifier effectively distinguish stolen models from benign ones even when the stolen model is fine-tuned or distilled from a surrogate?

Key findings

  • The proposed method achieved p-values < 10⁻⁵ across all tested model stealing attacks on CIFAR-10, indicating strong statistical evidence of detection.
  • On ImageNet, the method maintained high detection performance with p-values below 10⁻⁴ for all attack types, demonstrating robustness on large-scale datasets.
  • The method remained effective even when the stolen model was obtained through multi-stage attacks, with p-values ≤ 0.01 in all tested scenarios.
  • The meta-classifier significantly improved detection performance compared to baseline methods, reducing p-values by orders of magnitude in all attack settings.
  • Using style transfer for feature embedding proved more effective than patch-based backdoor methods (e.g., BadNets), as DNNs are more sensitive to texture and style features.
  • The method preserved the original model’s accuracy on benign samples, as the embedded features were applied only to a small number of training images without altering labels.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.