Hostname: page-component-5db58dd55d-lqwgf Total loading time: 0 Render date: 2026-07-08T04:37:00.006Z Has data issue: false hasContentIssue false

Answer-Set-Programming-Based Abstractions for Reinforcement Learning

Published online by Cambridge University Press:  08 July 2026

RAFAEL BANKOSEGGER
Affiliation:
Siemens AG Österreich, Austria and TU Wien, Austria (e-mail: rafael-philipp.bankosegger@siemens.com)
THOMAS EITER
Affiliation:
Institute of Logic and Computation, Technische Universitat Wien, Austria (e-mail: eiter@kr.tuwien.ac.at)
JOHANNES OETSCH
Affiliation:
Department of Computing, Jönköping University, Sweden (e-mail: johannes.oetsch@ju.se)
Rights & Permissions [Opens in a new window]

Abstract

Reinforcement Learning (RL) enables autonomous agents to learn policies from experience, but realistic problems often involve enormous state spaces, making learning and generalisation challenging. Abstraction and approximation are therefore essential. Relational Reinforcement Learning (RRL) offers a way to reason about objects and their relations, and the CARCASS framework by Martijn van Otterlo demonstrates how logical representations can model Markov Decision Processes (MDPs) in first-order domains. Originally implemented in Prologue, CARCASS leverages domain knowledge to create powerful abstractions. We explore Answer-Set Programming (ASP), which is a rich and, contrary to Prologue, fully declarative modelling language, to realise CARCASS abstractions. We evaluate our ASP-based implementation in case studies of two domains, viz. Blocks World and Minigrid. Our results indicate that CARCASS with ASP provides a promising approach to constructing abstractions for RL, especially when domain knowledge is available (our implementation is available at https://github.com/rbankosegger/RLASP-core. Further material (data, encodings, extended documentation) can be found here: https://www.bankosegger.at/iclp26/).

Information

Type
Original Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2026. Published by Cambridge University Press
Figure 0

Fig 1. A 3$3$-blocks world RMDP. Taking action a1$a_1$ in state s1$s_1$ causes a transition to s2$s_2$.

Figure 1

Table 1. Example CARCASS (van Otterlo 2009, p. 253)

Figure 2

Algorithm 1 Q-learning for CARCASSs (van Otterlo 2009, p. 258)Algorithm 1 long description.

Figure 3

Algorithm 2 Online interaction for ASP-encoded CARCASSsAlgorithm 2 long description.

Figure 4

Fig 2. Fig 2 long description.Example Minigrid state: The left image shows a state, its relational representation is in the centre, and a graph of the room layout, inferred using ASP, is to the right.

Figure 5

Fig 3. The learning curves of abstract Q$Q$-learning in four task environments.

Figure 6

Table 2. Comparison of abstract and concrete Q$Q$-learning (QL) in four task environments

Supplementary material: File

Bankosegger et al. supplementary material

Bankosegger et al. supplementary material
Download Bankosegger et al. supplementary material(File)
File 669.8 KB