The Kanerva Machine: A Generative Distributed Memory
Yan Wu, Greg Wayne, Alex Graves, Timothy Lillicrap
TL;DR
The Kanerva Machine proposes a memory-augmented generative framework that combines a fast, distributed memory with a deep perceptual model. By treating memory updates as exact Bayesian inference and memory reads as a data-driven prior, the model achieves significantly better conditional generation than a VAE on Omniglot and CIFAR while remaining easier to train than Differentiable Neural Computers. The approach yields interpretable memory usage, supports iterative sampling to refine outputs, and enables powerful one-shot generation and denoising capabilities. This work demonstrates that principled memory updates and memory-conditioned priors can substantially improve generative modeling and provide scalable, online adaptable memory for complex data. The proposed framework opens avenues for integrating classical probabilistic memory with neural networks for robust, adaptable AI systems.
Abstract
We present an end-to-end trained memory system that quickly adapts to new data and generates samples like them. Inspired by Kanerva's sparse distributed memory, it has a robust distributed reading and writing mechanism. The memory is analytically tractable, which enables optimal on-line compression via a Bayesian update-rule. We formulate it as a hierarchical conditional generative model, where memory provides a rich data-dependent prior distribution. Consequently, the top-down memory and bottom-up perception are combined to produce the code representing an observation. Empirically, we demonstrate that the adaptive memory significantly improves generative models trained on both the Omniglot and CIFAR datasets. Compared with the Differentiable Neural Computer (DNC) and its variants, our memory model has greater capacity and is significantly easier to train.
