VerIDeep: Verifying Integrity of Deep Neural Networks through Sensitive-Sample Fingerprinting

Zecheng He, Tianwei Zhang, Ruby B. LeearXiv 2018

Introduction

As Machine Learning as a Service (MLaaS) becomes the industry standard, users increasingly outsource model deployment to cloud providers like Amazon SageMaker or Google Cloud. While this offers scalability, it introduces a significant security gap: once a model is uploaded, the user loses direct access to the weights and can no longer verify its integrity using traditional methods like hashing. VerIDeep addresses this by introducing a "Sensitive-Sample" fingerprinting framework that allows users to detect model tampering through a black-box API with minimal queries.

System model of cloud-based model deployment and the potential for tampering.

The Threat Model

The authors identify three primary threats in the MLaaS ecosystem that standard validation sets often fail to catch because they are designed to be stealthy:

  1. Malicious Tampering: An adversary could inject a "DNN Trojan" (a backdoor) that causes the model to misclassify specific inputs (e.g., a face recognition system that grants access if the subject wears a specific pair of glasses).
  2. Data Poisoning: Subtle modifications that degrade accuracy for specific classes while maintaining overall performance.
  3. Dishonest Providers: To save on computational costs, a cloud provider might stealthily swap a user's high-fidelity model for a compressed, lower-accuracy version, violating Service Level Agreements (SLAs).
Illustration of a Trojaned DNN where a specific trigger (glasses) causes malicious misclassification.

Methodology: Sensitive-Sample Fingerprinting

The core innovation of VerIDeep is the generation of Sensitive-Samples. Unlike normal inputs, these are mathematically optimized to be hyper-sensitive to changes in the model's internal parameters.

Sensitive-Sample Generation

The authors treat fingerprinting as an optimization problem, searching for an input $v$ that maximizes the Frobenius norm of the Jacobian matrix (the gradient of the output with respect to the model weights). This ensures that even a tiny change in a weight will cause a noticeable "wiggle" in the output. To prevent cloud providers from identifying and "gaming" these verification queries, the samples are constrained to look like natural images and must remain within valid pixel ranges.

Maximum Active-Neuron Cover (MANC)

Sensitivity alone is insufficient if an attacker modifies a "dark" or inactive neuron. The authors proposed the MANC algorithm—a greedy selection process—to pick a small set of samples that collectively activate as many neurons as possible. This ensures broad coverage of the model's architecture, making it difficult for an adversary to hide modifications.

Experimental Evaluation

VerIDeep was evaluated across several standard benchmarks, including VGG-Face, GTSRB (German Traffic Sign Recognition), CIFAR-10, and the AT&T Face Dataset.

Key Results

  • High Detection Accuracy: VerIDeep achieved >99% detection accuracy across all attack types, including Trojans, poisoning, and unauthorized compression.
  • Efficiency: In most cases, model integrity could be verified with fewer than 10 queries. For Trojan detection on VGG-Face, just 3 samples were enough to reach 100% accuracy.
  • Compression Detection: The system successfully detected 4x model compression on CIFAR-10 with over 99% accuracy using 10 samples, even when the compression only resulted in a 3.6% drop in standard accuracy.
  • Zero False Positives: Because DNN inference is deterministic, the method does not flag false alarms on an intact model.

Conclusion and Future Work

VerIDeep provides a robust, efficient tool for verifying model integrity in the cloud. While highly effective, it currently flags any weight change, regardless of intent (e.g., benign fine-tuning). Future research may focus on distinguishing between malicious and benign updates and further improving the indistinguishability of sensitive samples from regular user traffic.

Summary updated

BibTeX
@misc{he2018verideep,
  author = {Zecheng He and Tianwei Zhang and Ruby B. Lee},
  title = {{VerIDeep: Verifying Integrity of Deep Neural Networks through Sensitive-Sample Fingerprinting}},
  year = {2018},
  eprint = {1808.03277},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1808.03277},
}
Figure