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

State Aggregation through Reasoning in Answer Set Programming

Ginevra Gaudioso, Matteo Leonetti, Peter StoneWhite 2016

Abstract

For service robots gathering increasing amounts of information, the ability to realize which bits are relevant and which are not for each task is going to be crucial. Abstraction is, indeed, a fundamental characteristic of human intelligence, while it is still a challenge for AI. Abstraction through machine learning can inevitably only work in hindsight: the agent can infer whether some information was pertinent from experience. However, service robots are required to be functional and effective quickly, and their users often cannot let the robot explore the environment long enough. We propose a method to perform state aggregation through reasoning in answer set programming, which allows the robot to determine if a piece of information is irrelevant for the task at hand before taking the first action. We demonstrate our method on a simulated mobile service robot, carrying out tasks in an office environment.

Introduction

In Reinforcement Learning (RL), "hindsight is 20/20." An agent typically learns what information is irrelevant only after many trials and errors. For a service robot in a complex environment—such as an office with dozens of doors, varying weather, and moving people—the state space is enormous. If the robot must learn from scratch that the color of the carpet or the state of a door in a different wing doesn't affect its current task, it will take far too long to become useful.

The challenge lies in abstraction: how can a robot determine what matters before taking its first action? While humans do this naturally through reasoning (e.g., "the rain outside doesn't change the path to the kitchen"), AI typically struggles to bridge the gap between high-level logic and low-level trial-and-error learning. This paper explores a method to help robots "cut through the noise" by combining symbolic reasoning with RL.

Methodology: The DARLING Framework

The proposed framework integrates Answer Set Programming (ASP)—a form of declarative logic programming—with Reinforcement Learning (Sarsa($\lambda$)). The core idea is to perform state aggregation—grouping similar states together to simplify a problem—using ASP before the robot starts learning.

The process follows these key steps:

  1. Plan Generation: Using an ASP model of the world, the robot generates all possible "minimal" plans to reach a goal.
  2. Logical Minimization: For each plan, the robot uses ASP’s optimization features (specifically the #minimize statement) to find the minimum set of fluents (state variables) required to guarantee the plan's success.
  3. State Aggregation: The robot groups all states that share these essential fluents into a single "belief state." Any information not in that minimal set is discarded as irrelevant for that specific task.
  4. Learning on the Reduced MDP: The robot then performs RL on this much smaller, aggregated state space. Because the state space is smaller, the agent converges on an optimal policy much faster.

Experimental Setup

The method was evaluated using two primary setups:

  • Gridworld Domain: A 5x5 grid where the agent must navigate to a goal. Noise was "injected" by adding a "color" feature (100 possible colors) that had no effect on movement or rewards.
  • Robot Navigation Simulator: A realistic office environment simulated in Gazebo using the Robot Operating System (ROS). The environment included approximately 30 doors and multiple rooms, creating a complex state space where most door statuses are irrelevant to any single navigation task.
Office environment simulation map used for robot navigation tasks.

Key Insights and Results

The core "aha moment" is using symbolic logic not just to find a path, but to identify the boundaries of relevance. Reasoning provides a "forward view" (predicting what will matter), while RL provides a "backward view" (verifying what actually mattered). Combining them allows the robot to be efficient immediately while remaining robust to inaccuracies in its logical model.

Performance Highlights

  • Outperforming Tile Coding: In the Gridworld test, the proposed method outperformed standard RL and various configurations of "Tile Coding." It reached the optimal reward almost immediately because it logically ignored the 100 irrelevant colors.
  • Significant Speedup: In the Gazebo office simulation, state aggregation reduced learning effort significantly. For specific tasks, the agent identified that 11 different physical states were functionally identical. By aggregating them, it only had to learn the value of an action once, leading to much faster convergence in a high-fidelity simulation where each trial is computationally expensive.

Conclusion and Future Work

While effective, the method relies on a pre-defined ASP model. If the human-provided logic is fundamentally wrong, the aggregation might be too aggressive. Furthermore, the current approach is designed for discrete state and action spaces; extending this to continuous domains remains a challenge.

Future work could involve the robot learning to update its own ASP model based on its experiences in the RL phase, creating a closed loop between reasoning and learning. This would allow the robot to refine its internal logic as it interacts with the real world.

Summary updated

BibTeX
@inproceedings{gaudioso2016state,
  author = {Ginevra Gaudioso and Matteo Leonetti and Peter Stone},
  title = {{State Aggregation through Reasoning in Answer Set Programming}},
  booktitle = {White},
  year = {2016},
}
Figure