Unsupervised Predictive Memory in a Goal-Directed Agent

Greg Wayne, Chia-Chun Hung, David Amos, Mehdi Mirza, Arun Ahuja, Agnieszka Grabska-Barwinska, Jack W. Rae, Piotr Mirowski, Joel Z. Leibo, Adam Santoro, Mevlana Gemici, Malcolm Reynolds, Tim Harley, Josh Abramson, Shakir Mohamed, Danilo Jimenez Rezende, David Saxton, Adam Cain, Chloe Hillier, David Silver, Koray Kavukcuoglu, Matthew Botvinick, Demis Hassabis, Timothy P. LillicraparXiv 2018

TL;DR

This paper introduces MERLIN, a novel AI agent architecture that combines reinforcement learning with a predictive memory system. MERLIN excels at complex, partially observable tasks by learning to store and retrieve the right information in the right format, outperforming existing RL agents on challenging benchmarks from psychology and neuroscience.

What Problem Does This Paper Address?

Modern AI agents, particularly those based on deep reinforcement learning (RL), have shown impressive capabilities in tasks with complete sensory information. However, they struggle in "partially observable" environments where crucial information is hidden from their sensors. While memory is a clear requirement for such scenarios, simply having a large memory isn't enough. The challenge lies in efficiently storing and retrieving the correct information in a format that facilitates goal-directed behavior. This paper addresses this gap by proposing an agent that learns to form and utilize memories guided by predictive modeling, inspired by findings in psychology and neurobiology.

Methods

The core of MERLIN is its Memory, RL, and Inference Network (MERLIN). It's built around two main components:

  • Memory-Based Predictor (MBP): This module is responsible for processing sensory input, compressing it into low-dimensional "state variables," and storing these in memory. Crucially, the MBP uses predictive modeling to guide memory formation. It learns to predict future states based on past observations and stored memories. This is inspired by concepts like predictive sensory coding and hippocampal representation theories.
  • Policy: This component uses the state variables and memory reads to make decisions. It's trained using standard RL techniques but benefits from the rich, predictive information provided by the MBP.

MERLIN's memory system is a simplified version of the Differentiable Neural Computer (DNC). A key innovation is retroactive memory updating, where information about future events is stored alongside past observations, allowing for more contextually rich memories. The MBP is trained using a variational lower bound (VLB) objective, which includes reconstruction losses and KL divergence terms to ensure predictive consistency.

Datasets

MERLIN was evaluated on a variety of tasks, including:

  • Canonical behavioural tasks from psychology and neuroscience:
    • Memory Game: A card-matching game requiring memory of previously seen items.
  • Navigation Tasks: Including Goal-Finding, No Skyline, Large Environment, and Dynamic Doors, all requiring navigation in partially observable 3D environments.
  • Arbitrary Visuomotor Mapping: Learning associations between visual stimuli and motor responses.
  • Rapid Reward Valuation: Learning the value of different objects in an environment.
  • Episodic Water Mazes: Remembering multiple maze layouts and platform locations.
  • Executing Transient Instructions: Following symbolic commands in a structured environment.
  • Latent Learning in a T-Maze: Learning environmental layouts without immediate reward.

The paper does not introduce new datasets but rather uses existing benchmarks to test the agent's capabilities.

Key Insights and Ideas

  • Memory is not enough; format matters: The paper strongly argues that simply having a large memory buffer is insufficient for complex, partially observable tasks. The way information is stored and represented is critical.
  • Predictive modeling as a memory guide: MERLIN's success stems from using predictive modeling to actively shape what information is stored in memory. This allows the agent to prioritize information that is likely to be relevant for future predictions and decisions.
  • Retroactive memory updating enhances context: Storing information about future events alongside past observations creates richer, more contextual memories, proving highly effective for tasks like reward valuation.
  • Inspiration from neuroscience is fruitful: MERLIN's architecture and learning principles are directly inspired by psychological and neurobiological theories of memory and prediction, demonstrating the power of interdisciplinary approaches in AI.
  • End-to-end RL struggles with long-term dependencies: The paper highlights the limitations of standard end-to-end RL when dealing with tasks requiring memory over extended durations, suggesting that architectural innovations are crucial.

Key Results

  • Superior performance on challenging tasks: MERLIN significantly outperformed standard RL agents (RL-LSTM, RL-MEM) on tasks requiring long-term memory and dealing with partial observability, including the Memory Game and various navigation tasks.
  • Human-level performance: In some tasks, MERLIN achieved performance comparable to or exceeding human testers.
  • Efficient learning: MERLIN learned faster and more effectively than comparison models, particularly in complex environments.
  • Robustness: MERLIN demonstrated robust memory-dependent behavior, adapting to new tasks and retaining information over long periods.
  • Effective representation learning: The MBP learned to compress high-dimensional sensory input into low-dimensional state variables that were highly informative for decision-making. For instance, in navigation tasks, MERLIN quickly formed allocentric representations of the goal location.

Limitations and Future Work

  • Computational complexity: While MERLIN shows promise, the paper acknowledges that end-to-end RL methods for memory can become computationally prohibitive for very long-term dependencies (e.g., remembering events from 24 hours ago).
  • Generalizability of architecture: The paper notes that MERLIN's architecture is not the only way to implement predictive modeling with memory, and further exploration of architectural variations is possible.
  • Future directions: The authors suggest that combining memory and predictive modeling will be essential for future large-scale agent models in AI and neuroscience. They also highlight the need for better algorithmic solutions beyond standard backpropagation-through-time for handling very long temporal credit assignments.

Summary updated

BibTeX
@misc{wayne2018unsupervised,
  author = {Greg Wayne and Chia-Chun Hung and David Amos and Mehdi Mirza and Arun Ahuja and Agnieszka Grabska-Barwinska and Jack W. Rae and Piotr Mirowski and Joel Z. Leibo and Adam Santoro and Mevlana Gemici and Malcolm Reynolds and Tim Harley and Josh Abramson and Shakir Mohamed and Danilo Jimenez Rezende and David Saxton and Adam Cain and Chloe Hillier and David Silver and Koray Kavukcuoglu and Matthew Botvinick and Demis Hassabis and Timothy P. Lillicrap},
  title = {{Unsupervised Predictive Memory in a Goal-Directed Agent}},
  year = {2018},
  eprint = {1803.10760},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1803.10760},
}
Figure