BeBold: Exploration Beyond the Boundary of Explored Regions

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

TL;DR

BeBold introduces a simple yet remarkably effective intrinsic reward mechanism for reinforcement learning based on the regulated difference of inverse visitation counts between consecutive states. By rewarding agents only when they cross the "frontier" into less-explored territory, BeBold prevents agents from getting stuck in familiar loops, solving the 12 most challenging procedurally generated MiniGrid tasks without requiring complex curriculum learning.

What Problem Does This Paper Address?

Deep reinforcement learning (RL) has achieved stunning success in environments with dense, frequent rewards (like chess or Atari games). However, real-world scenarios are rarely so generous; rewards are often sparse or entirely unknown. To navigate these "sparse-reward" environments, researchers use Intrinsic Rewards (IR)—a form of artificial curiosity that encourages agents to explore simply for the sake of novelty.

Existing IR methods suffer from three major flaws:

  1. Short-sightedness & Detachment: Count-based methods reward agents based on the absolute novelty of a state. If an agent enters a long, novel corridor, it accumulates massive rewards just by walking down it. This creates a positive feedback loop where the agent becomes "dedicated" to that single path, failing to return and explore alternative branches (detachment).
  2. Stochastic Distractions: Curiosity-driven methods look for prediction errors in environment dynamics, making them easily distracted by inherently random elements (the "noisy TV" problem).
  3. Asymptotic Inconsistency: State-difference methods provide rewards that don't vanish even after infinite exploration, meaning the final trained policy might never focus on the actual task goal.

BeBold aims to solve these issues with a clean, one-stage exploration criterion that naturally pushes the agent beyond its current exploration boundaries.

Methods

The core philosophy of BeBold is to reward the agent only when it steps Beyond the Boundary of what it already knows.

Instead of looking at absolute state novelty, BeBold calculates the difference in inverse visitation counts between the next state ($s_{t+1}$) and the current state ($s_t$):

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

Where $N(s)$ represents the life-long visitation count.

Key Innovations:

  • Boundary Clipping: The $\max(\cdot, 0)$ operation ensures the agent isn't penalized when transitioning from a novel state back to a familiar one, but it receives a positive reward only when moving from a familiar state to a more novel one.
  • RND Approximation: Because counting exact states is impossible in complex environments, BeBold uses Random Network Distillation (RND). The prediction error between a fixed teacher network and a trained student network serves as a proxy for the inverse visitation count.
  • Episodic Restriction on Intrinsic Reward (ERIR): To prevent the agent from oscillating back and forth between a novel state and an old state to farm rewards, BeBold multiplies the reward by an indicator function $1\{N_e(s_{t+1}) = 1\}$, ensuring a state is only rewarded the very first time it is seen within a given episode.
A hypothetical demonstration showing how BeBold uniformly pushes the exploration frontier compared to RND, which gets trapped.

Datasets

The authors evaluated BeBold on highly challenging, procedurally generated environments where layout and object colors change every episode:

  • MiniGrid: A gridworld benchmark. The authors focused on the 12 most difficult tasks across three categories: Multi-Room (MR), Key Corridor (KC), and Obstructed Maze (OM) (where keys are hidden in boxes and doors are blocked by obstacles).
  • NetHack: A notoriously complex, text-based rogue-like game featuring massive action spaces and extremely long horizons. Subtasks evaluated include Staircase, Pet, Gold, Score, Scout, and Oracle.
  • Montezuma’s Revenge: A classic "hard-exploration" Atari game used for initial validation.

Key Insights and Ideas

  • Insensitivity to Corridor Length: Because BeBold measures the difference in novelty, walking down an already-explored long corridor yields a reward of zero. The agent only receives a reward when it hits the unexplored frontier at the very end. This elegantly mitigates the detachment problem without the complex, multi-stage architecture of frameworks like Go-Explore.
  • Natural Decay (Asymptotic Consistency): As the lifelong visitation count $N(s)$ approaches infinity for all states, the inverse counts vanish ($1/N \to 0$). Consequently, the intrinsic reward naturally drops to zero over time, forcing the agent to eventually maximize only the true environmental objective.

Key Results

MiniGrid

BeBold successfully solved all 12 of the most challenging MiniGrid tasks within 120 million environment steps. It achieved this completely end-to-end, without any curriculum learning. In comparison, previous state-of-the-art methods like AMIGo only solved 50% of these tasks, even when allowed 500 million steps and utilizing a complex teacher-student training curriculum.

Training curves across various hard exploration environments in MiniGrid, demonstrating BeBold's superior performance over baselines.

NetHack & Atari

  • On NetHack, BeBold significantly outperformed strong baselines like IMPALA and standard RND, particularly on the Pet and Scout tasks.
  • On Montezuma's Revenge, BeBold achieved an average external reward of ~10,000 using a CNN architecture and ~13,000 using an RNN architecture, vastly outperforming standard RND (~6,700 and ~4,400 respectively).

Limitations and Future Work

  • The Noisy TV Problem: Because BeBold relies on RND prediction errors to approximate visitation counts, it can still be tricked by inherent stochasticity. If an environment transition is entirely random, the student network will fail to predict it, leading to a false novelty reward.
  • Continuous State Spaces: The episodic restriction (ERIR) currently relies on a hash table to track exact state visitations per episode. Scaling this to continuous spaces (like robotics tasks) will require state discretization or a more advanced density estimation method.

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