Anthropic's Invisible AI Text Watermarking and the KGW Algorithm Behind It
Platform-level AI text watermarking is shifting from research to product. If Anthropic ships KGW-style statistical watermarking, every Claude output carries a detectable provenance signal that persists through copy-paste — but the same technique breaks under heavy editing or short snippets, and a removal industry is already forming.
Anthropic plans to embed an invisible, machine-only watermark into text generated by Claude models released after August 2. The watermark survives copy-paste and light editing without degrading readability. The company's description closely matches two existing approaches: zero-width character watermarks and LLM statistical semantic watermarks.
The more sophisticated method, detailed in the Kirchenbauer 2023 KGW algorithm, never modifies literal text. Instead, it splits the model's vocabulary into a Green List and a Red List at each generation step using a hashed seed, then adds a small bias to Green List token scores. This nudges the model toward Green words, creating a statistical fingerprint detectable via a Z-test without any human-perceptible change in output quality.
A Python demo included in the post simulates the KGW algorithm end-to-end, showing how a Z-score above 3 reliably flags watermarked text while human rewrites of just a few tokens collapse the signal. The technique struggles with very short text, heavily edited passages, and languages with complex semantics like Chinese, where synonym substitution can subtly distort meaning.
Anthropic's announcement validates statistical watermarking as the likely production path over zero-width characters, since it requires no text modification and leaves no visible artifacts.
The KGW approach creates an inherent tension: stronger watermark signals (higher DELTA) improve detection but risk degrading output quality, especially in languages where synonym choices carry different connotations.
Watermarking only future outputs means the entire corpus of pre-August-2025 AI text remains unmarked, limiting the technique's usefulness for historical provenance.
A removal industry springing up before the watermark even ships suggests the detection arms race will follow the same pattern as ad-blocking and CAPTCHA solving.