Relational Deep Reinforcement Learning

Vinícius Flores Zambaldi, David Raposo, Adam Santoro, Victor Bapst, Yujia Li, Igor Babuschkin, Karl Tuyls, David P. Reichert, Timothy P. Lillicrap, Edward Lockhart, Murray Shanahan, Victoria Langston, Razvan Pascanu, Matthew M. Botvinick, Oriol Vinyals, Peter W. BattagliaarXiv 2018

Introduction

Standard deep reinforcement learning (RL) agents often struggle with generalization and sample efficiency. While they can achieve superhuman performance in static environments, they are frequently "brittle," failing when faced with minor task variations. This limitation stems from a "propositional" approach—treating the world as a flat vector of values—rather than a "relational" one that understands the world as a set of interacting entities and objects.

The Relational Module

To address these gaps, this research introduces a framework that incorporates a Relational Module into a standard actor-critic architecture (IMPALA). The module leverages a self-attention mechanism, similar to those found in Transformers, to enable agents to reason about the relationships between entities in a scene.

The process begins with Entity Extraction, where a Convolutional Neural Network (CNN) processes visual input. Instead of flattening the feature map, each pixel-vector is treated as an individual entity. These entities then interact via Multi-Head Dot-Product Attention (MHDPA). Unlike standard convolutions that are limited to local receptive fields, this attention mechanism allows for non-local computation, enabling entities on opposite sides of the screen to interact instantly. By stacking multiple attention blocks, the agent can perform iterative, higher-order reasoning.

Experimental Environments

The framework was evaluated on two distinct types of environments designed to test relational reasoning and complex planning.

Overview of the experimental environments: Box-World and StarCraft II mini-games.
  1. Box-World: A procedurally generated 2D environment where an agent must navigate a room, collect colored keys, and unlock matching boxes to reach a gem. This environment tests the ability to handle long-range dependencies and avoid distractor paths.
  2. StarCraft II Mini-Games: Utilizing the StarCraft II Learning Environment (SC2LE), the agent was tested on seven tasks, such as Collect Mineral Shards and Build Marines. These tasks involve high-dimensional inputs and require long-term strategic planning.

Relational Inductive Bias and Generalization

The core strength of this approach is the Relational Inductive Bias. By forcing the architecture to reason about pairs of entities, the model is "primed" to understand how objects interact.

The Box-World environment requires the agent to reason about relational dependencies between keys and locks.

This bias leads to remarkable Zero-Shot Generalization. In Box-World, an agent trained on 4-step puzzles could solve 10-step puzzles with an 88% success rate, whereas convolutional baselines failed completely (0%). This suggests the agent learns the abstract concept of "unlocking" rather than a memorized sequence of moves. Furthermore, the attention weights provide interpretability, showing that the agent focuses on relevant keys and their corresponding locks during the decision-making process.

Key Results

The relational agent demonstrated significant performance gains across both benchmarks:

  • Box-World: Achieved over 98% success on standard levels, significantly outperforming the convolutional baseline (75%).
  • StarCraft II: Set new State-of-the-Art (SOTA) benchmarks on six out of seven mini-games. Notably, it achieved superhuman performance on four tasks: Move to Beacon, Collect Mineral Shards, Find and Defeat Zerglings, and Defeat Roaches.

Conclusion and Future Directions

Relational Deep RL represents a significant step toward more robust and efficient AI. While the current model shows high variability in complex tasks like StarCraft II, future work may involve more sophisticated structured perception or the integration of hierarchical planning. By bridging the gap between deep learning and classical relational reasoning, this framework paves the way for agents that can truly understand and navigate the complexities of the real world.

Summary updated

BibTeX
@misc{zambaldi2018relational,
  author = {Vinícius Flores Zambaldi and David Raposo and Adam Santoro and Victor Bapst and Yujia Li and Igor Babuschkin and Karl Tuyls and David P. Reichert and Timothy P. Lillicrap and Edward Lockhart and Murray Shanahan and Victoria Langston and Razvan Pascanu and Matthew M. Botvinick and Oriol Vinyals and Peter W. Battaglia},
  title = {{Relational Deep Reinforcement Learning}},
  year = {2018},
  eprint = {1806.01830},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1806.01830},
}
Figure