NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Answer-Set-Programming-based Abstractions for Reinforcement Learning

Rafael Bankosegger, Thomas Eiter, Johannes OetscharXiv 2026

TL;DR

This paper introduces a fully declarative approach to Relational Reinforcement Learning (RRL) by implementing the CARCASS abstraction framework using Answer-Set Programming (ASP). By leveraging domain knowledge via ASP, the authors drastically compress massive state-action spaces, enabling agents to successfully solve complex tasks like Blocks World and MiniGrid navigation with high sample efficiency where standard RL completely fails.

What Problem Does This Paper Address?

Reinforcement Learning (RL) is highly effective but notoriously plagued by the "curse of dimensionality." When an environment features an enormous number of potential states and actions, learning a policy through naive trial-and-error becomes intractable.

Relational Reinforcement Learning (RRL) addresses this by describing environments in terms of objects and their relations (e.g., "Block A is on Block B") rather than raw pixel matrices or absolute coordinates. A framework called CARCASS previously achieved state-action abstraction in RRL using Prolog. However, Prolog is not fully declarative; its performance relies heavily on procedural tricks like rule ordering and "cuts." The authors of this paper set out to build a cleaner, more expressive, and truly declarative abstraction framework using Answer-Set Programming (ASP).

Methods

The authors transition the CARCASS framework into ASP, utilizing a "guess-and-check" methodology.

  1. ASP Encoding: They define rules to map concrete states and admissible actions into abstract state-action pairs. Using ASP features like choice rules and integrity constraints, the framework filters out irrelevant environment details.
  2. Declarative Background Knowledge: Instead of writing explicit search algorithms, complex domain constraints (like calculating the shortest path to a goal through locked doors) are written purely as logical constraints and optimization statements.
  3. Online Learning Integration: They present an algorithm that hooks an ASP solver directly into an online Q-learning loop. At each step, the current concrete state is fed to the ASP solver, which outputs the corresponding abstract state and a pruned set of valid abstract actions for the Q-learner to evaluate.
Fig. 1: A 3-blocks world RMDP. Taking action 𝑎1 in state 𝑠1 causes a transition to 𝑠2.

Datasets

The framework was evaluated on two primary simulated domains:

  • Blocks World: A classic planning problem scaled up to 20 blocks. The agent's task is to stack the blocks in a specific ascending order.
  • MiniGrid: A grid-world navigation suite testing three distinct environments: Door Key (requiring the agent to find a key to unlock a door), Multi Room, and Four Rooms.

Key Insights and Ideas

  • Declarative vs. Algorithmic Modeling: The shift from Prolog to ASP highlights a major paradigm change. For example, in the MiniGrid domain, pathfinding under constraints requires an explicit breadth-first search implementation in Prolog. In ASP, it is achieved compactly by simply defining what a valid path looks like and letting the solver handle the search.
  • Intelligent Action Pruning: The ASP abstraction layer doesn't just group states; it actively prunes useless actions. For instance, the pickup action is made completely inadmissible unless the agent is directly facing an item like a key, drastically narrowing the agent's choices.
  • Domain-Size Independence: Because the abstraction focuses on relations rather than absolute coordinates or block counts, the abstract state space remains small and constant, allowing learned policies to scale effectively.

Key Results

The empirical evaluation compared standard ("concrete") Q-learning against the new ASP-abstracted Q-learning:

  • Baseline Failure: Concrete Q-learning completely failed to learn in all tested environments due to the massive state spaces (e.g., maintaining a flat -61.00 mean return in the 20-blocks world).
  • High Success Rates: Abstract Q-learning consistently achieved near-perfect success rates toward the end of training, reaching 97% to 100% success in the final 500 episodes across both Blocks World and MiniGrid tasks.
  • Sample Efficiency: The abstract agent began showing positive median returns remarkably early—after just 68 episodes in Door Key and 376 episodes in the 20-blocks world.

Limitations and Future Work

While highly effective, the authors note that abstract Q-learning generally lacks formal convergence or policy optimality guarantees. Furthermore, the relational abstractions currently rely on human-engineered domain knowledge.

For future work, the authors propose exploring methods to automatically generate and refine these ASP abstractions from raw environment interactions. They also plan to investigate combining these symbolic ASP priors with deep reinforcement learning (neural network function approximation) to handle richer, non-deterministic environments.

Summary updated

BibTeX
@misc{bankosegger2026answer,
  author = {Rafael Bankosegger and Thomas Eiter and Johannes Oetsch},
  title = {{Answer-Set-Programming-based Abstractions for Reinforcement Learning}},
  year = {2026},
  eprint = {2605.31444},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.31444},
}
Figure