AI
LLM Probability Scores Fail to Reliably Flag Grammatically Impossible Text
A new study challenges the widespread assumption that large language models can use their internal probability assignments to distinguish grammatical from ungrammatical language.
Researchers have found that large language models cannot consistently use their probability measurements to tell possible language from impossible language—undermining a commonly cited test of whether these systems understand grammar.
The Challenge to a Popular Theory#
Many researchers have claimed that LLMs can spot grammatically invalid sentences by assigning them lower probabilities than valid ones. However, this evidence has faced pushback over whether the test materials themselves were sound. To settle the question, a team directly probed how eight different models represent the difference between grammatical and ungrammatical text using their internal probability assignments.
How the Test Worked#
The researchers created a novel benchmark that compared the surprisal (a measure of how unexpected a model finds text) across sentence pairs. They measured how much surprise models showed when encountering:
- Grammatically correct sentences (baseline)
- Lower-frequency but still valid sentences
- Grammatically broken sentences
- Sentences that were semantically nonsensical
- Sentences that were pragmatically odd (violating conversational norms)
The Surprising Results#
If probability could actually measure grammatical knowledge, ungrammatical sentences should stand out with distinctly higher surprisal than the other violation types. Instead, the findings painted a different picture: semantically odd sentences consistently triggered the highest surprisal, and pragmatically odd sentences showed comparable surprise to ungrammatical ones. Across all eight models tested, no unique "signature" emerged that singled out grammatical violations.
What This Means#
The study demonstrates that probability differences alone cannot serve as reliable indicators of whether models understand grammatical structure. The findings suggest that researchers claiming LLMs can distinguish possible from impossible language need to use alternative methods to verify such abilities—and that relying on probability scores to make this argument may be fundamentally flawed.

