Integrating Expert Knowledge into Logical Programs via LLMs
On the map: LLM reasoning → Reasoning benchmarks and evaluation
Abstract (arXiv)
This paper introduces ExKLoP, a novel framework designed to evaluate how effectively Large Language Models (LLMs) integrate expert knowledge into logical reasoning systems. This capability is especially valuable in engineering, where expert knowledge-such as manufacturer-recommended operational ranges-can be directly embedded into automated monitoring systems. By mirroring expert verification steps, tasks like range checking and constraint validation help ensure system safety and reliability. Our approach systematically evaluates LLM-generated logical rules, assessing both syntactic fluency and logical correctness in these critical validation tasks. We also explore the models' capacity for self-correction via an iterative feedback loop based on code execution outcomes. ExKLoP presents an extensible dataset comprising 130 engineering premises, 950 prompts, and corresponding validation points. It enables comprehensive benchmarking while allowing control over task complexity and scalability of experiments. We leverage the synthetic data creation methodology to conduct extensive empirical evaluation on a diverse set of LLMs including Llama3, Gemma3, Codestral and QwenCoder. The results reveal that most models generate nearly perfect syntactically correct code and exhibit strong performance in translating expert knowledge into correct code. At the same time, while most LLMs produce nearly flawless syntactic output, their ability to correctly implement logical rules varies, as does their capacity for self-improvement. Overall, ExKLoP serves as a robust evaluation platform that streamlines the selection of effective models for self-correcting systems while clearly delineating the types of errors encountered.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Placed in Reasoning benchmarks and evaluation, one of 17 directions in LLM reasoning. Builds on 54 of its 79 references that are in the map. First posted on arXiv 17 Feb 2025.
Builds on
54 of 79 references.
Closest ancestors · 16
Same direction, newest first
- 2024Are Your LLMs Capable of Stable Reasoning?17 Dec
- 2024RuleArena: A Benchmark for Rule-Guided Reasoning with LLMs in Real-World Scenarios12 Dec
- 2024Leveraging LLMs for Hypothetical Deduction in Logical Inference: A Neuro-Symbolic Approach29 Oct
- 2024Think Together and Work Better: Combining Humans' and LLMs' Think-Aloud Outcomes for Effective Text Evaluation11 Sep
- 2024Automated Theorem Provers Help Improve Large Language Model Reasoning7 Aug
- 2024Struct-X: Enhancing Large Language Models Reasoning with Structured Data17 Jul
- 2024ChatLogic: Integrating Logic Programming with Large Language Models for Multi-Step Reasoning14 Jul
- 2024LLM-ARC: Enhancing LLMs with an Automated Reasoning Critic25 Jun
- 2024Reasoning in Transformers -- Mitigating Spurious Correlations and Reasoning Shortcuts17 Mar
- 2024Enhancing Ethical Explanations of Large Language Models through Iterative Symbolic Refinement1 Feb
- 2024LogicAsker: Evaluating and Improving the Logical Reasoning Ability of Large Language Models1 Jan
- 2023A Closer Look at the Self-Verification Abilities of Large Language Models in Logical Reasoning14 Nov
4 more
- 2023Language Models can be Logical Solvers10 Nov
- 2023DetermLR: Augmenting LLM-based Logical Reasoning from Indeterminacy to Determinacy28 Oct
- 2023LINC: A Neurosymbolic Approach for Logical Reasoning by Combining Language Models with First-Order Logic Provers23 Oct
- 2023Logic-LM: Empowering Large Language Models with Symbolic Solvers for Faithful Logical Reasoning20 May
Other references · 38
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2024Qwen2.5-Coder Technical Reportcited by 1,203
- 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,076
- 2024Improve Mathematical Reasoning in Language Models by Automated Process Supervisioncited by 441
- 2020Transformers as Soft Reasoners over Languagecited by 270
- 2025Goedel-Prover: A Frontier Model for Open-Source Automated Theorem Provingcited by 133
- 2022Large Language Models are few(1)-shot Table Reasonerscited by 116
- 2024Limitations of the LLM-as-a-Judge Approach for Evaluating LLM Outputs in Expert Knowledge Taskscited by 106
- 2024Faithful Logical Reasoning via Symbolic Chain-of-Thoughtcited by 100
- 2024Large Language Models Can Automatically Engineer Features for Few-Shot Tabular Learningcited by 81
- 2024If LLM Is the Wizard, Then Code Is the Wand: A Survey on How Code Empowers Large Language Models to Serve as Intelligent Agentscited by 79
- 2024Enchanting Program Specification Synthesis by Large Language Models using Static Analysis and Program Verificationcited by 58
26 more
- 2023Lemur: Integrating Large Language Models in Automated Program Verificationcited by 49
- 2024Iterative Refinement of Project-Level Code Context for Precise Code Generation with Compiler Feedbackcited by 46
- 2024Improving LLM Reasoning through Scaling Inference Computation with Collaborative Verificationcited by 40
- 2023Symbol-LLM: Towards Foundational Symbol-centric Interface For Large Language Modelscited by 39
- 2024Automatic Programming: Large Language Models and Beyondcited by 36
- 2024Verification and Refinement of Natural Language Explanations through LLM-Symbolic Theorem Provingcited by 35
- 2024CodeHalu: Investigating Code Hallucinations in LLMs via Execution-based Verificationcited by 34
- 2023Beyond Accuracy: Evaluating Self-Consistency of Code Large Language Models with IdentityChaincited by 31
- 2024LeanReasoner: Boosting Complex Logical Reasoning with Leancited by 28
- 2024ECCO: Can We Improve Model-Generated Code Efficiency Without Sacrificing Functional Correctness?cited by 27
- 2025PDE-Controller: LLMs for Autoformalization and Reasoning of PDEscited by 23
- 2024When to Stop? Towards Efficient Code Generation in LLMs with Excess Token Preventioncited by 21
- 2023A Symbolic Framework for Evaluating Mathematical Reasoning and Generalisation with Transformerscited by 15
- 2024Model Editing for LLMs4Code: How Far are We?cited by 10
- 2024PythonSaga: Redefining the Benchmark to Evaluate Code Generating LLMscited by 9
- 2024An LLM-based Knowledge Synthesis and Scientific Reasoning Framework for Biomedical Discoverycited by 9
- 2024Enhancing Computer Programming Education with LLMs: A Study on Effective Prompt Engineering for Python Code Generationcited by 9
- 2024Derailer-Rerailer: Adaptive Verification for Efficient and Reliable Language Model Reasoningcited by 9
- 2024Not All Votes Count! Programs as Verifiers Improve Self-Consistency of Language Models for Math Reasoningcited by 9
- 2024SylloBio-NLI: Evaluating Large Language Models on Biomedical Syllogistic Reasoningcited by 9
- 2019Logic Rules Powered Knowledge Graph Embeddingcited by 7
- 2022Transformers and the representation of biomedical background knowledgecited by 5
- 2024Inference to the Best Explanation in Large Language Modelscited by 5
- 2023Large Language Models, scientific knowledge and factuality: A framework to streamline human expert evaluationcited by 4
- 2024Logic Agent: Enhancing Validity with Logic Rule Invocationcited by 3
- 2024Translating Expert Intuition into Quantifiable Features: Encode Investigator Domain Knowledge via LLM for Enhanced Predictive Analyticscited by 2
Built on by
Citing papers per year: 2025: 2; 2026: 1.
3 papers.
- 2025Adaptive LLM-Symbolic Reasoning via Dynamic Logical Solver Compositioncited by 7
- 2025Biomedical reasoning in action: Multi-agent System for Auditable Biomedical Evidence Synthesiscited by 0
- 2026TreeAgent: A Generalizable Multi-Agent Framework for Automated Bias Labeling in Forestry via Compiled Expert Rules and Vision-Language Modelscited by 0
- 2026TreeAgent: A Generalizable Multi-Agent Framework for Automated Bias Labeling in Forestry via Compiled Expert Rules and Vision-Language Models30 Jun 2026
- 2025Adaptive LLM-Symbolic Reasoning via Dynamic Logical Solver Composition8 Oct 2025
- 2025Biomedical reasoning in action: Multi-agent System for Auditable Biomedical Evidence Synthesis6 Oct 2025
Similar, not cited
Close in wording, no citation either way
- 2025OneEval: Benchmarking LLM Knowledge-intensive Reasoning over Diverse Knowledge Bases
- 2024Enhancing Reasoning Capabilities of LLMs via Principled Synthetic Logic Corpus
- 2025Do LLMs Dream of Discrete Algorithms?
- 2025Beyond Correctness: Exposing LLM-generated Logical Flaws in Reasoning via Multi-step Automated Theorem Proving
- 2024CodeMind: Evaluating Large Language Models for Code Reasoning
- 2024A Closer Look at Logical Reasoning with LLMs: The Choice of Tool Matters
- 2025Can LLMs Reason About Program Semantics? A Comprehensive Evaluation of LLMs on Formal Specification Inference
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMs