Multi-task policy search for robotics

Marc Peter Deisenroth, Peter Englert, Jan Peters, Dieter Fox

In the world of robotics, versatility is the holy grail. We don't just want a robot that can hit a ball; we want one that can hit a ball anywhere on the table. Traditionally, this meant training a separate controller for every possible scenario—an approach that is both time-consuming and prone to failure when faced with a slightly new situation.

In their paper "Multi-Task Policy Search," Marc Peter Deisenroth and colleagues propose a more elegant solution: learning a single, nonlinear policy that is explicitly aware of the task at hand.

TL;DR

The authors present a framework for learning a single nonlinear feedback policy that generalizes across a continuous range of tasks by including the task parameters directly in the policy's input. By integrating this into the data-efficient PILCO framework, they achieve robust generalization on real-robot systems with as little as 70 seconds of total experience.

What Problem Does This Paper Address?

Robots are often required to perform families of related tasks, such as grasping objects of different sizes or reaching various target locations. Standard Reinforcement Learning (RL) typically treats each variation as a new problem, requiring fresh training data.

Existing "multi-task" solutions often rely on hierarchical gating networks that switch between local controllers. However, these methods have a major flaw: they usually only work well if the local policies are linear in their parameters. When dealing with complex, nonlinear robot dynamics—like the tendon-driven arm shown in Figure 1—these hierarchical methods struggle to interpolate smoothly between tasks, often leading to "dead zones" where the robot fails entirely.

The tendon-driven BioRob X4, a complex system with elasticities that challenge traditional modeling.

Methods

The core innovation is a task-augmented policy. Instead of a standard policy $u = \pi(x, \theta)$ that only looks at the state $x$, the authors define the policy as $u = \pi(x, \eta, \theta)$, where $\eta$ represents the specific task parameters.

Key technical components include:

  • PILCO Integration: The method builds on the PILCO (Probabilistic Inference for Learning COntrol) framework. It uses Gaussian Processes (GPs) to learn a probabilistic model of the robot's dynamics, allowing the system to account for model uncertainty during planning.
  • Joint Optimization: During training, a single set of policy parameters $\theta$ is optimized to minimize the average expected cost across a small set of training tasks.
  • Task Uncertainty as Regularization: The authors introduce the concept of "task uncertainty" ($\Sigma_\eta$) during training. By treating the training tasks as distributions rather than fixed points, the policy is forced to learn a smoother mapping, which significantly improves its ability to generalize to unseen test tasks.

Datasets and Benchmarks

The authors evaluated their approach on three distinct scenarios:

  1. Cart-Pole Swing-up (Simulation): A benchmark task where the goal is to swing up and balance a pendulum at various horizontal positions.
  2. Low-Cost Block Stacking (Real Robot): Using a Lynxmotion arm and a depth camera, the robot learned to stack blocks at different heights.
  3. Ball-Hitting (Real Robot/Imitation): Using the BioRob X4, the system learned to imitate human demonstrations to hit balls across a continuous 2D region.

Key Insights and Ideas

  • Smoothness is Key: By learning one global policy, the model discovers the underlying shared structure between tasks. This leads to much smoother generalization compared to hierarchical models that "jump" between local controllers.
  • The Power of $\Sigma_\eta$: Introducing task uncertainty during training acts as a powerful regularizer. It prevents the policy from overfitting to the specific training coordinates, ensuring it remains effective in the gaps between them.
  • Data Efficiency: Because the model learns a single policy for all tasks, it can leverage data from one task to improve performance on others. The real-robot experiments required remarkably little data—often less than two minutes of total interaction time.
Intuition of generalization: The policy (black line) smoothly interpolates between training tasks (red circles) for a fixed state.

Key Results

The multi-task approach (MTPS+) consistently outperformed baseline methods:

  • Generalization Performance: In the cart-pole experiment, MTPS+ achieved an average cost of 0.30, outperforming the nearest-neighbor baseline (0.39) and hierarchical gating (0.40).
  • Interpolation & Extrapolation: In the block-stacking task, the robot successfully stacked blocks it had never seen during training (e.g., the middle and top blocks of a tower) after only 80 seconds of experience.
  • Robust Imitation: The BioRob arm successfully hit balls across a wide 2D area after only 15 iterations of imitation learning, demonstrating that the approach works even when the "cost function" is derived from human demonstrations.
Comparison of the proposed augmented policy (black) vs. a hierarchical policy (blue dashed). The hierarchical approach shows erratic behavior between training points.

Limitations and Future Work

While powerful, the current approach often requires the designer to specify how the state and task relate (e.g., defining a relative distance). The authors note that a logical next step is to jointly learn the task representation and the policy parameters directly from raw data.

Additionally, the current framework assumes the robot's environment remains stationary across tasks. Adapting this to non-stationary or evolving environments remains an open and exciting challenge for the field.

Summary updated

BibTeX
@inproceedings{deisenroth2014multi,
  author = {Marc Peter Deisenroth and Peter Englert and Jan Peters and Dieter Fox},
  title = {{Multi-task policy search for robotics}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2014},
  doi = {10.1109/icra.2014.6907421},
}
Figure