Abstract
In recent years, model-free methods using deep learning have achieved significant success in single-task reinforcement learning environments. However, multi-task reinforcement learning remains a challenging open problem. This paper presents a model-based approach to deep reinforcement learning designed to solve multiple tasks simultaneously. We demonstrate that our approach not only avoids the performance degradation typical of multi-task learning but actually benefits from it. Central to our method is a novel Residual Recurrent Neural Network (RRNN) that decouples memory from computation, enabling the modeling of complex environments without requiring excessively large state vectors.
Introduction: The Multi-Task Challenge
Most successful Deep Reinforcement Learning (RL) agents, such as the Deep Q-Network (DQN), are model-free. They learn to map states directly to actions or values without internalizing the underlying dynamics of the environment. While effective for isolated tasks, model-free methods often struggle with multi-task learning. In Q-learning, target values depend on the agent's current strategy. As the agent learns and its strategy evolves, the ground truth it aims for shifts—a "moving target" problem that becomes catastrophic when training on multiple games simultaneously. Furthermore, these agents are often data-inefficient, requiring millions of interactions to stabilize.
Predictive Reinforcement Learning (PRL)
To address these issues, we propose Predictive Reinforcement Learning (PRL). This approach shifts the focus from direct action selection to environment modeling: "what will happen if I take these actions?" By learning a predictive model of the environment, the agent's knowledge becomes independent of its current policy, allowing it to learn from any data (including random play) and avoiding the instabilities of Q-learning.
System Architecture
The PRL architecture consists of three distinct modules:
- Perception: A Deep Convolutional Network (inspired by ResNet) that compresses high-dimensional pixel input into a low-dimensional latent vector ($h_0$).
- Prediction: A novel Residual Recurrent Neural Network (RRNN) that simulates future states.
- Valuation: A small network that evaluates predicted future states to estimate changes in score and the probability of failure (e.g., "dying").
The Residual Recurrent Neural Network (RRNN)
Standard RNNs or LSTMs often struggle with deep unfolding or complex logic without massive state vectors. Our RRNN calculates how the environment state should change at each step, rather than predicting the entire state from scratch. This mimics how game engines update variables (like ball position) by small increments.
As shown in the figure above, the update rule is defined by the equations:
- $r_i = f(LN(h_{i-1}) \cdot x_i)$
- $h_i = h_{i-1} + r_i$
where $LN$ is Layer Normalization. This residual connection prevents vanishing gradients and allows for models unfolded over 50 layers deep, effectively decoupling memory from the computational depth required to model the environment.
Experimental Results
We evaluated PRL using the Arcade Learning Environment (ALE), focusing on Breakout, Pong, and Demon Attack. These games require reactive precision, making them ideal for our "shooting" strategy, where the agent simulates random action sequences and selects the one maximizing predicted rewards.
Key Findings
- Positive Transfer: The multi-task agent outperformed the single-task agent on Breakout. This suggests that features learned for one game (e.g., object motion) generalize and assist in learning others.
- Super-Human Performance: The agent achieved scores exceeding human benchmarks across all three games simultaneously.
- Zero-Shot Generalization: After training on purely random play, the agent could already play significantly better than random, demonstrating it had captured the "logic" of the games without explicit reward-seeking experience.
Conclusion and Future Work
PRL demonstrates that model-based approaches can effectively handle multi-task learning by decoupling environment dynamics from strategy. While successful in reactive games, future work will focus on integrating more sophisticated search algorithms (like MCTS) to handle games requiring long-term planning. Additionally, addressing the "forgetting" problem—where the agent loses the ability to predict rare events like death as it becomes more skilled—remains a priority.
Summary updated