Introduction
Classical AI planning traditionally relies on symbolic models, such as those defined in PDDL, to understand how actions transform the state of the world. While recent frameworks like Latplan have successfully learned these models directly from raw images, they typically operate under the assumption of full observability. In real-world scenarios, environments are rarely perfect; objects are frequently occluded by obstacles or move out of the camera's field of view. This paper introduces Recplan, a framework designed to learn robust planning models from incomplete, partially masked image sequences by leveraging temporal context.
The Recplan Framework
Recplan addresses the challenge of partial observability through a multi-component architecture that "fills in the blanks" of occluded data to enable effective planning. The framework consists of four primary pillars:
- Observation Inpainting: Unlike generic image completion, Recplan employs a planning-aware approach. It examines adjacent frames in a sequence and uses the predicted effects of actions to complement missing data. If a pixel is masked in one frame but visible in a neighboring one—and the model predicts no change to that pixel—the missing information is restored.
- State Autoencoder (SAE): To convert pixels into a format suitable for logic-based planning, the authors use a Variational Autoencoder with Gumbel-Softmax activation. This maps images into a latent space of discrete-like bits representing "True," "False," or "Unknown."
- RNN-based Transition Model: By using a Recurrent Neural Network (RNN) to process entire image traces rather than isolated pairs, Recplan maintains a "memory" of the environment. This allows it to resolve current occlusions using information observed several steps prior.
- Neural Heuristic Model: To guide the A* search algorithm, Recplan trains a dedicated neural network to estimate the distance to a goal directly within the latent space, providing more accurate guidance than simple pixel-based metrics.
Experimental Evaluation
The framework was evaluated using three variations of the 8-puzzle: MNIST (handwritten digits), Mandrill, and Spider (natural image fragments). To simulate real-world uncertainty, a masking protocol was applied, randomly obscuring portions of the images with masks ranging from $3\times3$ to $12\times12$ pixels.
Key Results and Insights
The core insight of Recplan is that while a single masked image is ambiguous, a sequence of images often contains enough information to resolve uncertainty. By explicitly representing "Unknown" states through the Gumbel-Softmax, the model avoids making confident but incorrect assumptions about occluded regions.
Experimental results demonstrate significant improvements over the previous state-of-the-art:
- Transition Accuracy: Recplan outperformed Latplan by 16% in the Mandrill domain and 24% in the Spider domain.
- Planning Validity: In the MNIST domain, Recplan achieved nearly 100% validity, whereas Latplan's success rate often plateaued between 65-70%.
- Search Efficiency: The learned heuristic proved highly effective. In several tests, Recplan found solutions in approximately 40 node expansions, while Latplan required over 3,000 expansions to reach the same goal.
Conclusion and Future Work
Recplan demonstrates that temporal context and learned heuristics are essential for planning in partially observed visual environments. However, limitations remain. Currently, the model focuses on action effects rather than preconditions (the requirements for an action to be valid). Future research will focus on learning sound action preconditions and refining inpainting techniques to prevent the propagation of errors through image traces. Scaling these methods to high-resolution 3D environments also remains a key objective.
Summary updated