Scalable watermarking for identifying large language model outputs

Sumanth Dathathri,Abigail See,Sumedh Ghaisas,Po-Sen Huang,Rob McAdam,Johannes Welbl,Vandana Bachani,Alex Kaskasoli,Robert Stanforth,Tatiana Matejovicova,Jamie Hayes,Nidhi Vyas,Majd Al Merey,Jonah Brown-Cohen,Rudy Bunel,Borja Balle,Taylan Cemgil,Zahra Ahmed,Kitty Stacpoole,Ilia Shumailov,Ciprian Baetu,Sven Gowal,Demis Hassabis,Pushmeet Kohli
DOI: https://doi.org/10.1038/s41586-024-08025-4
IF: 64.8
2024-10-24
Nature
Abstract:Large language models (LLMs) have enabled the generation of high-quality synthetic text, often indistinguishable from human-written content, at a scale that can markedly affect the nature of the information ecosystem 1,2,3 . Watermarking can help identify synthetic text and limit accidental or deliberate misuse 4 , but has not been adopted in production systems owing to stringent quality, detectability and computational efficiency requirements. Here we describe SynthID-Text, a production-ready text watermarking scheme that preserves text quality and enables high detection accuracy, with minimal latency overhead. SynthID-Text does not affect LLM training and modifies only the sampling procedure; watermark detection is computationally efficient, without using the underlying LLM. To enable watermarking at scale, we develop an algorithm integrating watermarking with speculative sampling, an efficiency technique frequently used in production systems 5 . Evaluations across multiple LLMs empirically show that SynthID-Text provides improved detectability over comparable methods, and standard benchmarks and human side-by-side ratings indicate no change in LLM capabilities. To demonstrate the feasibility of watermarking in large-scale-production systems, we conducted a live experiment that assessed feedback from nearly 20 million Gemini 6 responses, again confirming the preservation of text quality. We hope that the availability of SynthID-Text 7 will facilitate further development of watermarking and responsible use of LLM systems.
multidisciplinary sciences
What problem does this paper attempt to address?