Are LLMs Models of Distributional Semantics? A Case Study on Quantifiers

Enyan Zhang, Zewei Wang, Michael A. Lepori, Ellie Pavlick, Helena AparicioarXiv 2024 · DOI

Abstract

Large Language Models (LLMs) are fundamentally trained on the statistical distribution of words in text, leading to the common assumption that they represent the ultimate realization of distributional semantics. This paper investigates whether LLMs behave like traditional distributional models—excelling at vague, context-dependent language—or like formal semantic models that prioritize logical truth conditions. By comparing human and model thresholds for vague quantifiers ("many", "few") and exact quantifiers ("more than half", "less than half"), researchers identified a "distributional paradox": LLMs align significantly better with human judgments on exact logical quantifiers than on vague conventional ones. This suggests that LLMs may have moved beyond simple distributional patterns toward internalizing formal logical structures.

Introduction

In linguistics, a classic divide exists between two theories of meaning. Distributional Semantics posits that a word's meaning is derived from its statistical distribution in usage, making it well-suited for "fuzzy" or graded meanings. Conversely, Formal Semantics views meaning as rooted in logic, truth conditions, and symbolic processing.

Because LLMs are trained purely on text distributions, the conventional wisdom is that they should excel at vague language while struggling with formal logic. This study tests this assumption using quantifiers as a case study, exploring whether LLMs behave as pure distributional models or if they have evolved into systems capable of formal reasoning.

Methodology

The researchers established a human baseline by recruiting 400 participants to judge the truth of statements involving four quantifiers:

  • Vague: "Many" and "few."
  • Exact: "More than half" and "less than half."

By varying the proportions in questions like "There are 500 balls. 234 of them are yellow. Are many balls yellow?", the team calculated the "threshold"—the percentage at which a subject switches from "No" to "Yes."

The study then evaluated 15 LLMs, including GPT-4o, Llama-3, and Qwen-2.5, using the same prompts. To ensure robustness, the researchers used 25 different total counts (ranging from 10 to 1,000) and 10 different nouns, measuring the "Average Threshold Difference" between human and model responses.

Key Results and Analysis

The Distributional Paradox

The primary finding contradicts the distributional hypothesis: LLMs were consistently more accurate at matching human thresholds for exact quantifiers than for vague ones. Across nearly all model families, the error rate (the difference from human judgment) was significantly lower for "more than half" than for "many."

Average threshold difference between humans and models across quantifier types.

Cardinality vs. Proportionality

Human reasoning for these quantifiers is strictly proportional; the threshold for "many" remains a stable percentage regardless of whether the total count is 10 or 1,000. In contrast, several base (non-instruction-tuned) LLMs exhibited "cardinal" behavior, where thresholds shifted wildly based on raw numbers. This suggests that while humans understand proportions, some models are still influenced by the absolute scale of the data provided.

Comparison of model and human thresholds across varying total counts for four quantifiers.

The Impact of Instruction Tuning and Polarity

Instruction-tuned models demonstrated significantly more human-like alignment than their base counterparts. This suggests that post-training on reasoning and mathematical tasks helps models internalize logical linguistic structures.

Furthermore, the study identified a "Negative Polarity" penalty. Both humans and models found negative quantifiers ("few", "less than half") more difficult to process than positive ones. However, the performance gap for models was much larger, indicating that negation remains a significant hurdle for current AI architectures.

Discussion and Limitations

While this study provides evidence that LLMs are not "pure" distributional models, several questions remain. The scope was limited to four proportional quantifiers; future research could explore superlative quantifiers like "most" or multi-word expressions.

Additionally, the study utilized neutral contexts. In real-world usage, the threshold for "many" is highly pragmatic (e.g., "many people" in a room vs. a city). How LLMs handle these pragmatic shifts is a critical next step for understanding their linguistic competence. Finally, the underlying cause of this logical alignment—whether it stems from the presence of code and math in training data or the Transformer architecture itself—remains an open question for the field.

Conclusion

LLMs challenge the traditional divide between distributional and formal semantics. By aligning more closely with human logic than with distributional vagueness, these models suggest that large-scale statistical learning can produce systems that mirror formal symbolic reasoning, even when trained on unstructured text.

Summary updated

BibTeX
@misc{zhang2024are,
  author = {Enyan Zhang and Zewei Wang and Michael A. Lepori and Ellie Pavlick and Helena Aparicio},
  title = {{Are LLMs Models of Distributional Semantics? A Case Study on Quantifiers}},
  year = {2024},
  eprint = {2410.13984},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.13984},
}
Figure