Abstract
As language models (LMs) are increasingly used to simulate human linguistic intuition, the methods used to evaluate their "understanding" of grammar have come under scrutiny. This paper identifies significant statistical flaws in standard evaluation metrics like accuracy and Matthews Correlation Coefficient (MCC) when applied to continuous probability outputs. We propose the Point-Biserial Correlation (PBC) as a more robust alternative and demonstrate that while modern models like GPT-2 show promise, they often conflate structural grammaticality with semantic sensicality.
The Problem with Standard Metrics
Researchers typically evaluate LMs using "targeted linguistic evaluations" involving minimal pairs—sentences that differ by only a single word to isolate a specific syntactic feature (e.g., "The pilot embarrassed himself" vs. "themselves"). If the model assigns a higher probability to the grammatical sentence, it is considered to have "passed."
However, this binary pass/fail approach masks several statistical issues:
- Non-Normality: LM probability distributions are frequently non-normal, making mean-based accuracy scores misleading.
- The Threshold Problem: Metrics like MCC require an arbitrary threshold to convert continuous probabilities into binary classifications. This is often statistically unjustifiable, especially in small datasets.
- The Meaning Trap: Models often struggle to distinguish between a sentence being ungrammatical and it simply being nonsensical.
Methodology: Point-Biserial Correlation
To address these flaws, we advocate for the Point-Biserial Correlation (PBC). Unlike MCC, which correlates two binary variables, PBC is designed to correlate one continuous variable (the LM's probability or surprisal score) with one binary variable (the human grammaticality label). This approach removes the need for arbitrary thresholds and provides a more nuanced view of model performance across entire experimental sets rather than isolated pairs.
Experimental Insights
Our evaluation across benchmarks like CoLA and the LI Corpus revealed several key insights into how modern LMs process language:
Sensicality vs. Grammaticality
LMs appear to be "semantic-first." In a custom "Sensicality Set"—nonsense sentences that are syntactically correct but semantically void (e.g., "Colorless green ideas sleep furiously")—models performed significantly better than on pure grammar tasks. GPT-2 XL reached a PBC of 0.76 on sensicality tests, suggesting that much of what we interpret as "grammatical knowledge" may actually be the model tracking what "makes sense."
Sensitivity to Surface Features
Modern LMs are surprisingly fragile. For instance, removing capitalization (downcasing) from input text resulted in a performance drop equivalent to reducing the model size by an order of magnitude. Furthermore, while length-normalization techniques like SLOR improve performance on standard benchmarks, they can actually degrade a model's ability to distinguish sense from nonsense.
Key Results
As shown in the table below, GPT-2 XL represents a significant leap over older RNN-based models (like those from Pereira or Mikolov). On the LI Minimal Sets, GPT-2 XL achieved a PBC of approximately 0.56, whereas older models often hovered between 0.10 and 0.25.
Conclusion
While GPT-2 shows "significantly greater promise" than its predecessors, it is premature to claim that LM probabilities serve as a reliable scale for human-like grammaticality. Models remain heavily influenced by semantic factors and superficial formatting. Future research should move toward developing dedicated grammaticality classifiers rather than relying solely on raw word-prediction probabilities.
Summary updated