mlsanityData to 7 Oct 2026

Logic-Guided Data Extraction with Answer Set Programming and Large Language Models

arXiv 2607.19365 ↗First posted 8 Jun 2026cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

When Large Language Models (LLMs) are used for semantic data extraction from unstructured text, producing candidate relational facts from natural language, they may remain unreliable for tasks requiring complex combinatorial reasoning and global consistency. This paper proposes a logic-guided data extraction framework combining LLM-based extraction with Answer Set Programming (ASP). The LLM produces candidate facts, whereas ASP performs validation, inference, consistency checking, and control. Unlike existing pipelines that query the LLM independently for all target predicates, the proposed approach uses ASP reasoning to identify which predicates are logically admissible at each stage and to guide extraction queries. By interleaving LLM calls with ASP derivation, the framework infers logically implied facts without further extraction and detects inconsistencies early. We formalize the pipeline and prove that, under mild assumptions, it is equivalent to the baseline approach with respect to the final extracted facts, while requiring fewer LLM calls. We also introduce a caching mechanism for logic-based control queries, exploiting monotonicity of conjunctive queries over incrementally constructed fact sets to reduce solver invocations. Experiments on ASP-derived benchmarks show that the framework reduces LLM calls and improves extraction quality by mitigating spurious outputs, demonstrating the value of non-monotonic logic programming for controlled semantic extraction.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 18 of its 30 references that are in the map. First posted on arXiv 8 Jun 2026.

Builds on

18 of 30 references.

References · 18

  1. 2024The Llama 3 Herd of Modelscited by 14,192
  2. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  3. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
  4. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
  5. 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,258
  6. 2023A Comprehensive Overview of Large Language Modelscited by 639
  7. 2019Neural Probabilistic Logic Programming in DeepProbLogcited by 389
  8. 2023Large Language Models for Information Retrieval: A Surveycited by 331
  9. 2023Large Language Models for Generative Information Extraction: A Surveycited by 183
  10. 2024A Comprehensive Survey on Process-Oriented Automatic Text Summarization with Exploration of LLM-Based Methodscited by 101
  11. 2023NeurASP: Embracing Neural Networks into Answer Set Programmingcited by 92
  12. 2022A Survey on Aspect-Based Sentiment Analysis: Tasks, Methods, and Challengescited by 61
6 more
  1. 2023Coupling Large Language Models with Logic Programming for Robust and General Reasoning from Textcited by 59
  2. 2023Leveraging Large Language Models to Generate Answer Set Programscited by 33
  3. 2025LLM+AL: Bridging Large Language Models and Action Languages for Complex Reasoning about Actionscited by 10
  4. 2021An ASP-based Approach to Answering Natural Language Questions for Textscited by 3
  5. 2024A Reliable Common-Sense Reasoning Socialbot Built Using LLMs and Goal-Directed ASPcited by 3
  6. 2025ASP Chef grows Mustache to look bettercited by 2

Built on by

Not cited yet.