On Function-Coupled Watermarks for Deep Neural Networks

Xiangyu Wen, Yu Li, Wei Jiang, Qiang Xu

TL;DR

This paper introduces "function-coupled watermarks" for deep neural networks (DNNs) that are highly resistant to common removal attacks like fine-tuning and pruning. By deeply integrating watermarks with the DNN's core functionality using in-distribution data and a novel weight-masking training strategy, the authors achieve 100% authentication success even under aggressive attacks, outperforming existing methods.

What Problem Does This Paper Address?

Deep neural networks (DNNs) represent significant intellectual property (IP) for their creators, requiring substantial data and computational resources for training. Protecting this IP from unauthorized use and theft is crucial. Watermarking DNNs is a promising approach, where secret information is embedded into the model, allowing the owner to prove ownership by retrieving it with specific trigger inputs. However, existing watermarking techniques, particularly black-box methods, are vulnerable to adversarial attacks like model fine-tuning and pruning, which can effectively remove the embedded watermarks, rendering them useless for IP protection. This paper addresses the critical need for robust DNN watermarking solutions that can withstand these removal attacks.

Methods

The core of this paper is the "function-coupled watermark" approach, which aims to make the watermark inseparable from the DNN's normal operation.

  • In-Distribution Trigger Generation: Instead of relying on out-of-distribution data (which can be easily forgotten during retraining), the authors propose generating watermark triggers by fusing samples from the original training dataset. This ensures the watermark is learned alongside the model's natural functionalities. Two fusion methods are introduced:
  • Direct Feature-Fusion: Combines base instances in spatial dimensions (height and width) to create visible watermark images.
  • Invisible Feature-Fusion: Merges base instances in the RGB channels, creating less visually obvious watermarks that are harder for adversaries to detect.
  • Masking Training Strategy: To further enhance robustness, a novel training procedure is introduced where random masks are applied to model weights during training. This prevents the watermark from being concentrated in a few critical neurons, which could be easily removed by pruning. Instead, the watermark's functionality is distributed across the network, making it resilient to pruning and fine-tuning. This strategy mimics pruning during training to prepare the model for such attacks.

Datasets

The paper uses standard image classification datasets for training and evaluation:

  • MNIST
  • CIFAR-10
  • CIFAR-100
  • Tiny-ImageNet

Key Insights and Ideas

  • Watermark as Functionality: The most significant insight is that watermarks should not be treated as separate, easily removable components but rather as integral parts of the DNN's functional behavior. By coupling the watermark with the model's inherent capabilities using in-distribution data, removal attacks become attacks on the model's core performance.
  • In-Distribution Data is Key: Using data from the original training distribution for trigger generation is crucial for robustness against retraining attacks. Out-of-distribution triggers are too easily forgotten.
  • Mimicking Attacks for Defense: The masking training strategy, which randomly prunes weights during training, is a clever way to make the model inherently resistant to pruning attacks by forcing it to learn redundant representations of the watermark.
  • Invisible Watermarks for Stealth: The invisible feature-fusion method offers a way to embed watermarks that are less likely to be detected by adversaries, adding another layer of security.

Key Results

The proposed function-coupled watermarking method demonstrates exceptional performance:

  • 100% Authentication Success Rate: Achieved under aggressive watermark removal attacks, including fine-tuning (10 iterations) and pruning (up to 80% of weights), significantly outperforming existing methods.
  • Minimal Impact on Benign Accuracy: The watermarking process causes a negligible drop in the model's clean accuracy, often within ±0.5%, and in some cases, even slightly improves it due to the regularization effect of the masking strategy.
  • Robustness to Transfer Learning: The method maintains a high authentication success rate (above 70%) even after 10 iterations of transfer learning, though benign accuracy sees a larger drop in such scenarios.
  • Resistance to Overwriting: The method shows 100% robustness against overwriting attacks, meaning a new watermark cannot easily replace the original one.

Limitations and Future Work

  • Limitations:
    • The paper acknowledges that while the invisible fusion method is harder to detect, direct fusion watermarks are easily identifiable, as shown in the confusion matrix results.
  • The robustness against pruning attacks can be more sensitive on larger datasets like Tiny-ImageNet, where benign accuracy can be significantly impacted.
  • Future Work:
    • The authors plan to extend their function-coupled watermarking concept to other deep learning tasks beyond image classification, such as object detection and speech recognition.
  • Further research into optimizing the trade-off between model sparsity and accuracy under pruning attacks is implied.

Summary updated

BibTeX
@article{wen2023function,
  author = {Xiangyu Wen and Yu Li and Wei Jiang and Qiang Xu},
  title = {{On Function-Coupled Watermarks for Deep Neural Networks}},
  journal = {IEEE J. Emerg. Sel. Topics Circuits Syst.},
  year = {2023},
}
Figure