NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

QuaRel: A Dataset and Models for Answering Questions about Qualitative Relationships.

Oyvind Tafjord, Peter Clark, Matt Gardner, Wen-tau Yih, Ashish Sabharwal

Abstract

Many natural language questions require recognizing and reasoning with qualitative relationships (e.g., in science, economics, and medicine), but are challenging to answer with corpus-based methods. Qualitative modeling provides tools that support such reasoning, but the semantic parsing task of mapping questions into those models has formidable challenges. We present QuaRel, a dataset of diverse story questions involving qualitative relationships that characterize these challenges, and techniques that begin to address them. The dataset has 2771 questions relating 19 different types of quantities. We contribute (1) a simple and flexible conceptual framework for representing these kinds of questions; (2) the QuaRel dataset, including logical forms, exemplifying the parsing challenges; and (3) two novel models for this task, built as extensions of type-constrained semantic parsing. The first of these models (called QuaSP+) significantly outperforms off-the-shelf tools on QuaRel. The second (QuaSP+Zero) demonstrates zero-shot capability, i.e., the ability to handle new qualitative relationships without requiring additional training data.

Introduction

Qualitative reasoning—understanding how a change in one property affects another (e.g., "if a drug dose increases, what happens to the heart rate?")—is a fundamental component of human intelligence. However, standard corpus-based Question Answering (QA) methods struggle with these types of questions. While they excel at fact retrieval, qualitative story problems describe novel, hypothetical scenarios that require logical inference rather than simple retrieval.

The primary challenge lies in semantic parsing: mapping messy natural language into rigid formal models. A major hurdle is "world tracking"—identifying and keeping track of the different scenarios or objects being compared (e.g., a car on a wood floor vs. a car on a carpet) when they are described using highly varied vocabulary.

The QuaRel Dataset

To address these challenges, we introduce QuaRel, a crowdsourced dataset of 2,771 multiple-choice story questions covering 19 different types of quantities, such as friction, speed, loudness, and sweat. Each question is paired with a logical form (LF) that represents the underlying qualitative relationships.

Qualitative relationships between physical quantities like smoothness, friction, and speed.

The dataset was collected using a reverse-engineering technique where crowd workers answered simple follow-up questions about the direction of comparison, which were then automatically compiled into target LFs. This avoided the need to teach workers formal logic while ensuring high-quality annotations.

Methods: QuaSP+ and QuaSP+Zero

We frame the task as converting natural language questions into LFs executable by a Prolog-style inference engine. We extend a baseline type-constrained neural semantic parser (QuaSP) with two novel models:

  1. QuaSP+ (World Tracking via Delexicalization): This model solves the "world tracking" problem by using a BiLSTM+CRF tagger to identify world mentions (e.g., "shag carpeting"). It then delexicalizes the question, replacing complex phrases with canonical tokens (WORLD1, WORLD2). This forces the parser to learn the underlying comparative structure rather than memorizing specific nouns.
  2. QuaSP+Zero (Zero-Shot Learning): This model enables parsing questions about unseen properties without requiring new training data. It uses an entity-linking approach to compare token embeddings to a small, predefined list of keywords for a property.
The QuaSP+ model architecture, utilizing bi-LSTM and Attention mechanisms to generate logical forms.

Results and Discussion

Experimental results show that standard baselines, including Information Retrieval (IR) and BiLSTM classifiers, perform near chance (48-54%). In contrast, QuaSP+ significantly outperforms these baselines, achieving 68.7% answer accuracy on the full dataset. The delexicalization strategy proved crucial, as parse accuracy jumped from 32.2% in the baseline to 43.8%.

Furthermore, QuaSP+Zero demonstrated viable zero-shot capabilities, achieving 59.5% answer accuracy on properties completely unseen during training. This suggests that models can generalize qualitative logic to new domains by simply providing a few lexical anchors.

Conclusion and Future Work

QuaRel provides a new benchmark for qualitative reasoning in NLP. While our models make significant inroads, limitations remain. Current models struggle with absolute quantitative values (e.g., "10 mph") and complex commonsense indirection (e.g., inferring that a "better surface for a race" implies higher speed). Future work will focus on integrating these broader reasoning capabilities to create more robust qualitative QA systems.

Summary updated

BibTeX
@inproceedings{tafjord2019quarel,
  author = {Oyvind Tafjord and Peter Clark and Matt Gardner and Wen-tau Yih and Ashish Sabharwal},
  title = {{QuaRel: A Dataset and Models for Answering Questions about Qualitative Relationships.}},
  booktitle = {AAAI},
  year = {2019},
  url = {https://openreview.net/forum?id=0JltskEq6NPH},
}
Figure