Model Copyright Protection in Buyer-seller Environment

Yusheng Guo, Nan Zhong, Zhenxing Qian, Xinpeng ZhangarXiv 2023 · DOI

Abstract

Deep Neural Networks (DNNs) represent significant intellectual property, yet they are vulnerable to unauthorized redistribution once deployed. This paper proposes Input-Sensitive Neural Networks (ISNN), a functional protection scheme that "locks" a model's utility. By training the model to require a secret, imperceptible noise "stamp" on input data, the system ensures that only authorized buyers with the correct key can achieve high accuracy. Unlike traditional encryption, ISNN maintains $O(1)$ inference overhead, making it suitable for real-time applications.

Introduction: The Challenge of Model Theft

The high cost of training state-of-the-art DNNs—in terms of data, compute, and expertise—has turned pre-trained models into valuable commercial assets. However, once a model is sold or hosted, it can be easily stolen or misused. Existing solutions like standard encryption (AES/RSA) introduce prohibitive latency during inference, while watermarking only provides post-hoc proof of ownership without preventing unauthorized use.

Overview of the buyer-seller-adversary environment for model protection.

The researchers from Fudan University address this by creating a model that is functionally dependent on a secret key. In this environment, the seller provides a "locked" model and a key to the buyer. The buyer uses the key to "stamp" their inputs, receiving high-accuracy results. An adversary without the key receives low-accuracy outputs, effectively rendering the stolen asset worthless.

Methods: Input-Sensitive Neural Networks (ISNN)

The core of the ISNN approach is to intentionally make the model "fragile" to specific input perturbations. Instead of encrypting weights, the model's behavior is programmed during the training phase.

The Key and Perturbation Generation

The seller generates a 256-bit key $K$, which is used to produce a specific noise pattern $M$. This pattern is resized to match the input dimensions and scaled by a factor $\Delta$ to ensure it remains imperceptible to humans while being detectable by the network.

Dual-Stream Training and Loss Function

The model is trained using a dual-stream process:

  1. Legal Stream ($D_T$): Clean images are stamped with the secret perturbation $M$. The model is trained to minimize the distance between its output and the correct labels ($\mathcal{L}_1$).
  2. Illegal Stream ($D_F$): Clean images or images with random noise $M'$ are used. The model is trained to maximize the distance from correct labels or predict false labels ($\mathcal{L}_2$).
Detailed workflow of copyright embedding, dataset preprocessing, and model training in ISNN.

The total loss function is defined as $\mathcal{L} = \mathcal{L}_1 + \lambda\mathcal{L}_2$, where $\lambda$ balances the two objectives. This forces the classifier to learn a decision boundary that is highly sensitive to the presence of the specific secret stamp.

Experimental Evaluation

The researchers evaluated ISNN using the CIFAR-10 dataset and a ResNet18 architecture. The primary metrics were accuracy on legal inputs (fidelity) and accuracy on illegal inputs (deterrence).

Key Results

  • High Fidelity: The protected model achieved an accuracy of 92.29% on legal inputs, nearly matching the unprotected baseline of 92.68%.
  • Strong Deterrence: Without the correct key, accuracy dropped to less than 5% in certain configurations.
  • Efficiency: Because the "decryption" is baked into the model's weights, the inference overhead is negligible ($O(1)$ complexity), a significant improvement over $O(n)$ cryptographic methods.
  • Resilience: The model proved resistant to retraining attacks. Even after 1,000 epochs of retraining on clean data, unauthorized accuracy remained below usable levels (approx. 82%).

Conclusion and Future Work

ISNN provides a robust, efficient mechanism for model copyright protection by linking functional utility to a secret input stamp. While highly effective for image classification, future research is needed to extend this approach to other domains like Natural Language Processing (NLP) and to ensure robustness against sophisticated adaptive adversaries using GANs to strip perturbations.

Summary updated

BibTeX
@misc{guo2023model,
  author = {Yusheng Guo and Nan Zhong and Zhenxing Qian and Xinpeng Zhang},
  title = {{Model Copyright Protection in Buyer-seller Environment}},
  year = {2023},
  eprint = {2312.05262},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.05262},
}
Figure