Manuscript Offprint

arXiv:2611.23177

Déjà View: A Shared Working-Memory Model for Visual Tasks

Mranmay Shetty, Gabriel Kreiman

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

A working-memory model must remember stimuli and use its memory flexibly to perform different tasks. Here we introduce a model of working memory for images that combines dynamic activity with temporary associations between image features. We train the model on five tasks, including remembering a sample while other images are presented, categorizing distractor images while remembering the sample, and determining whether an image is new or has been presented before. The same trained model performs all tasks, guided by explicit cues about which response is required. We use this flexible memory model to ask how delay, distraction, and image history affect performance. Delays have little effect on sample-memory performance for the delays we tested, while seeing more images leads to more false alarms even when the target image appeared equally recently in all cases. On the sample-memory-plus-categorization task, the probability of correct responses on all questions decreases as more questions are asked, despite robust sample-memory performance. Finally, the model maintains stable performance across 40 brief trials of each task under the tested conditions. Together, these results demonstrate how a single working-memory system can be flexibly used to perform different tasks, and how its errors depend on both previous images and task demands.

1 Introduction

Imagine that a computational model is shown a sequence of three images: a cat, a dog, and then the same dog. For a task to remember the first image, the correct response to the last image would be NO; in a task to detect repeated images, the correct response would be YES. Thus, a working-memory model must not only remember images but flexibly use this memory to solve different tasks. Here, we train a single model on five working-memory tasks. On some tasks, it must remember a cued sample image while other images are presented. On others, it must determine whether the current image has been seen before. On one task, it must categorize distractor images while remembering the sample for a final matching response. We use explicit task cues to instruct the model on what response is appropriate.

Persistent or dynamic activity and rapidly changing associations have been proposed as potential mechanisms of working memory (Masse et al., 2019; Danihelka et al., 2016; Schlag et al., 2021). WorM has trained recurrent neural networks and Transformers on a suite of working-memory tasks and compared their performance to humans (Sikarwar and Zhang, 2023), and HebbFF has used learned synaptic plasticity to perform continual familiarity detection (Tyulmankov et al., 2022). Our model builds on these previous efforts, and our tasks unify aspects of previous tasks, such as matching a test to a sample, processing other images during a memory delay, and detecting repetitions. By using the same model on different tasks, we can ask how task demands impact model behavior.

Here we first introduce our tasks and flexible working-memory model. Next, we ask how performance changes with increasing delays and image histories, and across 40 short trials. Finally, we examine how activity and associations contribute to memory by comparing our full model to models trained to use only one type of memory, as well as to two other architectures.

References (9)