Simultaneously Learning Vision and Feature-Based Control Policies for Real-World Ball-In-A-Cup

Devin Schwab, Jost Tobias Springenberg, Murilo Fernandes Martins, Michael Neunert, Thomas Lampe, Abbas Abdolmaleki, Tim Hertweck, Roland Hafner, Francesco Nori, Martin A. Riedmiller

Abstract

Learning complex robotic control directly from raw pixels is traditionally slow due to high-dimensional data and difficult credit assignment. This paper introduces a multi-task reinforcement learning (RL) framework that simultaneously trains vision-based and feature-based policies. By utilizing "expensive" features—such as Vicon object tracking—available only during training, the system generates high-quality trajectories that significantly accelerate the learning of a vision-only policy. We demonstrate that a Sawyer robot can learn the dynamic Ball-in-a-Cup task from scratch in approximately 28 hours, achieving a 100% success rate without human demonstrations or simulation pre-training.

Introduction

The "data hunger" of vision-based RL remains a primary bottleneck in robotics. While feature-based RL (using precise object coordinates) is fast, it requires expensive tracking systems impractical for real-world deployment. Conversely, vision-based systems are deployable but slow to train. This research, presented at RSS 2019, bridges this gap by allowing a robot to "cheat" during training. By solving auxiliary tasks using privileged feature data, the robot learns robust visual representations and control policies that function independently of expensive sensors at test time.

Methodology

The core of the approach extends Scheduled Auxiliary Control (SAC-X) into a multi-modal framework.

Shared Neural Architecture and Varying State Spaces

Unlike standard multi-task RL where all tasks share identical observations, this method allows tasks to operate in different "modalities." As shown in Figure 1, the architecture utilizes shared internal "g-networks" (feature extractors). This design enables the vision-based policy to inherit representations from faster-converging feature-based tasks.

Multi-modal neural architecture with gated inputs for proprioception, features, and images.

Data Sharing and Asymmetric Actor-Critic

The algorithm employs off-policy data sharing (specifically SVG-0 with retrace). Successful trajectories generated by feature-based "expert" policies are stored in a shared replay buffer, allowing the vision-based policy to learn "success" in pixel-space without extensive random exploration. Furthermore, an Asymmetric Actor-Critic setup is used: the Critic has access to all features (including Vicon data) during training to provide accurate value estimates, while the Actor (the final policy) is restricted to images and proprioception.

Experimental Setup

The system was validated using both MuJoCo simulations and a real-world Sawyer robot setup.

The real-world laboratory setup including the Sawyer robot, Ball-in-a-Cup apparatus, and tracking cameras.

The state space for the real-world task included joint positions, two 84x84 RGB camera streams, and Vicon tracking data. Crucially, the Vicon data was used only to define auxiliary tasks and provide state information during training; it was disabled during final policy deployment.

Results

The proposed method demonstrated significant performance gains:

  • Convergence Speed: In simulation, the framework achieved an 8x speedup compared to learning from images alone.
  • Real-World Learning: The robot mastered Ball-in-a-Cup from scratch in 28 hours.
  • Task Performance: The final vision-only policy achieved a 100% catch rate on a standard cup and an 80% rate on a smaller, more challenging cup.
  • Robustness: The system proved resilient to "distractor" tasks, suggesting that adding auxiliary rewards does not negatively impact the primary learning objective.

Discussion and Limitations

By training directly on hardware, the system inherently accounts for mechanical latencies and sensor noise, eliminating the "reality gap" common in sim-to-real transfers. However, challenges remain regarding hardware longevity; 28 hours of high-speed motion is taxing for industrial equipment. Additionally, while the learning process is automated, resetting the environment (e.g., untangling the string) currently requires manual scripts, adding overhead to the training cycle. Future work will focus on improving data efficiency and automating environment resets to further streamline the "from-scratch" learning process.

Summary updated

BibTeX
@inproceedings{schwab2019simultaneously,
  author = {Devin Schwab and Jost Tobias Springenberg and Murilo Fernandes Martins and Michael Neunert and Thomas Lampe and Abbas Abdolmaleki and Tim Hertweck and Roland Hafner and Francesco Nori and Martin A. Riedmiller},
  title = {{Simultaneously Learning Vision and Feature-Based Control Policies for Real-World Ball-In-A-Cup}},
  booktitle = {Robotics: Science and Systems},
  year = {2019},
  doi = {10.15607/rss.2019.xv.027},
}
Figure