Abstract
Although large neural language models (LMs) like BERT can be finetuned to yield state-of-the-art results on many NLP tasks, it is often unclear what these models actually learn. Here we study using such LMs to fill in entities in human-authored comparative questions, like ``Which country is older, India or _____?''---i.e., we study the ability of neural LMs to ask (not answer) reasonable questions. We show that accuracy in this fill-in-the-blank task is well-correlated with human judgements of whether a question is reasonable, and that these models can be trained to achieve nearly human-level performance in completing comparative questions in three different subdomains. However, analysis shows that what they learn fails to model any sort of broad notion of which entities are semantically comparable or similar---instead the trained models are very domain-specific, and performance is highly correlated with co-occurrences between specific entities observed in the training set. This is true both for models that are pretrained on general text corpora, as well as models trained on a large corpus of comparison questions. Our study thus reinforces recent results on the difficulty of making claims about a deep model's world knowledge or linguistic competence based on performance on specific benchmark problems. We make our evaluation datasets publicly available to foster future research on complex understanding and reasoning in such models at standards of human interaction.
Introduction
Comparison is a fundamental cognitive tool used to navigate the world. Humans naturally understand that comparing a "lion" to a "tiger" makes sense, while comparing a "lion" to a "toaster" does not. This research, presented at AAAI-21, investigates whether large language models (LLMs) like BERT possess this semantic reasoning or if they are simply masters of statistical mimicry. By tasking models with completing human-authored comparative questions—such as "Which is faster, a leopard or a [MASK]?"—the authors expose a significant gap between a model's ability to "look" smart through finetuning and its actual grasp of semantic reasoning.
Methodology and Datasets
The study evaluated two primary architectures: BERT-Large, the standard transformer-based LM, and RELIC, an entity-focused variant designed to handle multi-word entities using Wikipedia-based embeddings. These models were tested in two configurations: a zero-shot "pretrained" state and a "finetuned" state trained on a specific corpus of comparative questions.
The researchers introduced a new benchmark consisting of human-authored questions scraped from QA sites, partitioned into three distinct subdomains:
- Animals: (e.g., "Which is faster, a leopard or a [MASK]?")
- Cities and Countries: (e.g., "Is Belgium bigger than [MASK]?")
- NBA Players: (e.g., "Who has more rings, Dirk Nowitzki or [MASK]?")
Performance was measured using retrieval metrics (MRR, Recall@1) and validated against human "sensibility" judgments to ensure the model's suggestions were meaningful to people.
Results: The Impact of Finetuning
Initial results showed that pretrained models struggle significantly with comparative completion, often suggesting irrelevant pronouns (e.g., "me", "himself") or nonsensical entities. However, finetuning provides a dramatic performance boost, bringing models close to human-level performance within a specific domain.
As shown in the figure above, while pretrained models (black and green lines) perform poorly, finetuned models (blue and pink lines) achieve high precision, nearly matching the human "Golden answer" baseline. For instance, on the Animals dataset, RELIC’s Recall@1 jumped from 0.12 to 0.54 after finetuning.
Analysis: Reasoning or Statistical Mimicry?
The core finding of the paper is that this high performance does not equate to semantic understanding. The models fail to generalize across domains; a model finetuned to perfection on animal comparisons performs no better than a raw, un-trained model when tested on NBA players. This indicates that the models are learning domain-specific "cheats"—lexical co-occurrences—rather than a general logic of comparison.
Furthermore, the models exhibit a strong popularity bias. They are much more likely to correctly complete a question if the target entity appeared frequently in the training data.
This correlation, visualized above, confirms that the models rely heavily on memorizing frequent entities. When frequency cues are removed or when tested on "long-tail" (less popular) entities, performance drops significantly. The models aren't learning that "size" is a comparable attribute; they are learning that "cats" and "dogs" appear in the same sentences frequently.
Conclusion
Current LMs act more as "stochastic parrots" than reasoning agents in the context of comparative questions. They memorize the "what" (which entities go together) but fail to understand the "why" (the underlying attributes like size, age, or speed). This study highlights the danger of overestimating a model's world knowledge based on benchmark performance and suggests that future research must focus on explicitly capturing the semantic properties of entities to achieve true understanding and more dynamic human-machine interaction.
Summary updated