Distral: Robust multitask reinforcement learning

Yee Whye Teh, Victor Bapst, Wojciech M. Czarnecki, John Quan, James Kirkpatrick, Raia Hadsell, Nicolas Heess, Razvan Pascanu

TL;DR

Distral (Distill & Transfer) is a framework for multitask reinforcement learning that avoids the common pitfalls of parameter sharing by using a shared "distilled" policy to link task-specific agents. By regularizing individual agents to stay close to this central policy, the method achieves faster learning, better stability, and remarkable robustness to hyperparameter settings compared to standard multitask baselines.

The Challenge of Multitask RL

Deep Reinforcement Learning (RL) is notoriously data-hungry and sensitive to hyperparameters. While multitask learning—training one agent to solve many problems—should theoretically improve efficiency through "transfer learning," it often does the opposite in practice.

The authors identify two main culprits for this failure:

  1. Negative Interference: Gradients from different tasks can conflict, leading to unstable learning where progress in one task erases progress in another.
  2. Reward Imbalance: Tasks with larger or more frequent rewards can dominate the learning process, causing the agent to ignore "harder" or lower-reward tasks.

Standard approaches usually involve sharing the internal layers of a neural network across all tasks. This paper argues that sharing in the parameter space is often too "noisy" and proposes sharing in the policy space instead.

The Distral Framework

The core of the paper is the Distral framework. Instead of forcing all tasks to use the exact same neural network weights, the authors propose a "hub-and-spoke" model.

The Distral framework: task-specific policies distill knowledge into a central policy, which in turn regularizes the workers.
  • Task-Specific Policies ($\pi_i$): Each task has its own dedicated policy (worker).
  • The Distilled Policy ($\pi_0$): A central, shared policy that captures "common behaviors" across all tasks.
  • KL Regularization: During training, each task-specific worker is penalized (via Kullback-Leibler divergence) if its behavior drifts too far from the central distilled policy. This acts like a "shaping reward," guiding agents toward behaviors that have worked well across the board.
  • Distillation: Simultaneously, the central policy $\pi_0$ is updated to become the "centroid" of all the task-specific policies. It learns by "distilling" the best moves from every worker.

The authors also introduce a Two-Column Architecture. In this setup, the policy for a specific task is calculated as a combination of a shared distilled component and a task-specific adjustment. This allows new knowledge in the distilled policy to be "immediately available" to all workers.

Environments and Datasets

The researchers evaluated Distral on several increasingly difficult benchmarks to test its transfer capabilities:

  • Two-room Grid World: A simple environment used to visualize how the distilled policy learns to navigate corridors—a behavior useful for any goal location.
Four GridWorld tasks with different goal locations, and the resulting distilled policy learning to navigate the common corridor.
  • DeepMind Lab (3D Mazes): A set of 8 tasks where agents must navigate complex, visually rich 3D environments with randomly placed goals.
  • Navigation & Memory: Procedurally generated 3D maps requiring agents to collect objects and return them to a start point.
  • Laser-tag: A highly diverse set of 8 levels involving combat against bots, testing the limits of transfer when tasks are significantly different.

Key Insights and Results

  • Policy Space > Parameter Space: Regularizing the output (what the agent does) is more semantically meaningful and stable than regularizing the weights (how the agent thinks).
  • The Importance of Entropy: The authors found that adding an extra entropy regularization term is critical. Without it, the distilled policy might become "greedy" too quickly, converging on the easiest task and preventing the other workers from exploring more difficult ones.
  • Superior Performance and Stability: In the 3D Maze and Navigation tasks, Distral (specifically the two-column version) learned significantly faster and achieved higher final scores than multitask A3C. Distral also showed much lower variance between runs, avoiding the "collapse" often seen in baselines due to task interference.
  • Robustness as a First-Class Citizen: Perhaps the most significant finding is that Distral is much harder to break. It performs well across a wide range of learning rates and hyperparameter settings, whereas standard A3C often fails completely if not tuned perfectly.

Limitations and Future Work

  • Computational Overhead: Because Distral uses a "two-column" approach, the agent effectively processes two network paths instead of one. While the cost of simulating the environment usually outweighs this, it does increase the computational footprint per step.
  • Task Diversity Limits: In the Laser-tag experiments, where tasks were very different, the benefits of transfer were less pronounced. The authors suggest that in such cases, a single distilled policy might not be enough.
  • Future Directions: The authors propose exploring "multiple distilled policies" (clustering tasks together) and investigating how to adaptively adjust the strength of the KL regularization as learning progresses.

Summary updated

BibTeX
@inproceedings{teh2017distral,
  author = {Yee Whye Teh and Victor Bapst and Wojciech M. Czarnecki and John Quan and James Kirkpatrick and Raia Hadsell and Nicolas Heess and Razvan Pascanu},
  title = {{Distral: Robust multitask reinforcement learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2017},
  url = {https://openreview.net/forum?id=Hy-XTObu-B},
}
Figure