Minimax-Optimal Reward-Agnostic Exploration in Reinforcement Learning

Gen Li, Yuling Yan, Yuxin Chen, Jianqing Fan

TL;DR

This paper introduces the first minimax-optimal algorithm for reward-agnostic exploration in reinforcement learning. By leveraging insights from offline RL, the authors demonstrate that a learner can explore an environment without knowing the reward function and still achieve the same statistical efficiency as if the rewards were known all along.

What Problem Does This Paper Address?

In standard Reinforcement Learning (RL), an agent explores an environment to maximize a specific reward. However, in many real-world scenarios—like recommendation systems with delayed feedback or multi-objective robotics—the reward function might be unknown during data collection or might change frequently.

This leads to two challenging settings:

  1. Reward-Agnostic Exploration: The learner collects data once and must later find near-optimal policies for a fixed, polynomial number of reward functions revealed after the fact.
  2. Reward-Free Exploration (RFE): A more stringent version where the collected data must be sufficient to find an optimal policy for any reward function, even one designed by an adversary.

Previous algorithms for these tasks were either sub-optimal in their "horizon" dependency (how long the tasks last, denoted as $H$) or required significantly more samples than reward-aware counterparts. The authors aim to close this gap and reach the theoretical limit of efficiency, known as minimax optimality.

Methods

The authors propose a two-stage framework that bridges the gap between active exploration and offline RL:

  • Stage 1: Reward-Agnostic Exploration. The agent explores the environment without any reward signal. The goal here is to collect a dataset that "covers" the state-action space effectively. The authors design an exploration policy by solving a convex optimization problem (using a Frank-Wolfe type subroutine) that maximizes a reward-irrelevant quantity related to occupancy distributions. Essentially, the agent tries to visit states in a way that minimizes the future uncertainty of an offline learner.
  • Stage 2: Policy Learning via Offline RL. Once the exploration is done and reward functions are revealed, the agent doesn't collect more data. Instead, it applies a pessimistic model-based offline RL algorithm. This algorithm uses the collected transitions to build an empirical model of the environment but subtracts a "penalty" term to account for uncertainty in under-sampled regions, preventing the agent from over-committing to poorly understood paths.

Datasets

This is a theoretical paper focused on provable performance guarantees (sample complexity bounds). Consequently, no empirical datasets or benchmarks were used for evaluation. The results are established through mathematical proofs for finite-horizon inhomogeneous Markov Decision Processes (MDPs).

Key Insights and Ideas

  • The Offline-Online Connection: The core "aha!" moment is identifying that the quality of exploration should be measured by how well the resulting data supports offline RL. By optimizing the specific quantities that dictate offline RL performance, the exploration becomes naturally efficient.
  • Minimax Optimality for Free: The paper proves that for a fixed set of reward functions, you don't actually need more samples just because you don't know the rewards during exploration. The sample complexity $\tilde{O}(\frac{SAH^3}{\epsilon^2})$ matches the lower bound for the reward-aware case.
  • Horizon Efficiency: Previous reward-agnostic works had a dependency of $H^5$. By using more sophisticated variance-aware analysis and pessimistic learning, this paper brings it down to $H^3$, which is the best possible for this setting.

Key Results

The paper’s main contribution is summarized in the comparison of sample complexities (the number of episodes needed to reach accuracy $\epsilon$).

Sample complexity comparisons for reward-agnostic/reward-free algorithms. The table highlights that this paper achieves the best known bounds for both settings, particularly improving the horizon (H) dependency.
  • Reward-Agnostic Setting: Achieves a sample complexity of $\tilde{O}(\frac{SAH^3}{\epsilon^2})$. This is the first result to achieve minimax optimality in $S, A,$ and $H$ simultaneously for this setting.
  • Reward-Free Setting: Achieves $\tilde{O}(\frac{S^2AH^3}{\epsilon^2})$. This matches the state-of-the-art for reward-free exploration while using a novel, offline-RL-inspired design.

Limitations and Future Work

  • Burn-in Cost: The theoretical optimality only kicks in when the target accuracy $\epsilon$ is sufficiently small. For very "noisy" or short-term learning (large $\epsilon$), the algorithm might require a high initial number of samples (the "burn-in").
  • Tabular Restriction: The current analysis is limited to "tabular" RL, where states and actions are discrete and finite. Extending these minimax-optimal results to settings with function approximation (like deep RL) remains an open challenge.
  • Instance Optimality: Minimax optimality considers the "worst-case" MDP. The authors suggest that future work could focus on instance-optimal exploration, which adapts to the specific difficulty of the environment at hand rather than the theoretical worst case.

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