Sound and Complete Neurosymbolic Reasoning with LLM-Grounded Interpretations

Bradley P. Allen, Prateek Chhikara, Thomas Macaulay Ferguson, Filip Ilievski, Paul Groth

TL;DR

Rather than forcing large language models (LLMs) to perform flawed deductive reasoning or using them as noisy translators for classical logic solvers, this paper embeds LLMs directly into the formal semantics of a paraconsistent logic. By evaluating atomic facts bilaterally (checking for both verifiability and refutability), the framework provides a sound and complete neurosymbolic reasoning system that tolerates LLM hallucinations and contradictions without logical breakdown.

What Problem Does This Paper Address?

LLMs possess immense parametric knowledge across vast domains, but they are notoriously inconsistent and prone to hallucinations. Standard classical logic suffers from the principle of explosion (ex falso quodlibet): if a knowledge base contains even a single contradiction ($A \wedge \neg A$), every possible statement becomes trivially provable, rendering automated reasoning useless.

Existing neurosymbolic approaches either prompt LLMs to reason directly (which fails under complex multi-step deductions) or use LLMs to translate natural language into formal logic for classical theorem provers (which break down when the extracted knowledge contains factual inconsistencies). The authors flip the paradigm: instead of trying to get an LLM to reason using logic, they get a formal logic to reason using an LLM.

Methods

The authors ground their framework in Belnap computers and Richard Angell’s Logic of Analytic Containment (AC)—a logic that is both paraconsistent (contradictions do not explode) and paracomplete (rejects the law of excluded middle, permitting knowledge gaps).

  1. Bilateral Factuality Evaluation ($\zeta$): Instead of asking an LLM a unilateral "Is this true or false?", the framework evaluates an atomic proposition along two independent dimensions using separate prompt streams:
  2. Verification ($P^+$): Can the assertion be positively verified?
  3. Refutation ($P^-$): Can the assertion be affirmatively refuted?
  4. Generalized Truth Values: Outputs map to weak Kleene logic values ($t$, $f$, $e$ for undefined) yielding a paired generalized truth value $\langle u, v \rangle \in V_3 \times V_3$:
  5. $\langle t, f \rangle$: Verified and not refuted (True)
  6. $\langle f, t \rangle$: Refuted and not verified (False)
  7. $\langle t, t \rangle$: Inconsistent / Contradictory (Both verified and refuted)
  8. $\langle f, f \rangle$: Incomplete (Neither verified nor refuted)
  9. Caching and Formal Grounding: A persistent cache ($\zeta_c$) ensures that once an atomic valuation is queried, it remains stable. The authors formally prove that replacing standard interpretations with these LLM-grounded interpretations strictly preserves the soundness and completeness of the tableau reasoning calculus ($ACrQ$).

Datasets

The authors evaluated the bilateral evaluation function using balanced benchmark datasets ($N = 400$ each: 200 positive, 200 negative):

  • GPQA-derived Dataset: Expert-level multiple-choice science questions (biology, physics, chemistry). The negative pairs were formed by pairing questions with their first incorrect distractor.
  • SimpleQA-derived Dataset: Broad-domain factual question/answer pairs. The negative examples were synthetically generated distractors produced via GPT-4o Mini to be plausible yet false.

Key Insights and Ideas

  • LLMs as Interpretations, Not Solvers: In formal logic, the reasoner handles syntactic inference, while an interpretation function assigns semantic meaning to symbols. Treating the LLM as the semantic interpretation function keeps symbolic proofs mathematically rigorous while drawing on the model’s broad factual knowledge.
  • Bilateralism Reveals Epistemic Nuance: Prompting separately for proof and counterexample enables the system to detect when an LLM holds conflicting evidence rather than forcing it into a false binary choice.
  • Contradictions Outweigh Ignorance: When the bilateral evaluator abstains, it is far more likely to flag a statement as contradictory ($\langle t, t \rangle$) than as unknown ($\langle f, f \rangle$). LLMs often retrieve convincing arguments for both sides of a claim rather than failing to find evidence.

Key Results

The evaluation compared bilateral evaluation against standard unilateral evaluation across six models (flagship: Llama 4 Maverick, GPT-4o, Claude 3.5 Sonnet; distilled: Llama 4 Scout, GPT-4o Mini, Claude 3.5 Haiku) under direct, zero-shot CoT, and few-shot CoT prompting:

  • Higher Classification Quality: Bilateral evaluation significantly outperformed unilateral evaluation in non-abstained Macro F1 ($p < 0.01$), yielding a mean improvement of $+0.062$ (e.g., on SimpleQA flagship models, Macro F1 reached 0.736 vs. 0.657 for unilateral).
  • Abstention Trade-off: By identifying contradictions and gaps, bilateral evaluation reduced coverage by an average of $-0.456$ (effective coverage ranged from $\sim 50\%$ to $58\%$ compared to $100\%$ for unilateral baselines).
  • Flagship Advantage: Flagship models systematically outperformed distilled variants by $0.091$ on GPQA and $0.112$ on SimpleQA under bilateral evaluation.
  • Cost and Latency: Running bilateral checks roughly doubled API execution time and token usage (e.g., GPQA flagship bilateral required $36.75$s and $4,782$ tokens vs. $12.41$s and $2,213$ tokens unilaterally).

Limitations and Future Work

  • Incomplete End-to-End System: The empirical experiments validate the atomic bilateral evaluation function ($\zeta$), but a full end-to-end paraconsistent reasoner pipeline has yet to be deployed and benchmarked on multi-step reasoning proofs.
  • Inference Cost: Querying LLMs for verification, refutation, and repeated sampling ($2k$ calls for majority voting) on numerous atomic formulas creates potential latency and cost bottlenecks.
  • Future Directions: The authors plan to translate AC into classical Description Logics (such as $\mathcal{SROIQ}$) to leverage existing high-performance OWL reasoners (e.g., Pellet), and to explore many-valued semantics to refine metrics for LLM factuality.

Summary updated

BibTeX
@inproceedings{allen2025sound,
  author = {Bradley P. Allen and Prateek Chhikara and Thomas Macaulay Ferguson and Filip Ilievski and Paul Groth},
  title = {{Sound and Complete Neurosymbolic Reasoning with LLM-Grounded Interpretations}},
  booktitle = {NeSy - Phase 2},
  year = {2025},
  url = {https://openreview.net/forum?id=yGLdjzQT9m},
}
Figure