Introduction
Goal-Conditioned Reinforcement Learning (GCRL) aims to develop versatile agents capable of reaching arbitrary target states within an environment. While GCRL has shown promise in simple domains, it frequently struggles with long-horizon tasks characterized by sparse rewards and complex spatial constraints. To navigate these challenges, researchers often employ graph-based planners that maintain a "map" of visited states to guide the agent. However, a significant gap remains: most existing frameworks use these planners only during execution, failing to leverage the planner's structural knowledge to accelerate the underlying policy's learning process.
This paper introduces PIG (Planning-guided self-Imitation learning for Goal-conditioned policies), a framework designed to bridge this gap. By distilling the wisdom of graph-based planners directly into the agent's policy and introducing a novel stochastic execution mechanism, PIG significantly enhances sample efficiency and performance in complex navigation and manipulation tasks.
The PIG Framework
PIG is designed as a modular "wrapper" that can be integrated with existing GCRL algorithms (such as DDPG) and graph-building methods (such as Mapping State Space, or MSS). It introduces two primary innovations: Planning-guided Self-Imitation and Stochastic Subgoal Skipping.
1. Planning-guided Self-Imitation ($L_{PIG}$)
The core of the PIG framework is a loss function based on the optimal substructure property. In any optimal path to a distant goal, every segment of that path is also the optimal way to reach that segment's specific endpoint. PIG leverages this by encouraging the policy—when conditioned on a distant goal—to produce actions consistent with those it would take if conditioned on a nearby intermediate subgoal provided by the planner.
By minimizing this self-imitation loss, the policy "internalizes" the connectivity of the environment's graph. This distillation process allows the policy to learn the relationship between local actions and long-term objectives, effectively teaching the agent that mastering intermediate steps is the prerequisite for reaching the final destination.
2. Execution with Subgoal Skipping
Traditional graph-based planners typically direct an agent toward the immediate next landmark in a sequence. While reliable, this can be overly rigid and prevent the agent from discovering more efficient paths. PIG introduces a stochastic subgoal skipping mechanism where the agent can bypass intermediate subgoals to aim for targets further down the planned path.
The probability of skipping a subgoal is tied to the policy's confidence; as the actions for a nearby subgoal and the final goal align, the agent is more likely to skip ahead. This mechanism serves two purposes: it encourages exploration by allowing the agent to find "shortcuts" the coarse graph might have missed, and it increases "state entropy," ensuring the agent encounters a more diverse set of experiences during training.
Experimental Evaluation
The researchers evaluated PIG using the MuJoCo simulator across several challenging continuous control environments:
- Navigation (AntMaze): A quadruped "ant" robot must navigate complex corridors in various configurations, including U-shape, S-shape, and the highly difficult $\omega$ and $\Pi$ shapes.
- Manipulation (Reacher and Pusher): These tasks require a robotic arm to reach specific 3D coordinates or push an object to a target location.
Key Results
PIG demonstrated substantial improvements over state-of-the-art baselines like HER (Hindsight Experience Replay), HIGL, and $L^3P$. In the "Large U-shaped AntMaze," a particularly difficult benchmark, the baseline MSS achieved a success rate of only 19.08%, whereas MSS + PIG reached 57.41%.
Beyond success rates, PIG showed remarkable efficiency. One of the most significant findings was the emergence of the "planner-less" agent: policies trained with PIG often became so robust that they could reach distant goals at test time without relying on the graph-based planner at all. This suggests the policy successfully internalized the environment's global structure, a major advantage for real-time robotics where computational overhead is a concern.
Conclusion and Future Work
PIG offers a powerful method for improving GCRL in long-horizon tasks by ensuring the policy learns from the planner rather than just following it. By combining self-imitation with stochastic skipping, the framework improves both the accuracy of the policy and the quality of exploration.
Future research directions include extending PIG to handle high-dimensional visual inputs (pixels) rather than just proprioceptive state data. Additionally, the authors suggest that combining PIG with more advanced representation learning techniques for subgoal selection could further enhance the agent's ability to navigate increasingly complex environments.
Summary updated