Deep-Lock: Secure Authorization for Deep Neural Networks

Manaar Alam, Sayandeep Saha, Debdeep Mukhopadhyay, Sandip KunduarXiv 2020

Introduction

Training state-of-the-art Deep Neural Networks (DNNs) requires significant investment in terms of massive datasets, specialized domain expertise, and high-performance computational resources. These factors make trained models valuable Intellectual Property (IP). However, current security measures like watermarking only provide post-hoc proof of theft and do not prevent unauthorized usage. Deep-Lock addresses this gap by introducing a lightweight, model-agnostic authorization scheme that "locks" a model's parameters, ensuring it only functions for authorized users possessing the correct cryptographic key.

The Deep-Lock Framework

Deep-Lock protects the most vital component of a DNN—its trained weights—rather than obfuscating the network architecture. The framework operates in two primary phases:

  1. Offline Locking: The model owner selects a master key. A key-scheduling algorithm, similar to those used in the Advanced Encryption Standard (AES), generates a unique secret key for every individual weight in the network. Each weight is then converted to its binary representation, XORed with its specific key, and processed through a non-linear Substitution Box (S-Box) transformation. This process effectively "scrambles" the weights into a dense network of encrypted values.
  2. Online Unlocking: At inference time, a legitimate user provides the master key. The system regenerates the weight-specific keys and applies an Inverse S-Box operation on-the-fly to restore the original weights for computation.

Because Deep-Lock treats parameters as data to be encrypted, it is entirely model-agnostic and does not require modifications to the underlying neural network architecture or the training process.

Experimental Evaluation

The researchers evaluated Deep-Lock using three standard image classification benchmarks: MNIST (86,166 parameters), Fashion-MNIST (180,438 parameters), and CIFAR-10 (1,250,858 parameters).

Fidelity and Security

As shown in Figure 1, Deep-Lock achieves perfect fidelity; when the correct key is provided, the model's classification accuracy is identical to the original unprotected model. Conversely, if an incorrect key is used, the model's performance drops to approximately 10%, which is equivalent to random guessing for a 10-class problem.

Accuracy performance and average prediction time overhead across different datasets.

Resilience to Fine-Tuning Attacks

A common threat to model IP is the "fine-tuning attack," where an adversary attempts to recover a stolen model's performance by retraining it on a small subset of data. Deep-Lock demonstrates high resilience to such attacks. Because the weights are non-linearly scrambled, standard gradient-based optimization fails to restore functionality. Even with access to 10% of the original training data, the validation accuracy of a locked model remains flat at random-guess levels throughout the training process.

Validation accuracy remains at random levels (~10%) during fine-tuning attacks, demonstrating high security.

Performance and Discussion

While Deep-Lock provides robust security, it introduces some computational overhead due to the on-the-fly decryption of weights. For smaller models like MNIST and Fashion-MNIST, this overhead is negligible. However, for larger models like CIFAR-10, the sequential software implementation results in a noticeable increase in prediction time (from ~0.5s to ~3.5s).

To mitigate this, future implementations could leverage hardware parallelization. By integrating Deep-Lock into dedicated hardware accelerators such as FPGAs or ASICs, S-Box lookups can be performed in parallel, potentially reducing the performance overhead to near-zero. This would make Deep-Lock a viable solution for securing massive, real-time production models in sensitive industrial applications.

Summary updated

BibTeX
@misc{alam2020deep,
  author = {Manaar Alam and Sayandeep Saha and Debdeep Mukhopadhyay and Sandip Kundu},
  title = {{Deep-Lock: Secure Authorization for Deep Neural Networks}},
  year = {2020},
  eprint = {2008.05966},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2008.05966},
}
Figure