Composable Deep Reinforcement Learning for Robotic Manipulation.

Tuomas Haarnoja, Vitchyr Pong, Aurick Zhou, Murtaza Dalal, Pieter Abbeel, Sergey LevinearXiv 2018

Abstract

Model-free deep reinforcement learning has been shown to exhibit good performance in domains ranging from video games to simulated robotic manipulation and locomotion. However, model-free methods are known to perform poorly when the interaction time with the environment is limited, as is the case for most real-world robotic tasks. In this paper, we study how maximum entropy policies trained using soft Q-learning can be applied to real-world robotic manipulation. The application of this method to real-world manipulation is facilitated by two important features of soft Q-learning. First, soft Q-learning can learn multimodal exploration strategies by learning policies represented by expressive energy-based models. Second, we show that policies learned with soft Q-learning can be composed to create new policies, and that the optimality of the resulting policy can be bounded in terms of the divergence between the composed policies. This compositionality provides an especially valuable tool for real-world manipulation, where constructing new policies by composing existing skills can provide a large gain in efficiency over training from scratch. Our experimental evaluation demonstrates that soft Q-learning is substantially more sample efficient than prior model-free deep reinforcement learning methods, and that compositionality can be performed for both simulated and real-world tasks.

Introduction

Deep Reinforcement Learning (RL) has achieved significant success in simulated environments, yet its application to physical robotics remains challenging. Traditional model-free RL methods typically require millions of interactions, which is impractical for real-world robots that suffer from mechanical wear and require constant human supervision. Furthermore, standard RL lacks reusability; adding a new constraint to a learned task, such as avoiding an obstacle while picking up a block, usually necessitates retraining from scratch. This research addresses these hurdles by utilizing Soft Q-Learning (SQL) to enable sample-efficient learning and the zero-shot composition of robotic skills.

Methods

The proposed framework is built upon Soft Q-Learning, which differs from standard RL by employing a Maximum Entropy objective. Instead of merely maximizing cumulative rewards, the agent seeks to maximize reward plus the entropy (randomness) of its actions. This approach offers several technical advantages:

  • Energy-Based Models (EBMs): Policies are represented as distributions where high-reward actions have higher "energy." This allows the robot to learn multimodal strategies, such as choosing to go either left or right around an obstacle.
  • Amortized Stein Variational Gradient Descent (SVGD): To handle the mathematical complexity of sampling from these energy distributions in real-time, a secondary neural network is trained to sample efficiently from the policy.
  • Additive Composition: A key theoretical contribution is the proof that optimal soft Q-functions ($Q_1$ and $Q_2$) for different tasks can be combined to approximate the optimal policy for a compound task simply by adding them: $Q_{combined} \approx Q_1 + Q_2$.

Experimental Evaluation

The framework was evaluated in both simulated and real-world environments:

  • Simulated Pushing: A 2D planar arm task in MuJoCo used to benchmark SQL against DDPG and NAF.
  • Real-World Sawyer Robot: Experiments on a 7-DoF Sawyer arm involving coordinate reaching, Lego block stacking, and obstacle avoidance.

Key Results and Discussion

The experimental results demonstrate that stochastic policies are significantly easier to compose than deterministic ones. Because a MaxEnt policy explores diverse ways to solve a task, it maintains a mathematical "overlap" with other policies, enabling effective additive combination.

Sample Efficiency: The Sawyer robot learned to stack Lego blocks from scratch in less than two hours—a task that typically requires days for many deep RL methods. In reaching tasks, SQL converged in approximately 10 minutes, showing much lower variance than baseline methods.

Figure 3: Learning efficiency comparison. Composed policies (merge) achieve low final error significantly faster than standard online training, demonstrating the power of reusability.

Compositionality Success: The ability to combine skills offline is a major step toward scalable robotics. In the Lego task, a policy trained only to stack blocks would collide with a new obstacle 100% of the time. By additively composing the "stacking" and "obstacle avoidance" Q-functions, the robot achieved a 100% success rate for both objectives with zero additional training.

Figure 5: Sequential frames of the Sawyer robot performing individual tasks (reaching, stacking, avoidance) and the zero-shot composed task (stacking while avoiding).

Limitations and Future Work

While the results are promising, the current theoretical bound on the sub-optimality of composed policies is relatively loose. Additionally, the logic assumes that task rewards are additive, which may not apply to hierarchical or mutually exclusive objectives. Future research will investigate bias correction for composed Q-functions to build more accurate and vast "skill libraries" for complex, novel problems.

Summary updated

BibTeX
@misc{haarnoja2018composable,
  author = {Tuomas Haarnoja and Vitchyr Pong and Aurick Zhou and Murtaza Dalal and Pieter Abbeel and Sergey Levine},
  title = {{Composable Deep Reinforcement Learning for Robotic Manipulation.}},
  year = {2018},
  eprint = {1803.06773},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1803.06773},
}
Figure