TL;DR
The UNREAL (UNsupervised REinforcement and Auxiliary Learning) agent significantly boosts reinforcement learning performance by training on multiple "auxiliary tasks" alongside its primary goal. By learning to control pixel changes and predict rewards from a shared representation, the agent develops a much deeper understanding of its environment, leading to a 10x speedup in learning and state-of-the-art results on Atari and complex 3D mazes.
The Problem: Sparse Rewards in RL
Standard reinforcement learning (RL) agents are often "reward-hungry." They learn by maximizing a single extrinsic reward signal, such as a score in a game. However, in many complex environments, these rewards are sparse—the agent might wander for minutes before seeing a single point.
During those "quiet" periods, the agent is still receiving a constant stream of visual and motor data, but standard algorithms throw most of this information away. The authors argue that this is highly inefficient. Just as a human infant learns to manipulate objects and navigate rooms long before they understand the concept of a specific "goal," an artificial agent should use its sensorimotor stream to learn the "physics" and dynamics of its world through unsupervised auxiliary tasks.
Methods: The UNREAL Agent
To address this inefficiency, the authors introduce the UNREAL agent, which builds upon the Asynchronous Advantage Actor-Critic (A3C) framework. While the base agent learns on-policy to maximize the main reward, UNREAL adds several auxiliary heads that share the same convolutional neural network (CNN) and LSTM backbone.
The agent incorporates three main auxiliary tasks:
- Pixel Control: The agent learns a separate policy to maximize the change in pixel intensity in different regions of the screen. This forces the agent to learn how its actions physically affect its environment.
- Reward Prediction: Using a small replay buffer, the agent is shown a sequence of frames and must predict whether a reward will occur in the next step. To handle sparse rewards, the authors use "skewed sampling," showing the agent rewarding and non-rewarding sequences with equal frequency.
- Value Function Replay: The agent performs extra training on its value function using past experiences to promote faster value iteration and better feature discovery.
Crucially, while the auxiliary tasks are trained using off-policy Q-learning and experience replay, they are used solely to shape the shared representation. The agent’s actual behavior is still driven by the primary A3C policy.
Datasets and Environments
The agent was evaluated on two major benchmarks:
- Atari 57: The standard suite of 57 classic games from the Arcade Learning Environment.
- Labyrinth: A challenging suite of 13 first-person 3D tasks built on the Quake III engine. These tasks involve navigation, fruit gathering, and "laser-tag" style combat against bots in procedurally generated environments.
Key Insights
- Control is Better than Reconstruction: Traditional unsupervised learning in RL often involves "reconstructing" the input (like an autoencoder). The authors found that learning to control features (like changing pixels) produces much more useful representations for an RL agent than simply learning to describe them.
- Representation Focusing: By sharing weights between the auxiliary tasks and the main policy, the "boring" parts of the environment that don't contribute to reward prediction or control are naturally filtered out of the agent's internal representation.
- Robustness: Adding auxiliary tasks makes the agent significantly more robust to hyperparameter choices (like learning rate), likely because the auxiliary signals provide a more consistent gradient than the sparse main reward.
Key Results
- Labyrinth: UNREAL achieved a 10x mean speedup in learning compared to vanilla A3C. It reached a mean human-normalized performance of 87%, whereas A3C only reached 54%. On some specific levels, it even exceeded human performance.
- Atari: The agent set a new state-of-the-art at the time, averaging 880% expert human performance across the 57 games.
- Data Efficiency: UNREAL required less than 10% of the data that A3C needed to reach the same level of performance on several Labyrinth tasks.
Limitations and Future Work
- Heuristic Task Selection: The choice of auxiliary tasks (pixel control, reward prediction) is somewhat heuristic. While these worked well for visual games, different environments might require different "pseudo-rewards."
- Hierarchical Potential: Currently, the agent only uses auxiliary tasks to improve its representation. Future work could involve the agent actually using the auxiliary policies themselves as sub-routines in a hierarchical RL framework.
- Computational Overhead: While data-efficient, the agent is more computationally expensive per environment step because it must process multiple auxiliary heads and a replay buffer.
Summary updated