Introduction
In Goal-Conditioned Reinforcement Learning (GCRL), agents are tasked with reaching specific target states. A primary challenge in this domain is the sparse reward problem: agents often receive feedback only upon perfect task completion, leading to inefficient exploration. While Hindsight Experience Replay (HER) and its variants have mitigated this by relabeling failed trajectories with achieved goals, they often overlook the rich reachability information present in intermediate steps. This paper introduces Goal-Conditioned Hindsight Regularization (GCHR) to more effectively exploit past experiences and improve sample efficiency.
Methodology: Hindsight Regularization
GCHR enhances off-policy RL algorithms by incorporating two distinct regularization terms that guide the agent's policy using past successes.
- Hindsight Self-imitation Regularization (HSR): This term acts as a behavioral cloning prior. It encourages the agent to repeat actions that previously led to a successful goal $g'$ from state $s$.
- Hindsight Goal Regularization (HGR): This is the core innovation. Unlike HSR, which is limited to observed actions, HGR leverages the agent's current policy to estimate how to reach any intermediate goal visited during a trajectory. By minimizing the KL-divergence between the current policy and these priors, the agent effectively "stitches" together successful sub-paths to reach more distant, complex targets.
Experimental Setup
The authors evaluated GCHR on high-dimensional robotic benchmarks from OpenAI Gym:
- Fetch Tasks: Includes Reach, Push, Slide, and Pick-and-Place using a 7-DoF robotic arm.
- Shadow Hand Tasks: Complex 20-DoF dexterous manipulation tasks, including HandReach and various block rotation challenges.
Key Results and Insights
GCHR demonstrates superior performance and sample efficiency across all tested environments.
- Significant Performance Gains: In the challenging HandReach task, GCHR achieved a success rate of 75.5%, vastly outperforming the DDPG+HER baseline, which only reached 23.4%.
- Improved Sample Efficiency: On the FetchPush task, GCHR required approximately 1.5x fewer samples than competitive baselines to reach a 45% success rate (4,000 vs. 6,000 samples).
- Robustness and Exploration: The method's use of a distribution-based prior (KL-divergence) makes it more resilient to environmental noise compared to exact-action imitation methods. Visualization in maze environments further confirmed that GCHR facilitates better exploration of distant state spaces.
Conclusion
GCHR provides a simple yet powerful framework for improving GCRL by better utilizing hindsight information. By combining self-imitation with a policy-based goal prior, it creates an implicit curriculum that accelerates learning in complex robotic tasks. While extremely high-dimensional rotation tasks remain a challenge, GCHR sets a new state-of-the-art for sample-efficient goal-conditioned learning.
Summary updated