BeBold: Exploration Beyond the Boundary of Explored Regions

Tianjun Zhang, Huazhe Xu, Xiaolong Wang, Yi Wu, Kurt Keutzer, Joseph E. Gonzalez, Yuandong Tian

Abstract

Exploration in sparse-reward environments remains a fundamental challenge in reinforcement learning. This paper introduces BeBold, an algorithm that incentivizes agents to venture beyond the boundaries of explored regions. By rewarding the regulated difference of inverse visitation counts, BeBold effectively addresses the issues of detachment and short-sightedness prevalent in existing intrinsic reward methods. Empirical results demonstrate that BeBold significantly outperforms previous state-of-the-art methods on MiniGrid and NetHack, solving complex tasks without the need for curriculum learning.

Introduction: The Challenges of Sparse Rewards

In Deep Reinforcement Learning (RL), agents often struggle with "sparse reward" environments where feedback is only provided after a complex sequence of actions. To mitigate this, researchers use Intrinsic Rewards (IR) to drive curiosity. However, existing IR methods suffer from three primary issues:

  1. Detachment: Agents may explore a novel area until rewards are exhausted, then wander away and fail to return to that frontier.
  2. Short-sightedness: Agents can become trapped oscillating between states that appear slightly novel, failing to make global progress.
  3. Asymptotic Inconsistency: Some methods continue to provide rewards even after a state is fully explored, distracting the agent from the primary goal.

The BeBold Algorithm

BeBold ("Beyond the Boundary of explored regions") introduces a novel intrinsic reward formula designed to push the agent into the unknown:

$$r^i = \max\left(\frac{1}{N(s_{t+1})} - \frac{1}{N(s_t)}, 0\right)$$

Where $N(s)$ represents the visitation count of a state.

Core Mechanisms

  • Regulated Difference: Unlike standard count-based methods that reward being in a novel state, BeBold rewards the transition from a known state to a more novel one. This effectively rewards "crossing the border" into the unknown.
  • Clipping: The $\max(\dots, 0)$ operation ensures the agent is not penalized for returning to familiar territory, which is often necessary to find new paths.
  • Episodic Restriction (ERIR): To prevent "reward farming" (repeatedly crossing a boundary), intrinsic rewards are only granted for the first visit to a state within a single episode.
  • Scaling with RND: In high-dimensional environments, Random Network Distillation (RND) error serves as a proxy for the inverse visitation count ($1/N(s)$).

Key Insights and Frontier Pushing

BeBold explicitly incentivizes pushing the "frontier" of the explored map. Unlike curiosity-based methods that might be distracted by noise, BeBold's focus on the boundary of explored regions ensures more systematic coverage of the environment.

Comparison of exploration strategies: RND (top) tends to get trapped in local regions, while BeBold (bottom) consistently pushes the exploration frontier.

As shown in the figure above, standard RND can become trapped in local regions or forget previously explored areas. In contrast, BeBold's mechanism pushes the exploration frontier uniformly, eventually reaching the end of the environment.

Experimental Evaluation

The authors evaluated BeBold on three challenging benchmarks:

  • MiniGrid: BeBold solved all 12 of the most difficult tasks (e.g., Obstructed Maze) within 120M steps. Previous state-of-the-art methods typically solved only 50% of these tasks, often requiring significantly more steps.
  • NetHack: BeBold achieved state-of-the-art results across various sub-tasks, including Staircase and Gold collection, outperforming standard RND and IMPALA baselines.
  • MonteZuma’s Revenge: BeBold reached scores of ~13,000 with an RNN model, nearly doubling the performance of standard RND (~6,700).

Discussion and Future Work

While BeBold is highly effective, it remains susceptible to the "Noisy TV" problem, where stochastic state transitions can be misinterpreted as constant novelty. Future research will focus on more robust handling of stochasticity and extending the count-sharing mechanisms to continuous state spaces, such as those found in robotics.

Summary updated

BibTeX
@misc{zhang2020bebold,
  author = {Tianjun Zhang and Huazhe Xu and Xiaolong Wang and Yi Wu and Kurt Keutzer and Joseph E. Gonzalez and Yuandong Tian},
  title = {{BeBold: Exploration Beyond the Boundary of Explored Regions}},
  year = {2020},
  eprint = {2012.08621},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.08621},
}
Figure