Learning Logic Specifications for Soft Policy Guidance in POMCP

Giulio Mazzi, Daniele Meli, Alberto Castellini, Alessandro Farinelli

Abstract

Planning in complex, partially observable environments remains a significant challenge for autonomous agents. While Partially Observable Monte Carlo Planning (POMCP) offers a robust framework for decision-making under uncertainty, it often struggles with sparse rewards and lacks transparency. This paper introduces a novel framework that automatically learns human-readable logic specifications from successful execution traces using Inductive Logic Programming (ILP). These learned rules are integrated into the POMCP algorithm as "soft policy guidance," acting as a prior that biases the search toward promising actions without sacrificing theoretical optimality. Experimental results on the RockSample and Battery benchmarks demonstrate that this approach significantly improves performance, scalability, and sample efficiency compared to standard POMCP.

Introduction

Autonomous robots operating in the real world must constantly navigate uncertainty. Whether estimating the value of a distant resource or monitoring fluctuating battery levels, robots rarely have perfect information about their environment. This challenge is formally modeled as a Partially Observable Markov Decision Process (POMDP).

One of the most successful algorithms for solving POMDPs is Partially Observable Monte Carlo Planning (POMCP), which utilizes Monte Carlo Tree Search (MCTS) to simulate potential futures and select optimal actions. However, POMCP faces two primary hurdles: the "sparse reward" problem, where agents wander aimlessly in large state spaces before finding a goal, and the "black-box" nature of the resulting policy, which makes it difficult for human operators to trust or verify the robot's decisions. This research addresses these issues by bridging the gap between symbolic logic and probabilistic planning.

Methodology

The authors propose a three-stage pipeline to enhance POMCP with learned logic specifications.

1. Data Collection

The process begins by generating high-quality execution traces. The researchers run a high-powered version of POMCP on smaller, computationally manageable versions of the target task. These traces capture the sequences of beliefs and actions that lead to successful outcomes, providing a foundation for learning the underlying logic of the task.

2. Inductive Logic Programming (ILP)

To translate these traces into human-readable rules, the framework employs Inductive Logic Programming via the ILASP tool. Given a set of basic domain features (e.g., distance to objects, energy levels), ILASP identifies the simplest set of Answer Set Programming (ASP) rules that explain the successful behaviors observed in the data. An example of such a rule might be: "If the battery is below a specific threshold and a charging station is reachable, prioritize recharging."

3. Soft Policy Guidance

The core innovation lies in how these rules are applied. Rather than using the logic as a "hard constraint" or a "shield" that forces specific actions, the rules are integrated as a "soft bias" within the POMCP search tree. When the MCTS begins, the actions suggested by the ASP rules are assigned a high initial value (a prior). This nudges the search toward promising branches while allowing the Monte Carlo simulations to eventually override the rules if the empirical data suggests a better path. This approach preserves the asymptotic optimality of the original POMCP algorithm.

Experimental Evaluation

The framework was evaluated on two standard POMDP benchmarks designed to test navigation and resource management:

  • RockSample: A robot must navigate a grid to sample rocks of unknown value. The authors tested the scalability of the learned rules by training on a 12x12 grid and testing on a much larger 24x24 grid.
  • Battery: A robot must reach a destination while managing uncertain energy levels, requiring proactive decisions about when to visit charging stations.

Key Results and Insights

Generalization and Scalability

A major finding of the study is the power of logic-based generalization. Rules learned on a small 12x12 RockSample grid remained highly effective when applied to a 24x24 grid. In these large-scale environments, the logic-guided POMCP achieved nearly double the discounted return of the standard version. This suggests that symbolic logic captures the "essence" of a task more effectively than raw data-driven policies.

Efficiency and Performance

The logic-guided planner demonstrated significant efficiency gains, achieving superior results with one order of magnitude fewer simulations than standard POMCP. In the Battery benchmark, the guided version saw a 20% increase in success rates for long-duration missions (75 steps), as the learned rules allowed for more proactive energy management.

Interpretability and Robustness

Because the guidance is expressed in ASP, the robot's underlying "policy" is transparent and verifiable by humans. Furthermore, the system proved robust; even when rules were learned from sub-optimal traces, the soft-bias mechanism ensured a significant performance boost in complex settings without being trapped by imperfect logic.

Conclusion and Future Work

By combining the strengths of Inductive Logic Programming and Monte Carlo Tree Search, this research provides a pathway toward robotic planners that are both more efficient and more understandable. While the current framework requires human-defined features, future work aims to automate feature discovery and move toward "online learning," where the robot can update its logic specifications in real-time as it encounters new environmental dynamics. This integration of symbolic reasoning and probabilistic planning represents a significant step toward deploying reliable autonomous systems in unpredictable real-world domains.

Summary updated

BibTeX
@inproceedings{mazzi2023learning,
  author = {Giulio Mazzi and Daniele Meli and Alberto Castellini and Alessandro Farinelli},
  title = {{Learning Logic Specifications for Soft Policy Guidance in POMCP}},
  booktitle = {AAMAS},
  year = {2023},
  doi = {10.48550/arxiv.2303.09172},
}
Figure