EncryIP: A Practical Encryption-Based Framework for Model Intellectual Property Protection

Xin Mu, Yu Wang, Zhengan Huang, Junzuo Lai, Yehong Zhang, Hui Wang, Yue Yu

Introduction

As machine learning models increasingly become high-value intellectual property (IP), the need for robust protection mechanisms has grown. Traditional IP protection methods, such as weight-based watermarking or passport-based access control, often suffer from poor scalability. For instance, licensing a model to numerous users typically requires training a unique version for each, which is computationally prohibitive for large-scale models. Furthermore, these methods are often susceptible to "removal attacks" like fine-tuning.

EncryIP addresses these challenges by shifting the protection mechanism from the model's internal architecture to the data-label relationship. By integrating public-key encryption directly into the label space, EncryIP allows a model owner to train a single protected model once and issue unique secret keys to multiple authorized users.

The EncryIP Framework

The core innovation of EncryIP lies in its use of "confused labels" generated through a simplified public-key encryption (PKE) scheme called $CS_{lite}$, based on the Cramer-Shoup cryptosystem.

Overview of the EncryIP label encryption and confused label generation process.

The framework operates in four primary stages:

  1. Label Encryption: During training, standard categorical labels are encrypted using $CS_{lite}$.
  2. Confused Label Generation: These ciphertexts are transformed into high-dimensional "confused labels" that appear as noise. The model is trained to map input data to these vectors.
  3. Authorized Inference: Authorized users receive a unique secret key ($sk_j$). Upon receiving a "confused" output from the model, the user applies their key to decrypt the true class prediction.
  4. Fingerprinting and Verification: To identify unauthorized distribution, the framework can generate "fake" ciphertexts. Due to the properties of $CS_{lite}$, different secret keys will decrypt these fake ciphertexts into distinct, unique messages, enabling precise identification of the leaking key.

This approach is model-agnostic, requiring no structural changes to the neural network and only a single training iteration to support an unlimited number of users.

Experimental Evaluation

The authors evaluated EncryIP across several standard computer vision benchmarks, including MNIST, CIFAR-10, CIFAR-100, and ImageNet. These datasets were tested using a variety of popular architectures such as ResNet, GoogLeNet, and AlexNet to demonstrate the framework's versatility.

Key Results and Discussion

The experimental results highlight three major strengths of the EncryIP framework:

Negligible Accuracy Impact

Across all tested models and datasets, the accuracy drop was typically less than 1%. In some instances, the protected model even showed slight performance gains.

Comparison of accuracy between the original ResNet and the EncryIP-protected version on the CIFAR-10 dataset.

High Efficiency and Scalability

Unlike competing methods like DeepIPR, which require training time to scale linearly with the number of users, EncryIP's training overhead is nearly identical to that of a standard, unprotected model. New users can be added post-training by simply generating a new mathematical key linked to the original public key.

Robustness to Attacks

EncryIP demonstrates significant resilience to common removal attacks. Because the protection is embedded in the fundamental mapping of data to the label space, aggressive fine-tuning or pruning—which often "washes out" weight-based watermarks—fails to remove the IP protection. Even after such attacks, the framework maintained nearly 100% accuracy in identifying leaked user keys.

Conclusion and Future Work

EncryIP provides a practical and scalable solution for protecting the intellectual property of machine learning models. By decoupling protection from model architecture and leveraging distributional learning, it maintains high performance while ensuring robust traceability.

Future research directions include mitigating potential collusion attacks where multiple authorized users might collaborate to reverse-engineer the label space. Additionally, the authors suggest exploring more complex PKE schemes to reduce the memory overhead associated with high-dimensional confused labels in tasks with a very large number of classes.

Summary updated

BibTeX
@inproceedings{mu2024encryip,
  author = {Xin Mu and Yu Wang and Zhengan Huang and Junzuo Lai and Yehong Zhang and Hui Wang and Yue Yu},
  title = {{EncryIP: A Practical Encryption-Based Framework for Model Intellectual Property Protection}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i19.30140},
}
Figure