[Paper Review] Learning Attractor Dynamics for Generative Memory
This paper proposes a differentiable Kanerva Memory (DKM) that learns attractor dynamics for robust memory retrieval without backpropagating through iterative inference. By maximizing a variational lower bound, the model induces a likelihood-based Lyapunov function that drives noisy or corrupted inputs to converge on stored patterns, achieving high-quality denoising and generative sampling without vanishing gradients during training.
A central challenge faced by memory systems is the robust retrieval of a stored pattern in the presence of interference due to other stored patterns and noise. A theoretically well-founded solution to robust retrieval is given by attractor dynamics, which iteratively clean up patterns during recall. However, incorporating attractor dynamics into modern deep learning systems poses difficulties: attractor basins are characterised by vanishing gradients, which are known to make training neural networks difficult. In this work, we avoid the vanishing gradient problem by training a generative distributed memory without simulating the attractor dynamics. Based on the idea of memory writing as inference, as proposed in the Kanerva Machine, we show that a likelihood-based Lyapunov function emerges from maximising the variational lower-bound of a generative memory. Experiments shows it converges to correct patterns upon iterative retrieval and achieves competitive performance as both a memory model and a generative model.
Motivation & Objective
- To address the challenge of robust memory retrieval under noise and interference in deep learning systems.
- To overcome the vanishing gradient problem that hinders training of attractor dynamics in neural networks.
- To enable iterative, dynamic memory retrieval—inspired by biological and theoretical models—within a deep learning framework.
- To demonstrate that attractor dynamics emerge naturally from a likelihood-based variational objective in a generative distributed memory.
- To show that the model improves both denoising and sample quality through iterative energy minimization, even on unseen noise types.
Proposed method
- Train a generative distributed memory using variational inference to maximize the variational lower bound (ELBO), which induces a Lyapunov function based on likelihood.
- Use the memory matrix M as a global latent variable with a matrix-variate normal prior p(M) = MN(R, U, I), where R is the mean and U the row-wise covariance.
- Perform memory reading via weighted summation z = Σ w(k)·M(k) + ξ, with attention weights w(k) computed from query and key vectors.
- Enable iterative retrieval by running attractor dynamics post-training: update the reconstructed pattern via gradient ascent on the ELBO to minimize energy.
- Define an energy function based on the negative variational lower bound, which decreases during iterative refinement of corrupted or prior samples.
- Avoid backpropagation through the dynamics by training only the encoder, decoder, and memory parameters, thus sidestepping vanishing gradients.
Experimental results
Research questions
- RQ1Can attractor dynamics emerge in a deep generative memory model without explicit backpropagation through iterative inference?
- RQ2Does a likelihood-based variational objective naturally induce a Lyapunov function that stabilizes retrieval toward stored patterns?
- RQ3Can such a model robustly denoise patterns corrupted by unseen noise (e.g., salt-and-pepper or Gaussian) not seen during training?
- RQ4Does iterative refinement via attractor dynamics improve sample quality from the prior distribution in generative modeling?
- RQ5Can the model trade computation for precision by running more iterations, and does energy decrease consistently during this process?
Key findings
- The model successfully converges to correct patterns upon iterative retrieval, even from highly corrupted inputs such as 15% salt-and-pepper noise in Omniglot images.
- Energy, defined as the negative variational lower bound, consistently decreases during denoising and sampling, confirming the presence of attractor dynamics.
- Denoised Omniglot patterns were not only recovered but also appeared cleaner and smoother than the original, indicating effective pattern restoration.
- Initial samples from the prior distribution were of low quality but improved steadily over iterations, with energy decreasing over time.
- The system exhibited fluctuations in energy, particularly in larger models like DMLab, likely due to saddle points, yet still achieved convergence overall.
- The method avoids vanishing gradients by not simulating dynamics during training, enabling stable training of high-capacity generative memory with fast writing via inference.
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.