Can LLMs Solve ASP Problems? Insights from a Benchmarking Study (Extended Version)

Lin Ren, Guohui Xiao, Guilin Qi, Yishuai Geng, Haohan Xue
7/26/2025
cs.AI

Official code: HomuraT/ASPBench (1 star, last commit 2025-07-25).

Abstract

Answer Set Programming (ASP) is a powerful paradigm for non-monotonic reasoning. Recently, large language models (LLMs) have demonstrated promising capabilities in logical reasoning. Despite this potential, current evaluations of LLM capabilities in ASP are often limited. Existing works normally employ overly simplified ASP programs, do not support negation, disjunction, or multiple answer sets. Furthermore, there is a lack of benchmarks that introduce tasks specifically designed for ASP solving. To bridge this gap, we introduce ASPBench, a comprehensive ASP benchmark, including three ASP specific tasks: ASP entailment, answer set verification, and answer set computation. Our extensive evaluations on ASPBench reveal that while 14 state-of-the-art LLMs, including \emph{deepseek-r1}, \emph{o4-mini}, and \emph{gemini-2.5-flash-thinking}, perform relatively well on the first two simpler tasks, they struggle with answer set computation, which is the core of ASP solving. These findings offer insights into the current limitations of LLMs in ASP solving. This highlights the need for new approaches that integrate symbolic reasoning capabilities more effectively. The code and dataset are available at https://github.com/HomuraT/ASPBench.

View on arXivView PDF

Code Implementations(1)

HomuraT/ASPBenchOfficial100%

Can LLMs Solve ASP Problems? Insights from a Benchmarking Study

11Shell, PythonJul 21, 20251 years ago

Similar Papers

Cite this paper

@article{ren2025llms,
  title  = {Can LLMs Solve ASP Problems? Insights from a Benchmarking Study (Extended Version)},
  author = {Lin Ren and Guohui Xiao and Guilin Qi and Yishuai Geng and Haohan Xue},
  year   = {2025},
  eprint = {2507.19749},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.19749v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.19749.svg)](https://codeofpaper.com/paper/2507.19749)

Discussion