undetectable watermark
termKept in this browser · My desk
A watermark in a generative model's output such that, without the secret key, no efficient test can distinguish marked outputs from the original model's, even after many adaptively chosen queries; the watermark counterpart of secure steganography.
Christ, Gunn and Zamir (2023) defined the notion and built a scheme from one-way functions that embeds only after enough empirical entropy has accumulated. Christ and Gunn's pseudorandom error-correcting codes (2024) made it robust to cropping and a constant rate of edits and also gave a robust stateless steganography scheme; Gunn, Zhao and Song applied the codes to diffusion models, robustly carrying 512 bits.
The definition. Miranda Christ, Sam Gunn and Or Zamir, of Columbia University, the University of California, Berkeley and Princeton University, defined the notion in 2023 by three properties. Undetectability: without the secret key it is computationally infeasible to distinguish the watermarked model from the original, even for a user who makes many adaptively chosen queries, so the quality of generated text is identical. Completeness: the key detects responses from the watermarked model whenever enough randomness went into them, even from a contiguous substring, with no other information. Soundness: text generated independently of the key has only a negligible chance of being flagged. A secret key is necessary, since otherwise the first two properties would contradict each other, but it may be published; undetectability then still guarantees unchanged quality for every use that does not involve the key. They noted that porting the security definition of steganography to the watermark setting yields exactly this notion.
How the construction works. The scheme is built from one-way functions. It reduces generation to a binary alphabet and tracks the empirical entropy of the output so far, the negative logarithm of the probability of what was actually sampled, which on average equals the entropy of the distribution. Until enough empirical entropy has accumulated it samples honestly; then it uses the text so far as a seed for a pseudorandom function (PRF) that biases the following tokens in a way only the key holder can check. This is where watermarking differs from steganography: a stegosystem has only oracle access to the channel and cannot know when enough entropy has passed, whereas a watermarking algorithm sees each token's full distribution. The authors also showed that conditioning on empirical entropy is necessary, and proved that, under certain assumptions, no undetectable watermark can be completely unremovable.
Stronger than distortion-free. Scott Aaronson, then working at OpenAI, described in November 2022 a scheme that picks each token with a cryptographic pseudorandom function whose key only OpenAI would know, so that the choice would look uniformly random to anyone without it; a prototype by Hendrik Kirchner needed a few hundred tokens for a reasonable signal. Rohith Kuditipudi, John Thickstun, Tatsunori Hashimoto and Percy Liang formalized exponential minimum sampling, which picks the token minimizing −log(ξi)/μ(i) for a keyed vector ξ, and on OPT-1.3B and LLaMA-7B detected its mark from 35 tokens even after random edits to 40 to 50% of them. Such schemes are distortion-free: averaged over the key, the output has exactly the model's distribution. Undetectability is stronger, because it must hold for one fixed key against a distinguisher that sees many outputs.
Robustness and images. Christ and Gunn's pseudorandom error-correcting codes (2024), whose codewords look random to any efficient adversary but decode with a key, gave an undetectable watermark robust to cropping and to a constant rate of random substitutions and deletions, and also the first stateless steganography scheme with provable security and robustness. Gunn, Xuandong Zhao and Dawn Song placed such codewords in the initial latents of a diffusion model, the first undetectable watermark for generative image models, carrying 512 bits robustly and up to 2,500 without attacks, with no measured loss of image quality. Jaiden Fairoze and five colleagues made detection public: their scheme embeds a publicly verifiable digital signature by rejection sampling, so that anyone can detect the mark, the signatures are unforgeable, text remains undetectable to anyone without the public key, and error correction carries the signature across low-entropy stretches.
In production. Google DeepMind's SynthID-Text, published in Nature on 23 October 2024, chooses tokens by tournament sampling over 30 layers of keyed scoring functions, can be configured as non-distortionary or distortionary, and has watermarked Gemini and Gemini Advanced; a live experiment on nearly 20 million Gemini responses found no loss of quality, according to its authors. Its non-distortionary setting holds for a single sequence and slightly reduces diversity across responses, which is weaker than cryptographic undetectability. The paper lists its own limits: low-entropy prompts, open models that need not mark, and stealing, spoofing, scrubbing and paraphrasing. Hugging Face Transformers includes it as SynthIDTextWatermarkLogitsProcessor.
What it does not buy. Undetectability protects quality, not the mark: Christ, Gunn and Zamir record that their scheme, Kirchenbauer's and Aaronson's are all vulnerable to simple attacks such as the emoji attack, and Hanlin Zhang and colleagues proved that strong watermarking is impossible against attackers with quality and perturbation oracles. A multi-bit undetectable watermark is functionally a steganographic channel run by the model provider, which is why the same mathematics appears in provably secure steganography. Neighbours: AI (artificial intelligence) watermarking, green-list watermark, digital watermarking, provably secure steganography.
Also known as: cryptographically undetectable watermark, pseudorandom-code watermark, marca d'água indetectável
Sources
- Miranda Christ, Sam Gunn and Or Zamir, Undetectable Watermarks for Language Models, arXiv 2306.09194 (read 2026-11-23): without the key, computationally intractable to distinguish from the original model, even under adaptive prompts; built from one-way functions
- Christ, Gunn and Zamir, full text (read 2026-11-23): porting the steganographic definition gives undetectability; empirical entropy; vulnerability to the emoji attack
- Miranda Christ and Sam Gunn, Pseudorandom Error-Correcting Codes, Cryptology ePrint Archive 2024/235 (read 2026-11-23): undetectable watermark robust to cropping and a constant rate of substitutions and deletions; first stateless steganography with provable security and robustness
- Sam Gunn, Xuandong Zhao and Dawn Song, An Undetectable Watermark for Generative Image Models, arXiv 2410.07369 (read 2026-11-23): initial diffusion latents from a pseudorandom code; 512 bits robustly, 2,500 without attacks
- Rohith Kuditipudi, John Thickstun, Tatsunori Hashimoto and Percy Liang, Robust Distortion-free Watermarks for Language Models, arXiv 2307.15593, full text (read 2026-11-23): exponential minimum sampling, distortion-free on average over the key (a weaker property)
- Sumanth Dathathri, Abigail See and co-authors, Google DeepMind, Scalable watermarking for identifying large language model outputs, Nature 634, 818 to 823, published 23 October 2024 (read 2026-11-23): SynthID-Text with Tournament sampling, generally m = 30 layers; configurable as non-distortionary or distortionary; the single-sequence non-distortionary setting slightly reduces inter-response diversity; a live experiment over nearly 20 million Gemini responses; used to watermark Gemini and Gemini Advanced; limits include low entropy, open-source models, stealing, spoofing, scrubbing and paraphrasing
- Jaiden Fairoze, Sanjam Garg, Somesh Jha, Saeed Mahloujifar, Mohammad Mahmoody and Mingyuan Wang, Publicly-Detectable Watermarking for Language Models, Cryptology ePrint Archive 2023/1661, IACR CiC 2024 (read 2026-11-23): detection holds no secret and anyone can run it; a publicly verifiable signature embedded by rejection sampling; unforgeable; distortion-free, undetectable without the public key; error correction for low-entropy periods
- Scott Aaronson, My AI Safety Lecture for UT Effective Altruism, Shtetl-Optimized, 28 November 2022 (read 2026-11-23): tokens selected pseudorandomly with a cryptographic pseudorandom function whose key is known only to OpenAI; a prototype by Hendrik Kirchner needed a few hundred tokens for a reasonable signal
- Rohith Kuditipudi, John Thickstun, Tatsunori Hashimoto and Percy Liang, Robust Distortion-free Watermarks for Language Models, arXiv 2307.15593, abstract (read 2026-11-23): on OPT-1.3B and LLaMA-7B watermarked text reliably detected (p at most 0.01) from 35 tokens even after corrupting 40 to 50% of the tokens by random edits
- Hanlin Zhang, Benjamin L. Edelman, Danilo Francati, Daniele Venturi, Giuseppe Ateniese and Boaz Barak, Watermarks in the Sand: Impossibility of Strong Watermarking for Generative Models, arXiv 2311.04378 (read 2026-11-23): strong watermarking impossible for attackers with a quality oracle and a perturbation oracle; three text schemes removed with minor quality degradation
- Hugging Face, Transformers documentation, Utilities for Generation, SynthIDTextWatermarkLogitsProcessor (read 2026-11-23): SynthID text watermarking as a logits processor with ngram_len and one key per tournament depth; cites the Nature paper