How Claudes Text Watermarking Works @SebastianRaschka
How Claudes Text Watermarking Works  @SebastianRaschka
Uploaded August 2026 | Updated September 2026, 2 weeks ago
Link to transcript: magazine.sebastianraschka.com/p/claude-watermarking
Link to the slides: sebastianraschka.com/pdf/slides/2026-08-18-claude-watermarking.pdf

This video explains how Anthropic's text watermarking for Claude works. In particular, it explains how the next-token sampling process in LLMs work, and how this is modified to implement the watermarking technique. A thorough understanding of the watermarking is useful because it helps us understand the implementation shortcomings as well.

0:00 How Claude's Text Watermarking Works
5:38 How LLM Text Generation Works
11:39 How Next-Token Sampling Works
16:19 From Sampling to Watermarking
18:23 Random Seeds and Deterministic Sampling
20:03 How the Watermarking Key Works
24:45 Where the Watermark Is Applied
26:13 How Watermark Detection Works
28:00 How to Remove a Watermark
30:17 How the Watermark Scoring Function Works
31:18 SynthID Text and Tournament Sampling
34:33 Random Watermarking Functions
36:36 Tournament Sampling Step by Step
39:18 Detecting Watermarks Without Rerunning the LLM
43:26 Watermarking Summary and Limitations
44:34 What This Means for AI-Generated Text
47:13 Final Thoughts

Check out my website for more articles and resources on LLMs: sebastianraschka.com
How Claudes Text Watermarking WorksDesigning Generative Adversarial Networks for Privacy-enhanced Face Recognition (Conference rec.)L2.3 The Origins of Deep LearningL19.5.1 The Transformer ArchitectureL11.4 Why BatchNorm WorksL10.4 L2 Regularization for Neural NetsL13.9.2 Saving and Loading Models in PyTorchReinforcement Learning with Human Feedback (RLHF) in 4 minutesL19.5.2.5 GPT-v3: Language Models are Few-Shot LearnersL13.5 Whats The Difference Between Cross-Correlation And Convolution?L11.0 Input Normalization and Weight Initialization   Lecture OverviewBuild an LLM from Scratch 1: Set up your code environment
Sebastian Raschka |

How Claude's Text Watermarking Works

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER