Residual Reinforcement Learning for Robot Control

Tobias Johannink, Shikhar Bahl, Ashvin Nair, Jianlan Luo, Avinash Kumar, Matthias Loskyll, Juan Aparicio Ojea, Eugen Solowjow, Sergey LevineOpenReview 2018 · DOI

Abstract

Conventional feedback control methods can solve various types of robot control problems very efficiently by capturing the structure with explicit models, such as rigid body equations of motion. However, many control problems in modern manufacturing deal with contacts and friction, which are difficult to capture with first-order physical modeling. Hence, applying control design methodologies to these kinds of problems often results in brittle and inaccurate controllers, which have to be manually tuned for deployment. Reinforcement learning (RL) methods have been demonstrated to be capable of learning continuous robot controllers from interactions with the environment, even for problems that include friction and contacts. In this paper, we study how we can solve difficult control problems in the real world by decomposing them into a part that is solved efficiently by conventional feedback control methods, and the residual which is solved with RL. The final control policy is a superposition of both control signals. We demonstrate our approach by training an agent to successfully perform a real-world block assembly task involving contacts and unstable objects.

Introduction

In robotics, two paradigms dominate motion control: classical feedback control and reinforcement learning (RL). Classical control (e.g., PID or impedance control) is mathematically rigorous and efficient but often fails when encountering "unmodeled dynamics"—complex physical interactions like friction and slipping that are difficult to represent with rigid-body equations. Conversely, RL can learn these interactions through trial and error but is notoriously data-hungry and potentially unsafe for real-world hardware.

This paper proposes Residual Reinforcement Learning (Residual RL), a framework that combines the efficiency of hand-engineered controllers with the flexibility of deep RL. By treating the classical controller as a base and learning a "residual" correction, robots can master complex manipulation tasks in a fraction of the time required by standard RL.

Methodology

The core concept of Residual RL is the decomposition of the control signal $u$ into two components: $$u = \pi_H(s_m) + \pi_\theta(s_m, s_o)$$

  1. $\pi_H$ (Hand-engineered): A conventional controller that manages the predictable aspects of the task, such as moving the end-effector to a target coordinate.
  2. $\pi_\theta$ (Residual RL): A deep neural network that learns to adjust the base signal to account for complex contact physics.

The authors employ the Twin Delayed Deep Deterministic Policy Gradient (TD3) algorithm for the residual policy due to its sample efficiency. The reward function is similarly decomposed: the base controller focuses on the robot's state, while the RL agent optimizes for the object's final configuration.

The Residual RL framework decomposes control into a hand-designed base and a learned residual policy.

Experimental Evaluation

The framework was evaluated on a block assembly task using a Sawyer robot arm. The objective is to insert a block between two stationary blocks—a task highly sensitive to friction and alignment. Experiments were conducted in both MuJoCo simulations and on physical hardware. To test robustness, the researchers introduced "noisy" environments with misaligned blocks and biased controllers.

Key Insights and Results

Residual RL demonstrates several advantages over pure RL or pure classical control:

  • Sample Efficiency: The system learned the real-world assembly task in under 3 hours, significantly faster than "Only RL" approaches.
  • Robustness to Uncertainty: In scenarios where blocks were misaligned—causing classical controllers to fail 90% of the time—Residual RL maintained a 75% success rate.
  • Safety and Stability: By providing a reasonable base trajectory, the RL agent's exploration is constrained to a safer, smaller search space, preventing dangerous hardware movements.
  • Error Correction: Residual RL can effectively "fix" systematic biases in the base controller, such as a constant drift, by learning to subtract the error from the signal.
Sequence of images showing the real-world block assembly task execution.

Conclusion

Residual Reinforcement Learning offers a practical path for deploying RL in manufacturing. By leveraging existing control theory for the "easy" parts of a task, RL can focus on the "messy" physics of contact and friction. Future research will focus on integrating end-to-end vision systems to reduce dependency on hand-crafted state estimation and allow robots to "see" the contacts they are manipulating.

Summary updated

BibTeX
@misc{johannink2018residual,
  author = {Tobias Johannink and Shikhar Bahl and Ashvin Nair and Jianlan Luo and Avinash Kumar and Matthias Loskyll and Juan Aparicio Ojea and Eugen Solowjow and Sergey Levine},
  title = {{Residual Reinforcement Learning for Robot Control}},
  year = {2018},
  eprint = {1812.03201},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1812.03201},
  howpublished = {OpenReview},
}
Figure