KR2026Proceedings of the 23rd International Conference on Principles of Knowledge Representation and ReasoningProceedings of the 23rd International Conference on Principles of Knowledge Representation and Reasoning

Lisbon, Portugal. July 20-23, 2026.

Edited by

ISSN: 2334-1033
ISBN: 978-1-956792-18-8

Sponsored by
Published by

Copyright © 2026 International Joint Conferences on Artificial Intelligence Organization

ALM–ASP: A Functional Agentic Architecture for Answer Set Programming

  1. Luis Angel Rodriguez Reiners(Department of Mathematics and Computer Science, University of Calabria)
  2. Alice Tarzariol(Department of Artificial Intelligence and Cybersecurity, University of Klagenfurt)
  3. Mario Alviano(Department of Mathematics and Computer Science, University of Calabria)
  4. Manuel Borroto Santana(Department of Mathematics and Computer Science, University of Calabria)
  5. Konstantin Schekotihin(Department of Artificial Intelligence and Cybersecurity, University of Klagenfurt)

Keywords

  1. null-Neuro-Symbolic
  2. null-AI Agents
  3. null-Answer Set Programming
  4. null-Natural Language Processing

Abstract

Answer Set Programming (ASP) is a declarative formalism widely used in knowledge representation and reasoning for modeling and solving combinatorial problems, yet current Large Language Models (LLMs) often struggle to generate correct programs from natural language specifications. This difficulty stems both from the limited presence of ASP in training corpora and from the strict syntactic and semantic constraints imposed by stable model semantics. We introduce ALM–ASP (Agentic Loop for Modeling in ASP), a multi-agent architecture for automatic ASP modeling grounded in a functional model of language agents equipped with tools and persistent state. ALM–ASP instantiates this model via two interacting agents: a Modeler, which incrementally constructs candidate ASP programs, and a Validator, which assesses their alignment with the original specification and provides feedback for refinement. The agents interact through a shared ASP execution environment backed by the CLINGO engine, yielding an iterative construct–validate loop. An empirical evaluation on a challenging subset of CP–Bench and on problems from recent LP/CP Programming Contests shows that ALM–ASP significantly improves both syntactic validity and end-to-end correctness over general-purpose LLM baselines, and also achieves improved instance coverage compared to the closest agentic alternative, CP–Agent.