GPLAC: Generalizing Vision-Based Robotic Skills Using Weakly Labeled Images

Avi Singh, Larry Yang, Sergey Levine

Abstract

We tackle the problem of learning robotic sensorimotor control policies that can generalize to visually diverse and unseen environments. Achieving broad generalization typically requires large datasets, which are difficult to obtain for task-specific interactive processes such as reinforcement learning or learning from demonstration. However, much of the visual diversity in the world can be captured through passively collected datasets of images or videos. In our method, which we refer to as GPLAC (Generalized Policy Learning with Attentional Classifier), we use both interaction data and weakly labeled image data to augment the generalization capacity of sensorimotor policies. Our method combines multitask learning on action selection and an auxiliary binary classification objective, together with a convolutional neural network architecture that uses an attentional mechanism to avoid distractors. We show that pairing interaction data from just a single environment with a diverse dataset of weakly labeled data results in greatly improved generalization to unseen environments, and show that this generalization depends on both the auxiliary objective and the attentional architecture that we propose. We demonstrate our results in both simulation and on a real robotic manipulator, and demonstrate substantial improvement over standard convolutional architectures and domain adaptation methods.

Introduction

Deep learning has enabled robots to perform complex tasks directly from visual input. However, these end-to-end models are often "brittle," failing when faced with minor environmental changes like different backgrounds or lighting. The primary bottleneck is the scarcity of interaction data; while the internet provides billions of images, data of robots performing tasks is expensive and difficult to collect.

Overview of the GPLAC framework, which leverages both strong supervision (demonstrations) and weak supervision (passive images) to generalize to unseen environments.

To address this, the Generalized Policy Learning with Attentional Classifier (GPLAC) framework proposes using "weakly labeled" passive images—images that indicate the presence of an object but lack action labels—to help robots generalize their skills. By teaching the robot what to look at through passive observation, it can better apply its learned motor skills in novel settings.

Methodology

GPLAC utilizes a multitask learning approach combined with a specialized neural network architecture to bridge the gap between limited interaction data and diverse visual environments.

Multitask Learning with Weak Labels

The model is trained simultaneously on two objectives:

  1. Robotics Task: Predicting the next action based on an image and joint angles (strong supervision).
  2. Auxiliary Classification Task: Predicting if a specific object (e.g., a mug) is present in a passive image (weak supervision).

Both tasks share a common convolutional backbone, allowing the visual features learned from the diverse passive images to inform the robot's control policy.

A stack of weakly labeled images representing the visual diversity used to train the attentional classifier.

Spatial Attention Mechanism

A key innovation in GPLAC is the use of a spatial soft-argmax layer. This layer acts as a bottleneck, forcing the network to represent the visual scene as a set of (x, y) coordinates (feature points). This mechanism prevents the model from overfitting to environmental distractors like floor textures or wall colors, focusing instead on the spatial location of the target object. By forcing the network to pass through this "feature point" bottleneck, the auxiliary classification task effectively trains the network to become a robust object detector.

Experimental Evaluation

The researchers evaluated GPLAC in both simulated (MuJoCo) and real-world environments using a Rethink Robotics Sawyer robot.

  • Simulation: Tasks included pushing a mug and striking a ball. The model was trained on 400 trajectories from a single environment and augmented with weakly labeled data from 40 diverse environments.
  • Real World: The Sawyer robot was tasked with pushing a mug using 306 trajectories in a single setting. The passive dataset included 1,700 images of 11 different mugs in various environments.

Results and Discussion

GPLAC demonstrated significant improvements in generalization over standard convolutional architectures and domain adaptation methods.

  • High Success Rates: In simulation, GPLAC achieved an 80% success rate in unseen environments, compared to only 40% for a standard CNN.
  • Real-World Performance: On the Sawyer robot, success rates in unseen environments improved by over 20% compared to strong baselines.
  • Data Efficiency: The framework remained effective even with a relatively small number of weakly labeled images (as few as 800), highlighting its practical utility for real-world robotics.

Conclusion

GPLAC provides a robust method for enhancing the generalization of robotic skills by leveraging the abundance of passive visual data. By combining multitask learning with a spatial attention bottleneck, robots can learn to ignore environmental noise and focus on the task-relevant objects. Future work may explore extending this approach to reinforcement learning and moving toward entirely unsupervised data sources.

Summary updated

BibTeX
@inproceedings{singh2017gplac,
  author = {Avi Singh and Larry Yang and Sergey Levine},
  title = {{GPLAC: Generalizing Vision-Based Robotic Skills Using Weakly Labeled Images}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2017},
  url = {https://openreview.net/forum?id=BJbvdezu-H},
}
Figure