MERL: Multi-Head Reinforcement Learning

Yannis Flet-Berliac, Philippe PreuxarXiv 2019 · arXiv

TL;DR

MERL (Multi-Head Reinforcement Learning) is a framework that improves agent learning by injecting "problem knowledge" through auxiliary tasks. By adding a head that predicts the fraction of variance explained ($\mathcal{V}^{ex}$) by the value function, the agent gains a dense signal for self-performance assessment, leading to faster learning in continuous control and superior transferability across Atari games.

What Problem Does This Paper Address?

Reinforcement Learning (RL) agents often suffer from "sample inefficiency"—they need millions of interactions to learn simple tasks. This is largely because the reward signal is often sparse; an agent might wander for a long time before receiving any feedback.

While researchers have tried to fix this using domain-specific prior knowledge, these solutions are often hard to scale or implement across different types of tasks. The authors of MERL aim to provide a task-agnostic framework that allows agents to learn from every interaction, not just the rewards, by forcing the neural network to represent fundamental properties of the environment and the agent's own performance.

Methods

The core of MERL is a multi-head architecture built on top of a standard policy gradient algorithm (specifically PPO, or Proximal Policy Optimization).

Figure 1: High-level overview of the Multi-hEad Reinforcement Learning (MERL) framework.

As shown in Figure 1, the agent shares a base "shared parameters network" between the policy, the value function, and several auxiliary "heads." The paper introduces two specific auxiliary quantities:

  1. Fraction of Variance Explained ($\mathcal{V}^{ex}$): This is the paper's primary contribution. It measures the discrepancy between the estimated state value ($V$) and the actual observed returns. In statistics, this is known as the coefficient of determination ($R^2$). It tells the agent how well its internal value function is actually explaining the rewards it sees.
  2. Future States Prediction (FS): A common auxiliary task where the agent tries to predict the next state ($s_{t+1}$) given the current state ($s_t$).

During training, the loss functions from these auxiliary heads are added to the standard PPO value update. This regularizes the learning process, ensuring the shared features in the neural network are useful for more than just picking the next action—they must also capture the underlying dynamics of the problem.

Datasets

The authors evaluated MERL across two distinct domains:

  • MuJoCo: A physics engine used for 9 continuous control tasks (e.g., Ant, HalfCheetah, Hopper). These tasks involve controlling joints to make a robot walk or run.
  • Atari 2600: Used to test transfer learning. The agent was pre-trained on one game (like BeamRider or Asterix) and then switched to Ms. Pacman to see how quickly it could adapt.

Key Insights and Ideas

  • Self-Performance as a Signal: The use of $\mathcal{V}^{ex}$ is a clever way to give the agent a sense of "confidence." If $\mathcal{V}^{ex}$ is close to 1, the agent's value function perfectly explains the returns; if it's negative, the agent's model is performing worse than a simple average. This provides a dense, internal signal that helps the agent learn even when external rewards are missing.
  • The Power of Synergy: The authors conducted an "ablation study" (Figure 4) to see if one head was doing all the work. They found that while $\mathcal{V}^{ex}$ or Future State prediction helped individually, combining them produced the best results. This suggests that different auxiliary tasks capture complementary aspects of the environment.
  • Better Feature Representations: Because the agent is forced to predict future states and assess its own variance, it develops a more robust internal representation of the world. This is why MERL agents performed significantly better in transfer learning scenarios—the "knowledge" they gained in the first game was actually useful in the second.

Key Results

  • Continuous Control: In the MuJoCo environments, MERL outperformed the standard PPO baseline in 8 out of 9 tasks. For example, in the Ant environment, MERL achieved a score of $2157 \pm 212$ compared to PPO's $1728 \pm 64$.
  • Transfer Learning: In Atari games, MERL agents adapted to new tasks much faster than standard agents.
  • Low Overhead: Despite adding extra heads, the computational cost was negligible—only a 5% to 7% increase in training time.
Transfer learning performance from BeamRider to Ms. Pacman.

As seen in the transfer learning plots (like Figure 3 above), the MERL-enhanced agents (blue line) consistently reached higher scores faster than the baselines when switching tasks.

Limitations and Future Work

The authors acknowledge that while the empirical results are strong, the theoretical contribution (why exactly this implicit regularization works so well) deserves more study.

Additionally, the framework is currently tested on on-policy methods (PPO). Extending this to off-policy methods or exploring other auxiliary quantities—such as predicting the time remaining until the end of a trajectory—are noted as promising directions for future research.

Summary updated

Abstract

A common challenge in reinforcement learning is how to convert the agent's interactions with an environment into fast and robust learning. For instance, earlier work makes use of domain knowledge to improve existing reinforcement learning algorithms in complex tasks. While promising, previously acquired knowledge is often costly and challenging to scale up. Instead, we decide to consider problem knowledge with signals from quantities relevant to solve any task, e.g., self-performance assessment and accurate expectations. $\mathcal{V}^{ex}$ is such a quantity. It is the fraction of variance explained by the value function $V$ and measures the discrepancy between $V$ and the returns. Taking advantage of $\mathcal{V}^{ex}$, we propose MERL, a general framework for structuring reinforcement learning by injecting problem knowledge into policy gradient updates. As a result, the agent is not only optimized for a reward but learns using problem-focused quantities provided by MERL, applicable out-of-the-box to any task. In this paper: (a) We introduce and define MERL, the multi-head reinforcement learning framework we use throughout this work. (b) We conduct experiments across a variety of standard benchmark environments, including 9 continuous control tasks, where results show improved performance. (c) We demonstrate that MERL also improves transfer learning on a set of challenging pixel-based tasks. (d) We ponder how MERL tackles the problem of reward sparsity and better conditions the feature space of reinforcement learning agents.
BibTeX
@misc{fletberliac2019merl,
  author = {Yannis Flet-Berliac and Philippe Preux},
  title = {{MERL: Multi-Head Reinforcement Learning}},
  year = {2019},
  eprint = {1909.11939},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1909.11939},
}
Figure