[Paper Review] Product Kanerva Machines: Factorized Bayesian Memory
The paper introduces the Product Kanerva Machine, a hierarchical Bayesian memory model that factorizes a single Kanerva Machine into multiple smaller machines to enable efficient, scalable, and structured memory organization. By combining readouts via learnable assignment weights, it achieves unsupervised clustering, sparse allocation patterns, and spatially localized feature discovery, outperforming mixture-based alternatives in capacity and robustness.
An ideal cognitively-inspired memory system would compress and organize incoming items. The Kanerva Machine (Wu et al, 2018) is a Bayesian model that naturally implements online memory compression. However, the organization of the Kanerva Machine is limited by its use of a single Gaussian random matrix for storage. Here we introduce the Product Kanerva Machine, which dynamically combines many smaller Kanerva Machines. Its hierarchical structure provides a principled way to abstract invariant features and gives scaling and capacity advantages over single Kanerva Machines. We show that it can exhibit unsupervised clustering, find sparse and combinatorial allocation patterns, and discover spatial tunings that approximately factorize simple images by object.
Motivation & Objective
- To address limitations of single Kanerva Machines, such as poor scalability and lack of structural organization in memory.
- To develop a hierarchical memory system that enables dynamic grouping of information and supports generative, compressive, and invariant memory representations.
- To explore whether factorized memory structures can discover combinatorial, disentangled features and support robust, scalable memory operations.
- To compare product and mixture factorizations in terms of performance, generalization, and robustness under increasing memory capacity.
Proposed method
- The model divides a single Kanerva Machine into k smaller machines, each with m_i = m/k columns, to improve computational efficiency and enable specialization.
- It uses an assignment network (a multilayer perceptron) to compute soft attention weights r_i for routing queries and updates across the k machines.
- The product factorization assumes p(z) ∝ ∏_i p(z|M_i), encouraging each machine to learn statistically independent, combinatorial features across episodes.
- Readout is computed via least-squares optimization of column weights w_i to reconstruct a query z_query, with conditional distributions modeled as p(z|M_i) ∼ N(M_i w_i, σ²_i I).
- The model supports three modes: writing (posterior inference), reading (reconstruction), and generation (conditional sampling from memory with history).
- A Gumbel-Softmax reparameterization is used to enable differentiable training of the assignment network, allowing soft routing before final hard decisions.
Experimental results
Research questions
- RQ1Can a factorized memory architecture like the Product Kanerva Machine achieve better scalability and capacity than a single Kanerva Machine?
- RQ2Does the product factorization encourage the discovery of sparse, combinatorial, and disentangled features in memory?
- RQ3How does the product model compare to a mixture model in terms of performance and robustness when increasing the number of component machines?
- RQ4Can the model learn spatially localized, invariant representations of visual features, such as edges or object parts?
- RQ5Does the system support unsupervised clustering and generative memory recall without gradient-based fine-tuning?
Key findings
- The Product Kanerva Machine achieved stable training and reconstruction performance across varying numbers of machines k, with no degradation in performance as k increased, unlike the mixture model.
- The product model discovered sparse and combinatorial allocation patterns, with machine usage selectively tuned to specific digit classes in the MNIST dataset.
- In the RGB binding task, the model learned to assign different machines based on the red channel digit class, showing selective, non-uniform routing without hard attention.
- On the dancing dSprites task, individual machines developed spatially localized tunings that approximately tiled the image space, with some detecting edges and others being invariant to shape, orientation, and size.
- Conditional generation experiments showed that the model could retrieve stored items or hallucinate novel, noisy spatial patterns, demonstrating generative memory capabilities.
- The model outperformed the mixture-based alternative in reconstruction accuracy and robustness, particularly as k increased, due to the product factorization's ability to maintain distributed, non-degenerate representations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.