PreprintCited by 33Neural Networks and ApplicationsMemory and Neural MechanismsNeural dynamics and brain function

Associative Memories via Predictive Coding

Open access
Salvatori, Tommaso, Song, Yuhang, Hong, Yujian, Frieder, Simon, Sha, Lei, Xu, Zhenghua, Bogacz, Rafal, Lukasiewicz, Thomas·2021·arXiv

Abstract

Associative memories in the brain receive and store patterns of activity registered by the sensory neurons, and are able to retrieve them when necessary. Due to their importance in human intelligence, computational models of associative memories have been developed for several decades now. They include autoassociative memories, which allow for storing data points and retrieving a stored data point $s$ when provided with a noisy or partial variant of $s$, and heteroassociative memories, able to store and recall multi-modal data. In this paper, we present a novel neural model for realizing associative memories, based on a hierarchical generative network that receives external stimuli via sensory neurons. This model is trained using predictive coding, an error-based learning algorithm inspired by information processing in the cortex. To test the capabilities of this model, we perform multiple retrieval experiments from both corrupted and incomplete data points. In an extensive comparison, we show that this new model outperforms in retrieval accuracy and robustness popular associative memory models, such as autoencoders trained via backpropagation, and modern Hopfield networks. In particular, in completing partial data points, our model achieves remarkable results on natural image datasets, such as ImageNet, with a surprisingly high accuracy, even when only a tiny fraction of pixels of the original images is presented. Furthermore, we show that this method is able to handle multi-modal data, retrieving images from descriptions, and vice versa. We conclude by discussing the possible impact of this work in the neuroscience community, by showing that our model provides a plausible framework to study learning and retrieval of memories in the brain, as it closely mimics the behavior of the hippocampus as a memory index and generative model.

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

DataCite · 10.48550/arxiv.2109.08063

Cites

7 of 7 references verified0 citation errors · 0 not checkable

Statistics

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

  • The large majority of predictive coding networks developed for machine-learning tasks fix precisions to the identity throughout training, effectively assuming homoscedastic noise and reducing the free energy to a sum of unweighted squared errors.

    “The large majority of PCNs developed for machine-learning tasks [Whittington and Bogacz, 2017, Salvatori et al., 2021, 2024, Millidge et al., 2022, Pinchetti et al., 2025, Oliviers et al., 2025, Song et al., 2024] fix precisions to the identity throughout training, effectively assuming homoscedastic noise and reducing the free energy to a sum of unweighted squared errors.”

    From Closed-form predictive coding via hierarchical Gaussian filters (2026) · cites this paper as Salvatori et al., 2021

    Split into 2 atoms — 0 confirmed, 1 partially supported, 0 disputed, 0 misattributed, 1 unverifiable. Expand the claim to see per-atom verdicts.

    Experimental — accuracy not yet measured

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Cites

Flagged first, then by citations

Research works printed but not linked: 37

  1. [1][1] L. Squire and S. Zola-Morgan, 'The medial temporal lobe memory system,' Science , vol. 253, no. 5026, 1991. -
  2. [2][2] D. J. Felleman and D. C. Van Essen, 'Distributed hierarchical processing in the primate cerebral cortex.,' Cerebral cortex (New York, NY: 1991) , vol. 1, no. 1, pp. 1-47, 1991. -
  3. [3][3] E. A. Murray, T. J. Bussey, and L. M. Saksida, 'Visual perception and memory: a new view of medial temporal lobe function in primates and rodents,' Annu. Rev. Neurosci. , vol. 30, pp. 99-122, 2007. -
  4. [5][5] J. Mcclelland, B. Mcnaughton, and R. O'Reilly, 'Why there are complementary learning systems in the hippocampus and neocortex: Insights from the successes and failures of connectionist models of learning and memory,' Psychological review , vol. 102, pp. 419-57, 08 1995. -
  5. [6][6] H. C. Barron, R. Auksztulewicz, and K. Friston, 'Prediction and memory: A predictive coding account,' Progress in Neurobiology , vol. 192, p. 101821, 2020. -
  6. [7][7] K. L. Stachenfeld, M. M. Botvinick, and S. J. Gershman, 'The hippocampus as a predictive map,' Nature neuroscience , vol. 20, no. 11, p. 1643, 2017. -
  7. [8][8] J. J. Hopfield, 'Neural networks and physical systems with emergent collective computational abilities,' Proceedings of the National Academy of Sciences , vol. 79, 1982. -
  8. [9][9] D. Krotov and J. J. Hopfield, 'Unsupervised learning by competing hidden units,' Proceedings of the National Academy of Sciences , vol. 116, no. 16, pp. 7723-7731, 2019. -
  9. [10][10] D. Krotov and J. J. Hopfield, 'Dense associative memory for pattern recognition,' in Advances in Neural Information Processing Systems , 2016. -
  10. [11][11] A. Radhakrishnan, M. Belkin, and C. Uhler, 'Overparameterized neural networks implement associative memory,' arXiv preprint arXiv:1909.12362 , 2019. - · arXiv
  11. [12][12] K. Liu, J. Sibille, and G. Dragoi, 'Generative predictive codes by multiplexed hippocampal neuronal tuplets,' Neuron , vol. 99, no. 6, pp. 1329-1341.e6, 2018. -
  12. [13][13] J. C. Whittington and R. Bogacz, 'An approximation of the error backpropagation algorithm in a predictive coding network with local Hebbian synaptic plasticity,' Neural Computation , vol. 29, no. 5, 2017. -
  13. [14][14] Y. Song, T. Lukasiewicz, Z. Xu, and R. Bogacz, 'Can the brain do backpropagation? - Exact implementation of backpropagation in predictive coding networks,' in Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020 , 2020. -
  14. [15][15] T. Salvatori, Y . Song, T. Lukasiewicz, Z. Xu, and R. Bogacz, 'Predictive coding can do exact backpropagation on convolutional and recurrent neural networks,' arXiv:2103.03725 , 2021. - · arXiv
  15. [17][17] D. E. Rumelhart, G. E. Hinton, and R. J. Williams, 'Learning representations by back-propagating errors,' Nature , vol. 323, no. 6088, pp. 533-536, 1986. -
  16. [19][19] D. Krotov and J. J. Hopfield, 'Large associative memory problem in neurobiology and machine learning,' in International Conference on Learning Representations , 2021. -
  17. [20][20] J. Liu, M. Gong, and H. He, 'Deep associative neural network for associative memory based on unsupervised representation learning,' Neural Networks , vol. 113, pp. 41-53, 2019. -
  18. [21][21] B. A. Plummer, L. Wang, C. M. Cervantes, J. C. Caicedo, J. Hockenmaier, and S. Lazebnik, 'Flickr30k entities: Collecting region-to-phrase correspondences for richer image-to-sentence models,' in Proceedings of the 2015 IEEE International Conference on Computer Vision (ICCV) , ICCV '15, (USA), p. 2641-2649, IEEE Computer Society, 2015. -
  19. [22][22] T. V. Bliss and T. Lømo, 'Long-lasting potentiation of synaptic transmission in the dentate area of the anaesthetized rabbit following stimulation of the perforant path,' The Journal of Physiology , vol. 232, no. 2, pp. 331-356, 1973. -
  20. [23][23] R. C. O'reilly and J. L. McClelland, 'Hippocampal conjunctive encoding, storage, and recall: avoiding a trade-off,' Hippocampus , vol. 4, no. 6, pp. 661-682, 1994. -
  21. [24][24] K. K. Cowansage, T. Shuman, B. C. Dillingham, A. Chang, P. Golshani, and M. Mayford, 'Direct reactivation of a coherent neocortical memory of context,' Neuron , vol. 84, no. 2, pp. 432-441, 2014. -
  22. [25][25] K. Z. Tanaka, A. Pevzner, A. B. Hamidi, Y. Nakazawa, J. Graham, and B. J. Wiltgen, 'Cortical representations are reinstated by the hippocampus during memory retrieval,' Neuron , vol. 84, no. 2, pp. 347-354, 2014. -
  23. [26][26] J. J. Hopfield, 'Neurons with graded response have collective computational properties like those of two-state neurons,' Proceedings of the National Academy of Sciences , vol. 81, 1984. -
  24. [27][27] K. Steinbuch, 'Die Lernmatrix,' Kybern. , vol. 1, no. 1, pp. 36-45, 1961. -
  25. [29][29] S. Bartunov, J. W. Rae, S. Osindero, and T. P. Lillicrap, 'Meta-learning Deep Energy-based Memory Models,' arXiv preprint arXiv:1910.02720 , 2019. - · arXiv
  26. [31][31] M. Widrich, B. Sch¨ afl, H. Ramsauer, M. Pavlovi´ c, L. Gruber, M. Holzleitner, J. Brandstetter, G. K. Sandve, V. Greiff, S. Hochreiter, et al. , 'Modern Hopfield Networks and Attention for Immune Repertoire Classification,' arXiv preprint arXiv:2007.13505 , 2020. - · arXiv
  27. [32][32] P. Domingos, 'Every model learned by gradient descent is approximately a kernel machine,' arXiv preprint arXiv:2012.00152 , 2020. - · arXiv
  28. [33][33] V. Feldman and C. Zhang, 'What neural networks memorize and why: Discovering the long tail via influence estimation,' CoRR , vol. abs/2008.03703, 2020. - · arXiv
  29. [34][34] G. Yang and F. Ding, 'Associative memory optimized method on deep neural networks for image classification,' Information Sciences , vol. 533, 2020. -
  30. [35][35] K. Friston, 'A theory of cortical responses,' Philosophical Transactions of the Royal Society B: Biological Sciences , vol. 360, no. 1456, 2005. -
  31. [36][36] R. Bogacz, 'A tutorial on the free-energy framework for modelling perception and learning,' Journal of Mathematical Psychology , vol. 76, pp. 198-211, 2017. -
  32. [37][37] K. Friston, 'Learning and inference in the brain,' Neural Networks , vol. 16, no. 9, pp. 1325-1352, 2003. -
  33. [39][39] R. Auksztulewicz and K. Friston, 'Repetition suppression and its contextual determinants in predictive coding,' Cortex , vol. 80, 2016. -
  34. [40][40] W. Lotter, G. Kreiman, and D. Cox, 'Deep predictive coding networks for video prediction and unsupervised learning,' arXiv:1605.08104 , 2016. - · arXiv
  35. [42][42] J. Hohwy, A. Roepstorff, and K. Friston, 'Predictive coding explains binocular rivalry: An epistemological review,' Cognition , vol. 108, no. 3, 2008. -
  36. [44][44] H. Feldman and K. Friston, 'Attention, uncertainty, and free-energy,' Frontiers in Human Neuroscience , vol. 4, 2010. -
  37. [45][45] R. Kanai, Y. Komura, S. Shipp, and K. Friston, 'Cerebral hierarchies: Predictive processing, precision and the pulvinar,' Philosophical Transactions of the Royal Society B: Biological Sciences , vol. 370, 2015. -

Cited by

Sorted by citations

Authors
Salvatori, T., Song, Y., Hong, Y., Frieder, S., Sha, L., Xu, Z., Bogacz, R., & Lukasiewicz, T.
Affiliations
  • University of Oxford (GB)
  • Hebei University of Technology (CN)
Venue
arXiv
Publisher
arXiv
Published
2021
Volume
34
Pages
3874-3886
OpenAlex
W3201359912
Cited by
33
References
7
Citations by year
2026: 1 · 2025: 4 · 2024: 13 · 2023: 9 · 2022: 6
FWCI
2.45
Type
journal article
Language
en
Open access
Locations
  • PubMed (publishedVersion)
  • PubMed Central (acceptedVersion)
  • arXiv (Cornell University) (submittedVersion)
  • arXiv (Cornell University)
  • neural information processing systems
Funders
Engineering and Physical Sciences Research Council (EP/R013667/1, EP/N510129/1, EP/P020275/1)
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Neural Networks and Applications
  • Life Sciences › Neuroscience › Cognitive Neuroscience › Memory and Neural Mechanisms
  • Life Sciences › Neuroscience › Cognitive Neuroscience › Neural dynamics and brain function
Keywords
associative memory, predictive coding, memory retrieval, corrupted data, hippocampus, memory index, generative models

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review