A fine-grained comparison of pragmatic language understanding in humans and language models

Jennifer Hu, Sammy Floyd, Olessia Jouravlev, Evelina Fedorenko, Edward Gibson

TL;DR

Large language models (LLMs) like text-davinci-002 and Flan-T5 (XL) demonstrate a surprising capacity for pragmatic language understanding, often matching human error patterns by favoring literal interpretations over heuristic distractors when they fail. However, these models still struggle significantly with phenomena that rely on violating social expectations, such as humor and irony. This suggests that while explicit mental state modeling (Theory of Mind) may not be strictly necessary for basic pragmatics, full social alignment remains a major hurdle.

What Problem Does This Paper Address?

When we communicate, we rarely mean exactly what we say literally. If someone says, "It's getting a bit cold in here," they are usually asking you to close a window, not just making a meteorological observation. This is the realm of pragmatics—understanding language in context, including metaphors, politeness, irony, and idioms.

While modern LLMs are incredibly fluent, evaluating whether they truly grasp pragmatic meaning has traditionally been reduced to a simple binary metric: did the model get the pragmatic interpretation right or wrong? This paper addresses this limitation by conducting a fine-grained error analysis. The authors investigate not just if models fail, but how they fail, comparing LLM error profiles and linguistic cue sensitivities directly to human behavior.

Methods

The authors evaluated seven language models across four families (GPT-2, Tk-Instruct, Flan-T5, and InstructGPT/text-davinci-002) using zero-shot prompting.

To evaluate the models, they fed them a short story context, a character's utterance, and a multiple-choice question regarding the character's intent. Instead of letting the models generate free-text answers, they measured the model's exact probability distribution over the multiple-choice tokens (e.g., "1", "2", "3", "4").

To dig deeper into how the models achieved their results, the authors performed two ablation studies:

  1. Context Removal: Stripping away the background story to see how much the models rely on local context vs. global linguistic knowledge.
  2. Scrambling: Randomizing the order of sentences or words to test if the models rely on human-like compositionality or just low-level keyword heuristics.

Datasets

The evaluation utilizes an expert-curated dataset of English materials from Floyd et al. (In prep). It contains 20–40 multiple-choice items per task across seven distinct pragmatic phenomena:

  • Deceits (e.g., white lies)
  • Indirect Speech (e.g., indirect requests)
  • Irony
  • Maxims (flouting Gricean conversational maxims)
  • Metaphor
  • Humor (identifying the funniest punchline)
  • Coherence (discourse-level connectivity)

An example of these queries and their color-coded option types can be seen below:

Sample items and answer options across the seven pragmatic tasks

The human baseline was established using data from 374 human participants. For the no-context ablation, they recruited an additional 30 human participants via Amazon Mechanical Turk.

Key Insights and Ideas

  • The "Literal" Safety Net: When large models make mistakes, they don't just pick distractors at random. Much like humans, their most common error is choosing the literal interpretation of an utterance. This indicates that their failures are not due to a lack of basic semantic understanding, but rather a failure to apply contextual or social layers.
  • The 1-Billion Parameter Threshold: There is a sharp, non-linear jump in pragmatic performance once a model surpasses 1 billion parameters. However, scale isn't everything; instruction-tuned models (like Flan-T5) significantly outperform standard multitask models of equivalent size.
Figure 2: Mean accuracy vs. millions of parameters. Vertical dashed line indicates 1 billion parameters. text- davinci-002 was excluded from this analysis, as the number of parameters is unknown.
  • Expectation Violations are Hard: Models perform worst on Humor, Irony, and Maxims. What do these share? They all require a listener to recognize that a speaker is intentionally violating a social norm or expectation (e.g., saying the exact opposite of what they believe in the case of irony).
  • Pragmatics Without a Mind: Because LLMs lack explicit, symbolic representations of mental states (Theory of Mind), their success on tasks like metaphors and indirect speech suggests that a significant portion of human-like pragmatic behavior can actually emerge purely from statistical patterns in language.

Key Results

The largest models (text-davinci-002 and Flan-T5 (XL)) achieved above-chance accuracy across almost all tasks, occasionally approaching human-level performance.

Figure 1: Accuracy for each task. Error bars denote 95% CI. Dashed line indicates task-specific random baseline.

When looking at the full distribution of responses, the alignment between the best models and humans becomes visually apparent. In tasks like Indirect Speech and Deceits, the preference for the "Correct" pragmatic choice is clear, followed by the "Literal" choice, with low-level distractors safely ignored.

Figure 3: Response distributions across models and humans. Answer options for each task are shown on the x-axis. For models, y-axis denotes probability assigned to each answer option. For humans, y-axis denotes empirical frequency of each answer option being selected. Error bars denote 95% CI. Dashed line indicates random baseline.

In the context-removal experiment, both humans and models showed the exact same qualitative pattern: removing the story context severely degraded performance on Irony, Deceits, and Maxims, but had a much smaller impact on Indirect Speech and Metaphor. This proves that models and humans leverage contextual cues in highly correlated ways.

Limitations and Future Work

The authors note several key limitations:

  1. Dataset Size: The expert-curated evaluation set is relatively small (20–40 items per task), which limits statistical power compared to massive, automated benchmarks.
  2. Cultural and Language Bias: The evaluation was strictly performed on English-language materials rooted in Western cultural communication norms. Pragmatics varies wildly across cultures, and future benchmarks must address this.
  3. Scrambling Robustness: Unlike humans, models maintained relatively high performance even when word order was completely scrambled. This implies that while their outputs match human distributions, their underlying processing mechanisms still rely heavily on bag-of-words style lexical heuristics rather than true human-like compositionality.

Summary updated

Abstract

Pragmatics and non-literal language understanding are essential to human communication, and present a long-standing challenge for artificial language models. We perform a fine-grained comparison of language models and humans on seven pragmatic phenomena, using zero-shot prompting on an expert-curated set of English materials. We ask whether models (1) select pragmatic interpretations of speaker utterances, (2) make similar error patterns as humans, and (3) use similar linguistic cues as humans to solve the tasks. We find that the largest models achieve high accuracy and match human error patterns: within incorrect responses, models favor literal interpretations over heuristic-based distractors. We also find preliminary evidence that models and humans are sensitive to similar linguistic cues. Our results suggest that pragmatic behaviors can emerge in models without explicitly constructed representations of mental states. However, models tend to struggle with phenomena relying on social expectation violations.
BibTeX
@inproceedings{hu2023fine,
  author = {Jennifer Hu and Sammy Floyd and Olessia Jouravlev and Evelina Fedorenko and Edward Gibson},
  title = {{A fine-grained comparison of pragmatic language understanding in humans and language models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.230},
}
Figure