Provably Efficient Exploration for RL with Unsupervised Learning

Fei Feng, Ruosong Wang, Wotao Yin, Simon S. Du, Lin F. Yang

TL;DR

This paper presents a theoretical framework for Reinforcement Learning (RL) in environments with massive observation spaces, leveraging unsupervised learning to guide exploration. They prove that by combining a "black-box" unsupervised learning oracle with a no-regret tabular RL algorithm, they can achieve near-optimal policies with sample complexity that scales with the number of latent states, not the overwhelming number of observations. This provides the first theoretical justification for using unsupervised learning to tackle exploration in complex RL settings.

What Problem Does This Paper Address?

Modern Reinforcement Learning (RL) agents often struggle with environments that have enormous observation spaces (e.g., images from a camera). Directly applying standard RL algorithms in such scenarios is computationally infeasible due to the sheer number of possible observations, making efficient exploration—the process of discovering rewarding states and actions—a major bottleneck. While practitioners have found success using unsupervised learning (UL) to create "state abstractions" that map high-dimensional observations to a smaller set of latent states, the theoretical guarantees for why this works have been lacking. This paper aims to bridge this gap by providing a provably efficient framework for RL exploration in these complex environments, specifically when observations are generated from a small number of underlying latent states.

Methods

The core of the paper is a novel algorithmic framework that unifies two key components:

  1. Unsupervised Learning Oracle (ULO): This acts as a black-box component that, given a sufficient number of samples, can learn a mapping from observations to latent states. The key assumption is that this oracle has a polynomial sample complexity guarantee for learning this mapping.
  2. No-Regret Tabular RL Algorithm: This is a standard RL algorithm that operates on a (potentially abstract) state space and is guaranteed to find a near-optimal policy within a polynomial number of samples for that space.

The framework works by iteratively:

  • Using the tabular RL algorithm to propose a policy for the latent state space.
  • Employing the ULO to decode observations from the actual environment into these latent states.
  • Collecting trajectories in the environment using these decoded states.
  • Using these trajectories to refine the ULO's decoding functions.
  • Repeating this process until the decoding functions are accurate enough to simulate running the tabular RL algorithm directly on the true latent states.

The paper also introduces a Trajectory Sampling Routine (TSR) to manage the iterative refinement of decoding functions and a FixLabel routine to ensure consistency in label assignments across iterations.

Datasets

The paper does not introduce new datasets. Instead, it uses existing environments designed to be challenging for exploration: LockBernoulli and LockGaussian. These environments are characterized by a Block Markov Decision Process (BMDP) structure, where observations are rich and generated from a small number of latent states. They are designed to mimic real-world scenarios where direct access to the true state is impossible.

Key Insights and Ideas

  • Theoretical Justification for UL in RL Exploration: This work provides the first theoretical proof that using unsupervised learning for state abstraction can lead to provably efficient exploration in RL with high-dimensional observations.
  • Latent State Complexity: The crucial insight is that the sample complexity of finding a near-optimal policy scales polynomially with the number of latent states, which is significantly smaller than the observation space, rather than the observation space itself. This is the key to overcoming the curse of dimensionality.
  • Generality of the Framework: The proposed framework is modular, accepting almost any unsupervised learning algorithm and any tabular RL algorithm as subroutines, making it broadly applicable.
  • Bridging Empirical Success and Theory: The paper aims to explain the empirical success of methods like those by Tang et al. (2017) and Bellemare et al. (2016) by providing a theoretical foundation.

Key Results

  • Theoretical Guarantee: The paper proves that their unified framework can find an ε-optimal policy for a BMDP with a sample complexity that is polynomial in the number of latent states, actions, horizon, and logarithmic terms related to desired accuracy and confidence. This is a significant improvement over methods that depend on the size of the observation space.
  • Empirical Validation: Experiments on challenging "hard exploration" environments (LockBernoulli and LockGaussian) demonstrate that their method (URL) significantly outperforms existing observation-only baselines and is competitive with or superior to other state-of-the-art methods, especially in more complex scenarios (larger horizon H). For instance, in LockGaussian with H=20, their method achieves near-optimal policies with a probability greater than 75% for certain parameters.

Limitations and Future Work

  • Assumptions on ULO: The framework relies on the assumption that the unsupervised learning oracle has a polynomial sample complexity guarantee. The paper acknowledges that obtaining such guarantees for complex UL algorithms (like auto-encoders) can be challenging.
  • Identifiability and Reachability: Unlike some prior work, this framework does not require strict assumptions like identifiability or reachability of latent states. However, the theoretical analysis still relies on the ULO's ability to learn a good mapping.
  • Future Theoretical Direction: The authors suggest that characterizing the optimal sample complexity under their assumptions is an interesting avenue for future research. They also note that their framework can be extended to handle non-disjoint blocks and non-deterministic transitions.

Summary updated

BibTeX
@inproceedings{feng2020provably,
  author = {Fei Feng and Ruosong Wang and Wotao Yin and Simon S. Du and Lin F. Yang},
  title = {{Provably Efficient Exploration for RL with Unsupervised Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
}
Figure