Watermarking Makes Language Models Radioactive
Abstract: We investigate the radioactivity of text generated by LLMs (LLM), i.e. whether it is possible to detect that such synthetic input was used to train a subsequent LLM. Current methods like membership inference or active IP protection either work only in settings where the suspected text is known or do not provide reliable statistical guarantees. We discover that, on the contrary, it is possible to reliably determine if a LLM was trained on synthetic data if that data is output by a watermarked LLM. Our new methods, specialized for radioactivity, detects with a provable confidence weak residuals of the watermark signal in the fine-tuned LLM. We link the radioactivity contamination level to the following properties: the watermark robustness, its proportion in the training set, and the fine-tuning process. For instance, if the suspect model is open-weight, we demonstrate that training on watermarked instructions can be detected with high confidence ($p$-value $< 10{-5}$) even when as little as $5\%$ of training text is watermarked.
- Watermarking GPT outputs, 2023. https://scottaaronson.blog/?m=202302.
- The secret sharer: Evaluating and testing unintended memorization in neural networks, 2019.
- Extracting training data from large language models, 2021.
- Membership inference attacks from first principles. In 2022 IEEE Symposium on Security and Privacy (SP), pages 1897–1914. IEEE, 2022.
- Mark Chen et al. Evaluating large language models trained on code. arXiv, 2021.
- Undetectable watermarks for language models. Cryptology ePrint Archive, 2023.
- Scaling instruction-finetuned language models. arXiv preprint arXiv:2210.11416, 2022.
- Karl Cobbe et al. Training verifiers to solve math word problems. arXiv, 2021.
- Digital watermarking and steganography. Morgan kaufmann, 2007.
- Machine generated text: A comprehensive survey of threat models and detection methods. arXiv preprint arXiv:2210.07321, 2022.
- Qlora: Efficient finetuning of quantized llms. arXiv preprint arXiv:2305.14314, 2023.
- Hierarchical neural story generation. arXiv preprint arXiv:1805.04833, 2018.
- Three bricks to consolidate watermarks for large language models. 2023 IEEE International Workshop on Information Forensics and Security (WIFS), 2023.
- Team Gemini. Gemini: a family of highly capable multimodal models. arXiv preprint arXiv:2312.11805, 2023.
- Time travel in llms: Tracing data contamination in large language models. arXiv preprint arXiv:2308.08493, 2023.
- On the learnability of watermarks for language models. arXiv preprint arXiv:2312.04469, 2023.
- Textbooks are all you need. arXiv preprint arXiv:2306.11644, 2023.
- Protecting intellectual property of language generation apis with lexical watermark. In AAAI, 2022a.
- CATER: Intellectual property protection on text generation APIs via conditional watermarks. In NeurIPS, 2022b.
- Measuring massive multitask language understanding. arXiv preprint arXiv:2009.03300, 2020.
- Membership inference attacks on sequence-to-sequence models: Is my data in your machine translation system? Transactions of the Association for Computational Linguistics, 8:49–63, 2020.
- The curious case of neural text degeneration. arXiv preprint arXiv:1904.09751, 2019.
- Unnatural instructions: Tuning language models with (almost) no human labor. arXiv preprint arXiv:2212.09689, 2022.
- Towards optimal statistical watermarking, 2023.
- Triviaqa: A large scale distantly supervised challenge dataset for reading comprehension. arXiv, 2017.
- Adam: A method for stochastic optimization, 2017.
- A watermark for large language models. arXiv preprint arXiv:2301.10226, 2023a.
- On the reliability of watermarks for large language models, 2023b.
- Robust distortion-free watermarks for language models. arXiv preprint arXiv:2307.15593, 2023.
- Tom Kwiatkowski et al. Natural questions: a benchmark for question answering research. Trans. of the ACL, 7, 2019.
- Protecting intellectual property of large language model-based code generation apis via watermarks. In Proceedings of the 2023 ACM SIGSAC Conference on Computer and Communications Security, pages 2336–2350, 2023.
- SGDR: Stochastic gradient descent with warm restarts. In International Conference on Learning Representations, 2017.
- Membership inference on word embedding and beyond. arXiv preprint arXiv:2106.11384, 2021.
- Frank J Massey. The kolmogorov-smirnov test for goodness of fit. Journal of the American Statistical Association, 46(253):68–78, 1951.
- Orca: Progressive learning from complex explanation traces of gpt-4. arXiv preprint arXiv:2306.02707, 2023.
- Comprehensive privacy analysis of deep learning: Passive and active white-box inference attacks against centralized and federated learning. In 2019 IEEE symposium on security and privacy (SP), pages 739–753. IEEE, 2019.
- Scalable extraction of training data from (production) language models, 2023.
- OpenAI. Gpt-4 technical report. arXiv, 2023.
- Training language models to follow instructions with human feedback. Advances in Neural Information Processing Systems, 35:27730–27744, 2022.
- Instruction tuning with gpt-4. arXiv preprint arXiv:2304.03277, 2023a.
- Are you copying my model? protecting the copyright of large language models for eaas via backdoor watermark. arXiv preprint arXiv:2305.10036, 2023b.
- Language models are unsupervised multitask learners. OpenAI blog, 1(8):9, 2019.
- Greg Roelofs. zlib: A massively spiffy yet delicately unobtrusive compression library. http://www. zlib. net/, 2017.
- D\\\backslash\’ej\\\backslash\a vu: an empirical evaluation of the memorization properties of convnets. arXiv preprint arXiv:1809.06396, 2018.
- White-box vs black-box: Bayes optimal strategies for membership inference. In International Conference on Machine Learning, pages 5558–5567. PMLR, 2019.
- Radioactive data: tracing through training. In International Conference on Machine Learning, pages 8326–8335. PMLR, 2020.
- Detecting pretraining data from large language models. arXiv preprint arXiv:2310.16789, 2023.
- Membership inference attacks against machine learning models, 2017a.
- Membership inference attacks against machine learning models. In 2017 IEEE symposium on security and privacy (SP), pages 3–18. IEEE, 2017b.
- Stanford Alpaca: An instruction-following LLaMA model, 2023.
- Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971, 2023a.
- Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288, 2023b.
- Artificial artificial artificial intelligence: Crowd workers widely use large language models for text production tasks, 2023.
- Imitation attacks and defenses for black-box machine translation systems. In EMNLP, 2020.
- Self-instruct: Aligning language model with self generated instructions. arXiv preprint arXiv:2212.10560, 2022.
- On the importance of difficulty calibration in membership inference attacks. arXiv preprint arXiv:2111.08440, 2021.
- Finetuned language models are zero-shot learners. In International Conference on Learning Representations, 2022.
- Taxonomy of risks posed by language models. In 2022 ACM Conference on Fairness, Accountability, and Transparency, pages 214–229, 2022.
- Baize: An open-source chat model with parameter-efficient tuning on self-chat data. arXiv preprint arXiv:2304.01196, 2023.
- Privacy risk in machine learning: Analyzing the connection to overfitting. In 2018 IEEE 31st computer security foundations symposium (CSF), pages 268–282. IEEE, 2018.
- Protecting language generation models via invisible watermarking. arXiv preprint arXiv:2302.03162, 2023.
Paper Prompts
Sign up for free to create and run prompts on this paper using GPT-5.
Top Community Prompts
Collections
Sign up for free to add this paper to one or more collections.