Potential Driven Reinforcement Learning for Hard Exploration Tasks

Enmin Zhao, Shihong Deng, Yifan Zang, Yongxin Kang, Kai Li, Junliang Xing

Abstract

Reinforcement learning (RL) in sparse-reward environments remains a significant challenge, as agents often fail to encounter meaningful feedback during random exploration. This paper introduces Potentialized Experience Replay (PotER), a novel sampling method that leverages artificial potential fields to guide exploration. By assigning attractive potentials to progress and repulsive potentials to failure states, PotER automatically generates a curriculum of safe intermediate goals. Our evaluation on hard exploration Atari games, such as Montezuma’s Revenge, demonstrates that PotER significantly outperforms existing state-of-the-art exploration methods.

Introduction

In Reinforcement Learning, "hard exploration" tasks represent a major hurdle. In environments like Montezuma’s Revenge, an agent may execute thousands of actions before receiving a single positive reward. Standard exploration strategies, such as $\epsilon$-greedy or random noise, typically result in the agent failing repeatedly without acquiring useful knowledge. While methods like Hindsight Experience Replay (HER) attempt to learn from every reached state, they often struggle in "deadly" environments where they might inadvertently encourage the agent to revisit states leading to immediate failure. PotER addresses this by providing a mathematically grounded way to define progress and safety before any external reward is encountered.

Methodology: Potentialized Experience Replay (PotER)

The core innovation of this work is the Potential Exploration Function, inspired by the Artificial Potential Field (APF) models used in robot path planning. The system assigns a potential value to every state in the experience replay buffer based on two primary components:

  1. Attractive Potential ($U_{att}$): This encourages the agent to move further away from the starting position ($s_{init}$), rewarding exploration into novel territory.
  2. Repulsive Potential ($U_{rep}$): This discourages the agent from approaching "obstacle" or "death" states ($s_{obst}$), effectively teaching the agent what to avoid.
The PotER pipeline: from initial random exploration to the generation of a potential field and the final goal-oriented policy.

As shown in the figure above, the agent begins with random exploration. The resulting trajectories are used to construct a 3D potential field where peaks represent high-potential sub-goals. PotER identifies the state with the maximum potential in the current buffer and sets it as an internal sub-goal. As the agent masters these goals, the potential field shifts, creating a natural curriculum of increasingly difficult tasks. This is integrated with Self-Imitation Learning (SIL), allowing the agent to "imitate" its own high-potential trajectories even in the absence of external rewards.

Learning from Failure

Unlike many RL algorithms that focus exclusively on positive rewards, PotER explicitly utilizes "bad" experiences (deaths) to shape the environment's topology. By treating death states as repulsive sources, the algorithm prevents the agent from wasting time near traps or repeating fatal mistakes.

Comparison between a bad experience (death at an obstacle) and the resulting imitation of a successful trajectory.

This mechanism ensures that the agent's internal curriculum is not just about reaching new states, but reaching safe new states. In Montezuma’s Revenge, PotER automatically discovered nine distinct sub-goals, such as reaching specific platforms or ladders, which closely mirror human-like strategies.

Experimental Results

The researchers evaluated PotER on several hard exploration Atari games. On the benchmark Montezuma’s Revenge, the combination of SIL and PotER achieved a score of 6439, significantly outperforming other state-of-the-art methods like Random Network Distillation (RND), which scored 4017, and standard SIL, which scored 2497. The method showed consistent improvements across other challenging titles, such as Gravitar (2908 vs. SIL's 2312) and Private Eye.

Conclusion

Potentialized Experience Replay provides a robust framework for navigating sparse-reward environments by borrowing principles from physics and robotics. By balancing the drive for novelty with the necessity of safety, PotER enables agents to build their own curriculum of sub-goals. Future work will focus on automating the identification of death states in environments where failure signals are less explicit and reducing the computational overhead of calculating trajectory-level distances.

Summary updated

BibTeX
@inproceedings{zhao2020potential,
  author = {Enmin Zhao and Shihong Deng and Yifan Zang and Yongxin Kang and Kai Li and Junliang Xing},
  title = {{Potential Driven Reinforcement Learning for Hard Exploration Tasks}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.24963/ijcai.2020/290},
}
Figure