Watermarking can weaken hallucination checks for API users
According to a preprint, SynthID and GumbelSoft watermarks made samples generated with the same key repeat one another. Detection recovered when the model began each sample with a different random string.
In a preprint published on arXiv on 3 December, Mohit Singh Chauhan and Dylan Bouchard examine how text watermarking affects hallucination detection. Uncertainty scorers give a large language model’s answer a confidence score. They calculate it from, for example, token probabilities or whether the answer stays the same when the question is asked again.
Watermarking steers token selection with pseudorandom numbers computed from a secret key and the preceding tokens. When samples are generated with the same key, SynthID and GumbelSoft watermarks make the answers start repeating one another. The model then looks consistent even when it is wrong. Under SynthID, 64–85 per cent of samples were identical to the original answer, compared with 20–52 per cent without a watermark.
Averaged over five open-weight models and four short-answer datasets, SynthID and GumbelSoft lowered the AUROC of self-consistency scorers by 0.10–0.15. For scorers that use watermarked probabilities, AUROC fell by 0.05–0.09. AUROC shows how well scores separate correct answers from incorrect ones: a value of 0.5 equals guessing. KGW and DiPmark watermarks had little effect on these scorers.
The loss is not an inevitable result of watermarking. When scores were computed from unwatermarked probabilities, or each sample was generated with a new key, results stayed nearly unchanged. Only those who run the model themselves can use these fixes, however. An API user cannot change the key, and it is not publicly known whether providers reuse the same key.
For API users, the authors propose echoed salt. The prompt asks the model to begin each sample with a different random string, which is removed before scoring. A different opening also changes the pseudorandom numbers. Further experiments on two models indicated that a single-token salt is enough, as long as the model repeats it and each sample has its own salt. With open-weight models, the scorers recovered to within 0.014 of the unwatermarked level. The table shows one example: semantic entropy, which measures differences in meaning between samples.
| Samples | AUROC |
|---|---|
| No watermark | 0.838 |
| SynthID, same key | 0.671 |
| SynthID, echoed salt | 0.841 |
| SynthID, new key for each sample | 0.835 |
Semantic entropy on TriviaQA, averaged over five models. With this combination of dataset and watermark, the same key weakened the result more than with the others. Figures are from the preprint.
The average hides variation. On GSM-Plus maths problems, one model’s result with salt differed from the unwatermarked result by as much as 0.152.
The GPT-6-luna and Grok-4.20 APIs let users switch the watermark on or off. OpenAI says its API watermark is based on textGrain, and xAI says Grok-4.20 uses SynthID Text. On these services, the watermark lowered the AUROC of self-consistency scorers by 0.024–0.042 on average, and according to the preprint, salt reversed the loss. The abstract shown on arXiv Science says salt recovered only most of the loss. Neither company has published its key-management practices, the authors said.
Salt works only if the model repeats the string. On TriviaQA questions, Llama-3.1-8B did so in only 78 per cent of samples at worst. On long biographies, salt fixed only part of the loss. The authors did not test salt on the P(True) scorer, in which the model judges whether its own answer is correct. DiPmark, SynthID and GumbelSoft weakened this scorer when it was computed from watermarked probabilities. All answers were generated at temperature 1, and the authors said a lower temperature may change the size of the effects.
The code is on GitHub under the Apache 2.0 licence. The generation experiments require a GPU.
Read more: Models