Abstract
Can a neural network understand what you mean versus just what you say? This research demonstrates that standard sentence encoders, such as BERT and LSTMs, can accurately predict the strength of "scalar inferences"—the pragmatic leap from hearing "I ate some cookies" to assuming "I didn't eat all of them." By picking up on subtle linguistic cues like word order and specific grammatical constructions, these models achieve high correlation with human judgments, suggesting that the raw linguistic signal contains rich pragmatic information.
The Pragmatic Challenge
In linguistics, scalar inference is a cornerstone of pragmatics: the study of how context contributes to meaning. When a speaker uses a relatively weak term like "some," listeners often infer the negation of a stronger alternative like "all." However, the strength of this "some but not all" inference varies significantly based on the utterance. For instance, "Some of the students passed" typically triggers a stronger inference than "I have some money."
Traditional approaches to modeling these variations, such as Bayesian game-theoretic models, require researchers to manually define features and alternative utterances. This manual overhead makes them difficult to scale. This paper investigates whether neural networks can learn these subtle pragmatic associations directly from raw text without explicit feature engineering.
Model Architecture
The researchers developed a sentence classification model to output a continuous score between 0 and 1, representing the predicted inference strength. The architecture integrates several modern NLP components:
- Word Embeddings: The study compared static embeddings (GloVe) with contextualized representations (ELMo, BERT-base, and BERT-large).
- Encoder: A 2-layer bidirectional LSTM (biLSTM) processes the sequence.
- Attention Mechanism: A self-attention layer calculates a weighted average of hidden states, allowing the model to focus on informative tokens.
- Output: A sigmoid layer produces the final scalar value.
Data and Methodology
The primary benchmark was the Degen (2015) Dataset, which contains 1,362 unique utterances containing "some" extracted from the Switchboard corpus of telephone conversations. Human baseline ratings were collected using a 7-point Likert scale, where participants rated how similar a sentence was to a version explicitly stating "some, but not all."
To further probe the model's sensitivity, the authors created 800 "minimal pairs"—artificial sentences identical except for a single linguistic feature, such as "Some kids..." vs. "Some of the kids..." (the partitive construction).
Empirical Results
The best-performing configuration (BERT-large + LSTM + Attention) achieved a correlation of r = 0.78 with human ratings. Given that the human-to-human correlation "ceiling" is approximately 0.93, this represents a significant success in capturing pragmatic nuances.
Regression analyses confirmed that the model's predictions accounted for nearly all the variance previously explained by hand-coded linguistic features. Specifically, the model learned that partitives (using "of the") and subjecthood (placing "some" in the subject position) are strong triggers for scalar inference.
The Context Paradox and Future Directions
One surprising finding was the "context paradox." While humans use preceding conversational context to sharpen inferences, providing the model with the 10 preceding sentences did not improve its performance. This suggests that while current encoders are excellent at sentence-level linguistic cues, they still struggle to integrate broader discourse-level information.
Furthermore, the model showed a tendency to cluster predictions toward the mean, struggling with extreme high or low human ratings. Future research will explore whether these findings generalize to other scales (e.g., "warm/hot") and if models can learn these inferences through self-supervised tasks rather than relying on human-labeled supervision.
Summary updated