IPGuard: Protecting Intellectual Property of Deep Neural Networks via Fingerprinting the Classification Boundary

Xiaoyu Cao, Jinyuan Jia, Neil Zhenqiang Gong

TL;DR

This paper introduces IPGuard, a novel method for protecting the intellectual property of deep neural networks (DNNs) without sacrificing their accuracy. IPGuard works by "fingerprinting" a DNN's unique classification boundary using carefully selected data points, allowing owners to detect pirated versions of their models, even if they've been modified.

What Problem Does This Paper Address?

Developing and training deep neural networks (DNNs) is a resource-intensive process, involving proprietary data, algorithms, and significant computational power. This makes DNNs valuable intellectual property. However, attackers can steal these models through various means, such as malware or insider threats, and then deploy them as their own. Existing methods to protect DNNs, like watermarking, often require altering the model's training or fine-tuning process, which can degrade its accuracy. This is a critical issue, as even a small drop in accuracy can be unacceptable in sensitive applications like healthcare or finance. The paper aims to solve this by providing a way to detect pirated DNNs that guarantees no loss in the original model's accuracy.

Methods

IPGuard's core innovation lies in its focus on the classification boundary of a DNN. The authors observe that this boundary, which separates regions of the input space predicted to belong to different classes, is a unique characteristic of a trained classifier.

The IPGuard method consists of two main functions:

  • Extract: The model owner uses this function to generate a "fingerprint" for their target DNN. This involves identifying a set of data points that lie near the classifier's decision boundary. These data points, along with their labels predicted by the target classifier, form the fingerprint. To find these points efficiently, IPGuard formulates it as an optimization problem solved using gradient descent.
  • Verify: When a suspect classifier is encountered, the model owner queries its prediction API with the fingerprinting data points. If the suspect classifier predicts the same labels for a significant majority of these points as the original classifier, it's flagged as a potential pirated version.

Crucially, IPGuard extracts these fingerprints from an already trained classifier, meaning it doesn't interfere with the training process and thus incurs no accuracy loss. This distinguishes it from watermarking techniques that embed information during training.

Datasets

The authors evaluated IPGuard on three widely used image classification datasets:

  • CIFAR-10: A 10-class dataset with 32x32 images.
  • CIFAR-100: A 100-class dataset with 32x32 images.
  • ImageNet: A large-scale dataset with 1000 classes and higher resolution images (resized to 224x224).

Key Insights and Ideas

  • Classification Boundary as a Fingerprint: The central idea is that a DNN's classification boundary is a unique signature that can be exploited for intellectual property protection. This is a novel perspective compared to traditional watermarking approaches.
  • No Accuracy Loss is Achievable: The paper demonstrates that it's possible to protect DNNs without compromising their performance, a significant limitation of prior work.
  • Robustness vs. Uniqueness Trade-off: The authors highlight that finding fingerprinting points needs to balance robustness (ensuring modified models are still detected) and uniqueness (ensuring unrelated models are not falsely flagged). Their method aims to achieve both simultaneously.
  • Efficiency Matters: For large-scale DNNs, the fingerprint extraction and verification process needs to be computationally efficient. IPGuard's optimization approach is designed with this in mind.

Key Results

  • Robust Detection of Post-Processed Models: IPGuard successfully identified classifiers that were modified through various post-processing techniques (fine-tuning, retraining, model compression) as pirated versions of the original model.
  • High Uniqueness: The method effectively distinguished between the target classifier (or its post-processed versions) and entirely different classifiers, including those with the same architecture but different training initializations.
  • Efficiency Advantage over CW-L2: While IPGuard is slower than simpler methods like FGSM and IGSM, it is orders of magnitude faster than the state-of-the-art Carlini & Wagner (CW-L2) method for finding data points near the classification boundary, while achieving comparable robustness-uniqueness trade-offs. For example, on ImageNet, IPGuard took approximately 7,634 seconds to generate 100 fingerprinting points, compared to CW-L2's 121,955 seconds.
  • Comparable ARUC to CW-L2: The Area Under the Robustness-Uniqueness Curves (ARUC) metric showed that IPGuard achieved comparable performance to CW-L2, indicating a strong ability to balance robustness and uniqueness.

Limitations and Future Work

  • Assumption of Boundary Proximity: IPGuard relies on the assumption that post-processed versions of a target classifier will have classification boundaries that are "closer" to the original than those of unrelated classifiers. While empirically validated for common post-processing methods, this assumption might be challenged by more sophisticated adversarial attacks.
  • Model Extraction Attacks: The authors acknowledge that they did not evaluate IPGuard against model extraction attacks due to resource limitations and suggest this as an area for future research.
  • Adaptive Attacks: The paper anticipates an "arms race" where attackers might develop new post-processing techniques (e.g., knowledge distillation) to evade detection. Future work could explore theoretical guarantees for fingerprinting methods and investigate defenses against such adaptive attacks.
  • Leveraging Confidence Scores: The current verification process uses only the predicted labels. The authors suggest that utilizing confidence score vectors (probability distributions) could potentially enhance fingerprinting capabilities.

Summary updated

BibTeX
@inproceedings{cao2021ipguard,
  author = {Xiaoyu Cao and Jinyuan Jia and Neil Zhenqiang Gong},
  title = {{IPGuard: Protecting Intellectual Property of Deep Neural Networks via Fingerprinting the Classification Boundary}},
  booktitle = {AsiaCCS},
  year = {2021},
  url = {https://openreview.net/forum?id=Y2IIUIx8lxQ},
}
Figure