Episodic Curiosity through Reachability

Nikolay Savinov, Anton Raichuk, Raphaël Marinier, Damien Vincent, Marc Pollefeys, Timothy P. Lillicrap, Sylvain Gelly

Abstract

Reinforcement learning (RL) agents often struggle in environments where external rewards are sparse. Curiosity-based exploration addresses this by rewarding agents for discovering novelty. However, standard "surprise-based" methods—which reward prediction errors—often fail in the presence of stochastic noise, a phenomenon known as the "noisy TV" problem. We present a curiosity-based exploration method that defines novelty through reachability. By rewarding agents for reaching states that require a significant number of steps to achieve from their current episodic memory, our method effectively ignores unpredictable noise and significantly outperforms previous state-of-the-art methods in complex 3D environments.

Introduction

In many real-world scenarios, reinforcement learning agents receive rewards only upon task completion, making exploration difficult. Curiosity-driven exploration provides an internal reward for finding something "novel." Traditionally, novelty is defined as "surprise"—the inability of the agent to predict the next state. However, this leads to the "couch-potato" or "noisy TV" problem: an agent may become obsessed with a source of random noise (like a TV flipping channels) because the next frame is always unpredictable, yet provides no useful information for the task.

To solve this, we propose defining novelty based on the effort required to reach a state. If a state can be reached within a few simple actions from states already seen in the current episode, it is not considered novel, even if its visual content is unpredictable.

Methodology

Reachability as Novelty

Our approach, Episodic Curiosity (EC), utilizes an episodic memory to track observations seen within the current episode. Novelty is determined by a Reachability Network (R-network), which estimates the temporal distance (number of steps) between the current observation and those in memory.

Conceptual diagram of reachability-based novelty: states reachable within k steps are not considered novel, while those further away receive a curiosity bonus.

System Architecture

The system consists of several key components working in tandem:

  1. Embedding Network: Maps raw visual inputs into a compact vector space, filtering out irrelevant details.
  2. Memory Buffer: Stores embeddings of past observations from the current episode.
  3. Comparator Network: A Siamese-style network that takes the current embedding and a retrieved memory embedding to predict if they are reachable within $k$ steps.
  4. Reward Estimation: The agent compares the current state against the entire memory buffer. If the state is "far" from all stored observations, it receives a high curiosity reward.
The episodic curiosity architecture, showing the flow from observation to embedding, memory comparison, and finally the reward bonus calculation.

Experimental Evaluation

We evaluated the EC agent across several challenging 3D platforms:

  • VizDoom: Navigation tasks with varying reward sparsity.
  • DeepMind Lab (DMLab): Procedurally generated mazes and puzzles requiring complex exploration.
  • MuJoCo: An "Ant" environment where the agent must learn locomotion based solely on visual curiosity.

Key Results

  • Robustness to Noise: Unlike prediction-based methods, EC is not distracted by "noisy TVs" (screens showing random images). Since the agent learns that changing a channel is only one action away, it quickly loses interest and continues exploring.
  • Efficiency: In VizDoom, our method achieved 100% success rates at least 2x faster than the previous state-of-the-art (ICM).
  • Superior Exploration: In reward-free DMLab environments, EC agents covered 4x more area than ICM agents, who often got stuck triggering visual flashes (e.g., firing weapons) rather than moving.
  • Emergent Behavior: In MuJoCo, the Ant agent learned to walk and explore its environment using only the visual curiosity bonus, without any explicit reward for forward movement.

Conclusion

Episodic Curiosity through reachability provides a robust framework for exploration in complex, stochastic environments. By measuring novelty in terms of "steps to reach" rather than "predictability," agents prioritize states that require intentional sequences of actions to discover. Future work will explore scaling episodic memory for long-term exploration and making the RL policy aware of memory contents to enable targeted backtracking to unexplored regions.

Summary updated

BibTeX
@inproceedings{savinov2019episodic,
  author = {Nikolay Savinov and Anton Raichuk and Raphaël Marinier and Damien Vincent and Marc Pollefeys and Timothy P. Lillicrap and Sylvain Gelly},
  title = {{Episodic Curiosity through Reachability}},
  booktitle = {International Conference on Learning Representations},
  year = {2019},
  url = {https://openreview.net/forum?id=8cxiQArspb},
}
Figure