Identifying Expert Behavior in Offline Training Datasets Improves Behavioral Cloning of Robotic Manipulation Policies

Qiang Wang, Robert McCarthy, David Córdova Bulens, Stephen J. Redmond, McGuinness, Kevin, O'Connor, Noel E., Redmond, Stephen J. · DOI

Abstract

This paper presents our solution for the Real Robot Challenge (RRC) III, a competition featured in the NeurIPS 2022 Competition Track, aimed at addressing dexterous robotic manipulation tasks through learning from pre-collected offline data. Participants were provided with two types of datasets for each task: expert and mixed datasets with varying skill levels. While the simplest offline policy learning algorithm, Behavioral Cloning (BC), performed remarkably well when trained on expert datasets, it outperformed even the most advanced offline reinforcement learning (RL) algorithms. However, BC's performance deteriorated when applied to mixed datasets, and the performance of offline RL algorithms was also unsatisfactory. Upon examining the mixed datasets, we observed that they contained a significant amount of expert data, although this data was unlabeled. To address this issue, we proposed a semi-supervised learning-based classifier to identify the underlying expert behavior within mixed datasets, effectively isolating the expert data. To further enhance BC's performance, we leveraged the geometric symmetry of the RRC arena to augment the training dataset through mathematical transformations. In the end, our submission surpassed that of all other participants, even those who employed complex offline RL algorithms and intricate data processing and feature engineering techniques.

Introduction

Offline policy learning aims to teach robots complex skills using pre-collected data, avoiding the high costs and safety risks associated with real-world trial and error. A significant hurdle in this field is that offline datasets are often "mixed," containing a small number of successful expert demonstrations buried within a larger volume of mediocre or failing attempts.

The TriFinger platform used in the Real Robot Challenge III, featuring three robotic fingers manipulating a cube.

Standard Behavioral Cloning (BC) treats robot learning as a supervised regression problem. While highly efficient, BC mimics all behaviors in the training set indiscriminately. If the data is of poor quality, the resulting policy will be poor. Conversely, Offline Reinforcement Learning (RL) attempts to learn from suboptimal data by maximizing rewards, but these algorithms often struggle with "out-of-distribution" actions, leading to over-optimistic behaviors that fail when deployed on physical hardware. Our approach demonstrates that by focusing on data quality through expert filtering, simple BC can outperform state-of-the-art RL.

Methodology

Our winning strategy for the RRC III competition rested on three primary pillars:

  1. The Expert Filter: Rather than relying solely on reward thresholds to identify high-quality data—which can be misleading in complex tasks—we developed a semi-supervised binary classifier. We designated the top 10% highest-rewarding episodes as positive samples and created synthetic negative samples by pairing real states with random actions. This classifier learned the underlying patterns of expertise, allowing us to iteratively filter mixed datasets into clean "expert" subsets.
  2. Rotational Symmetry Augmentation: The TriFinger robot used in the challenge features three fingers spaced 120° apart. We exploited this geometric symmetry to triple the dataset size by mathematically rotating state and action vectors by 120° and 240°.
  3. Theory-to-Real Transfer: To account for physical asymmetries in real-world hardware (e.g., motor variance), we employed a two-stage training process. We first trained on the massive, augmented "theoretical" dataset and then fine-tuned the model on the original, non-augmented data to align the policy with the specific physical characteristics of the real robot.

Datasets and Analysis

The study utilized the RRC III datasets, focusing on two dexterous manipulation tasks: Push (moving a cube to a 2D target) and Lift (elevating a cube to a 3D target with a specific orientation). For each task, we analyzed both "Expert" (pure high-skill) and "Mixed" (unlabeled) datasets.

Reward distributions for the Push (left) and Lift (right) tasks, comparing expert and mixed datasets. Note the significant overlap in the Lift task.

Analysis of the reward distributions revealed why simple filtering is insufficient. In the "Lift" task, the reward distributions for expert and non-expert behaviors overlapped significantly. A simple reward threshold would have either excluded many expert-like behaviors or included excessive noise. Our classifier was essential for identifying the style of movement associated with success, rather than just the final score.

Key Results

Our method, submitted under the name "excludedrice," secured 1st place in the RRC III competition. Key performance metrics include:

  • Filtering Accuracy: The classifier achieved 100% accuracy in identifying expert data for the Push task and near-perfect accuracy for the Lift task.
  • Performance Gains: On the "Lift/mixed" dataset, our method achieved a score of 1038, significantly outperforming standard BC (489) and the best-performing RL baseline, PLAS (707).
  • Ablation Studies: Removing either the fine-tuning step or the symmetry augmentation led to a measurable decrease in performance, confirming that each component of the pipeline was critical to the final success.

Conclusion

This work highlights that data quality often outweighs algorithmic sophistication in offline robotic learning. By isolating expert behavior within noisy datasets, we enabled a simple Behavioral Cloning approach to surpass complex offline RL algorithms. Future research will explore adaptive thresholds for the classifier and the application of these filtering techniques to even more complex, multi-modal datasets where expert behavior is less clearly defined.

Summary updated

Abstract

This paper presents our solution for the Real Robot Challenge (RRC) III, a competition featured in the NeurIPS 2022 Competition Track, aimed at addressing dexterous robotic manipulation tasks through learning from pre-collected offline data. Participants were provided with two types of datasets for each task: expert and mixed datasets with varying skill levels. While the simplest offline policy learning algorithm, Behavioral Cloning (BC), performed remarkably well when trained on expert datasets, it outperformed even the most advanced offline reinforcement learning (RL) algorithms. However, BC's performance deteriorated when applied to mixed datasets, and the performance of offline RL algorithms was also unsatisfactory. Upon examining the mixed datasets, we observed that they contained a significant amount of expert data, although this data was unlabeled. To address this issue, we proposed a semi-supervised learning-based classifier to identify the underlying expert behavior within mixed datasets, effectively isolating the expert data. To further enhance BC's performance, we leveraged the geometric symmetry of the RRC arena to augment the training dataset through mathematical transformations. In the end, our submission surpassed that of all other participants, even those who employed complex offline RL algorithms and intricate data processing and feature engineering techniques.
BibTeX
@article{wang2024identifying,
  author = {Qiang Wang and Robert McCarthy and David Córdova Bulens and Stephen J. Redmond and McGuinness, Kevin and O'Connor, Noel E. and Redmond, Stephen J.},
  title = {{Identifying Expert Behavior in Offline Training Datasets Improves Behavioral Cloning of Robotic Manipulation Policies}},
  journal = {IEEE Robotics Autom. Lett.},
  year = {2024},
  doi = {10.1109/lra.2023.3342559},
}
Figure