[Paper Review] Entangled Watermarks as a Defense against Model Extraction
Introduces Entangled Watermark Embedding (EWE) which entangles watermark signals with task representations using soft nearest neighbor loss to robustly defend against model extraction.
Machine learning involves expensive data collection and training procedures. Model owners may be concerned that valuable intellectual property can be leaked if adversaries mount model extraction attacks. As it is difficult to defend against model extraction without sacrificing significant prediction accuracy, watermarking instead leverages unused model capacity to have the model overfit to outlier input-output pairs. Such pairs are watermarks, which are not sampled from the task distribution and are only known to the defender. The defender then demonstrates knowledge of the input-output pairs to claim ownership of the model at inference. The effectiveness of watermarks remains limited because they are distinct from the task distribution and can thus be easily removed through compression or other forms of knowledge transfer. We introduce Entangled Watermarking Embeddings (EWE). Our approach encourages the model to learn features for classifying data that is sampled from the task distribution and data that encodes watermarks. An adversary attempting to remove watermarks that are entangled with legitimate data is also forced to sacrifice performance on legitimate data. Experiments on MNIST, Fashion-MNIST, CIFAR-10, and Speech Commands validate that the defender can claim model ownership with 95\% confidence with less than 100 queries to the stolen copy, at a modest cost below 0.81 percentage points on average in the defended model's performance.
Motivation & Objective
- Identify limitations of existing watermarking where watermarks are learned separately from the task.
- Propose Entangled Watermark Embedding (EWE) to entangle watermarks with task representations.
- Quantify trade-offs between model utility and watermark robustness across datasets.
- Demonstrate Wassermark robustness against extraction and backdoors across vision and audio tasks.
Proposed method
- Use soft nearest neighbor loss (SNNL) to measure and enforce entanglement between task data and watermark data.
- Generate watermarked inputs by selecting a watermarking distribution and a trigger, then perturb inputs to optimize semantic separation and entanglement.
- Train with a combined loss: L = L_CE - kappa * sum_l SNNL([X_w^(l), X_cT^(l)], Y', T^(l)).
- Interleave standard task data batches with watermarked data batches during training.
- Tune a temperature schedule T^(l) during training to control entanglement strength.
- Evaluate ownership verification via hypothesis testing and quantify watermark robustness under extraction and retraining.
Experimental results
Research questions
- RQ1Can watermarks survive model extraction when they are entangled with the task manifold?
- RQ2Does entangling watermarks with the task data via SNNL improve ownership verification with fewer queries?
- RQ3What is the impact of EWE on model utility across standard benchmarks?
- RQ4How well does EWE scale to deeper architectures and diverse modalities (vision and audio)?
Key findings
- EWE improves watermark robustness: higher watermark success rates after extraction compared to baseline across datasets.
- Ownership verification requires fewer queries to claim ownership with 95% confidence when using EWE (often around 30–100 queries depending on setup).
- EWE achieves watermark success rates averaging around 38.39% (range 18.74%–60%), versus baseline 0.3%–9% (avg 5.77%).
- Watermarks remain robust with minimal degradation to validation accuracy (average ~0.81 percentage points; max ~3).
- Entanglement increases representation similarity between watermarked and legitimate data (higher CKA) and results in overlapping activation patterns, reducing easy separation of watermarks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.