Bridging Natural Language and ASP: A Hybrid Approach Using LLMs and AMR Parsing

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Hite, Connar, Saud, Sean, Taha, Raef, Rahman, Nayim, Atahary, Tanvir, Douglass, Scott, Taha, Tarek
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908645410734080
author Hite, Connar
Saud, Sean
Taha, Raef
Rahman, Nayim
Atahary, Tanvir
Douglass, Scott
Taha, Tarek
author_facet Hite, Connar
Saud, Sean
Taha, Raef
Rahman, Nayim
Atahary, Tanvir
Douglass, Scott
Taha, Tarek
contents Answer Set Programming (ASP) is a declarative programming paradigm based on logic programming and non-monotonic 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 paper 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, our 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.
format Preprint
id arxiv_https___arxiv_org_abs_2511_08715
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Bridging Natural Language and ASP: A Hybrid Approach Using LLMs and AMR Parsing
Hite, Connar
Saud, Sean
Taha, Raef
Rahman, Nayim
Atahary, Tanvir
Douglass, Scott
Taha, Tarek
Artificial Intelligence
Answer Set Programming (ASP) is a declarative programming paradigm based on logic programming and non-monotonic 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 paper 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, our 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.
title Bridging Natural Language and ASP: A Hybrid Approach Using LLMs and AMR Parsing
topic Artificial Intelligence
url https://arxiv.org/abs/2511.08715