SEW: Strengthening Robustness of Black-box DNN Watermarking via Specificity Enhancement

Huming Qiu, Mi Zhang, Junjie Sun, Peiyi Chen, Xiaohan Zhang, Min Yang

TL;DR

Black-box DNN watermarking is often defeated because deep networks generalize too well, allowing attackers to reverse-engineer "approximate keys" to erase ownership information. This paper introduces Specificity-Enhanced Watermarking (SEW), a novel framework that trains models to explicitly reject these approximate keys. By drastically narrowing the exploitable key space, SEW provides robust defense against state-of-the-art watermark removal attacks without sacrificing model accuracy.

What Problem Does This Paper Address?

As open-source deep neural networks (DNNs) proliferate, model creators need reliable ways to protect their intellectual property (IP). Black-box watermarking is a popular solution: it embeds a "backdoor" into the model during training so that a specific trigger input (the watermark key) forces the model to output a predictable, deterministic label (the watermark message).

However, because DNNs are excellent at generalization, the exact watermark key isn't the only input that can trigger this behavior. Attackers can use reverse-engineering techniques to discover approximate keys—inputs that look different to humans but trigger the same watermark response in the model. Once an attacker finds an approximate key, they can use unlearning or fine-tuning techniques to force the model to forget the watermark entirely, effectively stealing the IP.

Examples of reverse-engineered approximate keys generated by watermark removal attacks.

The authors tackle this vulnerability by focusing on watermark specificity—the precision of a watermark's response to its key. Traditional watermarking methods ignore specificity, leaving a massive backdoor open for attackers.

Methods

The authors propose Specificity-Enhanced Watermarking (SEW), which consists of two main phases: measuring specificity and embedding the enhanced watermark.

1. Watermark Specificity Measurement

To quantify specificity, the authors calculate a Noise Upper Bound. They iteratively add Gaussian noise to a watermark key until the model's prediction enters a "fuzzy state"—a point where the probability of the target watermark label drops to match the highest probability of any other class. This boundary defines the maximum tolerance of the watermark to perturbations, mapping out the potential existence range for approximate keys.

The process of adding noise to find the fuzzy state boundary.

2. SEW Embedding

During training, SEW optimizes a joint loss function using three distinct datasets:

  • Clean Dataset ($\mathcal{D}$): Standard training samples with true labels to preserve normal model utility.
  • Key Dataset ($\mathcal{D}_t$): Samples containing the original watermark key mapped to the target watermark label.
  • Cover Dataset ($\mathcal{D}_c$): Samples containing approximate keys (generated using the dynamically calculated noise boundary) but mapped to their true, original labels.

By forcing the model to classify approximate keys normally, SEW actively breaks the association between the watermark and any unauthorized substitute keys.

Overview of the SEW framework showing the generation of cover samples and joint training.

Datasets

The authors evaluated SEW across two distinct domains:

  • Computer Vision (CV): Evaluated on CIFAR-10, CIFAR-100, and TinyImageNet using VGG16, ResNet18, and EfficientNet-B3 architectures.
  • Natural Language Processing (NLP): Evaluated on SST-2 (sentiment analysis) and AGNews (topic classification) using BERT and Text-CNN architectures.

Key Insights and Ideas

  • Generalization is a Vulnerability: The very property that makes deep learning powerful—generalization—is what compromises black-box watermarks by creating a massive hypersphere of valid approximate keys around the true key.
  • Negative Training for Backdoors: Instead of just reinforcing the correct key, robust watermarking requires active suppression of nearby approximate keys. Training the model to treat approximate keys as "normal data" shrinks the exploitable key space.
  • Mathematical Shrinkage: By reducing the specificity metric (Spec) on CIFAR-10 from 0.3569 to 0.0364, the authors mathematically demonstrate that the volume of the potential approximate key space decreases by $10^{108}$ orders of magnitude due to the concentration of measure in high-dimensional spaces.

Key Results

SEW was tested against six state-of-the-art watermark removal attacks (including Dehydra, MOTH, FeatureRE, and Neural Cleanse) and achieved outstanding results:

  • Attack Resilience: Against the potent Dehydra attack on CIFAR-10, baseline watermarks saw their Watermark Accuracy (WACC) plummet to under 5%. SEW-Post maintained a 98.67% WACC.
  • No Utility Loss: SEW maintained a Clean Dataset Accuracy (CDA) comparable to clean, unwatermarked models (e.g., 92.79% for SEW vs 93.16% for a clean model on CIFAR-10).
  • Suppression of Reverse-Engineering: As shown below, reverse-engineering tools like Neural Cleanse fail to find meaningful triggers in SEW-enhanced models, yielding keys that look identical to a completely clean model.
Reverse-engineered keys generated by Neural Cleanse, demonstrating SEW's ability to hide the trigger space.

Limitations and Future Work

The primary limitation of SEW is the specificity vs. perturbation resistance trade-off. Because the watermark is engineered to be highly specific to the exact key, adding even a small amount of noise to the legitimate key during ownership verification could cause the verification to fail.

Additionally, while the authors proved generalizability in CV and NLP text classification, they note that future work should extend evaluations to other complex modalities like recommendation systems and time-series analysis.

Summary updated

BibTeX
@inproceedings{qiu2026sew,
  author = {Huming Qiu and Mi Zhang and Junjie Sun and Peiyi Chen and Xiaohan Zhang and Min Yang},
  title = {{SEW: Strengthening Robustness of Black-box DNN Watermarking via Specificity Enhancement}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2026},
  doi = {10.1145/3770854.3780272},
}
Figure