Skip to main content
QUICK REVIEW

[Paper Review] MHER: Model-based Hindsight Experience Replay

Rui Yang, Meng Fang|arXiv (Cornell University)|Jul 1, 2021
Reinforcement Learning in RoboticsComputer Science32 references13 citations
TL;DR

MHER proposes a model-based hindsight experience replay framework that improves sample efficiency in multi-goal reinforcement learning by generating virtual achieved goals via a learned dynamics model, enabling more effective goal relabeling. It combines reinforcement learning with goal-conditioned supervised learning on model-generated relabeling data, achieving superior sample efficiency over prior model-free and model-based methods in sparse-reward environments.

ABSTRACT

Solving multi-goal reinforcement learning (RL) problems with sparse rewards is generally challenging. Existing approaches have utilized goal relabeling on collected experiences to alleviate issues raised from sparse rewards. However, these methods are still limited in efficiency and cannot make full use of experiences. In this paper, we propose Model-based Hindsight Experience Replay (MHER), which exploits experiences more efficiently by leveraging environmental dynamics to generate virtual achieved goals. Replacing original goals with virtual goals generated from interaction with a trained dynamics model leads to a novel relabeling method, model-based relabeling (MBR). Based on MBR, MHER performs both reinforcement learning and supervised learning for efficient policy improvement. Theoretically, we also prove the supervised part in MHER, i.e., goal-conditioned supervised learning with MBR data, optimizes a lower bound on the multi-goal RL objective. Experimental results in several point-based tasks and simulated robotics environments show that MHER achieves significantly higher sample efficiency than previous model-free and model-based multi-goal methods.

Motivation & Objective

  • Address the challenge of low sample efficiency in multi-goal reinforcement learning under sparse rewards.
  • Overcome limitations of existing goal relabeling methods that rely solely on real, collected trajectories.
  • Leverage learned environmental dynamics to generate virtual achieved goals for more effective experience relabeling.
  • Develop a joint training framework combining reinforcement learning and supervised learning on model-based relabeled data.
  • Theoretically justify the effectiveness of the proposed method by proving it optimizes a lower bound on the original multi-goal RL objective.

Proposed method

  • Introduce model-based relabeling (MBR), which uses a trained dynamics model to generate virtual achieved goals from interactions with the environment.
  • Generate virtual trajectories by rolling out the current policy with the dynamics model, producing pseudo-demonstrations with relabeled goals.
  • Apply goal-conditioned supervised learning on the MBR-generated data to improve policy generalization and sample efficiency.
  • Formulate a joint loss function combining reinforcement learning loss and supervised learning loss on MBR data for end-to-end policy optimization.
  • Theoretical analysis proves that minimizing the supervised loss on MBR data optimizes a lower bound on the original multi-goal RL objective.
  • Use a dynamics model to simulate future states and goals without requiring real environment interaction, reducing data collection cost.

Experimental results

Research questions

  • RQ1Can model-generated virtual goals improve sample efficiency in multi-goal reinforcement learning with sparse rewards?
  • RQ2Does combining supervised learning with MBR-generated data lead to better policy performance than standard HER or model-free baselines?
  • RQ3Is there a theoretical justification for using MBR data in a joint RL and supervised learning framework?
  • RQ4How does MHER compare in sample efficiency to state-of-the-art model-based and model-free multi-goal RL methods?
  • RQ5Can MHER maintain robustness to model inaccuracies by avoiding training on fully virtual states?

Key findings

  • MHER achieves significantly higher sample efficiency than HER, Curriculum-guided HER, Maximum Entropy-based Prioritization, and Goal-Conditioned Supervised Learning in point-based and Mujoco environments.
  • In the Point2DLarge and Point2D-FourRoom environments, MHER reaches the target goal with substantially fewer environment interactions than baseline methods.
  • On FetchReach and SawyerReachXYZ tasks, MHER outperforms prior methods in sample efficiency, especially in sparse reward settings.
  • The ablation study shows that using model-based relabeling with supervised learning improves learning speed and final performance compared to using RL alone.
  • MHER maintains robustness to model errors by only generating goals from real data, avoiding training on fully virtual states.
  • The method demonstrates consistent performance gains across diverse environments, including continuous control tasks with complex dynamics.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.