Skip to main content
QUICK REVIEW

[Paper Review] Evaluating statistical language models as pragmatic reasoners

Benjamin Lipkin, Lionel Wong|arXiv (Cornell University)|May 1, 2023
Natural Language Processing TechniquesComputer Science5 citations
TL;DR

This paper evaluates large language models (LLMs) as pragmatic reasoners by testing their ability to infer context-sensitive, probabilistic interpretations of utterances involving the gradable adjective 'strong' in a fictional tug-of-war game. LLMs successfully generate human-like distributions for complex pragmatic expressions like 'very strong for a beginner,' but struggle with negation and polarity inversion, suggesting partial amortization of pragmatic inference.

ABSTRACT

The relationship between communicated language and intended meaning is often probabilistic and sensitive to context. Numerous strategies attempt to estimate such a mapping, often leveraging recursive Bayesian models of communication. In parallel, large language models (LLMs) have been increasingly applied to semantic parsing applications, tasked with inferring logical representations from natural language. While existing LLM explorations have been largely restricted to literal language use, in this work, we evaluate the capacity of LLMs to infer the meanings of pragmatic utterances. Specifically, we explore the case of threshold estimation on the gradable adjective ``strong'', contextually conditioned on a strength prior, then extended to composition with qualification, negation, polarity inversion, and class comparison. We find that LLMs can derive context-grounded, human-like distributions over the interpretations of several complex pragmatic utterances, yet struggle composing with negation. These results inform the inferential capacity of statistical language models, and their use in pragmatic and semantic parsing applications. All corresponding code is made publicly available (https://github.com/benlipkin/probsem/tree/CogSci2023).

Motivation & Objective

  • To investigate whether statistical language models can implicitly perform pragmatic inference by recovering context-grounded distributions over meaning.
  • To assess the extent to which LLMs can compose complex pragmatic meanings, including qualification, negation, and polarity inversion.
  • To compare LLM-generated interpretation distributions with human-estimated distributions in a controlled semantic parsing task.
  • To explore whether LLMs implicitly amortize costly probabilistic inference, similar to human reasoning, through statistical patterns learned during pretraining.

Proposed method

  • The study uses a probabilistic programming language (PPL) framework based on the Rational Speech Acts (RSA) model to define generative models of possible worlds with numerical priors on player strength.
  • Utterances such as 'strong', 'very strong for a beginner', or 'not strong' are treated as conditioning statements on the PPL, updating posterior beliefs over player strength.
  • LLMs are prompted to estimate the resulting posterior distributions over strength thresholds, simulating pragmatic inference without explicit probabilistic computation.
  • Human participants are also asked to estimate the same distributions, enabling direct comparison with LLM outputs.
  • The evaluation includes composition with negation, polarity inversion, and class comparisons, testing robustness to indirect references and contextual ambiguity.
  • Statistical similarity between LLM and human distributions is measured using KL divergence and correlation metrics.
Figure 1: Schematic overview. LLMs stand in for the traditional pragmatics pipeline, often recovering human-like estimates over multiple interpretations of complex constructions.
Figure 1: Schematic overview. LLMs stand in for the traditional pragmatics pipeline, often recovering human-like estimates over multiple interpretations of complex constructions.

Experimental results

Research questions

  • RQ1Can LLMs infer contextually grounded, human-like distributions over interpretations of pragmatic utterances involving gradable adjectives like 'strong'?
  • RQ2How well do LLMs compose pragmatic meanings across complex constructions such as qualification ('very strong'), negation ('not strong'), and polarity inversion ('weak')?
  • RQ3To what extent do LLMs approximate the probabilistic inference processes of human listeners in pragmatic reasoning tasks?
  • RQ4Do LLMs implicitly amortize the computational cost of pragmatic inference, or do they rely on statistical patterns from pretraining to produce heuristic approximations?

Key findings

  • LLMs generate interpretation distributions that are highly similar to human-estimated distributions for complex pragmatic utterances such as 'very strong for a beginner', with high correlation (r > 0.8) and low KL divergence.
  • The model successfully handles context-sensitive comparisons and indirect references, demonstrating robustness to synonymic or non-exact matches between query and context variables.
  • LLMs fail to correctly compose meanings with negation, producing distributions that diverge significantly from human inferences, suggesting a breakdown in compositional reasoning under negation.
  • The discrepancy in negation suggests that such computations may require explicit probabilistic inference rather than heuristic retrieval from pretraining data.
  • LLMs show strong lexical semantic robustness, outperforming traditional semantic parsers based on combinatory categorial grammars in handling contextual ambiguity.
  • The results support the hypothesis that LLMs may implicitly amortize some pragmatic inferences through statistical regularities in training data, but not all, particularly those requiring explicit logical or probabilistic manipulation.
Figure 2: Example of full text passed to LLM for a single query. The tug-of-war domain model (blue) and task instructions (green) are consistent across all trials. For each evaluated sentence (yellow), the probability of each program (red) is evaluated to return a score for a given interpretation.
Figure 2: Example of full text passed to LLM for a single query. The tug-of-war domain model (blue) and task instructions (green) are consistent across all trials. For each evaluated sentence (yellow), the probability of each program (red) is evaluated to return a score for a given interpretation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.