Adaptive Reward-Free Exploration

Emilie Kaufmann, Pierre Ménard, Omar Darwiche Domingues, Anders Jonsson, Edouard Leurent, Michal Valko

Abstract

Reward-free exploration is a reinforcement learning setting recently studied by (Jin et al. 2020), who address it by running several algorithms with regret guarantees in parallel. In our work, we introduce RF-UCRL, a new adaptive algorithm for "reward-free" reinforcement learning. Instead of learning to solve one specific task, the agent explores an unknown environment to build a comprehensive map, allowing it to find a near-optimal policy for any future reward function with significantly fewer exploration episodes than previous methods.

Introduction

In traditional Reinforcement Learning (RL), an agent learns to maximize a specific reward signal through trial and error. However, in many real-world scenarios, the reward function might be unknown at the outset, or we may desire an agent capable of performing multiple tasks within the same environment.

This challenge is addressed in the Reward-Free Exploration (RFE) setting. RFE consists of two phases:

  1. Exploration Phase: The agent explores the environment without a reward signal to collect data.
  2. Planning Phase: A reward function is provided, and the agent must use the collected data to output a near-optimal policy.

Previous methods often relied on "brute-force" strategies, such as running multiple reward-based algorithms in parallel to cover the state space. These approaches were complex and suffered from sub-optimal sample complexity—the number of episodes required to guarantee performance. This work introduces a more natural, adaptive approach to RFE.

Methodology: RF-UCRL

The proposed algorithm, RF-UCRL (Reward-Free Upper Confidence Bound for Reinforcement Learning), adapts the classic "Optimism in the Face of Uncertainty" principle to the reward-free setting.

Core Mechanisms

  • Uncertainty Tracking: Rather than tracking upper bounds on rewards, RF-UCRL tracks an upper bound on the estimation error ($E_h^t$) of the environment's transition probabilities.
  • Recursive Error Bounds: These bounds are calculated recursively, similar to Bellman equations. This allows the algorithm to account for how uncertainty in a specific state propagates throughout the time horizon ($H$).
  • Adaptive Exploration: In each episode, the agent follows a "greedy" policy relative to these error bounds, intentionally visiting regions where its knowledge of the environment is most uncertain.
  • Stopping Rule: The exploration phase terminates once the maximum possible error for any policy falls below a predefined threshold ($\epsilon/2$).

Additionally, the authors introduce BPI-UCRL, a variant for Best Policy Identification (BPI). In BPI, the reward is fixed and known, but the objective remains minimizing the samples needed to identify the optimal policy rather than maximizing cumulative reward during the learning process.

Experimental Evaluation

The algorithms were evaluated on two synthetic environments designed to test exploration capabilities:

  1. Double Chain MDP: A linear chain of states where the agent starts in the center. Reaching the "goal" at either end requires consistent movement in one direction despite stochastic "slips."
  2. GridWorld: A $21 \times 21$ navigation task where the agent must locate a specific rewarding coordinate.

These environments serve as "sanity checks" because random movement is highly unlikely to reach critical states, necessitating purposeful exploration.

Key Insights and Results

Theoretical Advancements

  • Direct Error Reduction: The research demonstrates that effective exploration does not require simulated rewards. By minimizing the maximum estimation error across all potential policies, the agent naturally achieves comprehensive environment coverage.
  • Improved Sample Complexity: RF-UCRL requires $O\left(\frac{SAH^4}{\epsilon^2}(\log(1/\delta) + S)\right)$ episodes. This represents a significant improvement over previous state-of-the-art methods (e.g., Jin et al., 2020), particularly regarding scaling with the horizon ($H$) and failure probability ($\delta$).
  • Stationary Transitions: In environments with time-invariant transitions, the complexity bound improves further to $H^3$.

Empirical Performance

In simulations, RF-UCRL performed nearly as well as a "Generative Model" (an oracle capable of sampling any state-action pair) and significantly outperformed random exploration. BPI-UCRL proved even more efficient when the reward function was known, as it could ignore irrelevant portions of the state space.

Limitations and Future Directions

While RF-UCRL provides a robust framework for tabular MDPs (where states and actions are discrete and finite), several challenges remain:

  • Function Approximation: Extending these adaptive error bounds to continuous state spaces or high-dimensional environments using linear function approximation or neural networks is a critical next step.
  • Tightening Theoretical Bounds: There remains a gap between the $H^4$ upper bound proven in this work and the $H^2$ lower bounds suggested by theoretical literature. Closing this gap is a primary goal for future research.

Summary updated

BibTeX
@inproceedings{kaufmann2021adaptive,
  author = {Emilie Kaufmann and Pierre Ménard and Omar Darwiche Domingues and Anders Jonsson and Edouard Leurent and Michal Valko},
  title = {{Adaptive Reward-Free Exploration}},
  booktitle = {ALT},
  year = {2021},
  url = {https://openreview.net/forum?id=6BaF1hfnoO},
}
Figure