Towards flexible perception with visual memory

Robert Geirhos, Priyank Jaini, Austin Stone, Sourabh Medapati, Xi Yi +3 more
8/15/2024
cs.CVcs.AIcs.LG

No official code found. Best implementation: google-deepmind/visual-memory (19 stars, Apache-2.0, last commit 2024-09-24).

Abstract

Training a neural network is a monolithic endeavor, akin to carving knowledge into stone: once the process is completed, editing the knowledge in a network is hard, since all information is distributed across the network's weights. We here explore a simple, compelling alternative by marrying the representational power of deep neural networks with the flexibility of a database. Decomposing the task of image classification into image similarity (from a pre-trained embedding) and search (via fast nearest neighbor retrieval from a knowledge database), we build on well-established components to construct a simple and flexible visual memory that has the following key capabilities: (1.) The ability to flexibly add data across scales: from individual samples all the way to entire classes and billion-scale data; (2.) The ability to remove data through unlearning and memory pruning; (3.) An interpretable decision-mechanism on which we can intervene to control its behavior. Taken together, these capabilities comprehensively demonstrate the benefits of an explicit visual memory. We hope that it might contribute to a conversation on how knowledge should be represented in deep vision models -- beyond carving it in "stone" weights.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Code & data for "Towards flexible perception with visual memory" (ICML 2025)

191Jupyter NotebookSep 16, 20242 years agoApache-2.0

Similar Papers

Cite this paper

@article{geirhos2024towards,
  title  = {Towards flexible perception with visual memory},
  author = {Robert Geirhos and Priyank Jaini and Austin Stone and Sourabh Medapati and Xi Yi and George Toderici and Abhijit Ogale and Jonathon Shlens},
  year   = {2024},
  eprint = {2408.08172},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.08172v3},
  journal = {ICML 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2408.08172.svg)](https://codeofpaper.com/paper/2408.08172)

Discussion