Reasoning over Logically Interacted Conditions for Question Answering

Haitian Sun, William W. Cohen, Ruslan SalakhutdinovarXiv 2022 · DOI

Introduction

While modern Question Answering (QA) systems excel at factoid retrieval, they often falter when faced with the conditional complexity of real-world documents, such as legal statutes, insurance policies, or medical guidelines. In these contexts, an answer is rarely a simple "yes" or "no"; rather, it depends on a web of logically interacting conditions (e.g., "You are eligible if criteria A is met and either B or C is true").

Current AI models face two primary challenges in these scenarios: the inability to model complex logical structures (AND, OR, NOT) and the failure to handle missing information gracefully. To address this, we introduce TReasoner, a framework designed for robust conditional reasoning and abductive reasoning—the ability to identify which unsatisfied conditions a user must verify to validate a potential answer.

Methodology: The TReasoner Framework

TReasoner employs a modular architecture to decouple text encoding from logical reasoning, allowing it to scale to documents with hundreds of requirements.

1. Entailment Module

Inspired by the Fusion-in-Decoder approach, this module independently encodes each condition alongside the question and potential result. By processing conditions separately, TReasoner reduces computational complexity from $O(N^2)$ to $O(C)$, where $C$ is the number of conditions, facilitating high scalability.

2. Reasoning Module

The reasoning module serves as the system's central processing unit. It takes the embeddings from the entailment module and utilizes a Transformer's self-attention mechanism to resolve logical dependencies. This allows the model to "softly" learn logical operators and determine how different conditions interact to influence the final answer.

3. Generation Module

For questions requiring free-form text, the generation module decodes the internal representations into natural language responses. Crucially, the model is trained to predict the status of every condition—whether it is "entailed," "contradicted," or "to check"—providing a transparent "checklist" for its conclusions.

The TReasoner architecture, featuring Entailment, Reasoning, and Decoding modules.

Experimental Setup and Datasets

The researchers evaluated TReasoner across three distinct benchmarks:

  • CondNLI: A synthetic dataset designed to test deep logical nesting using premises from MultiNLI.
  • ConditionalQA: A challenging real-world dataset based on complex government and help documents where answers are highly scenario-dependent.
  • ShARC: A conversational dataset that requires models to determine if they have sufficient information or must ask follow-up questions ("inquire").

Results and Discussion

TReasoner established a new state-of-the-art (SOTA) across all evaluated benchmarks. On the ConditionalQA dataset, it achieved a 166% relative improvement in the "conditional EM/F1" metric, which tracks both answer accuracy and condition identification. On ShARC, it reached a micro-accuracy of 80.4 for decision-making and significantly improved BLEU scores for follow-up question generation.

Performance analysis of TReasoner across varying numbers of conditions and reasoner layers.

As shown in the performance analysis, TReasoner maintains high accuracy even as the number of interacting conditions increases, demonstrating its robustness and scalability compared to standard Transformer architectures. Furthermore, the model's ability to perform abductive reasoning makes it highly interpretable, as it explicitly identifies missing evidence rather than simply failing.

Conclusion and Future Work

TReasoner represents a significant step forward in complex QA by treating logical reasoning as a distinct, scalable process. While the model excels at structured condition-result tuples, future work will focus on improving condition extraction from unstructured "flat" text and handling multi-answer scenarios where different sets of conditions lead to different valid outcomes.

Summary updated

BibTeX
@misc{sun2022reasoning,
  author = {Haitian Sun and William W. Cohen and Ruslan Salakhutdinov},
  title = {{Reasoning over Logically Interacted Conditions for Question Answering}},
  year = {2022},
  eprint = {2205.12898},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.12898},
}
Figure