Prompts and probabilities in the linguistic assessment of language models: Evidence from semantic focus-sensitivity
Organizations: Leibniz-Centre General Linguistics (ZAS)
Abstract
As language models (LMs) have improved, an increasingly common means of evaluating their linguistic competence is through explicit prompting (e.g., "Which sentence is more acceptable?"). Prior work indicates that such prompting underperforms compared to standard token-probability-based methods in smaller models, but improves in larger models. We test this in a new domain: semantic focus-sensitivity, responsible for contrasts like "Lucy only SWAM yesterday" vs. "Lucy only swam YESTERDAY". Testing models of various sizes using text-based focus markers like boldface and italics, we find universal above-chance performance for token probabilities. Prompting results mostly align with previous findings, but in some larger models they outperform probabilities by a wide margin. We propose that this is because LMs are not prone to produce out-of-the-blue focus marking, which muddies results from token probabilities in a way that does not affect prompting. We test this by replacing standard focus markers with randomly generated ones; token probabilities still beat chance but show significantly greater performance decrease compared to prompting. These results suggest that metalinguistic prompting, while non-trivial for LMs, can also be more robust when testing stylistically atypical data. We argue that this has important consequences for the assessment of LMs' language competence, even if LMs do not perform metalinguistic judgments through human-like introspection.
Figures & tables
| String Prob. | Forced Choice | Yes/No | |
|---|---|---|---|
| system | You are a helpful assistant. | ||
| user | Who did Phil give a book to? | You will be presented with a context followed by two sentences, A and B. Your job is to respond with which sentence is better in the context provided. CONTEXT: Who did Phil give a book to? SENTENCE A: Phil gave a book to the SENATOR. SENTENCE B: Phil gave a BOOK to the senator. | You will be presented with a context followed by a sentence. Your job is to respond with "Yes" or "No", indicating whether the sentence is acceptable in the context provided. CONTEXT: Who did Phil give a book to? SENTENCE: Phil gave a book to the SENATOR. |
| assistant | Phil gave a book to the SENATOR. / Phil gave a BOOK to the senator. | My answer is A / B | My answer is Yes / No |
| Category | Background/Prefix | Sentences |
|---|---|---|
| only | Background: Larry’s Pub serves drinks at the bar. They do not serve drinks at other places. | Larry’s Pub only serves drinks at the BAR. Larry’s Pub only serves DRINKS at the bar. |
| qa | Background: Who did Phil give a book to? | Phil gave a book to the SENATOR. Phil gave a BOOK to the senator. |
| too | Prefix: A bonus was given to the senior engineer, | and the JUNIOR engineer got a bonus, too. and the junior engineer got a BONUS, too. |
| adv_qt | Background: When Dolly buys rugs, it’s with cash most of the time. | Dolly mostly uses CASH to buy rugs. Dolly mostly uses cash to buy RUGS. |
| contr1 | Background: Sarah was considering buying a green shirt. She ended up buying a red one instead. | Sarah didn’t buy the GREEN shirt. Sarah didn’t buy the green SHIRT. |
| contr2 | Prefix: Sandy didn’t unlock the door. | The door is still LOCKED. The DOOR is still locked. |
LLM Evaluation
Large language model evaluation measures what models can do, how reliably they do it, and whether benchmark scores predict real-world performance.
See all 2,427 papers