Introduction
Training state-of-the-art deep neural networks (DNNs) is an expensive endeavor, often requiring thousands of GPU hours and massive datasets. To protect this intellectual property, researchers have turned to digital watermarking. However, most current watermarking schemes suffer from a fatal flaw: they are vulnerable to "piracy attacks," where an attacker embeds their own watermark into an already-protected model to dispute ownership.
Researchers from the University of Chicago propose Null Embedding, a novel watermarking framework designed specifically to be "piracy-resistant" by tying the watermark directly to the model's core classification functionality.
The Vulnerability of Existing Watermarks
As "Machine Learning as a Service" (MLaaS) and model licensing become common, owners need a way to prove a model belongs to them. Existing watermarks, which usually rely on fine-tuning a model to respond to specific "trigger" inputs, are easily defeated by piracy attacks. Because DNNs are designed for incremental training, an attacker can take a watermarked model and perform additional training to embed their own "valid" watermark. If a model contains two watermarks, current methods have no way to prevent this "second-comer" from claiming ownership without degrading the model's performance.
Proposed Method: Null Embedding
The core innovation is Null Embedding. Unlike traditional watermarks added after a model is trained, null embedding is a constraint imposed during the initial optimization process.
- The Constraint: The owner generates a watermark pattern $p$ (a bit string) using their private RSA key and a hash function (SHA256). This pattern is converted into a "filter" of black and white pixels.
- Null Embedding: During training, the model is forced to satisfy a specific condition: applying an extreme version of this filter (using a very large value $\lambda$) to any input $x$ must not change the model's output. Formally: $F_\theta(x \oplus [p, \lambda]) = F_\theta(x) = y$.
- Dual Embedding: To prevent false positives, the authors combine Null Embedding with True Embedding. While the "null" part ensures the model ignores the pattern $p$, the "true" part acts like a traditional backdoor: if the model sees the inverse of the pattern $inv(p)$, it must output a specific "owner" label $y_W$.
By baking this into the initial training, the model's optimization landscape is projected into a specific sub-area. If an attacker tries to add a new pirate watermark later, they create a conflict in this landscape. To learn the new mark, the model must "unlearn" its original classification rules, causing its accuracy to plummet.
Experimental Evaluation
The authors evaluated their method across six diverse classification tasks: MNIST, YTFaces, GTSRB, CIFAR-10, SSCD (Speech), WISDM (Accelerometer), and LISA (Transfer Learning).
Key Results
- Effectiveness against Piracy: In tests against existing state-of-the-art watermarks, attackers could embed pirate marks with 100% accuracy without hurting the model. With Null Embedding, any attempt to reach even 30% pirate watermark accuracy caused the model's normal classification accuracy to drop from ~90% to ~20% (random guess levels).
- Low Overhead: Adding the watermark only increased training time by about 15% and had a negligible impact on model accuracy (a minor drop of about 0.6%).
- Robustness: The watermark survived standard model modifications, including fine-tuning, neuron pruning (up to 60-90%), and model compression.
Discussion and Limitations
The paper highlights that piracy resistance is fundamentally at odds with incremental training. If it is easy for the owner to add a mark, it is easy for the pirate. Null Embedding removes the economic incentive for piracy by requiring roughly 10x more computation to embed a pirate mark than training from scratch.
However, the method has limitations:
- Initial Training Only: The watermark must be part of the model's "birth" and cannot be added post-hoc.
- Model Extraction: While robust against many attacks, model extraction remains a challenge, though it is computationally expensive.
- Scaling: Experiments were conducted on relatively small architectures; further work is needed for ImageNet-scale models.
Conclusion
Null Embedding provides a robust defense against piracy attacks by making the watermark an integral part of the model's functionality. By forcing a trade-off between pirate watermark accuracy and primary task performance, it ensures that stolen intellectual property remains protected and unforgeable.
Summary updated