Question answering with LLMs and learning from answer sets
File(s) question-answering-with-llms-and-learning-from-answer-sets.pdf (667.35 KB)
Published version (first view)
Author(s)
Type
Journal Article
Abstract
Large language models (LLMs) excel at understanding natural language but struggle with explicit commonsense reasoning. A recent trend of research suggests that the combination of LLM with robust symbolic reasoning systems can overcome this problem on story-based question answering (Q&A) tasks. In this setting, existing approaches typically depend on human expertise to manually craft the symbolic component. We argue, however, that this component can also be automatically learned from examples. In this work, we introduce LLM2LAS, a hybrid system that effectively combines the natural language understanding capabilities of LLMs, the rule induction power of the learning from answer sets (LAS) system ILASP, and the formal reasoning strengths of answer set programming (ASP). LLMs are used to extract semantic structures from text, which ILASP then transforms into interpretable logic rules. These rules allow an ASP solver to perform precise and consistent reasoning, enabling correct answers to previously unseen questions. Empirical results outline the strengths and weaknesses of our automatic approach for learning and reasoning in a story-based Q&A benchmark.
Date Issued
2025-11-03
Date Acceptance
2025-09-30
Citation
Theory and Practice of Logic Programming, 2025
ISSN
1471-0684
Publisher
Cambridge University Press (CUP)
Journal / Book Title
Theory and Practice of Logic Programming
Copyright Statement
© The Author(s), 2025. Published by Cambridge University Press. 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.
License URL
Publication Status
Published online
Date Publish Online
2025-11-03
