Classical Planning in Deep Latent Space

Masataro Asai, Hiroshi Kajino, Alex Fukunaga, Christian Muise

Artificial Intelligence has seen a massive divide: deep learning excels at perception (seeing), while classical planning excels at reasoning (thinking). However, these two worlds rarely speak the same language. Planners require structured, symbolic models (like PDDL), which are usually hand-coded by humans. Deep learning, on the other hand, operates in a "subsymbolic" world of high-dimensional vectors.

In this paper, researchers introduce Latplan, an unsupervised architecture that bridges this gap. Latplan learns to plan directly from raw images, automatically generating the symbolic logic needed to solve complex puzzles without any human-provided domain knowledge.

TL;DR

Latplan is an unsupervised framework that learns a symbolic classical planning model (PDDL) directly from unlabeled image transitions. By mapping pixels to a discrete latent space, it allows off-the-shelf classical planners to solve image-based puzzles and visualize the results as a sequence of images.

What Problem Does This Paper Address?

The authors tackle the knowledge acquisition bottleneck and the symbol grounding problem.

Classical planners are incredibly powerful—they can find optimal solutions and provide completeness guarantees. But they are "parasitic" on human intelligence; they need a human to translate the real world into a formal language like PDDL (Planning Domain Definition Language). If you want a robot to explore a new planet, you can't wait for a human to write a PDDL model for every new room it enters. We need systems that can "ground" symbols—turning raw sensor data into meaningful, manipulatable concepts—entirely on their own.

An image-based 8-puzzle task where the system must find a path from a scrambled state to the goal.

Methods

Latplan uses a multi-stage neural architecture to transform images into logic:

  1. State Autoencoder (SAE): This network learns a bidirectional mapping between raw images and a "propositional" latent space—a bit-vector where each bit represents a learned "concept" or proposition.
  2. Action Model Acquisition (AMA): The core innovation is how the system learns actions. The authors progressed through several versions, culminating in AMA+4, a Bidirectional Cube-Space Autoencoder.
  3. Back-To-Logit (BTL): This is a novel decoder structure that forces the neural network to model state transitions using monotonic operations. This ensures the learned dynamics are mathematically equivalent to STRIPS (the standard logic for planning), allowing the weights to be directly exported as PDDL "add" and "delete" effects.
  4. Symbol Stability: To prevent "flickering" bits (where a symbol randomly flips between true and false due to noise), the authors introduced a non-standard Bernoulli(0.1) prior.
The AMA+4 architecture, which uses bidirectional modeling to learn both action effects and preconditions.

Datasets

The system was evaluated on image-based versions of six classic planning domains:

  • MNIST 8-Puzzle: A sliding tile puzzle using handwritten digits.
  • Mandrill 15-Puzzle: A 4x4 sliding puzzle using a scrambled photograph of a mandrill.
  • LightsOut & Twisted LightsOut: Logic puzzles where toggling one light affects its neighbors.
  • Photo-realistic Blocksworld: 3D-rendered images of blocks being stacked.
  • Sokoban: A PSPACE-hard warehouse pushing puzzle.

Key Insights and Ideas

  • The "Closed-World" Prior: By using a Bernoulli(0.1) prior instead of the standard 0.5, the authors effectively implemented a "closed-world assumption" in a neural network. It forces the model to assume a proposition is false unless there is strong evidence to the contrary, which drastically improves the stability of the learned symbols.
  • Heuristics Work in Latent Space: One of the most surprising findings is that state-of-the-art planning heuristics (like LMcut and Merge-and-Shrink), which were designed for human-written logic, are highly effective at guiding search in the "messy" latent space learned by the SAE.
  • Bidirectionality is Key: Learning preconditions (what must be true to act) is harder than learning effects (what changes after an act). By modeling time both forward and backward, AMA+4 can learn accurate preconditions that prevent the planner from attempting "illegal" moves in the latent space.

Key Results

Latplan successfully solved instances across all six domains.

  • AMA+4 vs. AMA+3: The bidirectional model (AMA+4) showed a significant jump in performance, especially in visually challenging domains like Sokoban and Blocksworld, where it found many more valid and optimal plans.
  • Robustness: The system proved robust to noise. Even when input images were corrupted with Gaussian noise, the version using the stable Bernoulli(0.1) prior maintained a high success rate.
  • Efficiency: By offloading reasoning to a classical planner, Latplan can leverage decades of optimization, solving puzzles much faster than pure reinforcement learning approaches that lack a world model.

Limitations and Future Work

While a major step forward, Latplan has clear boundaries:

  • Full Observability: It currently requires the environment to be fully observable and deterministic.
  • Propositional Only: It lacks "first-order" logic (the ability to understand "objects" and "relationships" generally). Adding a new block currently requires retraining the whole model.
  • Rare Features: The authors noted a "negative result" with the Towers of Hanoi domain. Because the smallest disk appears in the top region very rarely, the SAE struggled to learn it—a classic "imbalanced data" problem for deep learning.

Future work aims to incorporate object-based representations and extend the framework to handle partial observability and stochastic environments.

Summary updated

BibTeX
@article{asai2022classical,
  author = {Masataro Asai and Hiroshi Kajino and Alex Fukunaga and Christian Muise},
  title = {{Classical Planning in Deep Latent Space}},
  journal = {J. Artif. Intell. Res.},
  year = {2022},
  doi = {10.1613/jair.1.13768},
}
Figure