Neural Natural Logic Inference for Interpretable Question Answering

Jihao Shi, Xiao Ding, Li Du, Ting Liu, Bing Qin

Introduction

Modern Question Answering (QA) systems, particularly those powered by large language models (LLMs), have achieved remarkable performance on standardized tests. However, these models often operate as "black boxes," providing answers without a clear, logically sound explanation of their reasoning. Traditional symbolic logic, while interpretable, is often too rigid to handle the nuances and variability of natural language.

To bridge this gap, researchers have developed NeuNLI (Neural Natural Logic Inference). This framework combines the robustness of deep learning with the interpretability of Natural Logic, allowing AI to construct human-readable "proof paths" to justify its answers to complex science questions.

Methodology: The NeuNLI Framework

NeuNLI treats question answering as a textual entailment task. Given a question and a set of candidate answers, the model attempts to find a known fact (premise) that logically entails the proposed answer (hypothesis). The framework operates through a multi-stage pipeline designed to simulate logical reasoning.

The NeuNLI architecture, illustrating the flow from candidate retrieval through mutation and hyperbolic entailment modules.

1. Candidate Retrieval and Mutation

The system first retrieves relevant facts from a large knowledge base (e.g., Barron’s study guides or Wikipedia). Starting from the hypothesis, the model uses a BERT-based module to suggest "mutations"—small edits such as word insertions, deletions, or substitutions. For example, it might change "rodents" to "squirrels" or "consume" to "eat."

2. Logical Filtering and Natural Logic

Not all mutations are logically valid. NeuNLI employs a fine-tuned RoBERTa module to classify the logical relationship between the original and mutated sentences. It specifically looks for relations defined in Natural Logic, such as equivalence (≡), forward entailment (⊏), or negation (^). This ensures that the model only follows reasoning paths that preserve the truth of the original premise.

3. Hyperbolic Reasoning Space

A key innovation in NeuNLI is the use of hyperbolic space (specifically the Poincaré ball model) to represent these reasoning paths. Because logical mutations naturally form a branching, hierarchical tree structure, standard Euclidean geometry often fails to capture the relationships without significant distortion. Hyperbolic space is mathematically optimized for representing such hierarchies, allowing the model to more accurately measure the "distance" and entailment between different logical steps.

Interpretable Proof Paths

By iteratively applying these mutations, the model builds a tree of related sentences. A "proof path" is the sequence of logical steps that connects a retrieved fact to the final answer.

An example of a Natural Logic reasoning tree, showing how sentences are linked through specific logical relations like entailment and equivalence.

As shown in the figure above, the model can trace the logic from a general statement like "Some rodents consume plants" down to a specific hypothesis like "Some squirrels eat nuts" through a series of verifiable steps. This transparency allows human users to audit the model's reasoning and identify exactly where a logical leap might have occurred.

Experimental Results

The researchers evaluated NeuNLI on science exam datasets from the New York Regents 4th Grade exams (QA-S and QA-L). The model demonstrated significant improvements over previous interpretable baselines:

  • Accuracy: On the QA-S benchmark using the SCITEXT knowledge base, NeuNLI achieved 72% accuracy, outperforming NaturalLI (61%) and SemBERT (59%).
  • Scalability: On the larger QA-L set, it reached 50.8% accuracy, a notable improvement over the 46.4% baseline.
  • Human Evaluation: Graduate students tasked with evaluating the generated explanations rated NeuNLI’s proof paths significantly higher than those of prior methods, confirming that the model's internal logic aligns well with human intuition.

Conclusion and Future Directions

NeuNLI represents a significant step toward neural-symbolic AI. By using neural networks as the engine for discovery and Natural Logic as the guardrail for truth, the framework provides both high performance and deep interpretability. Future work will focus on improving the sensitivity of the retrieval step and expanding the search depth to handle more complex, multi-step common-sense reasoning tasks in specialized domains like medicine or law.

Summary updated

BibTeX
@inproceedings{shi2021neural,
  author = {Jihao Shi and Xiao Ding and Li Du and Ting Liu and Bing Qin},
  title = {{Neural Natural Logic Inference for Interpretable Question Answering}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.emnlp-main.298},
}
Figure