{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,22]],"date-time":"2026-10-22T03:37:58Z","timestamp":1792640278965,"version":"4.5.0"},"reference-count":30,"publisher":"Cambridge University Press (CUP)","issue":"1-2","license":[{"start":{"date-parts":[[2026,7,8]],"date-time":"2026-07-08T00:00:00Z","timestamp":1783468800000},"content-version":"unspecified","delay-in-days":129,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"},{"start":{"date-parts":[[2026,7,8]],"date-time":"2026-07-08T00:00:00Z","timestamp":1783468800000},"content-version":"tdm","delay-in-days":129,"URL":"https:\/\/www.cambridge.org\/tdm\/tdmrep-policy.json"}],"content-domain":{"domain":["cambridge.org"],"crossmark-restriction":true},"short-container-title":["Theory and Practice of Logic Programming"],"published-print":{"date-parts":[[2026,3]]},"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:p>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.<\/jats:p>","DOI":"10.1017\/s1471068426100635","type":"journal-article","created":{"date-parts":[[2026,7,8]],"date-time":"2026-07-08T04:23:52Z","timestamp":1783484632000},"page":"8-25","update-policy":"https:\/\/doi.org\/10.1017\/policypage","source":"Crossref","is-referenced-by-count":0,"title":["Logic-Guided Data Extraction with Answer Set Programming and Large Language Models"],"prefix":"10.1017","volume":"26","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-2052-2063","authenticated-orcid":false,"given":"MARIO","family":"ALVIANO","sequence":"first","affiliation":[{"name":"University of Calabria"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0002-6099-3895","authenticated-orcid":false,"given":"LORENZO","family":"GRILLO","sequence":"additional","affiliation":[{"name":"Universit\u00e0 degli Studi della Campania Luigi Vanvitelli"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"NICOLA","family":"LEONE","sequence":"additional","affiliation":[{"name":"University of Calabria"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-9092-8918","authenticated-orcid":false,"given":"FABRIZIO","family":"LO SCUDO","sequence":"additional","affiliation":[{"name":"University of Calabria"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"56","published-online":{"date-parts":[[2026,7,8]]},"reference":[{"key":"S1471068426100635_ref1","doi-asserted-by":"crossref","unstructured":"Alviano, M. , Grillo, L. , Lo Scudo, F. and Reiners, L. A. R. 2025. Integrating answer set programming and large language models for enhanced structured representation of complex knowledge in natural language. In Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence, IJCAI, ijcai.org, Montreal, Canada, 4330\u20134338.","DOI":"10.24963\/ijcai.2025\/482"},{"key":"S1471068426100635_ref14","unstructured":"Manhaeve, R. , Dumancic, S. , Kimmig, A. , Demeester, T. and Raedt, L. D. 2018. Deepproblog: Neural probabilistic logic programming. In NeurIPS, 3753\u20133763."},{"key":"S1471068426100635_ref26","doi-asserted-by":"crossref","unstructured":"Yang, Z. , Ishay, A. and Lee, J. 2023. Coupling large language models with logic programming for robust and general reasoning from text. In ACL (Findings). Association for Computational Linguistics, A. Rogers, J. L. Boyd-Graber and N. Okazaki, Eds, 5186\u20135219.","DOI":"10.18653\/v1\/2023.findings-acl.321"},{"key":"S1471068426100635_ref12","first-page":"379","volume-title":"LPNMR. Lecture Notes in Computer Science","volume":"3662","author":"Leone","year":"2005"},{"key":"S1471068426100635_ref7","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-40564-8_31"},{"key":"S1471068426100635_ref21","doi-asserted-by":"publisher","DOI":"10.1017\/S1471068421000594"},{"key":"S1471068426100635_ref16","unstructured":"Meta. 2024. The llama 3 herd of models. CoRR abs\/2407.21783."},{"key":"S1471068426100635_ref30","doi-asserted-by":"publisher","DOI":"10.1145\/3748304"},{"key":"S1471068426100635_ref20","unstructured":"OpenAI. 2025. gpt-oss-120b & gpt-oss-20b model card."},{"key":"S1471068426100635_ref9","doi-asserted-by":"crossref","unstructured":"Ishay, A. and Lee, J. 2025. LLM+AL: Bridging large language models and action languages for complex reasoning about actions. In Proceedings of the AAAI Conference on Artificial Intelligence, AAAI Press, 24212\u201324220.","DOI":"10.1609\/aaai.v39i23.34597"},{"key":"S1471068426100635_ref25","doi-asserted-by":"crossref","unstructured":"Yang, Z. , Ishay, A. and Lee, J. 2020. Neurasp: Embracing neural networks into answer set programming. In Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence, IJCAI, C. Bessiere, Ed. ijcai.org, 1755\u20131762.","DOI":"10.24963\/ijcai.2020\/243"},{"key":"S1471068426100635_ref4","first-page":"39","article-title":"On the role of integrity constraints in data integration","volume":"25","author":"Cal\u00ec","year":"2002","journal-title":"IEEE Data Engineering Bulletin"},{"key":"S1471068426100635_ref27","unstructured":"Yao, S. , Zhao, J. , Yu, D. , Du, N. , Shafran, I. , Narasimhan, K. R. and Cao, Y. 2023. React: Synergizing reasoning and acting in language models. In The Eleventh International Conference on Learning Representations, ICLR, OpenReview.net, Kigali, Rwanda."},{"key":"S1471068426100635_ref18","doi-asserted-by":"crossref","unstructured":"Naveed, H. , Khan, A. U. , Qiu, S. , Saqib, M. , Anwar, S. , Usman, M. , Akhtar, N. , Barnes, N. and Mian, A. 2025. A comprehensive overview of large language models.","DOI":"10.1145\/3744746"},{"key":"S1471068426100635_ref29","doi-asserted-by":"publisher","DOI":"10.1109\/TKDE.2022.3230975"},{"key":"S1471068426100635_ref24","unstructured":"Xu, D. , Chen, W. , Peng, W. , Zhang, C. , Xu, T. , Zhao, X. , Wu, X. , Zheng, Y. and Chen, E. (2023). Large language models for generative information extraction: a survey. CoRR abs\/2312.17617."},{"key":"S1471068426100635_ref19","doi-asserted-by":"publisher","DOI":"10.1023\/A:1018930122475"},{"key":"S1471068426100635_ref2","doi-asserted-by":"publisher","DOI":"10.1017\/S1471068425100094"},{"key":"S1471068426100635_ref8","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-20895-9_7"},{"key":"S1471068426100635_ref6","doi-asserted-by":"publisher","DOI":"10.1007\/s13218-018-0535-y"},{"key":"S1471068426100635_ref5","doi-asserted-by":"crossref","unstructured":"Eiter, T. , Geibinger, T. , Higuera, N. and Oetsch, J. 2023. A logic-based approach to contrastive explainability for neurosymbolic visual question answering. In Proceedings of the Thirty-Second International Joint Conference on Artificial Intelligence, ijcai.org, 3668\u20133676.","DOI":"10.24963\/ijcai.2023\/408"},{"key":"S1471068426100635_ref22","doi-asserted-by":"publisher","DOI":"10.4204\/EPTCS.385.27"},{"key":"S1471068426100635_ref10","doi-asserted-by":"crossref","unstructured":"Ishay, A. , Yang, Z. and Lee, J. 2023. Leveraging large language models to generate answer set programs. In Proceedings of the 20th International Conference on Principles of Knowledge Representation and Reasoning, 374\u2013383.","DOI":"10.24963\/kr.2023\/37"},{"key":"S1471068426100635_ref13","doi-asserted-by":"crossref","unstructured":"Madaan, A. , Tandon, N. , Gupta, P. , Hallinan, S. , Gao, L. , Wiegreffe, S. , Alon, U. , Dziri, N. , Prabhumoye, S. , Yang, Y. , Gupta, S. , Majumder, B. P. , Hermann, K. , Welleck, S. , Yazdanbakhsh, A. and Clark, P. 2023. Self-refine: Iterative refinement with self-feedback. In Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS, M. Hardt, S. Levine, A. Oh, T. Naumann, A. Globerson and K. Saenko, Eds. December 10 - 16 1923, NeurIPS, New Orleans, LA, USA.","DOI":"10.52202\/075280-2019"},{"key":"S1471068426100635_ref17","doi-asserted-by":"publisher","DOI":"10.1145\/219717.219748"},{"key":"S1471068426100635_ref15","doi-asserted-by":"crossref","unstructured":"Marek, V. and Truszczy\u0144ski, M. 1999. Stable models and an alternative logic programming paradigm. In The Logic Programming Paradigm: A 25-Year Perspective, 375\u2013398.","DOI":"10.1007\/978-3-642-60085-2_17"},{"key":"S1471068426100635_ref3","unstructured":"Arias, J. , Carro, M. , Chen, Z. and Gupta, G. 2019. Constraint answer set programming without grounding and its applications. In Datalog 2.0 2019 - 3rd International Workshop on the Resurgence of Datalog in Academia and Industry co-located with the 15th International Conference on Logic Programming and Nonmonotonic Reasoning (LPNMR. 2019) at the Philadelphia Logic Week 2019, CEUR Workshop Proceedings, Vol. 2368, June 4-5 1919, M. Alviano and A. Pieris, Eds. CEUR-WS.org, Philadelphia, PA, 22\u201326."},{"key":"S1471068426100635_ref11","unstructured":"Jin, H. , Zhang, Y. , Meng, D. , Wang, J. and Tan, J. 2024. A comprehensive survey on process-oriented automatic text summarization with exploration of llm-based methods."},{"key":"S1471068426100635_ref28","doi-asserted-by":"publisher","DOI":"10.1017\/S147106842400022X"},{"key":"S1471068426100635_ref23","doi-asserted-by":"publisher","DOI":"10.52202\/075280-0377"}],"container-title":["Theory and Practice of Logic Programming"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.cambridge.org\/core\/services\/aop-cambridge-core\/content\/view\/S1471068426100635","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/www.cambridge.org\/core\/services\/aop-cambridge-core\/content\/view\/S1471068426100635","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,10,22]],"date-time":"2026-10-22T02:41:21Z","timestamp":1792636881000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.cambridge.org\/core\/product\/identifier\/S1471068426100635\/type\/journal_article"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,3]]},"references-count":30,"journal-issue":{"issue":"1-2","published-print":{"date-parts":[[2026,3]]}},"alternative-id":["S1471068426100635"],"URL":"https:\/\/doi.org\/10.1017\/s1471068426100635","relation":{},"ISSN":["1471-0684","1475-3081"],"issn-type":[{"value":"1471-0684","type":"print"},{"value":"1475-3081","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,3]]},"assertion":[{"value":"\u00a9 The Author(s), 2026. Published by Cambridge University Press","name":"copyright","label":"Copyright","group":{"name":"copyright_and_licensing","label":"Copyright and Licensing"}},{"value":"This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https:\/\/creativecommons.org\/licenses\/by\/4.0\/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.","name":"license","label":"License","group":{"name":"copyright_and_licensing","label":"Copyright and Licensing"}},{"value":"This content has been made available to all.","name":"free","label":"Free to read"}]}}