DeepAuth: A DNN Authentication Framework by Model-Unique and Fragile Signature Embedding

Yingjie Lao, Weijie Zhao, Peng Yang, Ping Li

Abstract

DeepAuth is a novel framework designed to protect the integrity and intellectual property of deep neural networks (DNNs) through the embedding of unique, fragile digital signatures. Unlike robust watermarking techniques intended to survive model modifications, DeepAuth signatures are engineered to be highly sensitive to any parameter changes, such as fine-tuning or pruning. By leveraging adversarial-like key samples and a "sandwiching" training technique, the framework creates razor-thin decision boundaries that break upon tampering. Experimental results across MNIST, CIFAR10, and ImageNet demonstrate that DeepAuth achieves near-perfect embedding success with negligible impact on primary task accuracy, providing a robust mechanism for model authentication and integrity verification.

Introduction

As deep learning models become increasingly expensive to train and vital to critical infrastructure, protecting intellectual property (IP) and ensuring model trustworthiness have become paramount. Most existing research focuses on robust watermarking, where a signature is embedded to survive model compression or fine-tuning. However, there is a significant gap in fragile watermarking—detecting if a model has been subtly altered, perhaps to inject a malicious backdoor or bypass safety filters. DeepAuth addresses this by creating signatures that are both model-unique (different for every user/copy) and fragile (sensitive to any parameter changes).

Methodology

The DeepAuth framework consists of three main stages: Key Sample Generation, Signature Embedding, and Authentication.

Overview of the DeepAuth framework pipeline including sample generation, embedding, and verification.
  1. Key Sample Generation: Key samples are crafted using a three-layered approach. First, adversarial-like samples are found far from the natural data distribution but near decision boundaries. Second, leverage score sampling identifies inputs in latent space where the model has high uncertainty. Finally, logit manipulation fine-tunes these samples to sit exactly on the edge of a classification change.
  2. Signature Embedding: To maintain accuracy on normal tasks, a weighted bipartite graph maximum matching algorithm selects a balanced set of key samples. The model is then retrained using a "sandwiching" technique, including samples from just before and just after the decision boundary in the training batch.
  3. Authentication: A trusted server stores pairs of "Authentication Vectors" (key samples) and their expected "Signatures" (classification output). Verification involves checking if the model's output for a given vector matches the stored signature.

Technical Innovation: The Sandwich Effect

The core of DeepAuth's fragility lies in the "Sandwich" effect. By training on samples $x'_{t-1}$ (correct label) and $x'_{t+1}$ (adversarial label) that are mathematically very close to each other, the framework forces the model to create a razor-thin decision boundary.

The sandwiching technique forces a narrow decision boundary, making the signature highly sensitive to weight changes.

Any subsequent modification to the model, such as pruning or fine-tuning, is almost certain to shift this boundary, thereby breaking the signature and alerting the owner to the compromise. This fragility acts as a "canary in the coal mine" for detecting unauthorized modifications.

Experimental Evaluation

The researchers evaluated DeepAuth using standard benchmarks: MNIST (LeNet5), CIFAR10 (VGG16), and ImageNet (ResNet50). Key results include:

  • High Fidelity: Impact on original model accuracy was negligible (less than 0.1% for MNIST and CIFAR10).
  • Perfect Embedding: Success rate for embedding 1024 unique signatures was nearly 100% across all tested architectures.
  • Extreme Fragility: On ImageNet, signatures disappeared after only 5 epochs of fine-tuning. Standard pruning (removing 50-95% of weights) also caused consistent authentication failure.
  • Uniqueness: The correlation between signatures of different protected models was less than 3%, ensuring distinct identities for different model copies.

Conclusion

DeepAuth demonstrates that fragility can be a powerful security feature in the context of DNN integrity. By making signatures sensitive to the slightest weight changes, it provides a high-precision integrity check. While the framework performs exceptionally well on complex datasets like ImageNet, future work could explore defenses against adaptive attacks and decentralized authentication protocols to further enhance privacy and security.

Summary updated

BibTeX
@inproceedings{lao2022deepauth,
  author = {Yingjie Lao and Weijie Zhao and Peng Yang and Ping Li},
  title = {{DeepAuth: A DNN Authentication Framework by Model-Unique and Fragile Signature Embedding}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i9.21193},
}
Figure