ConditionalQA: A Complex Reading Comprehension Dataset with Conditional Answers

Haitian Sun, William W. Cohen, Ruslan Salakhutdinov

Abstract

Standard reading comprehension benchmarks often focus on deterministic fact-finding. However, real-world policy documents frequently contain conditional logic where answers depend on specific criteria. We introduce ConditionalQA, a dataset of 3,102 questions over 652 complex documents that requires models to identify both answers and their governing conditions. Our evaluation shows that while state-of-the-art models can sometimes find the correct "Yes/No" or extractive answer, they struggle significantly to identify the underlying conditions, trailing human performance by nearly 40%.

Introduction

Most existing Question Answering (QA) benchmarks, such as SQuAD or Natural Questions, assume a question has a single, static answer (e.g., "Who is the president?"). In domains like law, medicine, or government policy, answers are rarely so simple. For instance, eligibility for a benefit often depends on a user's specific scenario—their relationship to others, income level, or residency status.

ConditionalQA addresses this gap by requiring models to:

  1. Reason over conditions: Identify the "if-then" logic embedded in complex text.
  2. Handle incomplete information: Recognize when a user's scenario lacks the detail needed for a definitive answer.
  3. Process long contexts: Navigate multi-page documents where rules are scattered across different sections.
An example of a conditional answer in the ConditionalQA dataset, illustrating how a response depends on specific document conditions.

The ConditionalQA Dataset

The dataset consists of 3,102 questions derived from 652 UK government policy documents. These documents are naturally rich in hierarchical logic, exceptions, and cross-references. Unlike datasets like ShARC, which use short snippets, ConditionalQA uses full-length documents and more diverse question types.

To ensure high-quality, natural questions, the authors used a multi-stage pipeline:

  • Document Sourcing: Selection of policy documents with complex structures.
  • Human-in-the-Loop Annotation: Annotators were shown "snippets" to write user scenarios and questions, preventing the bias that comes from seeing the full document first.
  • Conditional Mapping: Workers identified answers and the specific HTML elements (paragraphs or list items) that serve as conditions.
  • Scenario Perturbation: Conditions were sometimes moved into the user scenario to test if models could distinguish between known facts and remaining requirements.

Experimental Results

The authors evaluated three high-performing models: ETC (a long-context Transformer), DocHopper (iterative attention), and FiD (Fusion-in-Decoder). These models were modified to predict both a text span and a list of associated conditions.

Performance comparison between state-of-the-art models and human performance across various answer types and condition requirements.

The results reveal a massive "logic gap":

  • Human vs. Model: Humans achieve an 82.6% Exact Match (EM) score overall, while the best model (FiD) reaches only 44.4%.
  • The Conditional Penalty: When models must predict both the answer and its conditions, performance drops sharply. For extractive questions, joint accuracy for the best model was only 22.5%.
  • Pattern Matching vs. Reasoning: On yes/no questions, a simple "always predict yes" baseline (62.2%) performed nearly as well as the best AI model (64.9%), suggesting models are often pattern-matching rather than parsing logic.

Discussion and Future Work

Analysis of model errors shows that "Partial answers" (24.5%) and "Wrong answer (extractive, right type)" (20.3%) are common failure modes. Models often fail to capture the full set of conditions or struggle with the specific values required in extractive tasks.

Future research should move toward architectures that explicitly model logical structures, such as trees or graphs, rather than treating documents as flat token sequences. Additionally, there is a clear need for better multi-answer architectures that can handle the nuanced, branching logic found in real-world policy documentation. The ConditionalQA dataset serves as a challenging benchmark to drive progress in this direction.

Summary updated

BibTeX
@inproceedings{sun2022conditionalqa,
  author = {Haitian Sun and William W. Cohen and Ruslan Salakhutdinov},
  title = {{ConditionalQA: A Complex Reading Comprehension Dataset with Conditional Answers}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.acl-long.253},
}
Figure