How large language models write
AI models don’t “think.” They predict.
Here’s an example. If you take out your iPhone, open your messaging app and type this:
Tomorrow I will go to the _______
You’ll notice that before you’ve finished the sentence, your phone suggests three words, such as:
gym I store I hospital
The app makes predictions based on its training data. Right now, it predicts that one of these three options is highly probable to go next.
AI works the same way. It’s predicting what will likely go next. Yet unlike your messaging app, it has to decide on its own.
To do this, it lays out all words that could reasonably go next based on its training data. Each word has a probability attached to it, based on how well the AI predicts the options will fit. Then, the AI chooses a word at random based on these probabilities.
It’s a little bit like when, in school, you were asked, “If there are 3 red marbles, 4 blue marbles and 5 green marbles in a bag, what’s the probability of pulling a blue marble out without looking?”
Here’s an example of how the word decision happens. Let’s say you asked an AI model for a one-sentence story about fishing, and the model gave you this sentence:
The old man’s rod bent sharply as the bass fought against the line.
The model ultimately chose “sharply” here as the word. Not because it was the only word that worked here. Instead, it was randomly selected out of a “bag of marbles” — a pool of words that were all highly probable options.
The choices might have looked like this:
How the watermark works
Claude’s watermark works by reducing randomness in word choice. The model takes advantage of its ability to say one idea in 1,000 ways to insert intricate word choice patterns.
To see this in action, let’s pretend we asked Claude to tell us what the greatest food in the world is. It responds:
Pizza is one of the most satisfying foods there is — crispy crust, gooey cheese, and endless topping combos.
Claude could have easily sewn its watermark into at least one word choice here. Let’s say it was the word “satisfying.”
There are multiple words that could replace “satisfying” here without changing the essence of the sentence. Before the watermark was deployed, Claude would have chosen from these options at random based on each word’s likeliness to fit here, like in our previous example. Here’s what the choice might have looked like:
Words that could go next
Probability the word goes next
Delicious
21%
Fulfilling
19%
Satisfying
17%
Gratifying
14%
Wonderful
12%
Delightful
7%
Comforting
7%
Amazing
3%
But now with the watermark, this word choice decision has changed.
Claude won’t randomly select an option, while respecting each word’s likeliness of going next.
There is no blindly reaching into the “bag of marbles.”
Instead, Claude will be biased. And biased in a way that people will never notice. It’s going to take advantage of its ability to communicate one idea in 1,000 different ways, all without telling us its method.
Essentially, Claude is implementing its watermark by “dyeing” some word choices blue and others red. The blue words will appear more, and the red words will appear less. A high ratio of blue words to red words indicates the watermark.
To see an example of how this might work in action, let’s pretend we can pop open the hood on Anthropic’s watermark and look at how it affects our pizza sentence.
Instead of the old choice, we might see Claude faced with a choice like this:
Words that could go next
Old probability that the word goes next
New probability that the word goes next
Change in how often the word appears
Delicious
21%
8%
-61.9%
Fulfilling
19%
7%
-63.2%
Satisfying
17%
27%
+58.8%
Gratifying
14%
23%
+64.3%
Wonderful
12%
5%
-58.3%
Delightful
7%
13%
+85.7%
Comforting
7%
12%
+71.4%
Amazing
3%
5%
+66.7%
Now, Claude is biased heavily towards choosing blue words in this context.
A high proportion of blue words to red words in an extended sample makes it clear to Anthropic’s scanner: Claude wrote this text.
Like drawing blackjack 50% of the time at the casino, it’s extremely unlikely for a human to “draw” blue words at such a high rate. There are just too many other card combinations – or in this case, word choices – that a human writer would naturally choose from instead.
Meanwhile, what’s “blue” and what’s “red” stays hidden from us, and won’t be detectable.
The watermark isn’t as simple as Claude pushing a word like “satisfying” all the time. The words that are dyed blue and red are probably changing across contexts, in line with some extremely complicated formula that we need Anthropic’s scanner to decode. For us, it’s untraceable, because all the words look normal; but for the scanner, the watermark looks very visible, because it can see blue and red.
Here’s an example.
Let’s say that you asked Claude to write a novel, and it began writing this:
The sky turned a brilliant shade of amber as the sun sank below the horizon, casting long shadows across the field while a cool breeze swept through the grass.
Here, there are multiple opportunities to weave in the watermark. For example:
The sky turned a brilliant shade of amber as the sun sank below the horizon, casting long shadows across the field while a cool breeze swept through the grass.
Here, 80% of dyed words are blue. Notice that each blue word doesn’t seem out of place; however, they all have at least one close, common replacement that a human might have used instead.
With so many synonyms available, the chance of a human choosing all these blue words at such a high rate is unlikely.
It’s an early indicator that Claude may have written this. A larger sample would be needed to confirm.
This shows why Claude’s watermark is so hard to remove.
We don’t know which words to look for.