Skip to main content
QUICK REVIEW

[Paper Review] Generalization of Reinforcement Learners with Working and Episodic Memory

Meire Fortunato, Melissa Tan|arXiv (Cornell University)|Oct 29, 2019
Reinforcement Learning in RoboticsComputer Science28 citations
TL;DR

This paper introduces a benchmark suite of 13 memory-intensive reinforcement learning tasks to evaluate generalization across working and episodic memory systems. It proposes the Memory Recall Agent (MRA), which integrates working memory, episodic memory, and a contrastive representation learning loss, demonstrating that both memory types synergistically improve generalization on holdout tasks, especially under distribution shift.

ABSTRACT

Memory is an important aspect of intelligence and plays a role in many deep reinforcement learning models. However, little progress has been made in understanding when specific memory systems help more than others and how well they generalize. The field also has yet to see a prevalent consistent and rigorous approach for evaluating agent performance on holdout data. In this paper, we aim to develop a comprehensive methodology to test different kinds of memory in an agent and assess how well the agent can apply what it learns in training to a holdout set that differs from the training set along dimensions that we suggest are relevant for evaluating memory-specific generalization. To that end, we first construct a diverse set of memory tasks that allow us to evaluate test-time generalization across multiple dimensions. Second, we develop and perform multiple ablations on an agent architecture that combines multiple memory systems, observe its baseline models, and investigate its performance against the task suite.

Motivation & Objective

  • To develop a rigorous, consistent methodology for evaluating memory-based generalization in reinforcement learning agents.
  • To identify when and how working memory and episodic memory systems contribute to generalization across distribution shifts.
  • To benchmark agent performance on holdout tasks that differ from training data in scale, object identity, and environment structure.
  • To investigate the role of representation learning and credit assignment in enabling long-term memory generalization.
  • To provide a standardized evaluation framework for memory-augmented RL agents using train-holdout splits along cognitive-relevant dimensions.

Proposed method

  • Design a diverse suite of 13 tasks—drawn from PsychLab and DMLab, and built with Unity 3D—featuring train-holdout splits that vary in object identity, environment scale, and task structure to test memory generalization.
  • Develop the Memory Recall Agent (MRA), a hybrid architecture combining a transformer-based controller (working memory), an external episodic memory module with k-nearest neighbor retrieval, and a contrastive representation loss.
  • Apply a multi-task contrastive loss (L_REC) to encourage shared, robust representations across tasks, with weighted components for image, action, and reward reconstruction.
  • Use backpropagation through time with unrolled training to enable long-term credit assignment and memory access over extended sequences.
  • Implement a fixed hyper-parameter configuration across models, with systematic tuning only on PsychLab tasks and minimal tuning on others to ensure fair comparison.
  • Evaluate performance on both training and holdout tasks, measuring generalization via performance degradation across distribution shifts.

Experimental results

Research questions

  • RQ1How do working memory and episodic memory systems individually and jointly contribute to generalization in reinforcement learning agents?
  • RQ2To what extent can agents trained on a specific set of objects and environments generalize to holdout tasks with altered object identities or environmental scales?
  • RQ3Does contrastive representation learning improve generalization in memory-augmented RL agents, and does it synergize with episodic memory?
  • RQ4How does the performance of memory-augmented agents degrade when tested on distribution-shifted holdout data compared to training data?
  • RQ5Can a unified agent architecture effectively integrate working memory, episodic memory, and representation learning to outperform baselines on diverse memory tasks?

Key findings

  • The Memory Recall Agent (MRA) outperforms baseline models across the entire task suite, demonstrating the effectiveness of integrating working and episodic memory components.
  • Episodic memory significantly improves data efficiency and generalization, particularly in tasks requiring long-horizon reasoning or navigation to previously unseen goals.
  • Contrastive representation learning (L_REC) with shared image, action, and reward reconstruction losses improves generalization, especially in tasks with high visual or structural variation.
  • The combination of episodic memory and contrastive representation learning leads to synergistic performance gains, reducing generalization error more than either component alone.
  • Despite improvements, no model fully generalizes across all holdout tasks, with performance degradation increasing on more complex or structurally shifted tasks.
  • The MRA model shows robust performance across diverse environments, including procedural mazes and transitive inference tasks, where baseline models fail to generalize.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.