Bridging Natural Language and ASP: A Hybrid Approach Using LLMs and AMR Parsing
Date of Award
5-1-2025
Degree Name
M.S. in Electrical Engineering
Department
Department of Electrical and Computer Engineering
Advisor/Chair
Tarek Taha
Abstract
Answer Set Programming (ASP) is a declarative programming paradigm based on logic programming and nonmonotonic reasoning. It is a tremendously powerful tool for describing and solving combinatorial problems. Like any other language, ASP requires users to learn how it works and the syntax involved. It is becoming increasingly required for those unfamiliar with programming languages to interact with code. This thesis proposes a novel method of translating unconstrained English into ASP programs for logic puzzles using an LLM and Abstract Meaning Representation (AMR) graphs. Everything from ASP rules, facts, and constraints is generated to fully represent and solve the desired problem. Example logic puzzles are used to demonstrate the capabilities of the system. While most current methods rely entirely on an LLM, the proposed system minimizes the role of the LLM only to complete straightforward tasks. The LLM is used to simplify natural language sentences, identify keywords, and generate simple facts. The AMR graphs are then parsed from simplified language and used to generate ASP constraints systematically. The system successfully creates an entire ASP program that solves a combinatorial logic problem. This approach is a significant first step in creating a lighter-weight, explainable system that converts natural language to solve complex logic problems.
Keywords
Artificial Intelligence, Computer Engineering, Computer Science
Rights Statement
Copyright 2025, author.
Recommended Citation
Hite, Connar, "Bridging Natural Language and ASP: A Hybrid Approach Using LLMs and AMR Parsing" (2025). Graduate Theses and Dissertations. 7523.
https://ecommons.udayton.edu/graduate_theses/7523
