Learning modular neural network policies for multi-task and multi-robot transfer

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

TL;DR

This paper introduces a novel method for training modular neural network policies that can be decomposed into "task-specific" and "robot-specific" components. This allows for efficient transfer learning, enabling robots to perform new tasks or adapt to new morphologies with minimal or no additional training, achieving zero-shot generalization.

What Problem Does This Paper Address?

Reinforcement learning (RL) has shown great promise in automating robotic skills, but it typically requires vast amounts of real-world data and manual engineering of policy representations for each new skill or robot. While deep RL can learn more general policies, it exacerbates the data collection problem due to its inefficiency. Transfer learning offers a solution by leveraging past experience, but existing methods struggle with the complex variations in robotic tasks and morphologies, making direct policy reuse difficult. The core challenge is how to effectively transfer learned knowledge across different robots and tasks, especially when encountering novel combinations not seen during training.

Methods

The authors propose a modular approach to policy learning. They decompose a neural network policy into two main components:

  • Task-specific modules (g): These modules capture information relevant to the task itself, such as perception of objects or task goals. They are designed to be robot-invariant.
  • Robot-specific modules (f): These modules capture information about the robot's own dynamics, kinematics, and control capabilities. They are designed to be task-invariant.

These modules are trained end-to-end across a set of "training worlds" (combinations of robots and tasks). The key idea is that the task module for a specific task can be reused across different robots, and the robot module for a specific robot can be reused across different tasks. For a new, unseen robot-task combination ("unseen world"), the appropriate pre-trained task and robot modules are composed (e.g., frtest(gktest(Owtest,T), Owtest,R)) to form a policy. This composition allows for zero-shot generalization or provides a strong initialization for faster learning. Regularization techniques like limiting hidden units in module interfaces and dropout are used to encourage the modules to learn generalizable representations and prevent overfitting.

Datasets

The paper evaluates its method on simulated robotic tasks using the MuJoCo physics simulator. They create several experimental setups:

  • Reaching Colored Blocks: A visual perception task involving a 3-link arm, a 3-link arm with different link lengths, and a 4-link arm, each tasked with reaching for one of four colored blocks.
  • Object Manipulation: Tasks involving a 3-link, 4-link, or 5-link robot performing horizontal drawer pulling, vertical drawer pushing, or block pushing to a target. These tasks involve complex contact dynamics and do not use images as input.
  • Visually Distinct Manipulation Tasks: Similar to object manipulation but with tasks like reaching a target, pushing a block, and peg insertion, using robots with different link lengths and a 4-link robot. These tasks require both vision and intricate physical interaction.

The paper trains modules on a subset of possible robot-task combinations and tests on held-out, unseen combinations.

Key Insights and Ideas

  • Decoupling Task and Robot: The core insight is that robotic skills can be effectively decomposed into task-specific and robot-specific components, allowing for independent learning and reuse.
  • Zero-Shot Generalization: By composing pre-trained, invariant modules, robots can perform tasks they've never explicitly trained for, on morphologies they haven't encountered in that specific task context.
  • Modular Policies as Building Blocks: The method treats learned policies not as monolithic entities but as composable modules, akin to building blocks, that can be mixed and matched.
  • Transferring "How" and "What": Task modules learn "what" to do (e.g., perceive the target), while robot modules learn "how" to do it given the robot's constraints (e.g., joint torques).
  • Regularization for Generalization: Techniques like dropout and interface size limitations are crucial for forcing modules to learn generalizable representations rather than overfitting to specific training world combinations.

Key Results

  • Zero-Shot Performance: In the "Reaching Colored Blocks" experiment, the proposed method achieved near-perfect zero-shot performance on an unseen robot-task combination (4-link robot reaching for a black block), significantly outperforming baselines (random policy, wrong task module).
  • Faster Learning: For more complex manipulation tasks, composing modules provided a strong initialization that led to significantly faster learning compared to training from scratch, even with reward shaping. For instance, the horizontal drawer pulling task saw much faster convergence with the modular initialization.
  • Transfer Across Diverse Robots and Tasks: The method demonstrated successful transfer across robots with varying numbers of links and different state/action spaces, and across tasks with distinct goals and dynamics.
  • Robustness to Overfitting: Regularization techniques helped mitigate overfitting, enabling generalization even with a small number of training worlds.

Limitations and Future Work

  • Simultaneous Training: The current method requires training all modules simultaneously across multiple robots and tasks. Future work could explore combining this with sequential transfer learning methods to enable lifelong learning where robots learn tasks one by one.
  • Composition Order: While the paper focuses on a specific composition order (fr(gk(...))), future work could explore more general DAG-based composition for more complex universes with multiple degrees of variation.
  • Scalability: The paper notes that with more robots and tasks, the generalization capability of modules is likely to increase. Further research could investigate how to scale this approach to larger, more diverse sets of skills and robots.
  • Real-World Deployment: The experiments are conducted in simulation. While promising, real-world deployment would require addressing challenges like sim-to-real transfer and robustness to real-world noise and uncertainties.

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