Learning Modular Neural Network Policies for Multi-Task and Multi-Robot Transfer.

Coline Devin, Abhishek Gupta, Trevor Darrell, Pieter Abbeel, Sergey Levine

TL;DR

Deep reinforcement learning for robotics typically requires training a new policy from scratch for every single robot-task combination. This paper introduces modular neural network policies that cleanly separate task-specific logic (like perception and planning) from robot-specific control (like kinematics and dynamics). By mixing and matching these pre-trained modules, the framework achieves zero-shot transfer and dramatically accelerated learning on completely unseen robot-task pairs.

What Problem Does This Paper Address?

Deep reinforcement learning (RL) has achieved remarkable success in simulation, but it remains notoriously data-inefficient. When a new robot needs to learn a task, or an existing robot needs to learn a new skill, they usually have to start learning from scratch. Traditional transfer learning methods, such as fine-tuning, struggle when robots have completely different physical structures (morphologies, joint counts) or when tasks have entirely different goals.

However, much of the underlying information in robotics is naturally decoupled. A "pulling a drawer" task requires the same fundamental spatial understanding regardless of which robot performs it. Conversely, a 3-degree-of-freedom (DoF) robotic arm uses the same internal dynamics and joint controls regardless of whether it is pushing a block or wiping a table. The authors tackle the challenge of structurally exploiting this decoupling to share experiences across entirely different robots and tasks.

Fig. 2: The possible worlds enumerated for all combinations of tasks and robots for the universe described in Section III

Methods

The core innovation is decomposing a neural network policy into two distinct, interchangeable modules: a task-specific module ($g_k$) and a robot-specific module ($f_r$).

  1. Task Module ($g_k$): Processes extrinsic observations (e.g., camera images, object locations) and outputs a latent representation of the task plan.
  2. Robot Module ($f_r$): Takes this latent representation along with intrinsic observations (e.g., joint angles, velocities) to output the final motor commands (torques).

During training, a grid of "worlds" (robot-task combinations) is trained simultaneously using Guided Policy Search (GPS), with weights strictly tied across identical modules.

Fig. 3: Modular policy composition for a universe with 2 tasks and 2 robots. There are 4 available modules - 2 task modules and 2 robot modules, and each module is a nerual network. For the training worlds, these modules are composed together to form the individual policy networks. Modules of the same color share their weights. Policy networks for the same task share task modules and those for the same robot share robot modules. The training worlds are composed and then trained end-to-end. On encountering an unseen world, the appropriate previously trained modules are composed to give a policy capable of good zero-shot performance

Because the interface between these modules is a latent representation without explicit semantic supervision, the network could easily overfit by creating specialized "receptors" for specific combinations. To force the modules to learn a standardized, generalizable communication protocol, the authors introduce two regularization techniques:

  • Information Bottlenecking: Limiting the number of hidden units in the task module's output to force compact information transfer.
  • Dropout: Applying dropout at the module interface to prevent co-adaptation and over-specialization.

Datasets

The method was evaluated across three simulated suites built using the MuJoCo physics simulator:

  • Reaching Colored Blocks: A vision-based task where three different arms (two 3-link variants and one 4-link arm) must reach one of four colored blocks from raw $80\times64\times3$ images.
  • Object Manipulation: A non-visual task involving complex contact dynamics across three robots (3, 4, and 5 links) performing three tasks: pulling a drawer horizontally, pushing a drawer vertically, and pushing a block.
  • Visually Distinct Manipulation Tasks: A highly challenging combination of raw vision and intricate physics where robots must reach a target, push a block, or insert a peg into a hole.

Key Insights and Ideas

  • Self-Organizing Interfaces: The interface between the task and robot modules discovers its own protocol entirely through end-to-end training, without human engineering defining what information should pass between them.
  • The Regularization Paradox: With only a few robots and tasks, modules easily overfit to their training pairs. Restricting the information flow (via bottlenecks and dropout) is paradoxically what forces the modules to become truly robot-agnostic and task-agnostic.
  • Zero-Shot vs. Warm Start: For purely kinematic or perceptual tasks, the mix-and-match approach yields immediate zero-shot success. For tasks with highly discontinuous contact dynamics (like drawer pulling), it provides an excellent initialization that succeeds even where learning from scratch completely fails.

Key Results

  • Zero-Shot Vision Transfer: In the Reaching Colored Blocks task, a composed policy for an unseen combination (4-link robot reaching for a black block) achieved an average distance to target of 0.08 to 0.28, vastly outperforming a random network (1.16–1.35) or using the wrong task module (1.65–2.41).
  • Bypassing Reward Shaping: In the Object Manipulation task, initializing an unseen world (3-link robot pulling a horizontal drawer) with the composed modules allowed the robot to learn the task rapidly without any reward shaping. Learning from scratch without reward shaping completely failed to make progress.
  • Complex Dynamics Transfer: In the Visually Distinct Manipulation task, zero-shot transfer on a 4-link block-pushing task achieved a final distance error of 0.19 to 0.48, significantly outperforming baseline methods (~0.95).

Limitations and Future Work

  • Synchronous Training Requirement: The current framework requires all robot-task combinations in the training set to be trained simultaneously in a centralized fashion. This is impractical for scaling to real-world physical robots.
  • Lifelong Learning: A critical next step is adapting this approach to sequential transfer learning, allowing a single robot to learn new tasks over time while continuously updating and pulling from a shared library of modular components.

Summary updated

BibTeX
@misc{devin2016learning,
  author = {Coline Devin and Abhishek Gupta and Trevor Darrell and Pieter Abbeel and Sergey Levine},
  title = {{Learning Modular Neural Network Policies for Multi-Task and Multi-Robot Transfer.}},
  year = {2016},
  eprint = {1609.07088},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1609.07088},
}
Figure