Provable Watermarking for Data Poisoning Attacks

Yifan Zhu, Lijia Yu, Xiao-Shan Gao · DOI

Introduction

Data poisoning has traditionally been viewed as a malicious threat where subtle perturbations to training data cause machine learning models to fail or exhibit backdoored behavior. However, a paradigm shift has occurred with the emergence of "poisoning for good." Tools like NightShade and Glaze empower creators to protect their intellectual property by poisoning datasets to prevent unauthorized training by generative AI models.

Despite its benefits, this defensive poisoning lacks transparency. Unintentional training on protected data can lead to degraded model performance and technical friction. Current detection methods are often heuristic and attack-specific. This paper addresses this gap by introducing two provable watermarking schemes—post-poisoning and poisoning-concurrent—allowing data creators to signal the presence of poisoning without compromising the attack's efficacy.

Methodology

The proposed framework utilizes watermarking to embed a hidden, verifiable signal into data. Two primary implementation strategies are explored:

  1. Post-Poisoning Watermarking: A third party applies watermarks to an already poisoned dataset. This is ideal for scenarios where the data owner and protection provider are distinct entities.
  2. Poisoning-Concurrent Watermarking: The poison generator simultaneously embeds the watermark and the poisoning signal. To prevent interference, these signals are embedded in separate dimensions.

Detection and Theoretical Guarantees

Detection relies on a simple yet robust mechanism: authorized users possess a secret $d$-dimensional key ($\zeta$). By calculating the inner product ($\zeta^T x$) of a data point, the presence of a watermark is confirmed if the value exceeds a predefined threshold.

The authors provide rigorous theoretical foundations using McDiarmid’s Inequality and VC-dimension theory. They establish bounds for the watermarking length ($q$) necessary to ensure detectability while maintaining the poison's impact on the target model. Specifically, they prove that a universal watermark (a single key for the entire dataset) is effective for the majority of samples and generalizes well across the data distribution.

Experimental Results

The approach was validated across diverse domains, including image (CIFAR-10, CIFAR-100, Tiny-ImageNet) and text (SST-2) datasets, using various architectures such as ResNet, VGG, and ViT. The study evaluated two backdoor attacks (Narcissus and AdvSc) and two availability attacks (UE and AP).

Performance and Trade-offs

As shown in Figure 1, the effectiveness of the system is highly dependent on the watermarking length ($q$).

Key observations from the experimental data include:

  • Detection Accuracy: The AUROC for detection consistently reaches 1.0 as the watermarking length $q$ increases, typically achieving perfect distinguishability by $q=1500$ or $2000$.
  • Attack Integrity: In the post-poisoning scenario, the Attack Success Rate (ASR) remains high (often >90%), demonstrating that watermarking does not significantly degrade the poison's effectiveness.
  • Concurrent Sensitivity: The concurrent scheme exhibits a "Goldilocks zone." While detection improves with length, excessive length can "overpower" the poison. For instance, in the Narcissus attack, the ASR drops from 80.60% at $q=1500$ to 22.46% at $q=2000$.

Conclusion

This work provides a provable framework for making data poisoning transparent. By establishing theoretical bounds and demonstrating empirical success, the authors show that watermarking can effectively signal data protection without undermining its utility. Future work will explore necessary conditions for provable watermarking and designs robust against adaptive adversaries attempting watermark removal.

Summary updated

BibTeX
@inproceedings{zhu2025provable,
  author = {Yifan Zhu and Lijia Yu and Xiao-Shan Gao},
  title = {{Provable Watermarking for Data Poisoning Attacks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=qj8y1MjzLk},
}
Figure