Skip to main content
QUICK REVIEW

[Paper Review] MEMO: A Deep Network for Flexible Combination of Episodic Memories

Andrea Banino, Adrià Puigdomènech Badia|arXiv (Cornell University)|Jan 29, 2020
Domain Adaptation and Few-Shot LearningComputer Science48 references7 citations
TL;DR

MEMO proposes a novel deep network architecture with external memory that enables flexible, multi-hop reasoning over episodic memories by decoupling stored facts from their components and using an adaptive retrieval mechanism. It achieves state-of-the-art performance on bAbI and outperforms existing models on long-distance associative inference and shortest path tasks, demonstrating robust generalization through learned memory hops.

ABSTRACT

Recent research developing neural network architectures with external memory have often used the benchmark bAbI question and answering dataset which provides a challenging number of tasks requiring reasoning. Here we employed a classic associative inference task from the memory-based reasoning neuroscience literature in order to more carefully probe the reasoning capacity of existing memory-augmented architectures. This task is thought to capture the essence of reasoning -- the appreciation of distant relationships among elements distributed across multiple facts or memories. Surprisingly, we found that current architectures struggle to reason over long distance associations. Similar results were obtained on a more complex task involving finding the shortest path between nodes in a path. We therefore developed MEMO, an architecture endowed with the capacity to reason over longer distances. This was accomplished with the addition of two novel components. First, it introduces a separation between memories (facts) stored in external memory and the items that comprise these facts in external memory. Second, it makes use of an adaptive retrieval mechanism, allowing a variable number of "memory hops" before the answer is produced. MEMO is capable of solving our novel reasoning tasks, as well as match state of the art results in bAbI.

Motivation & Objective

  • To investigate the limitations of existing memory-augmented neural networks in reasoning over long-distance associations.
  • To develop a model that supports inferential reasoning by flexibly combining separated episodic memories, inspired by hippocampal function.
  • To address the issue of fixed computation time by introducing an adaptive number of memory hops based on task complexity.
  • To create a more generalizable architecture that avoids degenerate solutions by using procedural generation of reasoning tasks.
  • To evaluate performance on novel tasks beyond standard benchmarks like bAbI, including Paired Associative Inference and shortest path finding.

Proposed method

  • Introduces a separation between stored facts in external memory and the individual items that compose those facts, enabling finer-grained manipulation.
  • Employs a recurrent attention mechanism that allows variable-length memory retrieval, with each hop refining the query based on previous interactions.
  • Uses an adaptive halting mechanism (ACT) to dynamically determine the number of memory hops required, based on the complexity of the reasoning task.
  • Applies a linear projection to memory content and uses a learnable query mechanism to weight relevant memory slots across multiple hops.
  • Fixes memory size and parameters, ensuring linear time complexity with respect to input sentence count, unlike quadratic models such as the Universal Transformer.
  • Adopts a differentiable attention-based memory read/write mechanism, with a controller network (LSTM) processing queries and updating memory states iteratively.

Experimental results

Research questions

  • RQ1Can existing memory-augmented networks generalize to novel, procedurally generated reasoning tasks that require long-distance association?
  • RQ2How does the number of memory hops affect reasoning performance on tasks requiring inference across separated facts?
  • RQ3Can an adaptive computation mechanism improve reasoning efficiency and accuracy compared to fixed-hop models?
  • RQ4Does decoupling facts from their components in memory improve the model's ability to perform inferential reasoning?
  • RQ5How does MEMO compare to state-of-the-art models like DNC, EMN, and Universal Transformer on reasoning benchmarks?

Key findings

  • MEMO significantly outperforms existing models, including DNC and EMN, on the novel Paired Associative Inference (PAI) task, which requires reasoning over long-distance associations.
  • MEMO achieves state-of-the-art performance on the bAbI question-answering benchmark, solving all 100 tasks with high accuracy.
  • The model demonstrates robust generalization on the shortest path task, solving 95% of instances, while baseline models fail on longer paths.
  • The adaptive hop mechanism allows MEMO to use only the necessary number of hops per task, reducing computation without sacrificing performance.
  • The separation of facts from their components enables more effective inference, as shown by improved zero-shot generalization on unseen PAI instances.
  • MEMO maintains linear time complexity with respect to input length, making it more efficient than quadratic models like the Universal Transformer.

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.