Pragmatic Reasoning Unlocks Quantifier Semantics for Foundation Models

Yiyuan Li, Rakesh R. Menon, Sayan Ghosh, Shashank Srivastava

Abstract: Generalized quantifiers (e.g., few, most) are used to indicate the proportions predicates satisfy (for example, some apples are red). One way to interpret quantifier semantics is to explicitly bind these satisfactions with percentage scopes (e.g., 30%-40% of apples are red). This approach can be helpful for tasks like logic formalization and surface-form quantitative reasoning (Gordon and Schubert, 2010; Roy et al., 2015). However, it remains unclear if recent foundation models (Bommasani et al., 2021) possess this ability due to the absence of direct training signals. To explore this, we introduce QuRe, a crowd-sourced dataset of human-annotated generalized quantifiers in Wikipedia sentences featuring percentage-equipped predicates. We explore quantifier comprehension using PRESQUE, a framework that combines natural language inference and the Rational Speech Acts framework. Experimental results on the HVD dataset (Herbelot and Vecchi, 2015) and QuRe demonstrate PRESQUE’s superiority over a literal listener baseline, showing a 20% relative improvement in F1 in predicting percentage scopes for quantifiers, even with no additional training.

Introduction

In formal logic, a quantifier like "some" technically means "at least one." However, in human conversation, if you say "some apples are red" when 99% of them are red, you are being misleading. Humans use pragmatics—the social context of language—to narrow down these fuzzy terms. For instance, "some" usually implies a range like 30-40%, while "most" implies >50%.

Current foundation models (like BERT or RoBERTa) are excellent at syntax but struggle with this nuance because they lack direct training on the numerical "scopes" of these words. Furthermore, existing datasets for quantifier reasoning often lack "gold-standard" percentage annotations or rely on artificial, simplistic scenarios. This research aims to bridge this gap by providing both a reasoning framework and a high-quality, real-world dataset.

The PRESQUE Framework

The researchers propose PRESQUE (Pragmatic REasoning for Semantics of QUantifiErs). The framework is built on two pillars:

  1. Natural Language Inference (NLI): This is used as the "backbone." The model calculates an entailment score between a sentence with a quantifier (e.g., "Some apples are red") and a hypothesis with a percentage (e.g., "30% of apples are red").
  2. Rational Speech Act (RSA) Framework: Instead of just looking at the literal entailment (the "Literal Listener" or $L_0$), PRESQUE models a Pragmatic Listener ($L_1$). This $L_1$ listener uses Bayesian inference to ask: "If a speaker wanted to describe a world where X% of apples are red, which quantifier would they most likely choose?" By reasoning about the speaker's likely choice, the model can more accurately work backward from the word to the percentage.
Figure 3: Comparison of the Literal Listener ($L_0$) and Pragmatic Listener ($L_1$) probability distributions across percentage values for common quantifiers.

Datasets: HVD and QuRe

The study utilizes two primary datasets:

  • HVD (Herbelot and Vecchi, 2015): An existing dataset of concept-feature-quantifier triples (e.g., <shrimp, is_white, some>). The authors extended this by collecting human interpretations of these triples to create a benchmark.
  • QuRe (Quantifier Reasoning): A newly introduced dataset consisting of 744 sentences sourced from Wikipedia that originally contained actual percentage values. These were rephrased by humans using quantifiers. Crucially, QuRe includes "specificity" metadata, marking whether the percentage can be fully, partially, or not at all deduced from the surrounding context.

Key Insights and Results

Experimental results demonstrate that pragmatics significantly outperform literalism. The most significant finding is that foundation models already possess the latent knowledge needed to understand quantifiers, but they require the RSA framework to "unlock" it. Without the pragmatic layer, models give "jumpy" or inconsistent numerical predictions.

Consecutiveness and Alignment

Pragmatic reasoning significantly increased the "consecutiveness" of the models' predictions. In other words, the model was much more likely to predict a continuous range (like 10-30%) rather than jumping between disconnected values (like 10% and 80%). This trend was consistent across various model architectures including BART, RoBERTa, XLNet, and ALBERT.

Figure 4: Consecutiveness scores for various foundation models, comparing the PRESQUE framework against the $L_0$ baseline across different Top K values.
  • Performance Boost: PRESQUE outperformed literal reasoning baselines by 20% (span-based F1) across all specificity levels on the QuRe dataset.
  • Model Comparison: Among the foundation models tested, RoBERTa-large emerged as the strongest backbone for quantifier reasoning, achieving the lowest cross-entropy when compared to human interpretations.
  • Human Alignment: In head-to-head evaluations, human annotators preferred the percentage scopes generated by PRESQUE over the literal baseline in the majority of cases, particularly for universal quantifiers like no and all.

Conclusion

While foundation models struggle with the "fuzzy" numerical meaning of quantifiers out-of-the-box, the PRESQUE framework shows that this knowledge is latent within their NLI capabilities. By applying pragmatic reasoning, we can align model interpretations with human psychological priors. Future work could involve expanding PRESQUE to handle multi-modal contexts or integrating it into active human-AI collaborative tasks.

Summary updated

BibTeX
@inproceedings{li2023pragmatic,
  author = {Yiyuan Li and Rakesh R. Menon and Sayan Ghosh and Shashank Srivastava},
  title = {{Pragmatic Reasoning Unlocks Quantifier Semantics for Foundation Models}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  url = {https://openreview.net/forum?id=hixnK0vv8V},
}
Figure