r/AskComputerScience • u/NebulaDragon32 • 21h ago
ELI5: How is an AI detection tool like Pangram more effective than an embedded watermark?
I'm specifically referring to text. Researching for a project, I learned that Open AI's watermark & detection could correctly identify 95% of text as generated, while Pangram is over 99% accurate at identifying whether text was AI generated. Pangram also remains very effective when text was edited by a human or modified after being generated, while Open AI's tool significantly worsened when detecting edited text.
This result seems unintuitive to me, and I was wondering if someone with a stronger technical understanding could explain why this is?
13
u/spectrumero 20h ago
Don't get too taken in about "99% accurate at identifying..." If a detection method is 99% accurate, its false positive rate can be quite bad if the actual AI usage rate is low.
Example: 10,000 papers to be tested for AI. 100 papers were actually written by AI. A 99% accuracy rate would catch about 99 of the 100 AI generated papers, but it would also falsely flag 1% of the 10,000 papers, so 99 of those. So the ratio of false positives to true positives ends up being 50% which is pretty terrible.
The less common AI usage gets, the worse the false positive rate to true positive ratio becomes. (On the other hand if AI usage is common, the ratio of true positives to false positives is less of a problem - but there are still false positives).
1
u/azhder 20h ago edited 20h ago
LLMs if trained well, they are able to recognize what they are trained for. It's simply how the math works. Feed it data it wasn't trained for, and it will give you a wrong answer.
And by training here, we're also talking about massive amounts of data. Consider how much text written in English you can give an LLM relative to some obscure language a handful of people speak. Then give it the same prompt, in the respective languages and see which one is accurate and which one isn't.
The problem with massive amounts of data is how you correct for overfitting, how do you train your model to not pair the word Snowhite every time it notices the number 7 even if you were talking about dwarf planets? And of course, all of this is also constrained by the size of the model i.e. optimizations made to it in order to produce faster results or take up smaller space in memory.
And then you feed it text that small and optimized model might simply not recognize in the short amount of time it has because it still has the most likely scenarios giving the most weight to the results, if you pardon the pun, and your edited text is no longer one of the most common scenarios. You've changed the number 7 to 8 and now dwarf doesn't give you Snowhite, even though it's a story about some princess...
OK, the very non-technical intuitive explanation: perception. You find yourself some optical illusion image on google. Look at it, one of those that allow you to see two things at the same time. One of those that at times it appears to "flip" between being one or the other image. That's your sight center in your brain trying to recognize something it wasn't trained on as something it was... the optical illusion image was edited in a way that messes up the massive amount of images you've seen in your life, images that abundantly look like something other than the optical illusion. Now think about someone looking at optical illusion images their whole life, how easy would it be for them to recognize what they are looking at?
1
u/Master-Rent5050 18h ago
Where did you get those figures?