Introduction
Deep Reinforcement Learning (DRL) has shown immense promise in robotics, yet sparse rewards remain a significant hurdle. In environments where an agent only receives feedback upon successful task completion, learning is often slow or fails entirely. Hindsight Experience Replay (HER) addressed this by relabeling failed trajectories as successful ones toward "hindsight" goals. However, HER's traditional reliance on deterministic algorithms like DDPG often leads to training instability and poor exploration. This paper introduces Soft Hindsight Experience Replay (SHER), which integrates Maximum Entropy Reinforcement Learning (MERL) into the HER framework to provide a more robust and stable learning signal.
Problem Statement
Sparse rewards create a "needle in a haystack" problem for exploration. While HER mitigates this by extracting learning signals from failures, its deterministic nature makes it "brittle." Deterministic policies can become stuck in local optima or exhibit circular performance fluctuations during training, where performance varies wildly between epochs. For complex, high-dimensional tasks like dexterous hand manipulation, this lack of stability prevents reliable convergence and generalization.
Methodology
SHER addresses these issues by replacing the deterministic update rule with a stochastic, entropy-regularized framework based on the principles of Maximum Entropy RL.
- Maximum Entropy Objective: SHER maximizes both expected reward and policy entropy. This encourages broader exploration and prevents the agent from becoming prematurely "greedy" or fixated on sub-optimal paths.
- Probabilistic Inference Model: The RL problem is reframed as a probabilistic inference task. By treating "optimality" ($O$) as a binary random variable, the authors derive a new Multi-goal Soft Bellman Backup.
- Soft Multi-goal RL: The framework provides mathematical derivations for Multi-goal V-loss and $\pi$-loss gradients, effectively bringing the benefits of algorithms like Soft Actor-Critic (SAC) to the world of goal-conditioned RL and experience relabeling.
Experimental Setup
The performance of SHER was evaluated using the OpenAI Robotics suite, utilizing the MuJoCo physics engine for high-fidelity simulation.
The benchmarks included two primary categories:
- Fetch Environments: Utilizing a 7-DoF robotic arm for tasks such as Reach, Push, Slide, and PickAndPlace.
- Shadow Hand Environments: Highly complex tasks involving a 24-DoF anthropomorphic hand performing HandReach and manipulating objects like blocks, eggs, and pens.
All tasks utilized sparse binary rewards: 0 for success and -1 for every other state, providing no intermediate guidance to the agent.
Key Results and Discussion
SHER achieved state-of-the-art results, particularly in the challenging HandManipulation tasks, which are among the most difficult in the OpenAI Gym. Key findings include:
- Enhanced Stability: SHER significantly reduced the gap between training and testing success rates. In the FetchSlide environment, the stability metric $\delta S$ improved from 0.218 (HER) to 0.116. In HandReach, it improved from 0.195 to 0.137.
- Faster Convergence: Across all eight robotic environments, SHER converged to high success rates more rapidly than both the original HER and the improved Curriculum-guided HER (CHER).
- Stochastic Advantage: By maintaining a non-zero probability for all actions via the entropy term, SHER explores the environment more comprehensively, behaving more like a natural agent than a rigid deterministic one.
Conclusion and Future Work
Soft Hindsight Experience Replay (SHER) demonstrates that a solid probabilistic foundation can outperform complex heuristics like curriculum learning. By combining the relabeling power of HER with the stability of MERL, SHER provides a robust framework for solving complex, sparse-reward robotic tasks.
While highly effective, the current implementation requires manual tuning of the temperature parameter $\alpha$, which controls the reward-entropy trade-off. Future work will focus on implementing automated temperature adjustment mechanisms to further improve generalizability across diverse and unknown environments.
Summary updated