this is how an ai detector works : How do AI detectors work? AI detectors are usually…
- User
this is how an ai detector works : How do AI detectors work? AI detectors are usually based on language models similar to those used in the AI writing tools they’re trying to detect. The language model essentially looks at the input and asks “Is this the sort of thing that I would have written?” If the answer is “yes,” it concludes that the text is probably AI-generated.
Specifically, the models look for two things in a text: perplexity and burstiness. The lower these two variables are, the more likely the text is to be AI-generated. But what do these unusual terms mean?
Perplexity Perplexity is a measure of how unpredictable a text is: how likely it is to perplex (confuse) the average reader (i.e., make no sense or read unnaturally).
AI language models aim to produce texts with low perplexity, which are more likely to make sense and read smoothly but are also more predictable. Human writing tends to have higher perplexity: more creative language choices, but also more typos. Language models work by predicting what word would naturally come next in a sentence and inserting it. For example, in the sentence “I couldn’t get to sleep last …” there are more and less plausible continuations, as shown in the table below.
Levels of perplexity Example continuation Perplexity I couldn’t get to sleep last night. Low: Probably the most likely continuation I couldn’t get to sleep last time I drank coffee in the evening. Low to medium: Less likely, but it makes grammatical and logical sense I couldn’t get to sleep last summer on many nights because of how hot it was at that time. Medium: The sentence is coherent but quite unusually structured and long-winded I couldn’t get to sleep last pleased to meet you. High: Grammatically incorrect and illogical Low perplexity is taken as evidence that a text is AI-generated.
Burstiness Burstiness is a measure of variation in sentence structure and length—something like perplexity, but on the level of sentences rather than words:
A text with little variation in sentence structure and sentence length has low burstiness. A text with greater variation has high burstiness. AI text tends to be less “bursty” than human text. Because language models predict the most likely word to come next, they tend to produce sentences of average length (say, 10–20 words) and with conventional structures. This is why AI writing can sometimes seem monotonous.
Low burstiness indicates that a text is likely to be AI-generated.
A potential alternative: Watermarks OpenAI, the company behind ChatGPT, claims to be working on a “watermarking” system where text generated by the tool could be given an invisible watermark that can then be detected by another system to know for sure that a text was AI-generated.
However, this system has not been developed yet, and the details of how it might work are unknown. It’s also not clear whether the proposed watermarks will remain when the generated text is edited. So while this may be a promising method of AI detection in the future, we just don’t know yet.
- Assistant
AI detectors use various techniques to analyze and identify AI-generated text. These detectors primarily look at perplexity and burstiness as key indicators. Perplexity measures how unpredictable a text is and its likelihood to confuse readers. AI language models strive for low perplexity to produce coherent and smooth-text, whereas human writing tends to have higher perplexity due to more creative language choices and occasional errors.