What's the best place for an AI conference, Vancouver or ______: Why completing comparative questions is difficult

Avishai Zagoury, Einat Minkov, Idan Szpektor, William W. Cohen

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

Large language models (LLMs) like BERT have revolutionized natural language processing, yet their capacity for genuine semantic reasoning remains a point of contention. This paper explores a specific dimension of "common sense" logic: comparative reasoning. To ask a sensible question, one must understand which entities are comparable; for instance, comparing the weight of a rhino and a hippo is natural, whereas comparing the height of a lion and a mouse feels nonsensical. We investigate whether models can distinguish these nuances or if they are merely sophisticated pattern matchers relying on lexical co-occurrences.

Methodology

The researchers framed the problem as a fill-in-the-blank (cloze) task, masking one entity in human-authored comparative questions sourced from platforms like Yahoo Answers. They evaluated two primary models: BERT-large and RELIC, an entity-centric variant of BERT designed to better handle multi-token entities by ranking Wikipedia entities as candidates.

The models were tested across three distinct domains:

  • Animals: (e.g., "What is more loyal, a [MASK] or a pigeon?")
  • Cities and Countries: (e.g., "Is Belgium bigger than [MASK]?")
  • NBA Players: (e.g., "Who has more rings, Brian Scalabrine or [MASK]?")

Evaluation included pretrained baselines, finetuned models, and cross-domain tests to measure generalization.

The Finetuning Mirage

Initial results show that finetuning leads to a massive spike in performance, often reaching near-human levels. In the Animals domain, human raters found that finetuned RELIC produced "sensible" completions 85-92% of the time, a dramatic improvement over pretrained baselines.

Precision vs. Rank across Animals, Cities, and NBA domains, showing the performance gap between pretrained and finetuned models.

However, this success is largely a "mirage." When a model trained on animal comparisons is asked to complete a city comparison, its performance collapses. This suggests that the models are not learning a general "comparative logic," but are instead memorizing the specific vocabulary and entity pairings of their training sets.

Lexical Co-occurrence and Memorization

The models' success is highly correlated with how often two entities appear together in the training data. If "cats" and "dogs" are frequently mentioned together, the model will suggest "dogs" to complete any question involving "cats," regardless of whether the property being compared is size, speed, or loyalty.

Correlation between training set entity popularity and model performance (MRR), highlighting the reliance on memorized co-occurrences.

As shown in the scatter plot above, there is a strong correlation between an entity's popularity in the training set and the model's ability to predict it correctly. When researchers manipulated the training data to remove these frequency biases, performance plummeted. This confirms that the models rely on statistical memorization rather than semantic reasoning.

Conclusion

While LLMs can be trained to achieve state-of-the-art results on specific benchmarks, their knowledge is often brittle and domain-bound. They lack a broad, domain-independent notion of what makes entities comparable. This study reinforces the difficulty of making broad claims about a model's linguistic competence based on performance in narrow tasks. Future research must focus on finding ways to bake deeper world knowledge and comparative logic into these models to move beyond simple statistical associations.

Summary updated

BibTeX
@inproceedings{zagoury2021what,
  author = {Avishai Zagoury and Einat Minkov and Idan Szpektor and William W. Cohen},
  title = {{What's the best place for an AI conference, Vancouver or \_\_\_\_\_\_: Why completing comparative questions is difficult}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  url = {https://openreview.net/forum?id=VCDUZ_czSE},
}
Figure