Learning First-Order Symbolic Planning Representations That Are Grounded

Andrés Occhipinti Liberman, Blai Bonet, Hector GeffnerarXiv 2022 · DOI

Introduction

Bridging the gap between raw visual perception and high-level symbolic reasoning remains a central challenge in artificial intelligence. While combinatorial approaches excel at generating interpretable action schemas, they typically rely on human-defined symbols. Conversely, deep learning models can process raw pixels but often result in "black boxes" that fail to generalize across varying object counts. This paper introduces a framework for learning "lifted" first-order symbolic planning models directly from visual data by utilizing a qualitative spatial language called O2D (Objects in 2D) as an intermediate grounding mechanism.

Methodology: The O2D Bridge and Predicate Invention

The proposed system avoids the complexity of raw pixel processing by operating on "parsed images"—sets of qualitative spatial relations. This intermediate representation, O2D, captures essential geometric properties without requiring precise coordinates.

Qualitative spatial relations in the O2D language, including positional (left, below), topological (overlap), and attribute-based (smaller, shape) predicates.

The framework employs three core components:

  1. The O2D Language: It defines basic relations such as left(a, b), above(c, d), and shape(z, rectangle).
  2. Predicate Invention via Description Logic (DL): The system uses DL grammar to synthesize complex new predicates from basic O2D relations. For instance, it can define a concept like "a key overlapping a specific cell" by combining primitive symbols.
  3. Answer Set Programming (ASP): The learning task is treated as a combinatorial optimization problem. The ASP solver searches for the simplest grounded domain—minimizing the number of predicates and the complexity of action schemas—that accurately accounts for observed state transitions.

An incremental learning loop refines the model. Starting with a minimal set of examples, the system proposes a domain model and uses a verifier to identify edge cases where the model fails. These failures are then integrated into the training set for iterative improvement.

Evaluation and Results

The framework was tested on several classic planning benchmarks, including Blocks World, Towers of Hanoi, n-Sliding-Puzzle, IPC Grid, and Sokoban.

Key Findings

  • Generalization: Models trained on small-scale instances (e.g., a Sokoban grid with only two crates) successfully generalized to much larger problems. In one instance, a learned model generated a 288-step plan for a complex warehouse environment, outperforming many propositional planners.
  • Interpretability: The "invented" predicates often mirrored human-authored PDDL (Planning Domain Definition Language). In the IPC Grid domain, the system autonomously derived predicates for armempty and match(key, lock) based purely on visual overlaps and shapes.
  • Efficiency: The incremental approach allowed the system to find optimal models for most domains within minutes. Even the most complex domain, Sokoban, converged to a perfect model in approximately 3.5 hours.

Discussion

The success of this approach highlights the power of qualitative relations and the principle of simplicity (Occam's Razor) as an inductive bias for discovering logical truths. By forcing the solver to find the simplest explanation for visual transitions, the system naturally converges on robust, generalizable logic.

However, limitations remain. The current implementation assumes the existence of an external vision module to provide the O2D "parsed images." Future work will focus on tighter integration with object-centric vision models like YOLO or Slot Attention. Additionally, the system currently struggles with internal state changes that do not manifest as observable O2D transitions. Scaling the predicate search space for even more intricate environments also presents a computational challenge for the Description Logic component.

Conclusion

By grounding symbolic logic in qualitative spatial relations, this framework demonstrates a viable path toward neuro-symbolic AI that is both interpretable and highly generalizable. The ability to "lift" models from small visual examples to solve massive planning problems marks a significant step in closing the representation gap in autonomous agents.

Summary updated

BibTeX
@misc{liberman2022learning,
  author = {Andrés Occhipinti Liberman and Blai Bonet and Hector Geffner},
  title = {{Learning First-Order Symbolic Planning Representations That Are Grounded}},
  year = {2022},
  eprint = {2204.11902},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2204.11902},
}
Figure