Skip to main content
QUICK REVIEW

[Paper Review] Are You Stealing My Model? Sample Correlation for Fingerprinting Deep Neural Networks

Jiyang Guan, Jian Liang|arXiv (Cornell University)|Oct 21, 2022
Adversarial Robustness in Machine LearningComputer Science10 citations
TL;DR

This paper proposes SAC, a novel model fingerprinting method that uses sample correlation to detect stolen deep neural networks. By leveraging misclassified normal samples or CutMix-augmented samples to compute correlation differences between source and suspect models, SAC achieves state-of-the-art AUC performance (up to 1.0) across diverse attacks—including adversarial training and transfer learning—without requiring surrogate model training or adversarial example generation.

ABSTRACT

An off-the-shelf model as a commercial service could be stolen by model stealing attacks, posing great threats to the rights of the model owner. Model fingerprinting aims to verify whether a suspect model is stolen from the victim model, which gains more and more attention nowadays. Previous methods always leverage the transferable adversarial examples as the model fingerprint, which is sensitive to adversarial defense or transfer learning scenarios. To address this issue, we consider the pairwise relationship between samples instead and propose a novel yet simple model stealing detection method based on SAmple Correlation (SAC). Specifically, we present SAC-w that selects wrongly classified normal samples as model inputs and calculates the mean correlation among their model outputs. To reduce the training time, we further develop SAC-m that selects CutMix Augmented samples as model inputs, without the need for training the surrogate models or generating adversarial examples. Extensive results validate that SAC successfully defends against various model stealing attacks, even including adversarial training or transfer learning, and detects the stolen models with the best performance in terms of AUC across different datasets and model architectures. The codes are available at https://github.com/guanjiyang/SAC.

Motivation & Objective

  • Address the limitations of existing model fingerprinting methods that rely on adversarial examples and fail under adversarial training or transfer learning.
  • Develop a robust model ownership verification technique that does not interfere with model training or degrade performance.
  • Reduce the time and computational cost of fingerprinting by eliminating the need for surrogate model training or adversarial example generation.
  • Enable effective detection of model stealing attacks across diverse architectures and datasets, including challenging scenarios like transfer learning and adversarial fine-tuning.

Proposed method

  • Propose Sample Correlation (SAC) as a new fingerprinting indicator based on pairwise output correlations between samples in the source and suspect models.
  • Introduce SAC-w, which uses misclassified normal samples from the source model as inputs to compute correlation differences, avoiding reliance on adversarial examples.
  • Develop SAC-m, which uses CutMix-augmented samples as inputs to eliminate the need for training surrogate models or generating adversarial examples.
  • Use cosine similarity as the correlation function to maximize the gap between stolen and non-stolen models.
  • Form the fingerprint by computing the mean correlation among model outputs of selected samples, using this correlation difference as the detection signal.
  • Apply the method without modifying the model’s training process, preserving original accuracy and enabling post-hoc deployment.

Experimental results

Research questions

  • RQ1Can sample correlation between model outputs serve as a robust and transferable fingerprint for detecting stolen deep neural networks?
  • RQ2How does SAC-w perform under adversarial training and transfer learning, where previous adversarial-based methods fail?
  • RQ3Can CutMix-augmented samples effectively replace adversarial examples in fingerprinting while reducing computational cost?
  • RQ4How does the choice of input samples (e.g., misclassified vs. normal) affect detection performance and sample efficiency?
  • RQ5What is the impact of different correlation functions (e.g., cosine similarity vs. Gaussian RBF) on detection robustness and AUC performance?

Key findings

  • SAC achieves a perfect AUC of 1.0 across most model architectures and datasets, including under adversarial training and transfer learning.
  • SAC-m reduces fingerprinting time to just 4.45 seconds, which is 5,738 times faster than the CAE method, demonstrating significant efficiency gains.
  • With only 50 misclassified samples, SAC-w achieves AUC > 0.99, showing strong performance even in few-shot settings.
  • SAC-m outperforms SAC-w and other baselines in terms of both accuracy and efficiency, especially when defender data is limited.
  • Cosine similarity as the correlation function yields the largest gap between stolen and non-stolen models, making it the most effective choice.
  • The method remains robust under pruning, fine-tuning, and model extraction attacks, with AUC values consistently above 0.99 across all evaluated attacks.

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.