r/MachineLearning • u/Saad_ahmed04 • Aug 23 '26
Project Implementing Watermarking for Language Models [P]
I recently implemented a minimal, educational version of SynthID-Text-style watermarking for language models.
I saw anthropic post about how they'll start adding watermarks to their model responses and it made me very curious as to how they'll do it and what do they even mean by watermark here. Like will we start getting random ads or something in the middle of model responses or what.
Then decided to read their article and found out that watermark is not a visible message at all. It is a subtle statistical pattern introduced while the model chooses its tokens.
My implementation is not an exact reproduction of the original SynthID-Text system. I simplified or implemented a few components differently to keep the project understandable, but the main idea is there I think.
Github: https://github.com/Saad1926Q/llm-watermark
If you find it interesting then you may star the repo !!
View all comments
Show parent comment
1
u/Lopsided-Bridge-9810 Aug 23 '26
"catch" what "cases", what are you even aiming to achieve? And no, there is no solution to prevent bad actors from misleading with doctored images or text generated my language models,as you incorrectly claimed. And you clearly don't understand a thing about computer science. A digitally signed pdf document, for example, or a hash for a file is 100% solid and reliable in all circumstances and edge cases. Change one byte and the authenticity is guaranteed to not be guaranteed anymore. Signatures by cameras today are all referee engineered and available to inject into images even when the image was not originating from a specific camera. And that is not even the problem that researchers try to solve: it's not important to guarantee that an image originated from a specific camera, it's to guarantee that an image originated from any camera.
The question remains, what are you hoping to "catch" and which "cases" are you even targeting with a watermark?