TL;DR
Large Language Models (LLMs) possess massive stores of broad-coverage knowledge but frequently suffer from logical inconsistency and hallucinations. This paper introduces a novel neurosymbolic framework that directly integrates an LLM into the formal semantics of a paraconsistent logic, allowing symbolic systems to safely reason over contradictory LLM outputs without triggering a catastrophic logical collapse.
What Problem Does This Paper Address?
While LLMs are fantastic open-domain knowledge bases, they are notoriously bad at maintaining strict logical consistency. If you try to hook an LLM up to a traditional symbolic reasoner (like a classical logic solver), a single contradiction can trigger logical explosion (ex falso quodlibet). In classical logic, if a system encounters a contradiction (e.g., "Opioids are addictive" AND "Opioids are non-addictive"), everything becomes provable, rendering the entire reasoning system useless.
Previous neurosymbolic approaches have tried to force LLMs to reason logically via prompting, or used them as translators to generate clean logical rules for external solvers. This paper flips the script: instead of trying to make an LLM act like a perfect logician, it builds a formal logical framework that knows exactly how to handle an unreliable, inconsistent LLM.
Methods
The authors implement a "Belnap computer" using Angell’s logic of analytic containment ($\text{AC}$), a type of paraconsistent logic designed to tolerate contradictions and incomplete information.
The core technical contributions include:
- Bilateral Factuality Evaluation: Instead of asking an LLM if a statement is simply true or false (a unilateral approach), the system queries the LLM twice: once to see if it can verify the statement, and once to see if it can refute it.
- Generalized Truth Values: The LLM's responses are mapped to weak Kleene logic values ($t$ for true, $f$ for false, $e$ for undefined/error). Paired together, they form a generalized truth value $\langle u, v \rangle$. This explicitly surfaces the LLM's epistemic state: consistent knowledge ($\langle t, f \rangle$ or $\langle f, t \rangle$), uncertainty ("gaps" $\langle f, f \rangle$), or contradiction ("gluts" $\langle t, t \rangle$).
- LLM-Grounded Interpretation: The LLM is embedded directly into the formal semantics as the interpretation function ($\mathcal{I}$) for atomic formulas.
- Tableau Reasoner: The authors implemented a Python-based reasoner that uses forward-chaining to derive new formulas and an analytic tableau system for satisfiability checking, ensuring that contradictions remain localized and do not crash the system.
Datasets
The framework was evaluated using two types of datasets:
- GPQA & SimpleQA Benchmarks: The authors adapted these short-form factuality benchmarks to create two balanced test datasets ($N=400$ each) containing positive and negative question-answer pairs to evaluate the bilateral factuality function across flagship models (like GPT-4o and Claude 3.5 Sonnet).
- Medication-Safety Knowledge Base: A custom domain-specific dataset containing 228 asserted statements (28 rules and 200 ground assertions) across 16 drug classes. Through forward-chaining, this expanded to 940 total statements to test the reasoner's scalability and robustness to medical misinformation.
Key Insights and Ideas
- Embracing Inconsistency as a Feature: Instead of treating LLM contradictions as failures to be patched, the framework treats them as valid epistemic states ("knowledge gluts"). This allows the system to flag conflicts while continuing to safely compute valid inferences from uncontested premises.
- The Accuracy-Coverage Trade-off: Bilateral evaluation acts as a natural selective classification mechanism. By allowing the system to abstain on ambiguous or contradictory cases, the reliability (Macro-F1) of its definite verdicts increases significantly.
- LLM Latency Dominates: Computational analysis revealed that the actual paraconsistent logic processing takes less than 10 milliseconds. Over 99% of the execution time is spent waiting on LLM API calls, meaning future scaling optimizations must focus on batching, parallelization, and local quantized models rather than algorithmic logic tuning.
Key Results
- Factuality Boost: Bilateral evaluation improved Macro-F1 scores by roughly 6 percentage points over a unilateral baseline on both the GPQA and SimpleQA benchmarks.
- Robust Error Containment: In the medication-safety use case, the forward-chaining reasoner generated 712 new statements. The system successfully flagged 92 gluts representing critical medical errors (e.g., deliberately erroneous rules inferring that opioids are non-addictive or that beta-blockers are safe for asthma patients) while keeping the overall knowledge base entirely satisfiable.
Limitations and Future Work
- The Verbalization Bottleneck: The system relies heavily on how logical formulas are translated into natural language for the LLM. Opaque or highly technical symbol names (e.g.,
rxn_4521orcompound7) fail to activate the LLM's parametric knowledge, resulting in unhelpful "epistemic gaps" ($\langle f, f \rangle$). - API Latency & Cost: Waiting for multiple LLM calls per inference is slow, taking around 13 minutes for a small 940-statement knowledge base.
- Future Directions: The authors propose integrating Retrieval-Augmented Generation (RAG) directly into the verbalization function to fill knowledge gaps, exploring advanced description logic optimization techniques (like lazy unfolding and semantic branching), and conducting user studies on their interactive "Theory Manager" interface.
Summary updated