Abstract
In this paper, we propose a novel and practical mechanism which enables the service provider to verify whether a suspect model is stolen from the victim model via model extraction attacks. Our key insight is that the profile of a DNN model's decision boundary can be uniquely characterized by its Universal Adversarial Perturbations (UAPs). UAPs belong to a low-dimensional subspace and piracy models' subspaces are more consistent with victim model's subspace compared with non-piracy model. Based on this, we propose a UAP fingerprinting method for DNN models and train an encoder via contrastive learning that takes fingerprint as inputs, outputs a similarity score. Extensive studies show that our framework can detect model IP breaches with confidence > 99.99% within only 20 fingerprints of the suspect model. It has good generalizability across different model architectures and is robust against post-modifications on stolen models.
Introduction
Training state-of-the-art Deep Neural Networks (DNNs) requires significant computational resources and high-quality datasets, making these models valuable Intellectual Property (IP). However, they are increasingly vulnerable to model extraction attacks, where an adversary queries a victim model's API to train a "piracy" model that mimics its behavior. Protecting these assets is critical for service providers.
Existing defense mechanisms like watermarking and local fingerprinting face significant hurdles. Watermarking requires intrusive modifications to the training process that can degrade performance or be removed by sophisticated attackers. Local fingerprinting, which relies on specific adversarial examples near the decision boundary, often fails because these boundaries shift slightly during the extraction process, causing the fingerprints to lose their transferability.
Methodology: Global Fingerprinting via UAPs
This research introduces a "global" fingerprinting method leveraging Universal Adversarial Perturbations (UAPs). Unlike standard adversarial attacks that are image-specific, a UAP is a single noise vector capable of causing misclassification across a wide range of inputs.
Fingerprint Generation
The authors observe that UAPs capture the global geometric correlations of a model's decision boundary. Stolen models tend to inherit the specific low-dimensional subspace of the victim model's UAPs. To generate a fingerprint, the defender selects a set of data points and observes the suspect model's response to victim-derived UAPs.
Contrastive Learning Framework
To distinguish piracy models from homologous models (independently trained on similar data), the authors employ a Supervised Contrastive Learning encoder. This encoder is trained to map fingerprints from the victim and its piracy versions close together in a latent space, while pushing fingerprints from homologous models far apart. This "multi-view" approach, enhanced by data augmentation using k-nearest neighbors, ensures the system is robust against minor variations in the suspect model.
Experimental Results
The framework was evaluated on FashionMNIST, CIFAR-10, and TinyImageNet. Key findings include:
- High Detection Accuracy: The system achieved an Area Under the Curve (AUC) of 1.0 on FMNIST and CIFAR-10, significantly outperforming baselines like IPGuard.
- Efficiency: Ownership can be verified with >99.99% confidence using only 20 queries to the suspect model.
- Robustness: The UAP fingerprints persist even after the piracy model undergoes post-modifications such as pruning, quantization, or fine-tuning.
- Generalizability: The encoder demonstrates the ability to identify piracy even when the stolen model uses a different architecture (e.g., a ResNet victim and a VGG pirate).
Conclusion
By shifting from local to global decision boundary analysis via UAPs, this work provides a robust and efficient solution for DNN IP protection. The proposed contrastive learning framework effectively distinguishes stolen models from independently trained ones, offering a practical tool for service providers to safeguard their models against extraction attacks.
Summary updated