Kanerva++: Extending the Kanerva Machine With Differentiable, Locally Block Allocated Latent Memory
Jason Ramapuram, Yan Wu, Alexandros Kalousis
Abstract
Episodic and semantic memory are critical components of the human memory model. The theory of complementary learning systems (McClelland et al., 1995) suggests that the compressed representation produced by a serial event (episodic memory) is later restructured to build a more generalized form of reusable knowledge (semantic memory). In this work we develop a new principled Bayesian memory allocation scheme that bridges the gap between episodic and semantic memory via a hierarchical latent variable model. We take inspiration from traditional heap allocation and extend the idea of locally contiguous memory to the Kanerva Machine, enabling a novel differentiable block allocated latent memory. In contrast to the Kanerva Machine, we simplify the process of memory writing by treating it as a fully feed forward deterministic process, relying on the stochasticity of the read key distribution to disperse information within the memory. We demonstrate that this allocation scheme improves performance in memory conditional image generation, resulting in new state-of-the-art conditional likelihood values on binarized MNIST (<=41.58 nats/image) , binarized Omniglot (<=66.24 nats/image), as well as presenting competitive performance on CIFAR10, DMLab Mazes, Celeb-A and ImageNet32x32.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 2f6f5ef7-2633-4639-81cd-16baff2f7f39Cited by top-tier papers3
- Larimar: Large Language Models with Episodic Memory ControlPayel Das, Subhajit Chaudhury, Elliot Nelson, Igor Melnyk et al.ICML 2024 · 37 citations
- On the relationship between variational inference and auto-associative memoryLouis Annabi, Alexandre Pitti, Mathias QuoyNeurIPS 2022 · 9 citations
- Generative Pseudo-Inverse MemoryKha Pham, Hung Le, Man Ngo, Truyen Tran et al.ICLR 2022 · 7 citations
Builds on3
- TSM: Temporal Shift Module for Efficient Video UnderstandingJi Lin, Chuang Gan, Song HanICCV 2019 · 2,049 citations
- Evolving Normalization-Activation LayersHanxiao Liu, Andy Brock, Karen Simonyan, Quoc LeNeurIPS 2020 · 94 citations
- Episodic Reinforcement Learning with Associative MemoryGuangxiang Zhu, Zichuan Lin, Guangwen Yang, Chongjie ZhangICLR 2020 · 56 citations
Related papers
- Learning Fast, Learning Slow: A General Continual Learning Method based on Complementary Learning SystemElahe Arani, Fahad Sarfraz, Bahram ZonoozICLR 2022 · 168 citations
- Integrated Episodic and Semantic Memory via Modulating Transformer FeedForward LayersYiqun Yao, Xiang Li, Xin Jiang, Xuezhi Fang et al.ICML 2026
- Separating the 'what' and 'how' of compositional computation to enable reuse and continual learningHaozhe Shan, Minni Sun, Lea DunckerNeurIPS 2025 · 10 citations
- Towards General Continuous Memory for Vision-Language ModelsWenyi Wu, Zixuan Song, Kun Zhou, Yifei Shao et al.NeurIPS 2025 · 19 citations
- Few-shot Generation via Recalling Brain-Inspired Episodic-Semantic MemoryZhibin Duan, Zhiyi Lv, Chaojie Wang, Bo Chen et al.NeurIPS 2023 · 12 citations
