Unsupervised Behavior Extraction via Random Intent Priors

Hao Hu, Yiqin Yang, Jianing Ye, Ziqing Mai, Chongjie Zhang

UBER (Unsupervised Behavior Extraction via Random Intent Priors) is a novel framework that extracts a diverse "library" of behaviors from reward-free offline datasets by using random neural networks as pseudo-reward functions. These extracted behaviors significantly accelerate the learning of new online tasks, often matching the performance of methods trained with expert-labeled rewards.

The Challenge of Reward-Free Data

Reinforcement Learning (RL) typically relies on well-defined reward signals to learn tasks. However, in the real world, we often have access to massive amounts of "reward-free" data—such as hours of human gameplay or logs of robot movements—that lack explicit labels for what the agent was trying to achieve.

Existing offline RL methods struggle to use this data because they lack a clear optimization target. While "behavior cloning" can copy the data, it is often too conservative and fails to capture the diversity of possible intents within a dataset. The core challenge is: How can we extract useful, diverse behaviors from unlabeled data to jumpstart learning for future, unknown tasks?

The UBER Framework

To address this, the authors propose a two-phase approach called UBER:

  1. Phase 1: Offline Behavior Extraction: Instead of attempting to guess the "true" reward, UBER samples several Random Intent Priors. These are simply neural networks with random weights that act as pseudo-reward functions. For each random reward, an offline RL algorithm trains a corresponding policy on the unlabeled dataset.
  2. Phase 2: Online Policy Reuse: When a new task with a real reward appears, UBER uses a "Policy Expansion" (PEX) framework. It treats the previously extracted behaviors as a candidate set. A soft selector chooses which behavior to follow at any given moment based on the current task's performance, while simultaneously training a new policy to fill any gaps.
The UBER framework: Phase 1 extracts behaviors using random rewards, and Phase 2 reuses them for online learning.

The "secret sauce" here is the use of random neural networks. While it sounds counterintuitive, the authors provide theoretical proof that a collection of random rewards can effectively approximate almost any "true" reward function.

Key Insights

  • Randomness as a Proxy for Intent: Perhaps the most surprising finding is that rewards from random neural networks are sufficient to extract highly useful behaviors. Some of these "randomly" motivated policies even approach expert performance levels on the original tasks.
  • Diversity Over Accuracy: By sampling many different random intents, UBER covers a much wider range of the "behavior space" than standard behavior cloning. This diversity is what makes the library useful for a wide variety of downstream tasks.
  • Theoretical Justification: The paper uses the theory of Random Features to show that with a reasonable number of random reward functions, their linear combination can approximate the true reward function with high probability.
  • Bridging the Gap: UBER effectively turns "unsupervised offline data" into a "supervised online advantage," reducing the need for human-designed rewards during the expensive data-collection phase.

Experimental Results

The researchers evaluated UBER on several standard RL benchmarks, including D4RL Locomotion (Hopper, Walker2d, HalfCheetah), Antmaze, and Meta-World.

  • Superior Sample Efficiency: In Mujoco locomotion tasks, UBER consistently reached high performance levels much faster than training from scratch or using behavior-cloning baselines.
  • Solving Hard Exploration: In the Antmaze domain—where most online RL agents fail because they can't find the goal—UBER achieved near-oracle performance by reusing the navigation primitives it extracted offline.
  • Outperforming Unsupervised Baselines: UBER outperformed existing state-of-the-art unsupervised methods like OPAL and PARROT by leveraging its more diverse behavior set.
Comparison of UBER against unsupervised baselines (UDS, OPAL, PARROT) on the Walker2d task, demonstrating superior sample efficiency and higher returns.

Limitations and Future Work

  • Orthogonal to Representation Learning: UBER focuses on extracting behaviors (policies), whereas many other unsupervised methods focus on learning representations (features). Combining these two approaches could lead to even more powerful agents.
  • Computational Overhead: Training multiple policies in the offline phase requires more compute than training a single model, though this is often an acceptable trade-off for better online performance.
  • Scaling: Future work could explore how this method scales to even more complex, high-dimensional data like video or natural language corpora.

Summary updated

BibTeX
@inproceedings{hu2023unsupervised,
  author = {Hao Hu and Yiqin Yang and Jianing Ye and Ziqing Mai and Chongjie Zhang},
  title = {{Unsupervised Behavior Extraction via Random Intent Priors}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=4vGVQVz5KG},
}
Figure