Abstract
Predictive Coding Networks (PCNs) offer a biologically plausible alternative to standard backpropagation, yet they often struggle with optimization efficiency and computational complexity when scaling to deep architectures. This paper introduces PredProp, a novel optimization framework that leverages the "precision" (inverse covariance) of neural activity and prediction errors to accelerate both learning and inference. By factorizing the Fisher Information Matrix (FIM) into local components, PredProp implements an efficient, layer-wise approximation of Natural Gradient Descent (NGD). Our results on image benchmark tasks demonstrate that PredProp achieves faster convergence, higher stability, and superior accuracy compared to standard optimizers like Adam and SGD.
1. Introduction
In contemporary deep learning, global optimization via Stochastic Gradient Descent (SGD) or Adam is the standard for updating network weights. However, Predictive Coding (PC)—a theory rooted in computational neuroscience—proposes that the brain processes information by minimizing local prediction errors across a hierarchical structure. While PC is biologically appealing and allows for local learning rules, it faces two significant challenges: the slow convergence inherent in standard gradient descent and the prohibitive computational cost of Natural Gradient Descent (NGD), which requires inverting massive Fisher Information Matrices.
PredProp addresses these hurdles by introducing a bidirectional optimization method specifically tailored for the hierarchical structure of PCNs. By treating precision as a measure of curvature, PredProp navigates complex loss surfaces more effectively than first-order methods.
2. Methodology
2.1 Factorization of the Fisher Information Matrix
The primary innovation of PredProp is the factorization of the Fisher Information Matrix (FIM). Rather than computing a global matrix for the entire network, PredProp decomposes the FIM into two local, layer-wise components:
- Activity Covariance: Captures the variance of neural states (inputs).
- Error Gradient Covariance: Captures the variance of propagated error signals.
This factorization allows the network to approximate the curvature of the loss landscape locally, avoiding the "curse of dimensionality" typically associated with NGD in deep networks.
2.2 The PredProp Algorithm
PredProp operates through a bidirectional two-step process:
- The E-step (Inference): The network updates its internal state parameters to minimize prediction errors. PredProp uses the precision of the gradients to weight these updates. This acts as a form of "neural attention," prioritizing signals that are statistically more reliable.
- The M-step (Learning): The network updates its synaptic weights. This update is modulated by the inverse covariance of both the input activity and the outgoing prediction error, ensuring that weight changes follow the steepest descent in the space of probability distributions.
3. Experimental Evaluation
3.1 Datasets and Task
The authors evaluated PredProp's performance in unsupervised hierarchical generative modeling using three standard image benchmarks:
- MNIST: Handwritten digits.
- FashionMNIST: Clothing items.
- OMNIGLOT: Diverse alphabets and characters for testing generalization.
3.2 Performance Metrics
The primary metric for evaluation was the Mean Squared Error (MSE) of the generative reconstructions. PredProp was compared against standard baselines, including SGD, SGD with Momentum, and Adam.
4. Key Results
- Superior Accuracy and Convergence: PredProp consistently achieved lower MSE than Adam and SGD across all tested datasets. By utilizing off-diagonal structural information in the covariance matrices, PredProp navigated the loss surface more efficiently than Adam, which only considers diagonal variance.
- Enhanced Stability: While baseline optimizers often exhibited "jitter" or divergence at high learning rates as the model reached high accuracy, PredProp remained stable, allowing for continuous refinement of the generative model.
- Inference Speedup: A critical finding was that precision weighting during the E-step significantly improved the accuracy of global predictions. This suggests that curvature-aware updates are as vital for internal state inference as they are for weight learning.
- Scalability to Deep Architectures: The framework successfully scaled to multi-layer decoder networks, where each hierarchical layer contained its own sub-network, demonstrating the robustness of the local factorization approach.
5. Discussion and Future Work
PredProp demonstrates that linking the neuroscientific concept of "precision" to the mathematical concept of "curvature" provides a powerful tool for optimizing Predictive Coding Networks. However, several avenues for future research remain:
- Architectural Adaptation: Current experiments focused on dense, fully connected layers. Adapting these precision-weighting rules to convolutional or transformer-based architectures is a necessary next step.
- Scaling: Future work should evaluate PredProp on high-resolution, large-scale datasets to test the limits of the local FIM factorization.
- Biological Realism: While the framework is biologically inspired, the explicit inversion of covariance matrices is complex. Investigating how biological circuits might approximate these operations could further bridge the gap between AI and neuroscience.
In conclusion, PredProp provides a scalable and efficient path for implementing Natural Gradient Descent in hierarchical networks, offering a significant performance boost for biologically inspired models.
Summary updated