arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.10892cs.CRcs.CLcs.LG
收藏

通过数据水印证明作品属于LLM预训练数据

Proving membership in LLM pretraining data via data watermarks

University of Southern California(南加利福尼亚大学)

Johnny Tian-Zheng Wei, Ryan Yixiang Wang, Robin Jia

AI总结:

本研究针对LLM预训练数据的版权检测问题,提出基于数据水印的黑盒检测方法,通过假设检验保障误检率,分析了水印设计与规模扩展对检测效果的影响,并验证了SHA哈希作为天然水印的检测能力。

摘要:

检测版权持有者的作品是否被用于大语言模型(LLM)预训练,即将成为一个重要问题。本研究提出使用数据水印,在仅能黑盒访问模型的前提下实现有理论依据的检测,前提是权利方提供了多份训练文档并在公开发布前为其添加水印。通过应用随机采样的数据水印,检测可被构建为假设检验问题,从而为误检率提供理论保障。我们研究了两种水印方案:一种是插入随机序列,另一种是用Unicode外观相似字符随机替换原字符。我们首先揭示了水印设计的三个维度——水印长度、重复次数和干扰因素——如何影响假设检验的检验效能。随后,我们研究了水印检测强度在模型和数据集规模扩展下的变化规律:尽管增大数据集规模会削弱水印强度,但如果同时提升模型规模,水印仍能保持较强的检测效果。最后,我们将SHA哈希视为天然水印,并证明只要哈希在BLOOM-176B的训练数据中出现至少90次,我们就能稳健地检测到这些哈希。综上,我们的研究结果表明数据水印在实际应用中具有广阔前景。

英文摘要:

Detecting whether copyright holders' works were used in LLM pretraining is poised to be an important problem. This work proposes using data watermarks to enable principled detection with only black-box model access, provided that the rightholder contributed multiple training documents and watermarked them before public release. By applying a randomly sampled data watermark, detection can be framed as hypothesis testing, which provides guarantees on the false detection rate. We study two watermarks: one that inserts random sequences, and another that randomly substitutes characters with Unicode lookalikes. We first show how three aspects of watermark design -- watermark length, number of duplications, and interference -- affect the power of the hypothesis test. Next, we study how a watermark's detection strength changes under model and dataset scaling: while increasing the dataset size decreases the strength of the watermark, watermarks remain strong if the model size also increases. Finally, we view SHA hashes as natural watermarks and show that we can robustly detect hashes from BLOOM-176B's training data, as long as they occurred at least 90 times. Together, our results point towards a promising future for data watermarks in real world use.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑