Rank the Episodes: A Simple Approach for Exploration in Procedurally-Generated Environments

Daochen Zha, Wenye Ma, Lei Yuan, Xia Hu, Ji Liu
1/20/2021
49 citations
cs.LG

Official code: daochenzha/rapid (58 stars, Python, MIT, last commit 2023-03-24). Most starred: Farama-Foundation/Miniworld, a community implementation (783 stars, Python, Apache-2.0, last commit 2026-03-02, 14× the official stars). 1 more implementation below.

Abstract

Exploration under sparse reward is a long-standing challenge of model-free reinforcement learning. The state-of-the-art methods address this challenge by introducing intrinsic rewards to encourage exploration in novel states or uncertain environment dynamics.

Show full abstract

Unfortunately, methods based on intrinsic rewards often fall short in procedurally-generated environments, where a different environment is generated in each episode so that the agent is not likely to visit the same state more than once. Motivated by how humans distinguish good exploration behaviors by looking into the entire episode, we introduce RAPID, a simple yet effective episode-level exploration method for procedurally-generated environments. RAPID regards each episode as a whole and gives an episodic exploration score from both per-episode and long-term views. Those highly scored episodes are treated as good exploration behaviors and are stored in a small ranking buffer. The agent then imitates the episodes in the buffer to reproduce the past good exploration behaviors. We demonstrate our method on several procedurally-generated MiniGrid environments, a first-person-view 3D Maze navigation task from MiniWorld, and several sparse MuJoCo tasks. The results show that RAPID significantly outperforms the state-of-the-art intrinsic reward strategies in terms of sample efficiency and final performance. The code is available at https://github.com/daochenzha/rapid

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
daochenzha/rapidOfficial58PythonMIT2023-03-24
Farama-Foundation/MiniworldCommunity783PythonApache-2.02026-03-02
daochenzha/rapidOfficial100%
MIT

[ICLR 2021] Rank the Episodes: A Simple Approach for Exploration in Procedurally-Generated Environments.

5810PythonJan 18, 20213 years agoMIT
Apache-2.0

Simple and easily configurable 3D FPS-game-like environments for reinforcement learning

783147PythonAug 28, 20189 months agoApache-2.0

Similar Papers

Cite this paper

@article{zha2021rank,
  title  = {Rank the Episodes: A Simple Approach for Exploration in Procedurally-Generated Environments},
  author = {Daochen Zha and Wenye Ma and Lei Yuan and Xia Hu and Ji Liu},
  year   = {2021},
  eprint = {2101.08152},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2101.08152}
}

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/2101.08152.svg)](https://codeofpaper.com/paper/2101.08152)

Discussion