Abstract
To achieve autonomy in a priori unknown real-world scenarios, agents should be able to: i) act from high-dimensional sensory observations (e.g., images), ii) learn from past experience to adapt and improve, and iii) be capable of long horizon planning. Classical planning algorithms (e.g. PRM, RRT) are proficient at handling long horizon planning. Deep learning based methods in turn can provide the necessary representations to address the others, by modeling statistical contingencies between observations. In this direction, we introduce a general-purpose planning algorithm called PALMER that combines classical sampling-based planning algorithms (e.g., PRM, RRT) with learning-based perceptual representations. For training these perceptual representations, we combine Q-learning with contrastive representation learning to create a latent space where the distance between the embeddings of two states captures how easily an optimal policy can traverse between them. For planning with these perceptual representations, we re-purpose classical sampling-based planning algorithms to retrieve previously observed trajectory segments from a replay buffer and restitch them into approximately optimal paths that connect any given pair of start and goal states. This creates a tight feedback loop between representation learning, memory, reinforcement learning, and sampling-based planning. Please visit our website for further information: https://palmer.epfl.ch
Introduction
Autonomous navigation in complex, unknown environments requires bridging the gap between high-dimensional perception and long-range strategic planning. While classical algorithms like Rapidly-exploring Random Trees (RRT) or Probabilistic Roadmaps (PRM) excel at long-horizon tasks, they typically rely on low-dimensional state spaces or pre-defined maps. Conversely, Deep Reinforcement Learning (RL) handles raw sensory data well but often fails to plan effectively over long horizons without prohibitive amounts of training data.
PALMER (Perception-Action Loop with Memory) addresses this by treating an agent's memory as a searchable graph of real experiences. Instead of relying on generative models that might "hallucinate" impossible shortcuts, PALMER retrieves and "restitches" actual trajectory segments from a replay buffer to form optimal long-range plans directly from raw image observations.
Methods
The PALMER framework integrates representation learning, memory retrieval, and classical planning into a unified loop.
1. Learning Reachability
The agent learns a perceptual encoder $f_\phi$ that maps high-dimensional observations into a latent space. This space is structured such that the Euclidean distance between two embeddings corresponds to the temporal distance (number of timesteps) an optimal policy would take to traverse between them. This is achieved by optimizing a combined objective of Goal-Conditioned Q-learning and Contrastive Learning.
2. Perceptual Experience Retrieval (PER)
Rather than predicting distances in a vacuum, PALMER uses the learned metric to query a replay buffer. It identifies previously traversed segments that connect states that are "nearby" in the latent space. This ensures that every edge in a plan is grounded in a real, physical trajectory, preventing the agent from attempting to pass through walls or other obstacles it hasn't successfully navigated before.
3. Trajectory Stitching and Execution
PALMER adapts classical sampling-based algorithms (R-PRM and R-RRT) where nodes are images from memory and edges are retrieved action sequences. Once a plan is formed, the agent executes the sequence. The resulting trajectory is then added back to the memory, allowing the agent to refine its reachability model and improve future plans in a continuous feedback loop.
Experimental Evaluation
The authors evaluated PALMER across three environments: ViZDoom (clover-shaped maze), Habitat (high-fidelity 3D scans of real-world apartments), and Maze2D (a benchmark for offline RL). In the ViZDoom and Habitat tasks, the initial memory was populated via simple uniform random walks, demonstrating the framework's ability to extract structure from unorganized exploration data.
Key Results
PALMER demonstrates significant improvements in robustness and sample efficiency compared to existing baselines.
Robustness to Horizon Length
As shown in the performance metrics, PALMER maintains a high success rate even as the distance to the goal increases. Baselines such as SPTM and SoRB often fail at longer distances due to "hallucinated shortcuts"—predicting paths through walls because the visual features on either side are similar. By grounding plans in actual past transitions, PALMER avoids these pitfalls.
Sample Efficiency and Generalization
In Habitat apartment scans, PALMER achieved successful navigation with only 150k timesteps of exploration, a fraction of what standard deep RL methods typically require. Furthermore, the perceptual encoder showed strong zero-shot generalization when transferred between different apartment layouts, suggesting that the learned reachability metric captures fundamental environmental properties.
Discussion and Future Work
PALMER provides a robust mechanism for long-horizon planning from pixels by leveraging memory as a safety rail. However, several challenges remain. The current implementation assumes a static environment; dynamic changes could invalidate stored trajectories. Additionally, as the replay buffer grows, more sophisticated memory management and "forgetting" mechanisms will be required to maintain computational efficiency. Future work may also explore extending the perceptual encoder to handle more abstract, functional representations of reachability.
Summary updated