Skip to main content
QUICK REVIEW

[Paper Review] NELLIE: A Neuro-Symbolic Inference Engine for Grounded, Compositional, and Explainable Reasoning

Nathaniel Weir, Clark, Peter|arXiv (Cornell University)|Sep 16, 2022
Topic ModelingComputer Science7 citations
TL;DR

Nellie is a neuro-symbolic inference engine that performs end-to-end, grounded, and explainable question answering by constructing logical proof trees from natural language corpora using large language models for rule generation and retrieval-augmented reasoning. It outperforms state-of-the-art baselines like Entailer-3B by 22% on EntailmentBank and 26% on WorldTree while ensuring logical directionality and factual grounding in human-provided text.

ABSTRACT

Our goal is a modern approach to answering questions via systematic reasoning where answers are supported by human interpretable proof trees grounded in an NL corpus of authoritative facts. Such a system would help alleviate the challenges of interpretability and hallucination with modern LMs, and the lack of grounding of current explanation methods (e.g., Chain-of-Thought). This paper proposes a new take on Prolog-based inference engines, where we replace handcrafted rules with a combination of neural language modeling, guided generation, and semiparametric dense retrieval. Our implementation, NELLIE, is the first system to demonstrate fully interpretable, end-to-end grounded QA as entailment tree proof search, going beyond earlier work explaining known-to-be-true facts from text. In experiments, NELLIE outperforms a similar-sized state-of-the-art reasoner [Tafjord et al., 2022] while producing knowledge-grounded explanations. We also find NELLIE can exploit both semi-structured and NL text corpora to guide reasoning. Together these suggest a new way to jointly reap the benefits of both modern neural methods and traditional symbolic reasoning.

Motivation & Objective

  • To address the lack of interpretability and grounding in modern LLM-based question-answering systems, especially in high-stakes domains like medicine and law.
  • To overcome the brittleness and scalability issues of classical expert systems that rely on handcrafted symbolic rules.
  • To enable end-to-end, logically directed reasoning where answers are supported by human-interpretable proof trees grounded in authoritative NL corpora.
  • To jointly leverage the inferential power of LLMs and the verifiability of symbolic reasoning without requiring manual rule engineering.
  • To demonstrate that neuro-symbolic systems can achieve competitive QA performance while maintaining full explainability and grounding in factual text.

Proposed method

  • Nellie uses a backward-chaining Prolog-based symbolic theorem prover as its core inference engine, with neural predicates replacing handcrafted rules.
  • It dynamically generates candidate inference rules via a large language model conditioned on retrieved facts and predefined inference templates.
  • The system employs retrieval-augmented generation (RAG) to condition rule generation on relevant facts from a corpus, improving relevance and accuracy.
  • It uses natural language inference (NLI) models to perform weak unification between hypotheses and facts, enabling entailment checks in free-form NL.
  • The proof search process recursively decomposes queries into subqueries, proving each via entailment or further decomposition, forming a compositional entailment tree.
  • Two conditional generation modules—template-conditioned generation (TCG) and retrieval-conditioned generation (RCG)—are used to guide rule generation, with ablation studies showing their critical role.

Experimental results

Research questions

  • RQ1Can a neuro-symbolic system achieve both high QA performance and full grounding in factual text without relying on handcrafted symbolic rules?
  • RQ2To what extent can LLMs be used to dynamically generate inference rules that support systematic, compositional reasoning in a symbolic framework?
  • RQ3How does retrieval-augmented and template-conditioned generation improve the quality and accuracy of proof tree construction in grounded reasoning?
  • RQ4Can such a system generalize across domains by simply expanding its knowledge corpus, without retraining or rule rewriting?
  • RQ5What are the primary failure modes of grounded, explainable reasoning when hallucinations or semantic drift occur in multi-hop inference?

Key findings

  • Nellie outperforms the same-sized Entailer-3B baseline by 22% on EntailmentBank and 26% on WorldTree under its default configuration, despite requiring grounded proofs.
  • The system achieves competitive performance even when outperforming a much larger 11B-parameter Entailer model, which does not require grounded explanations.
  • Ablation studies show that removing both retrieval-conditioned (RCG) and template-conditioned (TCG) generation reduces performance by 1–1.5 points, with RCG removal causing a 3–4 point drop, proving their empirical necessity.
  • When augmented with common knowledge from OpenBookQA, Nellie’s QA accuracy improves by 11–12%, and the rate of correct proof construction increases by 9–12%, demonstrating domain generalization.
  • The predominant error type is failure to find a proof for the correct answer, followed by hypernym property inheritance errors and semantic drift across inference hops.
  • Error analysis reveals that incorrect proofs often arise from false positives in NLI-based entailment checks due to semantic drift between reasoning steps, highlighting a key challenge for future refinement.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.