Miami University
Assessing the Capability of Large Language Models in Generating ASP-Compatible Logic Forms from Human Narratives
Abstract
dc:descriptionThis thesis investigates how effectively Large Language Models (LLMs) can generate structured, logic-compatible representations, called Logic Forms, from unstructured natural language narratives for use as inputs to Answer Set Programming (ASP) systems. We present a systematic comparative evaluation of three state-of-the-art LLMs (GPT-5, Gemini 2.5 Pro, and DeepSeek V3.1) across a matrix of prompting conditions varying the number of worked examples and the presence of supplementary encoding heuristics. Using a curated dataset of 100 restaurant-domain narratives and a dual evaluation protocol combining automated syntactic validation with manual semantic annotation, our results reveal that model performance is both prompting-dependent and model-specific. Under the richest configuration, GPT-5 and Gemini 2.5 Pro achieved 83% and 79% semantic accuracy with 100% syntactic validity, though the path to reliability differed markedly by architecture. We also present a taxonomy of six distinct failure modes, from missing syntactic delimiters to unsafe variables and character-level hallucinations, that characterize the boundary between successful extraction and model error. These findings offer practical, model-aware guidelines for leveraging LLMs as structured information extractors for formal reasoning and identify critical directions for future work at the intersection of neural and symbolic AI.
Degree
thesis:*- Name thesis:degree_name
- Master of Science in Computer Science
- Level thesis:degree_level
- masters
- Discipline thesis:degree_discipline
- Computer Science and Software Engineering
- Grantor dc:publisher
- Miami University
- Year dc:date
- 2026
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Aryal, Amritmani
- Advisor dc:contributor.advisor
-
- Inclezan, Daniela
Subjects
dc:subject × 7Rights
dc:rights- Statement dc:rights
-
- restricted--full text unavailable until 2027-07-10
- This thesis or dissertation is protected by copyright: all rights reserved. It may not be copied or redistributed beyond the terms of applicable copyright laws.
- Language dc:language
- English
Identifiers
dc:identifier.*- Repository record dc:identifier
- http://rave.ohiolink.edu/etdc/view?acc_num=miami1783196987006382