Presented at NeurIPS 2021, this paper introduces a modular and mathematically rigorous framework for exploration in Reinforcement Learning (RL). By decoupling what an agent needs to sample from how it navigates to those samples, the authors provide a unified strategy that improves performance across several classic RL challenges, including sparse reward discovery and model estimation.
The Challenge: Monolithic Exploration and the "Teleportation" Gap
In online RL, an agent must explore an unknown environment to learn its dynamics and optimize its behavior. Traditionally, exploration strategies are "monolithic"—custom-built for a specific objective, such as minimizing regret, finding an optimal policy, or mapping the environment. Changing the objective often requires designing a brand-new exploration algorithm from scratch.
Furthermore, many theoretical RL frameworks rely on a "generative model" assumption. This acts like a simulator that allows the agent to "teleport" to any state and take any action to observe the outcome. In real-world online RL, teleportation is impossible; the agent must physically navigate through the environment to reach the states it wants to sample. This paper bridges the gap between theory and practice by providing a provably efficient way to simulate a generative model in a real, online environment.
The Solution: Decoupled Exploration via GOSPRL
The core contribution of this work is GOSPRL (Goal-based Optimistic Sampling Procedure for RL), an algorithm that tackles exploration through a two-layered, decoupled approach:
- The Objective-Specific Layer (The "Grocery List"): A high-level module prescribes a sampling requirement, denoted as $b(s, a)$. This acts as a checklist of how many times each state-action pair needs to be visited to satisfy the current learning goal.
- The Objective-Agnostic Layer (The Navigator): This module treats the under-sampled states as "goals" within a Stochastic Shortest Path (SSP) problem.
To navigate efficiently without knowing the environment's exact transition dynamics, GOSPRL employs the principle of Optimism in the Face of Uncertainty. It builds an optimistic model of the world to find the fastest route to the states on its checklist. Once it reaches a goal state and collects the necessary samples, it updates both its checklist and its world model, then sets off for the next target.
Key Insights and Theoretical Guarantees
By framing exploration as a shortest path problem—trying to reach a set of goal states as quickly as possible—the authors leverage powerful mathematical tools from SSP literature to establish tighter theoretical bounds.
- The Role of Diameter: The efficiency of GOSPRL is heavily tied to the MDP Diameter ($D$), which represents the maximum expected time to travel between any two states. The algorithm's complexity scales with $D$, intuitively capturing how navigable an environment is.
- Sparse Reward Discovery: GOSPRL can locate a hidden reward in $\widetilde{O}(B D + D^{3/2}S^2A)$ time steps (where $B$ is the total desired samples, $S$ is states, and $A$ is actions). This significantly improves the dependency on the diameter $D$ compared to previous state-of-the-art reward-free algorithms.
- Model Estimation: For accurately estimating transition probabilities, GOSPRL achieves superior sample complexity and successfully removes the restrictive "ergodicity" assumption (the assumption that any random policy will eventually visit every state).
- Targeted Efficiency: While many practitioners rely on Maximum Entropy (MaxEnt) heuristics to encourage state coverage, GOSPRL proves more efficient because it is strictly targeted—it knows exactly what samples it needs and navigates directly to them.
Empirical Validation
The authors evaluated GOSPRL across several standard RL exploration benchmarks:
- RiverSwim: An environment where an agent must swim against a current to reach high rewards, proving random exploration ineffective.
- Gridworlds: Tested on a 24-state "corridor" and a 43-state "four-room" layout.
- Garnet MDPs & Wheel(30): Used to demonstrate the algorithm's robustness across different transition structures and its accuracy in transition model estimation.
In simulations, particularly the 4-room gridworld, GOSPRL reached 100% state-action coverage significantly faster and with much lower variance than baselines like 0/1-UCRL or uniform random exploration.
Limitations and Future Directions
While GOSPRL offers a robust theoretical and empirical framework, it currently operates within "tabular" RL, where states and actions are discrete and finite. Solving the optimistic SSP problem at every step can also become computationally heavy as the state space grows.
A major future direction is scaling this decoupled approach to Deep RL and continuous state spaces using function approximation. The authors suggest that the shortest-path navigation policy could potentially be handled by goal-conditioned neural networks, such as those used in Hindsight Experience Replay, paving the way for highly efficient, objective-agnostic exploration in complex environments.
Summary updated