Neuro-Symbolic Learning of Lifted Action Models from Visual Traces

Kai Xi, Stephen Gould, Sylvie Thiébaux

Abstract

This paper introduces ROSAME-I, a neuro-symbolic framework designed to learn human-readable, symbolic action models (such as PDDL) directly from sequences of raw images. By employing a differentiable relaxation of logical rules, the system jointly trains a computer vision model to perceive states and a symbolic learner to infer the underlying physics of the environment. The resulting models often match or exceed the quality of human-authored specifications.

The Challenge of Learning from Visual Traces

In AI planning, agents require an "action model"—a set of rules defining preconditions and effects for every possible action. Traditionally, these are handcrafted by experts. While learning these models from data is a known research area, most existing methods rely on "clean" symbolic state labels (e.g., (on blockA blockB)), which are expensive and tedious to annotate.

Learning from visual traces (raw image sequences of plan execution) presents three major hurdles:

  1. The Representation Gap: Neural networks excel at image processing but struggle with discrete, symbolic logic.
  2. Differentiability: Symbolic logic is typically non-differentiable, making it incompatible with standard backpropagation used in deep learning.
  3. Partial Observability: Often, only the final state of a sequence is known, leaving intermediate state labels missing.

Methods: ROSAME and ROSAME-I

The authors propose ROSAME (neuRO-Symbolic Action Model lEarner) and its image-based extension, ROSAME-I. The core of the system relies on several key innovations:

  • Probabilistic Action Models (PAM): Rather than hard boolean rules, action modeling is treated as a 4-way classification problem for every predicate-action pair. The model determines if a predicate is (1) irrelevant, (2) an add effect, (3) a precondition, or (4) both a precondition and a delete effect.
  • Differentiable Logic: By using "Product Logic," discrete transitions are transformed into differentiable equations. This allows the system to compute a "probabilistic successor state." If the action model is accurate, its predicted state should align with the vision model's perception of the subsequent frame.
  • The PAM Network: An overparameterized MLP maps latent vectors to the four PAM cases. This "lifted" approach enables the model to learn general rules (e.g., how to manipulate any block) rather than instance-specific behaviors, facilitating transfer to larger, unseen problems without retraining.
The ROSAME architecture showing the mapping from propositional actions to lifted models via the PAM network.
  • Prior Bias: A "prevail condition" bias is introduced, where the model assumes a predicate is a precondition unless empirical data suggests otherwise, leading to more robust and conservative models.

Experimental Evaluation

The framework was evaluated across two distinct visual styles in classic planning domains:

  1. Grid World Representations: Custom environments using MNIST digits and EMNIST letters to represent objects in Blocks World, Gripper, and Logistics domains.
  2. Synthesized Representations: Complex, holistic images generated via the PDDLGym framework, including Towers of Hanoi and 8-puzzle.
Examples of visual traces from MNIST-based grid worlds and PDDLGym environments used for training and evaluation.

Key Insights and Results

  • Mutual Bootstrapping: A significant finding is that the symbolic model assists the vision model's learning process. The logical structure provided by the symbolic rules acts as a regularizer, allowing the vision model to achieve high accuracy with significantly less supervised data.
  • Performance and Scalability: ROSAME-I recovered ground truth action models with zero errors in most domains. The integrated computer vision models achieved proposition prediction accuracy between 90.5% and 99.8%. Furthermore, in the Logistics domain, data requirements scaled linearly with the number of propositions, avoiding the combinatorial explosion typical of state-space searches.
  • Discovery of Hidden Constraints: In the Towers of Hanoi domain, the model discovered a "prevail condition" (a disk must be smaller than the one it is moving onto) that is often omitted in human-written models because it is considered "obvious." This resulted in a learned model that was technically more robust than the human-authored ground truth.

Limitations and Future Work

While successful, the current model assumes positive preconditions and that delete effects must also be preconditions. Future work aims to expand this logic to cover more complex PDDL features. Additionally, the authors plan to move from segmented "action-image" pairs to raw, unsegmented video, requiring the system to perform temporal action segmentation. Finally, increasing visual complexity to handle real-world lighting and viewpoint changes remains a primary challenge for the underlying computer vision component.

Summary updated

BibTeX
@inproceedings{xi2024neuro,
  author = {Kai Xi and Stephen Gould and Sylvie Thiébaux},
  title = {{Neuro-Symbolic Learning of Lifted Action Models from Visual Traces}},
  booktitle = {ICAPS},
  year = {2024},
  doi = {10.1609/icaps.v34i1.31528},
}
Figure