
▲ 54 r/compsci
AI watermarking makes a lot more sense for text than it does for code
I came across this explanation of AI watermarking and the part about code caught my attention.
Watermarking works better when there are multiple ways to say the same thing. But code is different. If a model needs to output something exact, changing the next token isn't always an option without potentially breaking the code.
There are still places where a watermark could be added, like comments or other non-essential text, but it seems much harder to watermark the actual code without affecting what it does.
I hadn't really thought about the difference between watermarking AI-generated text and AI-generated code before.
Do you think AI-generated code should be watermarked, or is it better to leave code alone?
u/manojxrao — 5 days ago