Bridging Associative Memory and Probabilistic Modeling

Rylan Schaeffer, Nika Zahedi, Mikail Khona, Dhruv Pai, Sang Truong +7 more
2/15/2024
cs.LG

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Associative memory and probabilistic modeling are two fundamental topics in artificial intelligence. The first studies recurrent neural networks designed to denoise, complete and retrieve data, whereas the second studies learning and sampling from probability distributions. Based on the observation that associative memory's energy functions can be seen as probabilistic modeling's negative log likelihoods, we build a bridge between the two that enables useful flow of ideas in both directions. We showcase four examples: First, we propose new energy-based models that flexibly adapt their energy functions to new in-context datasets, an approach we term \textit{in-context learning of energy functions}. Second, we propose two new associative memory models: one that dynamically creates new memories as necessitated by the training data using Bayesian nonparametrics, and another that explicitly computes proportional memory assignments using the evidence lower bound. Third, using tools from associative memory, we analytically and numerically characterize the memory capacity of Gaussian kernel density estimators, a widespread tool in probababilistic modeling. Fourth, we study a widespread implementation choice in transformers -- normalization followed by self attention -- to show it performs clustering on the hypersphere. Altogether, this work urges further exchange of useful ideas between these two continents of artificial intelligence.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{schaeffer2024bridging,
  title  = {Bridging Associative Memory and Probabilistic Modeling},
  author = {Rylan Schaeffer and Nika Zahedi and Mikail Khona and Dhruv Pai and Sang Truong and Yilun Du and Mitchell Ostrow and Sarthak Chandra and Andres Carranza and Ila Rani Fiete and Andrey Gromov and Sanmi Koyejo},
  year   = {2024},
  eprint = {2402.10202},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.10202v2}
}

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/2402.10202.svg)](https://codeofpaper.com/paper/2402.10202)

Discussion