Deep Reinforcement Learning for Industrial Insertion Tasks with Visual Inputs and Natural Rewards

Gerrit Schoettler, Ashvin Nair, Jianlan Luo, Shikhar Bahl, Juan Aparicio Ojea, Eugen Solowjow, Sergey Levine · DOI

Introduction

Automating high-precision assembly tasks remains a significant challenge in industrial robotics. Tasks such as plugging in a USB cable or seating a complex multi-pin connector require handling unpredictable friction, tight tolerances, and subtle misalignments. While traditional control methods often struggle with these "contact-rich" dynamics, Deep Reinforcement Learning (RL) offers a promising alternative. However, standard RL typically requires massive datasets and complex, hand-engineered reward functions that are difficult to implement on a factory floor. This paper explores a "Residual Reinforcement Learning" approach that enables robots to learn these tasks efficiently using only raw visual inputs and natural rewards.

The Challenge of Contact-Rich Tasks

In industrial settings, "contact-rich" tasks involve parts touching, sliding, and fitting together with sub-millimeter precision. Traditional controllers, like PID, are often too brittle for these scenarios because they cannot easily account for the non-linear physics of friction and contact. Conversely, training a robot from scratch using RL is often impractical due to the high sample complexity and the risk of damaging hardware during the exploration phase. Furthermore, defining a "dense" reward function—one that provides feedback at every step—usually requires precise 3D tracking of parts, which is expensive and often unavailable in real-world environments.

Methods: Residual Reinforcement Learning

The researchers propose Residual Reinforcement Learning as a solution to these challenges. Instead of the RL agent controlling the robot's entire motion, it operates on top of a simple, hand-designed "P-controller."

The experimental setup featuring a 7-DOF Sawyer robot performing high-precision insertion tasks.

The P-controller handles the "macro" movements, guiding the robot toward the general vicinity of the goal. The RL agent then learns to provide a "residual"—a small, corrective "wiggle"—to the controller's output. This hybrid approach provides a safety net, ensuring the robot stays near the task area while the RL agent focuses on the complex tactile adjustments needed for successful insertion.

The study compared two off-policy RL algorithms: Soft Actor-Critic (SAC) and Twin Delayed DDPG (TD3). SAC, being stochastic, proved particularly effective in the noisy real-world environment by exploring a wider range of corrective actions.

Visual and Natural Rewards

A key innovation is the use of "natural" rewards. Rather than complex math, the robot is guided by:

  • Visual Rewards: The agent compares its current 32x32 grayscale camera feed to a "goal image" of a successful insertion. The reward is based on the pixel-wise distance (L1) between the two.
  • Sparse Natural Rewards: For tasks like USB insertion, the reward can be a simple binary signal (0 or 1) based on whether the device successfully establishes an electrical connection.

Experimental Setup and Datasets

The approach was evaluated using a 7-DOF Sawyer robot on three increasingly difficult connector tasks derived from the NIST/IROS 2017 Robotic Grasping and Manipulation Competition.

Insertion sequences for USB (top), D-Sub (middle), and Model-E (bottom) connectors.
  1. USB: A standard connector requiring moderate precision.
  2. D-Sub: A multi-pin connector (VGA-style) requiring precise angular alignment.
  3. Model-E: A complex, waterproof industrial connector with high friction and intricate grooves.

Results and Discussion

The experimental results demonstrate the effectiveness of Residual RL over traditional and pure RL methods.

  • Success Rates: On the most challenging Model-E task, the Residual RL approach achieved a 100% success rate. In contrast, "Pure RL" (learning without the base controller) failed to complete the task entirely.
  • Robustness: The learned policies showed significant resilience to noise. When the goal position was intentionally shifted by ±1mm, the success rate of the hand-designed controller dropped to 44% for the D-Sub task. The Residual RL policy, however, maintained a success rate between 64% and 84%, demonstrating its ability to perceive and correct for misalignments visually.
  • Efficiency: Training was remarkably fast, requiring only a few thousand timesteps. This translates to roughly a few hours of real-world training time, making it a viable strategy for industrial deployment.

Conclusion

This research highlights that high-precision industrial tasks can be learned directly in the real world without the need for complex simulations or hand-engineered reward functions. By combining simple control theory with the flexibility of Deep RL, robots can achieve human-like dexterity in contact-rich environments. Future work will focus on improving the system's robustness to changing backgrounds and exploring meta-learning techniques to allow robots to generalize their insertion skills across different types of connectors.

Summary updated

BibTeX
@misc{schoettler2019deep,
  author = {Gerrit Schoettler and Ashvin Nair and Jianlan Luo and Shikhar Bahl and Juan Aparicio Ojea and Eugen Solowjow and Sergey Levine},
  title = {{Deep Reinforcement Learning for Industrial Insertion Tasks with Visual Inputs and Natural Rewards}},
  year = {2019},
  eprint = {1906.05841},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1906.05841},
}
Figure