logo

Likelihood Ratio Tests: The Statistical Backbone of Modern AI Detection

Paperbleach
Paperbleach

17 Apr 2025

When an AI detector spits out “92% likely AI,” it isn’t reading your mind or matching your text against a database. Underneath that single number sits a piece of statistics older than the internet: the likelihood ratio test. Understand that one idea and most of what’s confusing about AI detection, the disagreements, the false positives, the wobble on short text, suddenly makes sense.

Key takeaways

  • A likelihood ratio test asks one question: is this text more probable under a “human wrote it” model or an “AI wrote it” model? The output is a ratio of two probabilities, not a verdict.
  • Detectors don’t measure truth. They measure odds, then pick a cutoff. A 90% score means the math leaned hard toward AI *under the tool’s assumptions*.
  • The ratio is only as good as the two models being compared. Feed it writing it’s never seen and the comparison gets shaky.
  • Short texts produce unstable ratios because there’s too little evidence to tell the two hypotheses apart. That’s math, not a bug.
  • Once you get the ratio, you understand why detectors disagree, why thresholds matter, and why clear human writing scores low without any tricks.

The one question every detector is really asking

Forget the percentage for a second. At its core, a statistical AI detector is running a contest between two stories about your text.

Story A: a human wrote this. Story B: a language model wrote this.

The detector has a mathematical model for each story, basically a way to estimate “how probable is this exact sequence of words under story A?” and “how probable is it under story B?” Then it divides one by the other. That division is the likelihood ratio.

If your text is, say, 8 times more probable under the AI model than the human model, the ratio is 8. If it’s twice as probable under the human model, the ratio is 0.5. The detector takes that ratio, often the logarithm of it for numerical sanity, and squashes it into the friendly 0-to-100 score you see on screen.

This isn’t a quirk of one product. The likelihood ratio test is a foundational result in statistics. The Neyman-Pearson lemma, published in 1933, showed that when you’re choosing between exactly two simple hypotheses, comparing their likelihoods is the most powerful test you can run. AI detectors didn’t invent the method. They borrowed a tool that was already sitting on the shelf.

Why it’s a *ratio* and not a measurement

Here’s the part people miss. The detector never measures whether AI “was used.” It can’t. It only measures which of its two models assigns higher probability to the words in front of it. Those are completely different things.

Think of a smoke alarm. It doesn’t detect fire. It detects particles in the air that *usually* come with fire. Burnt toast sets it off too. The likelihood ratio is the same kind of proxy: it picks up statistical patterns that AI text usually has, and sometimes human text has them anyway.

A mini-scenario: two paragraphs, two ratios

Say a detector evaluates two paragraphs.

Paragraph 1 is a tidy, evenly-paced summary of photosynthesis. Every sentence runs about the same length. The word choices are the most expected ones at each step: “plants,” “convert,” “sunlight,” “energy,” “process.” Under the AI model, each of those words is highly probable given the previous words, so the running product of probabilities stays high. Under the human model, which expects more variation and the occasional odd turn, the same text looks slightly less likely. Divide them and the ratio tips toward AI. Score: high.

Paragraph 2 is a student’s messy explanation of the same topic, with a tangent about a houseplant that died, a sentence fragment, and one weirdly specific word. The AI model is “surprised” by the fragment and the tangent, so those tokens get low probability under story B. The human model shrugs; people write like that. The ratio tips the other way. Score: low.

Notice what actually happened. The student didn’t “beat” anything. Their writing simply landed in a region where the human model fit better. And notice the failure mode lurking here: if paragraph 1 had genuinely been written by a careful human who happens to write in clean, predictable prose, the math would still tip toward AI. The detector has no way to tell the two apart. This is exactly the mechanism behind false positives. It’s also the kind of statistical pull that, in a 2023 Stanford study by Liang and colleagues, made several detectors misflag essays by non-native English writers, whose phrasing can look “too regular” to an English-trained model.

What the score actually means

The raw likelihood ratio is a continuous number that can run from near zero to very large. To turn it into a percentage, the detector applies a transformation (often a logistic function) and then compares the result against a decision threshold, a line drawn in the sand. Above the line, “AI.” Below it, “human.”

That threshold is a business and accuracy choice, not a law of nature. Set it low and you catch more AI but flag more innocent writers. Set it high and you spare the innocents but miss real AI. No setting does both perfectly. This trade-off is *built into* the likelihood ratio framework, not bolted on afterward.

So when you read “92%,” the honest translation is: “Given our two models and our chosen cutoff, the odds leaned strongly toward the AI hypothesis.” That’s a probability statement about models. It’s not a confession pulled out of your document.

Log-likelihood, in plain terms

Detectors usually work with the *log* of the ratio, summed across tokens, because multiplying thousands of tiny probabilities together would underflow to zero on a computer. Taking the log turns that product into a sum. In practice, every token casts a small vote, plus or minus, toward AI or human, and the votes add up. A handful of very “AI-typical” sentences can drag the total even when the rest of your text is fine. That additive structure is why a token- or sentence-level heatmap helps so much: it shows you which votes dominated.

Why this explains the weird behavior you’ve seen

Once you picture two competing models and a ratio between them, the usual complaints about detectors stop being mysterious.

Two detectors disagree on the same paragraph. Of course they do. They use *different* human and AI models. Different reference data, different base language models, different thresholds. The ratio is comparing different things in each tool.

Short text gives garbage results. A likelihood ratio accumulates evidence across tokens. With 15 words, there just isn’t enough signal to separate story A from story B, so the ratio hovers near even and the score is basically a coin flip dressed up as a percentage.

A new AI model slips through. The detector’s “AI model” was tuned on yesterday’s outputs. When the AI hypothesis no longer matches how current models actually write, the ratio stops discriminating well. Detectors lag because the hypothesis they test is always a step behind.

Smooth human writing gets flagged. Predictable, well-structured prose is exactly what the AI model expects. The ratio can’t tell “good human writer” from “good language model.” This is part of why OpenAI pulled its own AI Text Classifier in July 2023, citing its low rate of accuracy. The underlying signal just isn’t clean enough to bet someone’s grade on.

If you want to go deeper on the “surprise” half of this, our breakdown of perplexity and burstiness walks through how that probability-per-token actually gets computed.

What this means for your writing

You can’t game a likelihood ratio with cheap tricks. Swapping in thesaurus words, for instance, usually just makes the human model *less* happy too. What genuinely moves the ratio is writing the AI model finds less predictable: real specificity, varied rhythm, the occasional unexpected (but accurate) word, a structure that doesn’t march in perfect parallel.

The useful move isn’t to chase a number blindly. It’s to find *where* the evidence piled up against you and fix those passages, while leaving the parts that already read as human alone. If you want the broader mechanics, you can browse the rest of our detection explainers.

Frequently asked questions

What is a likelihood ratio in AI detection, in one sentence? It’s the ratio between how probable your exact text is under a model of human writing versus a model of AI writing; a higher ratio toward the AI side pushes the score up, but it reflects relative odds under the tool’s assumptions, not proof of authorship.

Does a high likelihood ratio mean I definitely used AI? No. The ratio measures which of two statistical models fits your text better. Polished human writing, a templated essay, a clean cover letter, can produce a high ratio. That’s why false positives happen and why no honest detector should claim certainty.

Why do likelihood-ratio detectors struggle with short text? The ratio combines evidence token by token. With only a sentence or two there isn’t enough evidence to separate the two models, so the ratio stays near even and the score becomes unreliable.

Is the likelihood ratio the same as perplexity? Related, not identical. Perplexity measures how surprised one model is by your text; a likelihood ratio compares two models head to head. Many detectors compute perplexity-like quantities and frame the final call as a ratio.

Can I see which parts of my text drove the ratio? Some tools, including PaperBleach, show a token- or sentence-level view so you can see where evidence piled up toward “AI” and revise just those passages.

The bottom line

A likelihood ratio test is a careful, well-aged way to compare two hypotheses, and it’s genuinely good at what it does. But what it does is weigh odds between two models, not certify who held the pen. Treat the score as evidence with error bars, not a verdict. If you want to see the ratio working on your own draft and find the exact spots dragging it toward “AI,” try PaperBleach and read your text the way the math does.

Try it on your own text

Paste your draft into PaperBleach to humanize AI text so it reads naturally — then check your score against built-in AI detection. Free on your first run.