Skip to main content
QUICK REVIEW

[Paper Review] Don't Forget to Sign the Gradients!

Omid Aramoon, Pin‐Yu Chen|arXiv (Cornell University)|Mar 5, 2021
Adversarial Robustness in Machine LearningComputer Science26 references5 citations
TL;DR

GradSigns is a novel black-box digital watermarking framework for deep neural networks that embeds ownership signatures by introducing a statistical bias in the expected gradients of the cross-entropy loss with respect to model inputs. It enables robust, high-capacity watermarking with negligible accuracy drop and remote verification via APIs, outperforming prior methods in robustness, capacity, and credibility against known attacks.

ABSTRACT

Engineering a top-notch deep learning model is an expensive procedure that involves collecting data, hiring human resources with expertise in machine learning, and providing high computational resources. For that reason, deep learning models are considered as valuable Intellectual Properties (IPs) of the model vendors. To ensure reliable commercialization of deep learning models, it is crucial to develop techniques to protect model vendors against IP infringements. One of such techniques that recently has shown great promise is digital watermarking. However, current watermarking approaches can embed very limited amount of information and are vulnerable against watermark removal attacks. In this paper, we present GradSigns, a novel watermarking framework for deep neural networks (DNNs). GradSigns embeds the owner's signature into the gradient of the cross-entropy cost function with respect to inputs to the model. Our approach has a negligible impact on the performance of the protected model and it allows model vendors to remotely verify the watermark through prediction APIs. We evaluate GradSigns on DNNs trained for different image classification tasks using CIFAR-10, SVHN, and YTF datasets. Experimental results show that GradSigns is robust against all known counter-watermark attacks and can embed a large amount of information into DNNs.

Motivation & Objective

  • To address the growing need for protecting deep learning models as valuable intellectual property in commercial and MLaaS settings.
  • To develop a black-box watermarking method that allows remote, API-based verification of model ownership without requiring access to model weights or architecture.
  • To overcome limitations of existing watermarking techniques, such as low capacity (only 1 bit) and vulnerability to removal or forging attacks.
  • To ensure that watermarking has negligible impact on model accuracy while remaining detectable under various adversarial attacks.
  • To provide a credible, efficient, and scalable solution for proving ownership of deep learning models in real-world deployment scenarios.

Proposed method

  • GradSigns embeds a watermark by modifying the expected gradients of the cross-entropy loss with respect to the model’s input features.
  • It introduces a statistical bias in the gradient distribution using a carrier set of input patterns, where the sign of the gradient is manipulated based on the watermark bit.
  • The watermark is embedded during the training phase by adjusting the gradient updates using a signed perturbation derived from the watermark key and a pseudorandom function.
  • Watermark extraction involves estimating the expected gradient over a set of watermark key images and analyzing the sign bias to recover the embedded signature.
  • The method uses a coordinate-wise gradient estimation approach, with sample size tuned to balance accuracy and verification cost.
  • Verification is performed via API access, enabling remote ownership proof without requiring white-box access to the model.

Experimental results

Research questions

  • RQ1Can a black-box watermarking method embed more than one bit of information into a DNN while maintaining high model accuracy?
  • RQ2How robust is the watermark against general and adaptive counter-watermarking attacks, including model fine-tuning, distillation, and gradient masking?
  • RQ3Can the watermark be reliably extracted using only API queries, without access to model weights or architecture?
  • RQ4What is the minimum sample size required to achieve accurate watermark extraction with low verification cost?
  • RQ5Is it feasible for an adversary to forge a valid watermark without access to the original training data?

Key findings

  • GradSigns successfully embeds 16-, 32-, and 64-bit watermarks into DNNs trained on CIFAR-10, SVHN, and YTF datasets with negligible performance degradation (less than 1% accuracy drop).
  • The method achieves 100% detection rate under all tested general and adaptive counter-watermark attacks, including fine-tuning, knowledge distillation, and gradient masking.
  • Watermark extraction requires fewer than 500 queries per bit on CIFAR-10 and SVHN, and under 100 per bit on YTF, demonstrating high efficiency.
  • The method is highly credible: forging a counterfeit watermark requires access to a dataset of at least 4,096 samples per class, which is infeasible under the threat model and would result in performance degradation.
  • The BESR (Bit Error Sign Rate) of forged watermarks is 1.0 when using 4,096 samples per class, indicating no successful forgery, and performance drops by up to 4.43% under forging attempts.
  • The watermark remains detectable even after adversarial fine-tuning and model distillation, confirming strong robustness in practical threat scenarios.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.