DeepiSign: Invisible Fragile Watermark to Protect the Integrityand Authenticity of CNN

Alsharif Abuadbba, Hyoungshick Kim, Surya Nepal · DOI

TL;DR

DeepiSign is a novel, self-contained "fragile" watermarking technique designed to protect the integrity and authenticity of Convolutional Neural Networks (CNNs). By embedding a secret and its hash into model weights in the frequency domain, it can detect even subtle manipulation attacks—like poisoning or fine-tuning—without degrading the model's classification accuracy.

What Problem Does This Paper Address?

As CNNs are increasingly deployed in safety-critical systems like autonomous vehicles and drones, they become high-value targets for adversaries. Attacks such as poisoning (injecting backdoors into training data) or malicious fine-tuning can cause a model to behave normally on most inputs but fail catastrophically when it encounters a specific "trigger."

Traditional cryptographic signatures are one way to verify a model, but they require external storage and management, which can be a liability in constrained environments. Furthermore, existing watermarking research has focused on "robust" watermarks meant to survive attacks to prove ownership. DeepiSign fills the gap for a "fragile" solution: a self-contained mechanism where any unauthorized change to the model's weights immediately breaks the watermark, alerting the user that the model is compromised.

Methods

The core of DeepiSign is a two-stage process: embedding the secret before deployment and retrieving it for verification.

  1. Frequency Domain Transformation: Instead of modifying weights directly in their spatial domain, DeepiSign uses Discrete Wavelet Transform (DWT) to convert weights into the frequency domain. This separates the weights into approximation sub-bands (most significant features) and detailed sub-bands (less significant features).
  2. Precision-Preserving Scaling: To prevent the watermark from changing the model's behavior, the authors use derived scaling factors ($\delta$ and $\varrho$). These ensure that embedding bits into a weight doesn't flip its sign or significantly change its magnitude, which could otherwise cause neurons to misfire.
  3. Randomized Embedding: A scramble vector, known only to the model provider and authorized verifiers, determines the dynamic, random positions where the secret bits are hidden. This makes it computationally infeasible for an attacker to find or selectively remove the watermark.
  4. Verification: The verifier extracts the secret from the model, re-calculates its hash, and compares it to the embedded hash. A mismatch indicates tampering.
Figure 4: Overall process for the watermark retrieval and val- idation.

Datasets

The authors evaluated DeepiSign using four popular CNN architectures (ResNet18, VGG16, AlexNet, and MobileNetV2) across three standard datasets:

  • MNIST: Handwritten digits.
  • CIFAR-10: 60,000 color images in 10 classes.
  • ImageNet: A large-scale visual database.

Key Insights and Ideas

  • Fragility is a Feature: Unlike IP-protection watermarks that must be robust, integrity protection requires fragility. The "aha" moment is that by targeting high-frequency wavelet coefficients, the authors created a watermark that is sensitive to weight changes but invisible to the model's performance.
  • The Importance of Scaling: Figure 3 illustrates a critical finding: without proper scaling, watermarking can flip a neuron's activation state (e.g., from "not fired" to "fired"), leading to immediate misclassification. Example of how scaling prevents neuron activation flipping, which would otherwise lead to misclassification.

  • High Capacity: The method can hide approximately 1KB of data per layer. This is more than enough to store a robust model signature and metadata.

  • Frequency Domain Advantage: By visualizing the DWT sub-bands, the authors show that the model's core intelligence resides in the low-frequency approximation sub-bands. By leaving these untouched and only modifying the high-frequency "details," they minimize distortion. Visualizing the DWT sub-bands of ResNet18 weights to identify less important coefficients for watermarking.
Figure 3: Example of the impact of applying the derived 𝛿and 𝜚before the hiding process. Not applying them may result in flipping the neurons activation as in (b) which leads to misclassification.
Figure 1: Example of less important coefficients (17-to-32) in rebuilding the weights of ResNet18 model.

Key Results

  • Zero Accuracy Impact: Experiments showed that at a watermark level of 2-bits per coefficient, there was 0% degradation in classification accuracy across all models and datasets.
  • Reliable Tamper Detection: In the face of targeted input poisoning, output poisoning, and fine-tuning attacks, the Bit Error Rate (BER) of the extracted watermark jumped from 0% to between 46% and 71%. This makes detecting a compromised model trivial for an authorized verifier.
  • Strong Security: The confidentiality of the watermark is protected by a 256-bit scramble vector, making it computationally infeasible for an attacker to guess the embedding locations.

Limitations and Future Work

  • Shared Secrets: The system relies on a shared scramble vector between the provider and the verifier. Managing these keys securely is essential.
  • Scope of Attacks: While highly effective against poisoning and fine-tuning, the paper does not extensively discuss how the watermark behaves under standard model optimizations like quantization or pruning, which might unintentionally "break" the fragile watermark.
  • Localization: While the system can identify which layer was tampered with, it doesn't necessarily provide a way to "repair" the model or pinpoint the exact nature of the attack beyond the fact that weights were altered.

Summary updated

Abstract

Convolutional Neural Networks (CNNs) deployed in real-life applications such as autonomous vehicles have shown to be vulnerable to manipulation attacks, such as poisoning attacks and fine-tuning. Hence, it is essential to ensure the integrity and authenticity of CNNs because compromised models can produce incorrect outputs and behave maliciously. In this paper, we propose a self-contained tamper-proofing method, called DeepiSign, to ensure the integrity and authenticity of CNN models against such manipulation attacks. DeepiSign applies the idea of fragile invisible watermarking to securely embed a secret and its hash value into a CNN model. To verify the integrity and authenticity of the model, we retrieve the secret from the model, compute the hash value of the secret, and compare it with the embedded hash value. To minimize the effects of the embedded secret on the CNN model, we use a wavelet-based technique to transform weights into the frequency domain and embed the secret into less significant coefficients. Our theoretical analysis shows that DeepiSign can hide up to 1KB secret in each layer with minimal loss of the model's accuracy. To evaluate the security and performance of DeepiSign, we performed experiments on four pre-trained models (ResNet18, VGG16, AlexNet, and MobileNet) using three datasets (MNIST, CIFAR-10, and Imagenet) against three types of manipulation attacks (targeted input poisoning, output poisoning, and fine-tuning). The results demonstrate that DeepiSign is verifiable without degrading the classification accuracy, and robust against representative CNN manipulation attacks.
BibTeX
@inproceedings{abuadbba2021deepisign,
  author = {Alsharif Abuadbba and Hyoungshick Kim and Surya Nepal},
  title = {{DeepiSign: Invisible Fragile Watermark to Protect the Integrityand Authenticity of CNN}},
  booktitle = {SAC},
  year = {2021},
  doi = {10.1145/3412841.3441970},
}
Figure