Skip to main content
QUICK REVIEW

[Paper Review] Learning to Remember, Forget and Ignore using Attention Control in Memory

T. S. Jayram, Younes Bouhadjar|arXiv (Cornell University)|Sep 28, 2018
Memory Processes and InfluencesNeuroscience22 references3 citations
TL;DR

This paper introduces Differentiable Working Memory (DWM), a novel neural network architecture with attention-controlled memory that mimics human working memory by learning to remember, forget, or ignore information based on relevance. The model uses dynamic and static bookmarks to control attention, enabling robust learning of psychology-inspired tasks and generalization to sequences up to 100x longer than training sequences, with interpretable strategies like 'Overwrite' and 'Skip' emerging during training.

ABSTRACT

Typical neural networks with external memory do not effectively separate capacity for episodic and working memory as is required for reasoning in humans. Applying knowledge gained from psychological studies, we designed a new model called Differentiable Working Memory (DWM) in order to specifically emulate human working memory. As it shows the same functional characteristics as working memory, it robustly learns psychology inspired tasks and converges faster than comparable state-of-the-art models. Moreover, the DWM model successfully generalizes to sequences two orders of magnitude longer than the ones used in training. Our in-depth analysis shows that the behavior of DWM is interpretable and that it learns to have fine control over memory, allowing it to retain, ignore or forget information based on its relevance.

Motivation & Objective

  • To develop a neural network model that emulates human working memory's functional characteristics, such as limited capacity and attention control.
  • To design a memory mechanism that enables selective retention, forgetting, or ignoring of information based on relevance.
  • To create a set of algorithmic tasks derived from cognitive psychology to evaluate and probe working memory behavior in neural networks.
  • To investigate how attention control mechanisms can improve data efficiency and generalization in memory-augmented networks.
  • To study the emergence of efficient memory strategies, such as 'Overwrite' and 'Skip', during training.

Proposed method

  • The DWM model uses a memory matrix with dynamic and static bookmarks to control attention, where the dynamic bookmark tracks current processing state and the static bookmark stores recall targets.
  • Attention is controlled via a gating mechanism that allows the model to shift or freeze attention based on input markers, enabling selective writing and reading from memory.
  • The model processes sequences with distinct markers for input items (x), distractors (y), commands (to recall or ignore), and recall markers, enabling structured learning of memory control.
  • A controller network uses the hidden state to maintain operation mode (e.g., overwrite vs. skip) across subsequences, allowing long-term memory of task context.
  • The system employs circular convolution for attention shifting and learns to use bookmarks to retrieve or overwrite memory locations based on task demands.
  • Training is optimized using standard backpropagation, with loss based on correct recall and attention control accuracy.

Experimental results

Research questions

  • RQ1Can a differentiable memory model learn to selectively remember, forget, or ignore information in a way that mirrors human working memory?
  • RQ2How do attention control mechanisms like dynamic and static bookmarks improve data efficiency and generalization in memory-augmented networks?
  • RQ3What strategies—such as 'Overwrite' or 'Skip'—do models develop when learning to manage memory under interference?
  • RQ4To what extent can the model generalize to sequences significantly longer than those seen during training?
  • RQ5How interpretable is the memory control behavior, and can it be linked to psychological mechanisms of attention and cognitive control?

Key findings

  • The DWM model successfully generalizes to sequences two orders of magnitude longer than those used during training, demonstrating strong inductive bias for temporal generalization.
  • The model learns to use two distinct strategies—'Overwrite' and 'Skip'—for handling distractors, with the 'Skip' strategy emerging only under memory constraints and requiring more complex hidden state memory.
  • During training, the model evolves from a reactive 'Overwrite' strategy to a more efficient 'Skip' strategy, indicating adaptive learning of operation modes.
  • The dynamic bookmark learns to follow attention for relevant items and freeze during distractor processing, showing interpretable and task-specific attention control.
  • The attention control mechanism enables robust performance on complex span tasks, outperforming prior models like DNC and LSTM in data efficiency and generalization.
  • The system's behavior is interpretable, with clear evidence of attention control and memory resource management, aligning with psychological models of working memory.

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.