Minimax-optimal reward-agnostic exploration in reinforcement learning

Gen Li, Yuling Yan, Yuxin Chen, Jianqing Fan

Authors: Gen Li (The Chinese University of Hong Kong), Yuling Yan (Massachusetts Institute of Technology), Yuxin Chen (University of Pennsylvania), Jianqing Fan (Princeton University)

Abstract

This paper studies reward-agnostic exploration in reinforcement learning (RL) — a scenario where the learner is unaware of the reward functions during the exploration stage — and designs an algorithm that improves over the state of the art. Consider a finite-horizon inhomogeneous Markov decision process with $S$ states, $A$ actions, and horizon length $H$. By collecting an order of $\frac{SAH^3}{\varepsilon^2}$ sample episodes (up to log factors) without guidance of the reward information, the proposed algorithm finds $\varepsilon$-optimal policies for a polynomial number of reward functions. This represents the first reward-agnostic exploration scheme to achieve provable minimax optimality. Furthermore, for "reward-free exploration" (arbitrarily many reward functions), the algorithm achieves $\varepsilon$ accuracy with $\frac{S^2AH^3}{\varepsilon^2}$ episodes.

Introduction

In standard Reinforcement Learning (RL), agents typically explore an environment while receiving feedback from a specific reward function. However, many practical applications require a "collect first, specify later" approach. This is known as reward-agnostic exploration. The goal is to interact with the environment to gather a dataset that is sufficiently informative to solve any task (reward function) presented later.

The fundamental challenge lies in sample efficiency: how many episodes are required to guarantee near-optimal performance for any potential reward? While previous work established various bounds, a gap remained between the best available algorithms and the theoretical lower limits. This work closes that gap for finite-horizon Markov Decision Processes (MDPs), achieving minimax optimality.

Methodology: The Offline-Online Synergy

The core innovation of this work is the bridge it builds between active exploration and offline RL. The algorithm is designed around two pillars:

  1. Exploration Strategy: Rather than random exploration, the agent seeks to maximize a specific "reward-agnostic quantity." This quantity is derived from the theoretical foundations of offline RL. By maximizing this metric, the agent ensures that the resulting dataset satisfies the "coverage" requirements needed for an offline solver to succeed, regardless of the eventual reward function.
  2. Policy Learning: Once the exploration phase is complete and a reward function is provided, the agent employs a policy learning paradigm inspired by sample-optimal offline RL. This allows for the extraction of the best possible policy from the static dataset without further environment interaction.

Theoretical Results and Complexity Bounds

The paper provides rigorous mathematical proofs for two distinct settings within the reward-agnostic framework:

  • Reward-Agnostic Setting: When the learner is interested in a fixed, polynomial number of reward functions, the algorithm requires $\mathbf{\frac{SAH^3}{\epsilon^2}}$ episodes. This matches the lower bounds for reward-aware RL, demonstrating that not knowing the reward function does not necessarily increase the fundamental sample complexity (up to logarithmic factors).
  • Reward-Free Setting: In the more stringent "reward-free" case, where the policy must be optimal for any reward function (even those chosen adversarially after data collection), the complexity increases to $\mathbf{\frac{S^2AH^3}{\epsilon^2}}$. This additional factor of $S$ represents the "price" of needing to cover the entire state space to satisfy an unknown, potentially adversarial objective.

Discussion and Future Work

While this work establishes the first minimax-optimal bounds for reward-agnostic exploration in the tabular setting, several avenues for future research remain:

  • Function Approximation: The current results apply to tabular MDPs with discrete states and actions. Extending these minimax-optimal guarantees to settings with linear or non-linear function approximation (e.g., deep RL) is a critical next step for scaling to high-dimensional real-world problems.
  • Computational Efficiency: The focus of this research is on statistical efficiency (sample complexity). Future work could investigate the computational runtime of these optimal exploration schemes in complex environments.
  • Tightness of Reward-Free Bounds: A remaining theoretical question is whether the $S$ factor in the reward-free bound is strictly necessary or if further algorithmic refinements could achieve $SAH^3/\epsilon^2$ even for an infinite set of rewards.

Summary updated

BibTeX
@inproceedings{li2024minimax,
  author = {Gen Li and Yuling Yan and Yuxin Chen and Jianqing Fan},
  title = {{Minimax-optimal reward-agnostic exploration in reinforcement learning}},
  booktitle = {Conference on Learning Theory},
  year = {2024},
  url = {https://openreview.net/forum?id=V4BlFOB85O},
}
Figure