Abstract
Theoretical Reinforcement Learning (RL) often relies on the assumption of a Sampling Oracle (SO)—a generative model that allows an agent to query any state-action pair and receive a transition sample. In real-world applications, however, agents must navigate through unknown environments to reach specific states, incurring a "navigational tax." This paper introduces GOSPRL (Goal-based Optimistic Sampling Procedure for RL), a framework that decouples the high-level objective of what samples to collect from the low-level navigation required to collect them. By formulating exploration as a series of Stochastic Shortest Path (SSP) problems, GOSPRL provides the first sample complexity bounds for goal-free exploration in communicating Markov Decision Processes (MDPs).
Introduction
In the landscape of RL theory, there is a significant divide between algorithms designed for simulators and those designed for online interaction. Algorithms utilizing a Sampling Oracle can efficiently estimate model dynamics or find optimal policies because they can "teleport" to any part of the state space. In contrast, online agents are constrained by the environment's transition dynamics; to learn about a distant state, the agent must first figure out how to get there.
This paper addresses this gap by asking: Can we build a general-purpose sample collection engine that works for any RL objective? The authors propose that by separating the "what" from the "how," we can adapt theoretical breakthroughs in simulator-based RL to the more challenging online setting.
The Navigational Tax and the Need for Decoupling
The fundamental challenge in online RL is the "navigational tax"—the overhead of moving between states to gather information. Most existing exploration algorithms, such as UCRL2 or PSRL, are designed for specific objectives like regret minimization. While effective for their intended use, they are not easily adaptable to other tasks, such as pure exploration or reward-free learning.
To solve this, the authors introduce a two-layer architecture:
- Objective-Specific Layer (Top): This layer determines the sampling requirements (e.g., "I need 100 samples of state-action pair $(s, a)$ to reduce my uncertainty").
- Objective-Agnostic Layer (Bottom): This layer, powered by GOSPRL, determines the most efficient way to collect those samples in an unknown environment.
The GOSPRL Algorithm
The core of GOSPRL is the insight that exploration can be viewed as a sequence of Stochastic Shortest Path (SSP) problems. In an SSP, an agent seeks to reach a set of goal states while minimizing the expected cost (in this case, time).
Key Components of GOSPRL:
- Goal Aggregation: GOSPRL identifies all "under-sampled" states—those that have not yet met the quota requested by the top layer—and treats them as a collective goal set.
- Optimism under Uncertainty: Because the agent does not know the true transition dynamics, it employs an "Extended Value Iteration" scheme. It maintains a set of plausible models consistent with its observations and chooses the model that makes reaching the goal states appear easiest. This "optimistic" path ensures the agent either reaches a goal or learns that its current map is incorrect.
- Dynamic Execution: The agent follows the optimistic policy until it either collects a sample at a goal state or the model's uncertainty is reduced enough to warrant a policy update.
Theoretical Guarantees
The paper provides a rigorous analysis of GOSPRL's efficiency. The primary result is that the total number of steps required to collect $B$ samples is bounded by: $$\tilde{O}(BD + D^{3/2}S^2A)$$ Where:
- $B$ is the total number of samples requested.
- $D$ is the diameter of the MDP (the maximum expected time to travel between any two states).
- $S$ and $A$ are the number of states and actions, respectively.
This bound formally proves that the navigational tax is essentially linear in the diameter of the environment. This is a significant result, as it provides a clear theoretical cost for the transition from a simulator-based setting to an online setting in communicating MDPs.
Empirical Evaluation
The authors validated GOSPRL across several benchmark environments, including RiverSwim, various Gridworlds (Corridor, 4-room, CliffWalk), and Garnet MDPs (randomly generated structures).
In these experiments, GOSPRL was compared against common exploration heuristics:
- 0/1-UCRL: An algorithm that provides a fixed reward for visiting under-sampled states.
- MaxEnt: An approach that attempts to maximize the entropy of the state-visitation distribution.
Results indicated that GOSPRL consistently reached its sampling targets faster than the baselines. Notably, GOSPRL exhibited lower variance across runs, suggesting it is more robust at navigating to hard-to-reach states in complex topologies.
Discussion and Limitations
While GOSPRL represents a major step forward, the authors note several areas for future research:
- Tabular Constraints: The current framework is designed for tabular MDPs. Extending these provable guarantees to continuous state spaces using function approximation remains an open challenge.
- Greedy Navigation: GOSPRL is "greedy-optimal," meaning it seeks the fastest path to the next available sample. It does not attempt to solve the "Traveling Salesman" version of the problem—planning a global route to visit all required states in the minimum total time—which is a computationally harder problem.
- Communicating MDPs: The theory relies on the environment being "communicating" (finite diameter). In environments with irreversible traps, the diameter becomes infinite. The authors proposed a variant, GOSPRL-L, to handle such cases by ignoring unreachable states, but further refinement is needed for non-communicating settings.
Conclusion
By decoupling sample collection from the learning objective, GOSPRL provides a versatile and provably efficient engine for RL exploration. It transforms the problem of navigation into a series of optimistic shortest-path tasks, offering a bridge between the idealized world of Sampling Oracles and the practical realities of unknown environments.
Summary updated