A State-Distribution Matching Approach to Non-Episodic Reinforcement Learning

Archit Sharma, Rehaan Ahmad, Chelsea Finn
5/11/2022
cs.LGcs.AIcs.RO
rl

Official code: architsharma97/medal (7 stars, Python, Apache-2.0, last commit 2022-07-15).

Abstract

While reinforcement learning (RL) provides a framework for learning through trial and error, translating RL algorithms into the real world has remained challenging. A major hurdle to real-world application arises from the development of algorithms in an episodic setting where the environment is reset after every trial, in contrast with the continual and non-episodic nature of the real-world encountered by embodied agents such as humans and robots.

Show full abstract

Prior works have considered an alternating approach where a forward policy learns to solve the task and the backward policy learns to reset the environment, but what initial state distribution should the backward policy reset the agent to? Assuming access to a few demonstrations, we propose a new method, MEDAL, that trains the backward policy to match the state distribution in the provided demonstrations. This keeps the agent close to the task-relevant states, allowing for a mix of easy and difficult starting states for the forward policy. Our experiments show that MEDAL matches or outperforms prior methods on three sparse-reward continuous control tasks from the EARL benchmark, with 40% gains on the hardest task, while making fewer assumptions than prior works.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Code to reproduce results for MEDAL in PyTorch. Also contains code for running SAC and FBRL.

72PythonJun 13, 20224 years agoApache-2.0

Similar Papers

Cite this paper

@article{sharma2022statedistribution,
  title  = {A State-Distribution Matching Approach to Non-Episodic Reinforcement Learning},
  author = {Archit Sharma and Rehaan Ahmad and Chelsea Finn},
  year   = {2022},
  eprint = {2205.05212},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.05212}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2205.05212.svg)](https://codeofpaper.com/paper/2205.05212)

Discussion