TL;DR
This paper introduces "temporal predictive coding" (tPC), a novel neural network model for sequential memory that builds upon predictive coding principles. tPC demonstrates improved stability and biological plausibility compared to existing models, offering a potential mechanism for how the brain forms and retrieves memories of ordered events.
What Problem Does This Paper Address?
Forming and recalling sequences of events is fundamental to biological cognition, underpinning everything from language comprehension to motor control. While significant progress has been made in modeling static memories (like individual images), computational models for sequential memory—where the order of events matters—are less developed. Existing models often struggle with complex, real-world data, are analytically intractable, or lack clear biological implementations. This paper aims to bridge this gap by proposing a biologically plausible and mathematically tractable model for sequential memory.
Methods
The core innovation is temporal predictive coding (tPC), an extension of predictive coding (PC) models, which are known for their biological plausibility and success in static memory tasks.
- Predictive Coding (PC) Foundation: PC models work by generating predictions of sensory input and updating internal states based on prediction errors. This process naturally leads to memories acting as attractors in the network's energy landscape.
- Temporal Extension: tPC incorporates a temporal dimension, allowing predictions not just of current sensory input but also of the next input in a sequence. This is achieved by introducing a synaptic delay in the error pathway, enabling the network to learn transitions between sequential patterns.
- Single-Layer tPC: This model learns a single weight matrix to predict the next state from the current one. A key theoretical finding is that this single-layer tPC, with an identity non-linearity, is mathematically equivalent to a classical Asymmetric Hopfield Network (AHN) that has undergone an implicit "statistical whitening" process. This whitening step is crucial for its improved stability.
- Two-Layer tPC: This model introduces a hierarchical structure, with a hidden layer that models internal representations and also makes temporal predictions. This allows for more complex processing, similar to how the neocortex might process sensory information before it enters the memory system.
- Neural Implementation: The models are designed with biologically plausible neural circuits, utilizing local learning rules (Hebbian plasticity) and iterative inference dynamics, aligning with neuroscience observations.
Datasets
The models were evaluated on a variety of datasets:
- Binary Patterns: Uncorrelated and correlated binary patterns were used to test theoretical properties and compare with AHNs.
- MNIST Digits: Binarized MNIST images were used to assess performance on sequences of structured, naturalistic inputs.
- MovingMNIST: Sequences of moving MNIST digits were used to evaluate performance on dynamic, real-world video data.
- CIFAR10: Sequences of CIFAR10 images were used to test performance on more complex, colored visual data.
- UCF101: Sequences from the UCF101 action recognition dataset were used to assess performance on natural video sequences, including aliased inputs.
- Simulated Behavioral Data: Synthetic sequences were generated to replicate experimental findings on sequence length effects and primacy/recency effects in human memory.
Key Insights and Ideas
- Whitening for Stability: The implicit statistical whitening operation in the single-layer tPC is the key to its superior performance, especially with correlated or noisy real-world data. It effectively normalizes patterns before comparison, preventing issues with "strong attractors" that plague other models.
- Biological Plausibility: tPC's design, with its reliance on local computations and iterative inference, offers a plausible neural mechanism for sequential memory formation, directly linking computational principles to brain function.
- Hierarchical Advantage: The two-layer tPC demonstrates that hierarchical processing is beneficial for handling complex sequential data, particularly for disambiguating "aliased" or repeating inputs by leveraging contextual information in hidden states.
- Generalization of Dynamics: tPC can learn underlying dynamics from training sequences and generalize them to unseen sequences, suggesting a capacity for abstract representation of temporal patterns.
Key Results
- Enhanced Capacity: The single-layer tPC showed greater sequence capacity than basic AHNs, especially with correlated patterns, due to its implicit whitening.
- Robustness to Correlation: While AHNs' capacity degraded significantly with increasing pattern correlation, tPC's performance remained remarkably stable.
- Superior Recall: tPC models outperformed MCAHNs (a modern variant of Hopfield Networks) on recall tasks for MNIST, MovingMNIST, and CIFAR10 sequences, exhibiting lower Mean Squared Error (MSE).
- Behavioral Replication: The 2-layer tPC successfully replicated behavioral observations in humans, including the impact of sequence length on recall accuracy and the primacy/recency effect.
- Contextual Representation: The 2-layer tPC could disambiguate aliased sequences (where identical inputs appear at different points in time), a task that single-layer models and MCAHNs failed at.
- Dynamic Generalization: tPC demonstrated the ability to learn and generalize underlying dynamics (e.g., rotation) to unseen data, a crucial aspect of flexible cognition.
Limitations and Future Work
- Sharpness of Recall: While tPC provides stable recalls, they can be less "sharp" than those from models like MCAHN, which use a more aggressive separation function. The authors suggest this is a trade-off for robustness.
- Future Directions: The authors propose extending tPC to more than two layers to model deeper hierarchical processing and exploring its application to modeling cognitive maps in the hippocampus. Further investigation into the precise role of whitening in biological systems is also suggested.
Summary updated