Skip to main content
QUICK REVIEW

[Paper Review] Deep-Lock: Secure Authorization for Deep Neural Networks

Manaar Alam, Sayandeep Saha|arXiv (Cornell University)|Aug 13, 2020
Adversarial Robustness in Machine LearningComputer Science7 references4 citations
TL;DR

Deep-Lock proposes a lightweight, key-based model-locking scheme that encrypts DNN parameters using S-Boxes and a key-scheduling algorithm, ensuring correct functionality only with the correct master key. It achieves strong security against model fine-tuning attacks without modifying model architecture or incurring significant performance overhead.

ABSTRACT

Trained Deep Neural Network (DNN) models are considered valuable Intellectual Properties (IP) in several business models. Prevention of IP theft and unauthorized usage of such DNN models has been raised as of significant concern by industry. In this paper, we address the problem of preventing unauthorized usage of DNN models by proposing a generic and lightweight key-based model-locking scheme, which ensures that a locked model functions correctly only upon applying the correct secret key. The proposed scheme, known as Deep-Lock, utilizes S-Boxes with good security properties to encrypt each parameter of a trained DNN model with secret keys generated from a master key via a key scheduling algorithm. The resulting dense network of encrypted weights is found robust against model fine-tuning attacks. Finally, Deep-Lock does not require any intervention in the structure and training of the DNN models, making it applicable for all existing software and hardware implementations of DNN.

Motivation & Objective

  • Address the growing threat of DNN model piracy, where unauthorized users can illegally use stolen models without stealing decision boundaries.
  • Provide a solution that prevents unauthorized usage of DNNs by making locked models function incorrectly without the correct secret key.
  • Develop a generic, lightweight, and hardware/software-compatible mechanism that does not alter the DNN structure or training process.
  • Ensure that even with access to the model architecture and a manifest dataset, adversaries cannot recover usable accuracy through fine-tuning.
  • Mitigate risks associated with traditional software product key schemes by embedding verification within the DNN inference process itself.

Proposed method

  • Encrypt each DNN weight using a cryptographically secure S-Box, with the encryption key derived from a master key via a key-scheduling algorithm.
  • Apply the inverse S-Box operation during inference using the correct key to decrypt weights and restore model functionality.
  • Use the AES S-Box and AES key-scheduling algorithm as a concrete instantiation of the scheme for evaluation.
  • Store only the master key on the device, ensuring that the secret key material is not exposed during inference.
  • Embed the key verification step directly into the DNN computation, so the model never exposes an unencrypted state in memory.
  • Maintain compatibility with existing DNN software and hardware by avoiding structural changes to the model.

Experimental results

Research questions

  • RQ1Can a lightweight, generic, and transparent DNN locking mechanism be designed that does not interfere with model training or architecture?
  • RQ2How effective is the proposed scheme in preventing unauthorized usage when the model is accessed in a black-box manner?
  • RQ3To what extent can an adversary recover usable model accuracy through model fine-tuning using a manifest dataset and a wrong key?
  • RQ4What is the performance overhead of the locking mechanism in terms of inference time and model size?
  • RQ5How does the security of Deep-Lock compare to existing hardware-assisted schemes like HPNN in resisting fine-tuning attacks?

Key findings

  • Deep-Lock maintains the original model’s accuracy when unlocked with the correct master key, demonstrating no degradation in performance.
  • With an incorrect key, the locked model behaves as a random classifier, achieving an average accuracy of less than 10% across 100 random key trials.
  • Model fine-tuning with 10% of the original training data fails to improve accuracy beyond random classification levels, even for complex datasets like CIFAR-10.
  • The inference time overhead is minimal for MNIST and Fashion-MNIST, and moderately higher for CIFAR-10, but highly parallelizable on hardware accelerators.
  • The scheme is robust against model fine-tuning attacks, outperforming HPNN in this threat model by preventing any meaningful accuracy recovery with wrong keys.
  • Deep-Lock does not require changes to model structure or training, enabling seamless integration with existing software and hardware DNN platforms.

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.