Abstract
This paper introduces a hybrid Question Answering (QA) system that integrates formal logical reasoning with natural language processing to handle complex, sequence-based queries. By leveraging Answer Set Programming (ASP) for high-level reasoning and external machine-learning modules for textual entailment, the framework effectively bridges the gap between structured logic and unstructured text. Evaluated on a novel "Life Cycle" dataset, the system achieves up to an 18% improvement in accuracy over standard neural solvers, demonstrating the power of combining declarative logic with neural flexibility.
Introduction
Modern Question Answering (QA) systems typically follow one of two paradigms: end-to-end machine learning or formal logical reasoning. While neural models like BiDAF excel at pattern matching within text, they often falter when multi-step reasoning or external commonsense knowledge is required. Conversely, logical reasoning systems offer precision but struggle with the inherent variability and length of natural language.
This research addresses this divide by focusing on "hard" sequence-based questions, such as those involving biological life cycles. Answering a question like "What stage comes between a tadpole and an adult?" requires more than keyword matching; it necessitates an understanding of temporal and structural sequences.
Methodology: The Generate-Validate Framework
The core of the proposed system is built on Answer Set Programming (ASP), a declarative logic programming language. The authors implement a "generate-validate" framework that allows the system to handle natural language without requiring a full translation of the source text into rigid logical predicates.
- Hypothesis Generation: The ASP engine generates potential logical hypotheses based on the question.
- External Validation: Using the
@symbol to call external Python or Lua scripts, the system converts logical predicates (e.g.,stageFact(frog, adult, hasNoTail)) into natural language strings: "An adult frog has no tail." - Textual Entailment: These strings are passed to an external NLP module which calculates a confidence score (0 to 1) by comparing the hypothesis against the source text.
- Logical Aggregation: ASP handles complex definitions, such as "indicators." For instance, a property is considered an indicator of a stage only if it is unique to that stage—a reasoning task where ASP’s "negation as failure" is particularly effective.
The Life Cycle Dataset
To evaluate the system, the authors introduced a specialized benchmark consisting of 41 texts describing various life cycles (e.g., frogs, butterflies) and 5,811 multiple-choice questions. These questions are categorized into 11 distinct types, ranging from simple lookups to complex sequence-based reasoning.
As shown in Figure 1, the dataset includes templates for identifying stages (qIsAStageOf), ordering (qCorrectlyOrdered), and finding intermediate steps (qStageBetween). The inclusion of annotated logical forms for these questions facilitates the training of semantic parsers.
Experimental Results
The system was compared against several baselines, including BiDAF and various N-gram/WordNet solvers. The results indicate that the hybrid ASP-based approach significantly outperforms pure neural models.
Key findings from the evaluation (Figure 2) include:
- Superior Accuracy: The proposed system achieved accuracy between 77% and 80%, marking an 18% improvement over standard MCQ solvers.
- Reasoning Efficiency: When provided with "Gold" (human-verified) question representations, accuracy rose to 84%, indicating that the reasoning engine itself is highly robust.
- Hybrid Advantage: The success of the system suggests that formalizing the logic of the question type (e.g., the definition of "between") while using ML to query the text provides a powerful middle ground for QA.
Conclusion and Future Work
While the hybrid approach shows great promise, it is not without limitations. The primary bottleneck is the semantic parsing stage; errors in translating natural language questions into ASP predicates account for most failures. Additionally, the computational cost of calling external functions for every variable binding in ASP requires careful management through domain predicates.
Future research will focus on scaling this framework to open-domain knowledge bases and automating the creation of "generate" templates, which are currently tailored to the life cycle domain.
Summary updated