Adversarial discriminative sim-to-real transfer of visuo-motor policies

Fangyi Zhang, Jürgen Leitner, Zongyuan Ge, Michael Milford, Peter Corke

TL;DR

This paper tackles the challenge of transferring robotic control policies learned in simulation to the real world, a process often hindered by the need for extensive real-world data labeling. They introduce an "Adversarial Discriminative Transfer" (ADT) method that significantly reduces the requirement for labeled real data by leveraging unlabeled real data and an adversarial loss. This allows for more efficient and cost-effective sim-to-real transfer of visuo-motor policies for robotic manipulation tasks.

What Problem Does This Paper Address?

Training robots for complex tasks like manipulation often relies on deep learning, which typically requires vast amounts of data. While simulation offers a way to generate large datasets cheaply, policies learned purely in simulation often fail when transferred to the real world due to the "reality gap" – the differences between simulated and real environments. Existing sim-to-real transfer methods often require a substantial amount of labeled real-world data to bridge this gap, which is expensive and time-consuming to collect for robotic applications. This paper addresses the problem of reducing the reliance on labeled real-world data for effective sim-to-real transfer of visuo-motor policies, specifically for object reaching tasks.

Methods

The core contribution is the Adversarial Discriminative Transfer (ADT) approach. ADT builds upon a modular network architecture consisting of a perception module (encoder and regressor) and a control module.

Here's how ADT works:

  • Modular Network: The perception module is trained to estimate the target object's position from visual input. This module is then connected to a control module that outputs joint velocities to move the robot arm.
  • Adversarial Loss: ADT introduces an adversarial loss that trains a discriminator to distinguish between features extracted from simulated and real images. The perception module's encoder is trained to "fool" this discriminator, making its representations of real-world data more similar to those of simulated data.
  • Semi-Supervised Transfer: Crucially, ADT uses both labeled simulated data and unlabeled real data for the adversarial training. A small amount of labeled real data is also used to fine-tune the perception module. This combination allows the model to adapt to the real world without needing extensive real-world labels.
  • PI Controller for Adversarial Loss: The paper also introduces a Proportional-Integral (PI) controller to dynamically adjust the weight of the adversarial loss. This helps maintain the adversarial loss within a specific range, which was found to be crucial for optimal adaptation performance.
  • End-to-End Fine-tuning: After initial perception and control module training, a weighted end-to-end fine-tuning step is performed to improve the coordination between the perception and control modules.

Datasets

The paper utilizes the following datasets:

  • Simulated Perception Datasets: Large datasets of simulated images paired with ground-truth object positions. These were generated using V-REP with domain randomization (varying object counts, shapes, poses, colors, table pose, camera FoV, etc.). Specific datasets mentioned include $Z_{sup}(340)$, $Z_{sup}(750)$, and $Z_{sup}(3000)$.
  • Real Perception Datasets with Labels: Datasets of real-world images with ground-truth object positions. These were collected from a real Baxter robot. Specific datasets include $Z_{up}(48)$, $Z_{up}(93)$, $Z_{up}(186)$, and $Z_{up}(279)$.
  • Real Perception Datasets without Labels: Datasets of real-world images without ground-truth labels, used for the adversarial training component of ADT. Specific datasets include $Z_{A}^{unlabeled}(48)$, $Z_{A}^{unlabeled}(93)$, $Z_{A}^{unlabeled}(186)$, and $Z_{A}^{unlabeled}(279)$.
  • Control Datasets: Datasets containing trajectories of robot arm movements, including image-velocity and image-position pairs, collected in simulation. These are used to train the control module. Specific datasets include $Z(118; 10677)$, $Z(333; 30225)$, and $Z(2964; 269851)$.

The paper does not introduce a new benchmark dataset but uses a realistic table-top object reaching task as its evaluation environment.

Key Insights and Ideas

  • Unlabeled Real Data is Powerful: The most significant insight is that unlabeled real-world data, when combined with an adversarial loss, can be highly effective in bridging the sim-to-real gap for regression tasks, not just classification.
  • ADT Significantly Reduces Labeling Cost: The ability to achieve good performance with a substantial reduction (50%) in labeled real data is a major practical advantage for robotics.
  • PI Controller for Stability: The introduction of a PI controller for the adversarial loss weight is a clever way to ensure stable and effective adaptation, preventing the adversarial component from becoming too dominant or too weak.
  • Modular Design Benefits Transfer: The modular network architecture, combined with end-to-end fine-tuning, proves effective for complex tasks and allows for better coordination between perception and control.
  • Discriminator Capacity Matters: The capacity of the discriminator network (its depth and width) plays a crucial role in the effectiveness of the adversarial adaptation. Too little capacity leads to poor discrimination and thus poor adaptation.

Key Results

  • Reduced Labeling: ADT achieved comparable perception accuracy with 50% fewer labeled real images compared to supervised adaptation.
  • High Accuracy with Few Labels: The approach successfully transferred visuo-motor policies to a real robot for a table-top object reaching task using only 93 labeled and 186 unlabeled real images.
  • Robust Performance: The learned policies demonstrated robustness to novel distractor objects in clutter and even to a moving target.
  • End-to-End Improvement: End-to-end fine-tuning with weighted losses significantly improved the overall performance, achieving a success rate of 97.8% and a median control error of 1.8 cm.
  • Comparison to Baselines: ADT outperformed naive supervised adaptation and domain confusion methods, especially when using the PI controller.

Limitations and Future Work

  • Unlabeled Data Ratio: The current ADT approach works best when the number of unlabeled real images is not more than twice the number of labeled ones. The paper suggests that further investigation is needed to tackle scenarios with very few labeled and many unlabeled real images.
  • Control Module Improvement: While the control module performance was good, the authors suggest that future work could explore reinforcement learning to further improve control performance.
  • Generalizability: While demonstrated for object reaching, exploring the applicability of ADT to a wider range of robotic tasks and environments would be valuable.
  • Domain Randomization Tuning: The paper notes that pure domain randomization alone did not yield the expected results, suggesting that further research into optimal domain randomization parameters and techniques might be beneficial.

Summary updated

BibTeX
@article{zhang2019adversarial,
  author = {Fangyi Zhang and Jürgen Leitner and Zongyuan Ge and Michael Milford and Peter Corke},
  title = {{Adversarial discriminative sim-to-real transfer of visuo-motor policies}},
  journal = {Int. J. Robotics Res.},
  year = {2019},
  url = {https://openreview.net/forum?id=dfd93kpJxP},
}
Figure