Abstract
Large Language Models (LLMs) excel at natural language processing but often falter in complex logical reasoning, leading to "hallucinated" explanations. This paper presents CARING (Causal and Reliable Reasoning), a neuro-symbolic framework that separates linguistic translation from logical inference. CARING utilizes LLMs to translate natural language into Prolog code, which is then executed by a deterministic symbolic solver to generate verifiable, causal reasoning proofs. Experimental results on ProofWriter, PrOntoQA, and GSM8K demonstrate that CARING achieves state-of-the-art accuracy and provides logically sound explanations that far surpass traditional Chain-of-Thought methods.
Introduction: The Reasoning Gap in LLMs
While models like GPT-4 are powerful, they struggle with "structurally complex reasoning"—tasks requiring multi-step logical planning. Because LLMs rely on next-token prediction, their reasoning space expands exponentially with complexity, often resulting in "hallucinated" logic where a correct answer is supported by a nonsensical explanation.
Existing approaches typically fall into two categories:
- Prompting Strategies (e.g., Chain-of-Thought): Interpretable but prone to planning failures in deep logic.
- Symbolic Solvers (e.g., Logic-LM): Highly accurate but often function as "black boxes," providing answers without reliable, human-verifiable explanations.
CARING bridges this gap by providing both high accuracy and a transparent reasoning "trace."
The CARING Framework
The CARING framework consists of two primary modules designed to decouple "thinking" from "talking":
- SYMGEN (The Translator): An LLM (e.g., Code-LLaMA) translates natural language problem descriptions into Prolog. The LLM's role is strictly limited to mapping text to formal facts and rules, avoiding the pitfalls of neural deduction.
- SYMINFER (The Engine): A deterministic symbolic inference engine executes the Prolog code. It uses Iterative Deepening Search (IDS) to navigate the reasoning space robustly and a Reasoning Tracer to record every logical step.
The output is a human-readable Directed Acyclic Graph (DAG) that serves as a causal proof, ensuring every step is strictly derived from its premises.
Evaluation Datasets
The framework was rigorously tested on three benchmarks:
- ProofWriter: Tests logical proving based on provided facts and rules.
- PrOntoQA: A synthetic dataset for testing deep logical deduction limits.
- GSM8K: Grade-school math problems, specifically a subset annotated with structured reasoning proofs (DAGs) to measure proof accuracy.
Key Insights: Translation over Deduction
A central finding is that LLMs are significantly better at translating language into structured code than at performing multi-step logical search. By offloading search to a symbolic solver, CARING avoids the "planning bottleneck."
Furthermore, the path taken by the symbolic solver is the proof. Tapping into the internal logs of the Prolog interpreter provides a "free" explanation that is mathematically guaranteed to be the actual reason for the answer. This approach also makes the system robust to "distractor" text that often confuses Chain-of-Thought prompting.
Key Results and Performance
CARING significantly outperformed existing neuro-symbolic and standard LLM methods:
- Accuracy: On ProofWriter, CARING (with Code-LLaMA 34B) reached 96.5% accuracy, a substantial jump from the previous state-of-the-art of 79.7%.
- Proof Reliability: CARING achieved 81.0% reasoning proof similarity on ProofWriter, whereas Chain-of-Thought (CoT) methods typically scored between 15-20%.
- Scalability: Unlike CoT, which degrades as problem depth increases, CARING's performance remains stable across complex, multi-step tasks.
Limitations and Future Outlook
Despite its success, CARING relies on the expressiveness of Prolog, which may struggle with "fuzzy" common-sense reasoning not explicitly defined in the prompt. Additionally, the system's accuracy is dependent on the initial translation (SYMGEN); an incorrect mapping to Prolog will lead to a logically sound answer for the wrong problem. Future work will explore broader symbolic representations to handle spatial or temporal reasoning.
Summary updated