Abstract
Exploration in environments that vary across episodes—Contextual Markov Decision Processes (CMDPs)—has become a focal point of reinforcement learning research. Current strategies typically employ either global novelty bonuses, derived from the agent's entire training history, or episodic novelty bonuses, which reset every episode. This paper investigates the distinct behaviors of these bonuses through controlled experiments and a new conceptual framework. We demonstrate that global bonuses excel when environments share significant structure, while episodic bonuses are superior when structure is sparse. By introducing a multiplicative combination of these bonuses, we achieve state-of-the-art performance across 16 MiniHack tasks and maintain robustness in diverse environments like Habitat and Montezuma’s Revenge.
Introduction
In traditional Reinforcement Learning (RL), agents are often trained in "singleton" environments where the map and dynamics remain static across episodes. However, real-world applications—such as robotics or procedurally generated games—require agents to navigate Contextual MDPs, where the environment layout or specific features change between episodes.
To facilitate exploration in these complex spaces, researchers use novelty bonuses to reward agents for visiting unfamiliar states. These bonuses generally fall into two categories:
- Global Bonuses: These track novelty across the agent's entire lifespan, rewarding visits to states that are rare relative to all previous training data.
- Episodic Bonuses: These track novelty only within the current episode, rewarding the agent for visiting states it has not yet seen in its current "life."
Despite their prevalence, the choice between these two has historically been ad-hoc. This study provides a systematic framework to understand when and why each bonus type succeeds.
Conceptual Framework: The Role of Shared Structure
The core contribution of this work is the link between the variance of the optimal value function across contexts and the effectiveness of specific bonuses.
- Low Variance (High Shared Structure): When the "goal" or optimal path looks similar across different contexts (e.g., the agent always needs to find a specific key that looks the same in every map), global bonuses are highly effective. They allow the agent to transfer knowledge about what is "novel" from one episode to the next.
- High Variance (Low Shared Structure): When the environment changes so drastically that a state's importance in Map A tells the agent nothing about Map B, global bonuses can become "exhausted." In these cases, episodic bonuses are essential to ensure the agent explores the specific nuances of the current episode's layout.
To quantify this, the authors introduced Average Cosine Similarity of value functions across contexts. Their empirical findings show that as this similarity decreases, the performance of global-only bonuses drops significantly.
Methodology: Multiplicative Integration
Beyond identifying when each bonus works, the paper investigates how to best combine them. While many researchers simply add bonuses together ($b_g + b_e$), this study finds that a multiplicative combination ($b_g \times b_e$) is significantly more effective.
In an additive setup, the global bonus naturally decays as the agent gains experience, eventually becoming so small that it is overwhelmed by the episodic bonus. Multiplication ensures that the global signal—the knowledge of what is truly rare across the entire training process—continues to modulate the agent's behavior even late in training. For implementation, the researchers combined E3B (an elliptical episodic bonus) with RND (Random Network Distillation) or NovelD.
Experimental Results
The proposed approach was evaluated across three distinct benchmarks:
1. MiniHack
On a suite of 16 procedurally generated tasks based on NetHack, the multiplicative combination of E3B and RND/NovelD set a new state-of-the-art. It achieved higher median and Interquartile Mean (IQM) scores than previous methods, proving particularly effective at solving the "dead end" problem. In tasks with many corridors, episodic bonuses often fail because every new corridor feels "novel" in the moment; the global bonus correctly identifies that the agent has explored similar dead ends in previous episodes, pushing it toward the true objective.
2. Habitat
In the photorealistic Habitat simulator, which involves navigating 1,000 different indoor scenes, episodic bonuses are typically the dominant strategy. The combined bonus remained competitive with specialized episodic-only methods, demonstrating that the global component did not hinder performance even in high-variance settings.
3. Montezuma’s Revenge
As a classic "hard exploration" singleton MDP, this game usually favors global bonuses. The combined approach performed robustly here as well, matching the performance of global-only winners. This highlights the algorithm's versatility: it adapts to the level of shared structure present without requiring manual tuning for each environment.
Conclusion
This research clarifies the relationship between environment structure and exploration strategy. By recognizing that global bonuses act as "transfer learners" and episodic bonuses act as "instance-specific explorers," the authors provide a roadmap for designing more robust RL agents. While future work remains in developing adaptive weighting for these bonuses and establishing formal sample complexity bounds, the multiplicative combination of global and episodic signals represents a significant step forward in solving complex, contextual environments.
Summary updated