Multi-Task Deep Reinforcement Learning with PopArt

Matteo Hessel, Hubert Soyer, Lasse Espeholt, Wojciech Czarnecki, Simon Schmitt, Hado van Hasselt

Abstract

The reinforcement learning (RL) community has made great strides in designing algorithms capable of exceeding human performance on specific tasks. These algorithms are mostly trained one task at the time, each new task requiring to train a brand new agent instance. This means the learning algorithm is general, but each solution is not; each agent can only solve the one task it was trained on. In this work, we study the problem of learning to master not one but multiple sequential decision tasks at once. A general issue in multi-task learning is that a balance must be found between the needs of multiple tasks competing for the limited resources of a single learning system. Many learning algorithms can get distracted by certain tasks in the set of tasks to solve. Such tasks appear more salient to the learning process, for instance because of the density or magnitude of the in-task rewards. This causes the algorithm to focus on those salient tasks at the expense of generality. We propose to automatically adapt the contribution of each task to the agent’s updates, so that all tasks have a similar impact on the learning dynamics. This resulted in state of the art performance on learning to play all games in a set of 57 diverse Atari games. Excitingly, our method learned a single trained policy - with a single set of weights - that exceeds median human performance. To our knowledge, this was the first time a single agent surpassed human-level performance on this multi-task domain. The same approach also demonstrated state of the art performance on a set of 30 tasks in the 3D reinforcement learning platform DeepMind Lab.

Introduction

A central goal in artificial intelligence is the creation of agents that can master a wide variety of tasks using a single set of parameters. While deep reinforcement learning (RL) has achieved superhuman performance in specialized domains, these successes often rely on training separate agents for each task. When a single agent is tasked with learning multiple behaviors simultaneously—such as playing 57 different Atari games—it encounters the "saliency" problem. Tasks with high-magnitude rewards or high reward density produce larger gradients, causing the neural network to prioritize those tasks and ignore others with smaller reward scales.

Historically, researchers have mitigated this by "reward clipping," which forces all rewards into a fixed range (e.g., [-1, 1]). However, clipping is a lossy heuristic; it prevents the agent from distinguishing between minor gains and major objectives, often leading to qualitatively different and sub-optimal strategies.

The PopArt-IMPALA Architecture

To address the challenge of varying reward scales without discarding information, we introduce an integration of the Importance Weighted Actor-Learner Architecture (IMPALA) with PopArt (Preserving Outputs under Adaptive Rescaling and Tilting).

Adaptive Normalization

PopArt stabilizes multi-task learning by tracking the running mean ($\mu$) and standard deviation ($\sigma$) of the agent's targets (expected returns). The neural network is trained to predict normalized values, ensuring that the gradients for every task—regardless of their original scale—have a similar impact on the shared weights.

Weight Preservation

A critical feature of PopArt is its ability to update normalization statistics without destabilizing the network's current knowledge. When $\mu$ and $\sigma$ are updated, the weights and biases of the output layer are adjusted in the opposite direction. This mathematical transformation ensures that the unnormalized output remains consistent, preventing the "moving target" problem common in adaptive scaling.

Multi-Task Heads

While the policy is shared across all tasks to encourage general feature learning, the value function utilizes task-specific "heads" during training. This allows the agent to more accurately estimate the specific value scales of each distinct environment.

Experimental Results

Atari-57 Benchmark

We evaluated the agent on the Atari-57 suite, covering both "clipped" and "unclipped" reward settings. In the standard clipped setting, PopArt-IMPALA achieved a 110.7% median human-normalized score, nearly doubling the 59.7% achieved by the baseline IMPALA.

The most significant results appeared in the "unclipped" setting. Without reward clipping, standard RL algorithms typically fail as high-reward games dominate the updates. As shown in Figure 1, standard IMPALA collapsed to a 0.3% median score. In contrast, PopArt-IMPALA maintained a robust 107% median human score, demonstrating that it can effectively learn from raw reward signals across diverse tasks.

Median human-normalized scores on Atari-57 (unclipped). PopArt-IMPALA maintains performance where standard IMPALA fails.

DeepMind Lab (DmLab-30)

The generality of the approach was further tested on DmLab-30, a suite of 30 first-person 3D navigation and puzzle tasks. PopArt-IMPALA reached a mean score of 72.8%, a substantial improvement over the previous state-of-the-art of 58.4%.

Mean capped human-normalized scores on DmLab-30. PopArt-IMPALA significantly outperforms the IMPALA baselines.

Furthermore, the addition of auxiliary tasks like "pixel control" allowed the agent to reach these performance levels with significantly higher data efficiency.

Discussion

By automatically adapting the contribution of each task to the agent's updates, PopArt enables a single agent to master diverse environments without the need for manual reward engineering or lossy heuristics like clipping. This represents a major step toward general-purpose RL agents.

However, challenges remain. Training such agents is computationally intensive, requiring massive distributed resources. Additionally, while PopArt solves the scale problem, it does not address "negative transfer," where conflicting mechanics between tasks might hinder learning. Future work will focus on these areas and the transition from parallel multi-task learning to sequential "continual" learning.

Summary updated

BibTeX
@inproceedings{hessel2019multi,
  author = {Matteo Hessel and Hubert Soyer and Lasse Espeholt and Wojciech Czarnecki and Simon Schmitt and Hado van Hasselt},
  title = {{Multi-Task Deep Reinforcement Learning with PopArt}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  url = {https://openreview.net/forum?id=kitWkdFpk2C},
}
Figure