High-Robustness, Low-Transferability Fingerprinting of Neural Networks

Siyue Wang, Xiao Wang, Pin-Yu Chen, Pu Zhao, Xue LinarXiv 2021

Introduction

Training state-of-the-art deep neural networks (DNNs) like GPT-3 requires massive computational resources and financial investment, making these models valuable intellectual property (IP). A common threat to this IP is model theft, where an adversary "prunes" a stolen model—reducing its size and complexity by removing redundant weights—to claim it as their own. While watermarking and fingerprinting have been proposed for IP protection, they often suffer from performance degradation or high false positive rates, where unrelated models are mistakenly flagged as stolen. This paper introduces a novel fingerprinting method designed to be robust against pruning while maintaining low transferability to avoid false alarms.

Methodology: Characteristic Examples (C-examples)

The researchers propose a data-free fingerprinting method using Characteristic Examples (C-examples). These are synthetic inputs designed to trigger specific, predictable responses from a target "Base Model." The development of these examples evolved through three iterations to address robustness and uniqueness:

  1. Vanilla C-examples: Generated via Projected Gradient Descent (PGD), these are optimized noise patterns that the model classifies under a specific label (e.g., "strawberry").
  2. Robust C-examples (RC-examples): To ensure the fingerprint survives pruning, the authors inject random noise into the model's weights during the generation process. This simulates pruning-induced perturbations, forcing the generated image to be robust to weight changes. This is further refined using Gradient Mean (GM), which averages gradients across multiple noise samples to stabilize the fingerprint.
  3. Low-Transferability RC-examples (LTRC-examples): To eliminate false alarms, the authors apply a high-pass filter using the Discrete Cosine Transform (DCT). By removing low-frequency components—features often shared across different architectures—the fingerprint becomes uniquely tied to the specific high-frequency associations of the base model.
Visual comparison of fingerprinting iterations: (a) Vanilla C-Example, (b) RC-Example, (c) RC-Example + GM, (d) LTRC-Example (k=5), (e) LTRC-Example (k=20).

Key Insights

A critical finding of this work is the "Frequency Trap." Saliency maps in the frequency domain revealed that low-frequency components are primarily responsible for the transferability of fingerprints between unrelated models. By filtering these out and focusing on high-frequency "noise" that the specific model has uniquely learned to associate with a label, the authors achieve hyper-specificity.

Furthermore, because C-examples are generated from random seeds using only the model's weights and gradients, the method is entirely "data-free." This allows model owners to generate fingerprints post-hoc without needing access to the original training datasets, which may be massive or no longer available.

Experimental Results

The effectiveness of these methods was evaluated using ImageNet (VGG-16/19) and CIFAR-10 benchmarks. The authors introduced a Uniqueness Score, defined as the difference between Robustness (accuracy on the pruned model) and Transferability (accuracy on unrelated models).

  • Enhanced Uniqueness: On ImageNet, LTRC-examples achieved a uniqueness score four times higher than vanilla methods.
  • False Positive Mitigation: While vanilla fingerprints transferred to unrelated models nearly 50% of the time, LTRC-examples showed significantly lower transferability, effectively eliminating false ownership claims.
  • Resilience to Compression: The researchers tested against models pruned by 40% to 95%. Even at 80% pruning, RC and LTRC fingerprints maintained high accuracy, whereas previous "sensitive-sample" methods saw their robustness drop to near zero (0.04%).

Conclusion

This research provides a robust framework for DNN IP protection that balances the need for resilience against model compression with the necessity of avoiding false positives. By leveraging frequency-domain filtering and weight-perturbation during generation, LTRC-examples offer a practical, data-free solution for model fingerprinting. Future work may extend these techniques to other domains such as Natural Language Processing (NLP) and investigate defenses against more complex model transformations like distillation or fine-tuning.

Summary updated

BibTeX
@misc{wang2021high,
  author = {Siyue Wang and Xiao Wang and Pin-Yu Chen and Pu Zhao and Xue Lin},
  title = {{High-Robustness, Low-Transferability Fingerprinting of Neural Networks}},
  year = {2021},
  eprint = {2105.07078},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.07078},
}
Figure