Efficient Data Collection for Robotic Manipulation via Compositional Generalization

Jensen Gao, Annie Xie, Ted Xiao, Chelsea Finn, Dorsa Sadigh

Abstract

Data collection has become an increasingly important problem in robotic manipulation, yet there still lacks much understanding of how to effectively collect data to facilitate broad generalization. Recent works on large-scale robotic data collection typically vary many environmental factors of variation (e.g., object types, table textures) during data collection, to cover a diverse range of scenarios. However, they do not explicitly account for the possible compositional abilities of policies trained on the data. If robot policies can compose environmental factors from their data to succeed when encountering unseen factor combinations, we can exploit this to avoid collecting data for situations that composition would address. To investigate this possibility, we conduct thorough empirical studies both in simulation and on a real robot that compare data collection strategies and assess whether visual imitation learning policies can compose environmental factors. We find that policies do exhibit composition, although leveraging prior robotic datasets is critical for this on a real robot. We use these insights to propose better in-domain data collection strategies that exploit composition, which can induce better generalization than naive approaches for the same amount of effort during data collection. We further demonstrate that a real robot policy trained on data from such a strategy achieves a success rate of 77.5% when transferred to entirely new environments that encompass unseen combinations of environmental factors, whereas policies trained using data collected without accounting for environmental variation fail to transfer effectively, with a success rate of only 2.5%.

Introduction

The primary bottleneck in scaling robotic manipulation is the volume of data required to handle real-world variability. Traditional approaches attempt to cover the space of environmental factors—such as object types, table heights, and textures—by collecting massive datasets across all possible combinations. However, the number of combinations grows exponentially with the number of factors, making exhaustive collection infeasible.

This work explores compositional generalization: the ability of a robot to handle a novel combination of factors (e.g., a specific spoon on a medium-height table) if it has seen those factors individually in other contexts (e.g., a spoon on a short table and a fork on a medium table).

Overview of compositional generalization: combining prior data with sparse in-domain collection to succeed in unseen scenarios.

Data Collection Strategies

To identify the most effective way to trigger compositional abilities, the researchers compared several strategies for sampling environmental factors during data collection:

  • Complete: The exhaustive baseline where every combination is recorded.
  • Random: Combinations are sampled randomly, providing a baseline for unstructured diversity.
  • L-Strategy: Varies one factor at a time from a fixed base configuration.
  • Stair-Strategy: A cyclic variation of the L-strategy that captures more diverse combinations for the same collection effort.
  • Diagonal: The minimal set of data required to observe every individual factor value at least once.
Comparison of data collection strategies across two factors of variation.

The experiments utilized Diffusion Policy for imitation learning and leveraged BridgeData V2 as a large-scale prior dataset to provide a foundational understanding of robotic tasks.

Key Insights and Results

The study yielded several critical findings for efficient robotic learning:

  1. The Role of Prior Data: While robots struggle to compose factors when trained from scratch on limited in-domain data, pre-training on diverse datasets like BridgeData V2 significantly enhances their compositional reasoning.
  2. Visual vs. Physical Factors: Composition is more readily achieved for visual factors (e.g., table texture) where the model can learn invariance. Physical factors (e.g., table height) are more challenging as they directly alter the required motor trajectories.
  3. Superiority of the Stair Strategy: The "Stair" strategy emerged as the most efficient approach, offering a balance between diversity and collection effort. In simulations, it achieved performance comparable to the "Complete" strategy with 5x to 10x less data.

In real-world evaluations across multiple kitchen environments, a robot trained using the Stair strategy and prior data achieved a 77.5% success rate in entirely new environments with unseen factor combinations. In contrast, a baseline that did not account for factor variation achieved only a 2.5% success rate.

Conclusion

This research demonstrates that we do not need to "collect it all" to achieve robust robotic generalization. By strategically collecting data that allows for composition and leveraging large-scale prior datasets, we can train policies that generalize to novel environments with significantly less effort. The Stair strategy provides a practical blueprint for future large-scale robotic data collection efforts.

Summary updated

BibTeX
@inproceedings{gao2024efficient,
  author = {Jensen Gao and Annie Xie and Ted Xiao and Chelsea Finn and Dorsa Sadigh},
  title = {{Efficient Data Collection for Robotic Manipulation via Compositional Generalization}},
  booktitle = {DGR @ RSS},
  year = {2024},
  url = {https://openreview.net/forum?id=PqnSt9Hwyv},
}
Figure