From Play to Policy: Conditional Behavior Generation from Uncurated Robot Data

Zichen Jeff Cui, Yibin Wang, Nur Muhammad Mahi Shafiullah, Lerrel Pinto

Introduction

In fields like natural language processing and computer vision, models like GPT-4 and DALL-E thrive on massive amounts of "uncurated" data—text or images scraped from the internet without specific task labels. Robotics, however, has traditionally relied on meticulously designed reward functions or "expert" demonstrations.

The challenge in scaling robot learning lies in utilizing play data: data collected when a human simply interacts with a robot environment without a specific, predefined goal. This data is inherently "multi-modal" (e.g., there are many valid ways to open a drawer) and "noisy" (humans make mistakes, hesitate, or change their minds). Standard imitation learning often fails in these scenarios because it attempts to "average" these diverse behaviors. If a human opens a door with their left hand half the time and their right hand the other half, a unimodal model tries to use a non-existent "middle" hand, resulting in a robot that fails at the task entirely.

To address this, researchers introduce Conditional Behavior Transformers (C-BeT), a method designed to learn useful, goal-directed policies from messy, reward-free play data.

Methodology: Conditional Behavior Transformers

C-BeT architecture is built on two primary pillars designed to handle the complexities of uncurated data:

  1. Behavior Transformers (BeT): Instead of predicting a single continuous action—which leads to the problematic "averaging" of multi-modal data—BeT discretizes the action space. It utilizes $k$-means clustering to group actions into distinct "bins." The model first predicts which bin an action belongs to (a classification task) and then predicts a small offset to refine that action (a regression task). This allows the model to represent and commit to multiple distinct ways of solving a task.
  2. Future-Conditioned Goal Specification: To make the model controllable and goal-directed, C-BeT conditions the transformer on a sequence of future observations. During training, it employs "hindsight relabeling"—taking a state reached later in a trajectory and instructing the model to treat that future state as the intended goal.

The model utilizes a MinGPT backbone to process sequences of observations. Unlike previous methods that stack current and goal states, C-BeT concatenates them. This architectural choice allows for independent sequence lengths for the "current" context and the "goal" context, providing greater flexibility.

Experimental Setup and Datasets

The researchers evaluated C-BeT across a suite of simulated and real-world datasets:

  • CARLA: A self-driving simulator requiring the robot to navigate a fork in the road, serving as a classic multi-modal scenario.
  • Multi-modal Block Pushing: An xArm robot tasked with pushing two colored blocks to randomized targets.
  • Franka Relay Kitchen (Simulated): A suite of seven tasks, such as opening ovens and moving pots, in a simulated kitchen environment.
  • Real-World Toy Kitchen: The authors collected 4.5 hours of human play data (comprising 460 sequences) using a real Franka Emika Panda robot.
The real-world toy kitchen environment where 4.5 hours of uncurated play data was collected.

This real-world data was entirely uncurated. Volunteers were instructed to simply "play" with the kitchen via VR controllers without any specific task instructions or reward structures.

Key Insights

The development and testing of C-BeT yielded several critical insights for robot learning:

  • Multi-modality is Non-Negotiable: For uncurated data, unimodal models are fundamentally limited. C-BeT’s binning strategy allows it to commit to one specific mode of action rather than failing through compromise.
  • Transformers as "Stitchers": Because C-BeT models sequences, it can effectively "stitch" together different segments of play data. If it observes one person opening an oven and a different person putting a pot on the stove, C-BeT can combine these isolated events into a single, cohesive long-horizon plan.
  • Goal Images vs. Labels: The study demonstrates that conditioning the model on a future image (a "goal observation") is just as effective as using human-provided text labels. This finding makes the system significantly easier to scale, as it removes the bottleneck of manual annotation.

Results and Performance

C-BeT demonstrated substantial improvements over existing methods in both simulation and reality.

Simulation Dominance: C-BeT improved upon previous state-of-the-art methods (such as GCBC and GCSL) by an average of 45.7%. In the CARLA driving task, it achieved a 98% success rate, vastly outperforming the next best baseline, which struggled at 74%.

Real-World Success: On the physical Franka robot, C-BeT was the only model capable of consistently performing long-horizon tasks (e.g., "Open the oven, then move the pot"). It achieved a cumulative success rate of 24/50 across various complex tasks, nearly doubling the performance of unimodal baselines.

The model demonstrated robustness to visual distractors, such as plants and bowls, that were not present during training.

Robustness to Distractors: The model also proved resilient to environmental changes. Even when researchers added "distractor" objects to the kitchen—items that were not present during the training phase—the model maintained roughly 67% of its original performance.

Limitations and Future Work

Despite its successes, the approach has limitations that pave the way for future research:

  • Visual Representation Bottleneck: C-BeT relies on BYOL, a self-supervised visual encoder. The authors noted that this encoder occasionally fails to capture tiny but crucial environmental details, such as whether a small stove knob has been turned 90 degrees.
  • Data Scale: While 4.5 hours of play data is substantial for a single lab setup, it remains minuscule compared to the "internet-scale" datasets used to train modern LLMs. Scaling up to larger, more diverse robot play datasets is a necessary next step.
  • Marginal Gains on Simple Tasks: For very simple, unimodal tasks where there is only one "correct" way to execute an action, the added complexity of C-BeT provides only marginal benefits over simpler, traditional models.

Summary updated

BibTeX
@inproceedings{cui2023from,
  author = {Zichen Jeff Cui and Yibin Wang and Nur Muhammad Mahi Shafiullah and Lerrel Pinto},
  title = {{From Play to Policy: Conditional Behavior Generation from Uncurated Robot Data}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=c7rM7F7jQjN},
}
Figure