LINC: A Neurosymbolic Approach for Logical Reasoning by Combining Language Models with First-Order Logic Provers
Theo OlaussonAlex GuBenjamin LipkinCedegao E. ZhangArmando Solar-LezamaJoshua B. TenenbaumRoger Levy
Proposes LINC, a neurosymbolic method that uses language models to translate natural language into first-order logic for external theorem provers, enabling a 15.5-billion-parameter model to outperform GPT-4 with chain-of-thought prompting on deductive reasoning benchmarks.
Large language models frequently struggle with sound deductive reasoning, often failing when handling negation, out-of-domain problems, and long deduction chains. When deployed in critical downstream applications such as automated theorem proving, knowledge discovery, and factual retrieval, these failures can cause severe hallucinations and logical errors. Existing prompting techniques, including Chain-of-Thought prompting, encourage models to verbalize reasoning steps but still suffer from unreliable deductive leaps.
The article evaluates a modular neurosymbolic framework named LINC (Logical Inference via Neurosymbolic Computation) to determine whether offloading deductive logic to an external symbolic engine improves natural language reasoning accuracy and robustness across diverse model scales.
The authors implemented a three-step neurosymbolic pipeline where a language model first acts as a semantic parser to translate natural language premises and conclusions into first-order logic. Second, an automated theorem prover executes symbolic deduction to determine if the conclusion is True, False, or Uncertain given the premises. Third, a 10-way majority voting sieve filters syntax errors and selects the most consistent outcome. The approach was evaluated against three standard in-context baselines (Naïve, Scratchpad, and Chain-of-Thought) across three models—StarCoder+ (15.5 billion parameters), GPT-3.5, and GPT-4—on both a naturalistic benchmark (FOLIO) and a synthetic benchmark (ProofWriter).
The evaluation revealed substantial performance advantages for neurosymbolic execution. On the synthetic ProofWriter dataset, LINC achieved near-perfect performance, reaching 96.4% with GPT-3.5 and 98.3% with GPT-4. Augmenting the smaller, open-source StarCoder+ with LINC yielded an accuracy of 82.5%, outperforming GPT-3.5 and GPT-4 using Chain-of-Thought by 38 and 10 percentage points, respectively. Unlike standard prompting baselines whose performance degraded toward random chance as proof depth increased, LINC maintained near-ceiling accuracy across all proof depths. On the naturalistic FOLIO dataset, LINC improved StarCoder+ accuracy from 41.8% to 56.0% and GPT-3.5 from 54.9% to 62.6%, while performing comparably to Chain-of-Thought on GPT-4 (72.5% versus 75.3%, a difference found to be statistically insignificant). An error analysis revealed that LINC and Chain-of-Thought exhibit distinctly complementary failure modes: Chain-of-Thought suffers from logical fallacies and reasoning breakdowns, whereas LINC maintains a higher precision on True/False predictions (93% versus 81%) but experiences lower recall due to occasional information loss or syntax errors during semantic parsing.
These findings demonstrate that separating language parsing from logical deduction significantly reduces overconfidence and logical errors in language models. Neurosymbolic architectures enable smaller, lower-cost open-source models to match or exceed the reasoning performance of significantly larger proprietary models on structured deduction tasks.
Organizations developing automated reasoning systems should consider adopting hybrid neurosymbolic architectures where language models parse domain text into formal representations and symbolic solvers execute the deduction. To maximize reliability, developers should investigate techniques such as constrained grammar generation to eliminate syntax errors, forward-backward translation validation to reduce information loss, and hybrid pipelines that combine neurosymbolic precision with natural language fallback reasoning.
Readers should note that the evaluation is confined to first-order logic on relatively short premise statements and does not account for higher-order logics or non-classical reasoning. Additionally, executing multi-sample majority voting incurs non-trivial computational and API costs, and theorem proving on massive premise sets may face NP-hard scaling constraints. Despite these boundaries, there is high confidence that neurosymbolic integration provides a robust, scalable foundation for automated deductive reasoning.
- Paper: PAL: Program-aided Language Models, Luyu Gao et al. (2023). PAL introduces the paradigm of offloading intermediate reasoning and computation from language models to external programmatic engines, establishing the conceptual blueprint that LINC adapts to first-order logic provers.
- Paper: Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Tasks, Wenhu Chen et al. (2022). This paper establishes the foundational concept of disentangling language model reasoning from deterministic computation via external program interpreters, motivating LINC's neurosymbolic modular architecture.
- Paper: Language Models Are Greedy Reasoners: A Systematic Formal Analysis of Chain-of-Thought, Abulhair Saparov et al. (2023). By formally showing how chain-of-thought prompting breaks down during multi-step proof planning despite local validity, this work directly motivates offloading symbolic deduction to dedicated provers as done in LINC.
- Paper: Chain-of-Thought Prompting Elicits Reasoning in Large Language Models, Jason Wei et al. (2022). It introduces chain-of-thought prompting, the primary baseline prompting methodology against which LINC's neurosymbolic theorem-proving approach is directly compared and evaluated.
- Paper: Maieutic Prompting: Logically Consistent Reasoning with Recursive Explanations, Jaehun Jung et al. (2022). This paper explores coupling LLM-generated explanations with formal satisfiability solvers to enforce consistency, serving as an important conceptual precursor to LINC's theorem-prover integration.
- Paper: Language Models of Code are Few-Shot Commonsense Learners, Aman Madaan et al. (2022). This work demonstrates the effectiveness of code-pretrained language models for structured formal generation, underpinning LINC's reliance on models like StarCoder+ for semantic parsing into logic.
- Paper: Fact-Checking Complex Claims with Program-Guided Reasoning, Liangming Pan et al. (2023). Extends neurosymbolic decomposition by translating complex multi-hop natural language claims into modular reasoning programs executed across specialized sub-modules.
- Paper: LEAP: Supercharging LLMs for Formal Mathematics with Agentic Frameworks, Po-Nien Kung et al. (2026). Applies modular informal-to-formal parsing and external symbolic verification to competition-level mathematical theorem proving using the Lean environment.
- Paper: Efficient Rectification of Neuro-Symbolic Reasoning Inconsistencies by Abductive Reflection, Wen-Chao Hu et al. (2025). Builds on neurosymbolic error handling by introducing an abductive reflection layer to identify and rectify logical inconsistencies between neural outputs and symbolic rules.
- Paper: Gold-medalist Performance in Solving Olympiad Geometry with AlphaGeometry2, Yuri Chervonyi et al. (2025). Demonstrates an advanced neurosymbolic architecture that combines specialized neural parsing with a dedicated deduction engine to solve complex formal proofs.
- Paper: ReCEval: Evaluating Reasoning Chains via Correctness and Informativeness, Archiki Prasad et al. (2023). Provides a reference-free framework to evaluate the step-by-step logical correctness and validity of intermediate natural language reasoning chains.
