Scenario-based Question Answering with Interacting Contextual Properties

Haitian Sun, William W. Cohen, Ruslan SalakhutdinovICLR 2023

In the world of automated customer service and legal tech, a simple question like "Am I eligible for this benefit?" is rarely a simple "yes" or "no." The answer usually depends on a complex web of personal details—your age, your income, your employment history—and how those details interact with the "fine print" of a policy document.

A new paper from researchers at Carnegie Mellon University and Google Brain introduces T-Reasoner, a model designed to handle these "scenario-based" questions by explicitly modeling the logical relationships between conditions.

TL;DR

T-Reasoner is a new framework for scenario-based Question Answering (QA) that identifies eligible answers and—crucially—detects which required conditions are missing from a user's scenario. By combining independent condition encoding with a dedicated Transformer-based reasoning module, it outperforms previous state-of-the-art models by 3-10 points across multiple benchmarks.

What Problem Does This Paper Address?

Standard QA models are great at finding facts in a text. However, they often stumble when an answer is conditional. For example, a document might say you get a $1,200 benefit if you are a partner of the deceased and you haven't claimed other benefits.

Example of scenario-based QA with interacting conditions

The challenges are twofold:

  1. Interacting Properties: Conditions aren't just a list; they have logic (conjunctions like "if both A and B" or disjunctions like "either C or D").
  2. Incomplete Information: Real-world scenarios are often "under-specified." A system shouldn't just say "I don't know"; it should be able to say, "You qualify for $1,200, provided you haven't claimed other benefits yet." These are called unsatisfied conditions.

Existing models often treat the entire document and scenario as one long string, which doesn't scale well and fails to capture the underlying logical structure.

Methods

The authors propose T-Reasoner, which breaks the task into three jointly learned modules:

T-Reasoner architecture
  • Entailment Module: Instead of processing the whole document at once, it chunks the document into individual conditions. It checks each condition against the user's scenario independently. To prevent losing context, it uses an "extended context" strategy, including surrounding tokens and special markers (<CDT>) to highlight the condition within its original sentence.
  • Reasoning Module: This is the "brain" of the system. It takes the summary vectors from the entailment module and passes them through a separate Transformer. This allows the model to learn how conditions relate to one another (e.g., realizing that if one part of an "OR" statement is true, the whole group is satisfied) without needing explicit logical labels during training.
  • Decoding Module: If the answer requires a free-form text span (rather than just a Yes/No), this module uses a Fusion-in-Decoder (FiD) approach to generate the final answer based on the encoded conditions.

Datasets

The researchers evaluated T-Reasoner on three distinct datasets:

  1. CondNLI (New): A synthetic dataset created by the authors to "stress test" logical reasoning. It uses premises and hypotheses from MultiNLI to build complex, multi-condition scenarios.
  2. ShARC: A popular benchmark for conversational QA based on regulatory snippets (like government websites).
  3. ConditionalQA: A challenging dataset involving long, complex documents (legal and administrative) where answers frequently depend on multiple user properties.

Key Insights and Ideas

  • Logic Emerges Without Labels: One of the most interesting findings is that the Reasoning Module learns to handle "AND" and "OR" logic effectively through end-to-end training on QA pairs, even without being told which conditions are grouped together.
  • Scalability through Independence: By encoding conditions independently in the Entailment Module, the model avoids the $O(N^2)$ computational explosion of self-attention on very long documents. The "extended context" trick ensures that this independence doesn't result in a loss of meaning.
  • Abductive Reasoning: Unlike "deductive" tasks where all facts are given, this model performs "abductive" reasoning—identifying what must be true for a certain outcome to occur (the unsatisfied conditions).

Key Results

T-Reasoner set a new state-of-the-art across the board:

  • ShARC: Improved "Decision Making" accuracy by ~3 points and "Question Generation" (identifying missing info) by over 8 points.
  • ConditionalQA: Achieved a massive 27.8% relative improvement in the "Overall conditional F1" metric, which jointly measures answer accuracy and the identification of unsatisfied conditions.
  • Generalization: On the synthetic CondNLI set, T-Reasoner showed a much stronger ability to generalize to scenarios with more conditions (up to 20) than standard T5 or ETC models.

Limitations and Future Work

While T-Reasoner is a significant step forward, the authors note a few areas for growth:

  • Single Answer Assumption: In the current experiments, the model was primarily evaluated on its ability to find one logically consistent answer, even if a document might support multiple possible outcomes.
  • Open-Domain Scaling: The current work operates in a "reading comprehension" setting where the relevant document is already provided. Moving this to an open-domain setting (searching the whole web for the right policy) remains a future challenge.
  • Complex Document Structure: While the model handles text well, many conditional rules are buried in tables or complex hierarchical layouts that require even more specialized encoding.

Summary updated

BibTeX
@inproceedings{sun2023scenario,
  author = {Haitian Sun and William W. Cohen and Ruslan Salakhutdinov},
  title = {{Scenario-based Question Answering with Interacting Contextual Properties}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=tPrRs6YB2P},
}
Figure