EdgePro: Edge Deep Learning Model Protection via Neuron Authorization

Jinyin Chen, Haibin Zheng, Tao Liu, Jiawei Liu, Yao Cheng, Xuhong Zhang, Shouling Ji

This academic paper introduces EdgePro, a novel, lightweight approach to protecting deep learning models deployed on resource-constrained edge devices (like IoT sensors or mobile phones). Rather than relying on heavy encryption, it uses a "neuron authorization" system that acts as a biological-inspired password for the neural network.

TL;DR

EdgePro protects edge-deployed AI models by "locking" a small subset of neurons so the model only functions correctly when specific activation values (the "passwords") are provided. It offers a high-security, low-overhead alternative to traditional encryption, maintaining nearly full accuracy while being significantly faster than existing software-based protection methods.

What Problem Does This Paper Address?

Deep learning models are valuable intellectual property, but when deployed on edge devices, they are highly vulnerable to theft or illegal copying. Traditional protection methods fall into two camps, both with significant drawbacks for the "Edge":

  1. Hardware-based (TEEs): Using Trusted Execution Environments like Intel SGX or ARM TrustZone is secure but often requires frequent, slow memory swapping and specialized hardware that isn't available on all IoT devices.
  2. Software-based (Encryption): Encrypting the entire model is computationally expensive. Decrypting millions of parameters in real-time during inference creates a massive bottleneck that drains battery and increases latency.

The authors sought a "middle way": a method that is effective against attackers but light enough to run smoothly on a low-power processor.

Methods

The core innovation of EdgePro is Neuron Authorization. Instead of hiding the model's weights, the authors hide the conditions under which those weights work.

  • Authorization Neurons: The protector randomly selects a small percentage (e.g., 5%) of neurons in each layer to serve as "locks."
  • The Password: This consists of the indices of these neurons, their "locking values" (fixed activation levels), and layer-wise scale factors.
  • Lock Training: This is the most critical step. The model is trained using two datasets simultaneously. On a "clean" dataset, the model learns to predict correctly only if the authorization neurons are set to their locking values. On an "obfuscated" dataset (with wrong labels), the model is trained to produce incorrect results if the neurons are not locked.
  • Inference: For a legitimate user, the edge device simply overwrites the activations of the selected neurons with the "password" values during the forward pass. For an attacker, the model produces "random guessing" results.

Datasets

The authors evaluated EdgePro across a wide variety of tasks and architectures:

  • Image Classification: MNIST, CIFAR-10, CIFAR-100, and Tiny-ImageNet.
  • Graph Node Classification: Cora and PubMed (demonstrating that the method works for Graph Neural Networks, not just standard CNNs).
  • Architectures: They tested everything from simple MLPs and LeNet to complex models like ResNet-101, VGG-19, DenseNet, and ShuffleNet.

Key Insights and Ideas

  • State over Weights: The "aha moment" here is that you don't need to encrypt the weights if you can corrupt the internal state of the network. By forcing specific neurons to act as gates, the entire feature extraction process becomes dependent on the "password."
  • Scale Factors as Corruption: The inclusion of layer-wise scale factors ($\gamma$) adds an extra layer of security. If an attacker tries to use the model without the correct scaling, the internal representations are distorted beyond repair, leading to a total collapse in accuracy.
  • Exponential Security: The authors found that the time required for a "Reverse Engineering" attack increases exponentially as more authorization neurons are added, making the cost of cracking the model prohibitive for attackers.

Key Results

  • High Fidelity: The accuracy loss for authorized users is negligible—less than 1.63% on average across all tested models.
  • Effective Blocking: For unauthorized users, accuracy drops to the level of random guessing (e.g., ~1% on CIFAR-100).
  • Superior Speed: The inference time overhead of EdgePro is only 60% of current state-of-the-art software protection methods.
  • Robustness: The protection held up against "adaptive attacks," including model pruning (removing neurons) and fine-tuning (trying to retrain the stolen model with a small amount of new data).

Limitations and Future Work

While EdgePro is highly effective for classification, the authors note that they have yet to test it on more complex computer vision tasks like semantic segmentation or object detection. They also aim to explore its application in Generative Adversarial Networks (GANs) and text classification.

Additionally, while the "password" is much smaller than the model itself, it still needs to be stored securely on the device (perhaps in a very small secure enclave), a requirement that remains a standard challenge in edge security.

Summary updated

BibTeX
@article{chen2024edgepro,
  author = {Jinyin Chen and Haibin Zheng and Tao Liu and Jiawei Liu and Yao Cheng and Xuhong Zhang and Shouling Ji},
  title = {{EdgePro: Edge Deep Learning Model Protection via Neuron Authorization}},
  journal = {IEEE Trans. Dependable Secur. Comput.},
  year = {2024},
  url = {https://openreview.net/forum?id=EdOaS9FBm9},
}
Figure