Accelerating Exploration with Unlabeled Prior Data

Qiyang Li, Jason Zhang, Dibya Ghosh, Amy Zhang, Sergey Levine

Introduction

Reinforcement learning (RL) agents often struggle to find "needles in haystacks" when rewards are sparse. In environments like a robot searching for a specific object in a large house, an agent might wander for millions of steps before receiving a single positive signal. This paper introduces EXPLORE, a method that leverages unlabeled prior data—such as random interactions or recordings of other tasks—to guide exploration. By labeling this data with "optimistic" rewards, the agent is incentivized to revisit and explore around known-possible states, significantly accelerating discovery in complex environments.

Problem Statement

While we often have access to "prior data" (e.g., logs of a robot moving around for various reasons), this data usually lacks labels for a new task's rewards. Existing methods either ignore this data, use it only for representation learning, or require expensive human labeling. The authors address a critical question: How can we use reward-free prior data to directly inform the agent about which regions of the state space are interesting to explore?

Methodology: The EXPLORE Framework

The EXPLORE framework: Unlabeled prior data is relabeled with an optimistic reward bonus (UCB) and combined with online interaction data to train the agent.

EXPLORE (Exploration from Prior Data by Labeling Optimistic Reward) follows a straightforward iterative loop:

  1. Online Data Collection: The agent interacts with the environment, storing transitions in a buffer.
  2. Reward Model Learning: Using the online data (which eventually contains some rewards), the agent trains a model to predict rewards for any given state.
  3. Uncertainty Quantification: Random Network Distillation (RND) is used to measure state novelty. High RND error indicates states the agent hasn't visited frequently.
  4. Optimistic Relabeling: This is the core innovation. The agent takes unlabeled prior data and labels it with a Upper Confidence Bound (UCB) estimate: $Reward = Predicted\_Reward + Uncertainty\_Bonus$.
  5. Joint Training: The agent trains on a mix of its own online experience and this newly "optimistically labeled" prior data using a sample-efficient algorithm like RLPD (Reinforcement Learning with Prior Data).

By assigning high rewards to prior states that are either predicted to be good or are highly uncertain, the agent is pulled toward regions of the state space it knows are reachable but hasn't fully mastered yet.

Experimental Evaluation

The researchers evaluated EXPLORE on three challenging suites:

  • AntMaze (D4RL): A quadruped "ant" navigating complex mazes to reach a goal. Prior data consists of goal-directed trajectories that do not necessarily reach the current target.
  • Adroit: Dexterous hand manipulation tasks (pen spinning, door opening). Prior data includes expert demos and sub-optimal behavior cloning data.
  • COG: A vision-based robotic manipulation domain involving multi-stage tasks (e.g., opening a drawer to find a ball) and high-dimensional image observations.

Key Results and Insights

Comparison of state coverage across different methods. EXPLORE (Ours) visits significantly more of the environment's free space much faster than standard exploration methods.
  • State Coverage: As shown in the coverage plots, EXPLORE visits significantly more of the environment's "free space" much faster than standard exploration methods. This proves that optimistic labels lead to a more efficient search.
  • Matching the Oracle: In many AntMaze and Adroit tasks, EXPLORE (using unlabeled data) performed nearly as well as an "Oracle" baseline that had access to true reward labels for the offline data.
  • Vision-Based Success: On COG tasks, EXPLORE was often the only method (aside from the Oracle) to achieve a high success rate. Baselines that didn't use prior data or used "naive" (non-optimistic) labeling failed to solve the tasks.
  • Natural Curriculums: In multi-stage tasks, optimistic labeling naturally creates a reward gradient. States later in a trajectory often have higher uncertainty or predicted reward, guiding the agent step-by-step through complex sequences.

Limitations and Future Work

Despite its success, EXPLORE faces challenges such as reward model overfitting, which required periodic resets in certain tasks. Additionally, the shifting nature of UCB estimates can lead to training instability. Future work will explore how this method scales to massive, "in-the-wild" unlabeled datasets where only a tiny fraction of the data might be relevant to the target task.

Summary updated

BibTeX
@inproceedings{li2023accelerating,
  author = {Qiyang Li and Jason Zhang and Dibya Ghosh and Amy Zhang and Sergey Levine},
  title = {{Accelerating Exploration with Unlabeled Prior Data}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=Itorzn4Kwf},
}
Figure