Abstract
Predictive Coding (PC) offers a biologically plausible alternative to backpropagation (BP) by utilizing local, Hebbian-like updates and recurrent circuitry. However, PC has historically struggled with high computational costs and optimization instabilities. This work introduces Sequential Inference (SeqIL) and the Matrix Update Equalization (MQ) optimizer to bridge the performance gap between bio-inspired models and state-of-the-art engineering. We show that SeqIL drastically reduces the iterations required for convergence, while MQ provides the stability of Adam with significantly less memory. Furthermore, we provide a theoretical foundation showing that PC acts as a second-order optimizer, approximating Implicit Stochastic Gradient Descent.
Introduction
While backpropagation is the cornerstone of modern deep learning, its biological plausibility is often questioned due to its requirement for a perfectly segregated feedback stream and non-local information. Predictive Coding (PC) presents a promising alternative, mimicking the brain's hierarchical processing. Despite its potential, PC faces three major engineering hurdles: excessive computational cost during inference, susceptibility to poor local minima, and a lack of rigorous theoretical understanding regarding its convergence properties.
Proposed Methods
Sequential Inference (SeqIL)
In standard PC, all layers are updated simultaneously, causing errors to "trickle" slowly through the network. This necessitates many inference iterations to achieve effective learning. We propose Sequential Inference (SeqIL), where layers are updated in a sequence from the output back to the input. This modification allows error signals to propagate through the entire network in a single iteration, significantly accelerating the training process.
Matrix Update Equalization (MQ) Optimizer
A critical issue in PC is that weight updates in early layers often become infinitesimally small, leading to "vanishing updates" that stall learning. While optimizers like Adam can mitigate this, they are memory-intensive, storing per-parameter moments that can triple memory requirements. We introduce the Matrix Update Equalization (MQ) optimizer, which uses a single adaptive scalar per layer to equalize update magnitudes. MQ achieves Adam-like stability with near-zero memory overhead.
Theoretical Framework: PC as Second-Order Optimization
A key insight of this work is the mathematical proof that Inference Learning (IL) in PC networks approximates Implicit Stochastic Gradient Descent. Crucially, we demonstrate that IL is sensitive to the Hessian (second-order information about the loss landscape). This sensitivity allows PC to behave like a "damped" Newton-Raphson method, explaining why it often finds more direct paths to local minima than standard first-order gradient descent.
Experimental Results
We evaluated our methods on standard benchmarks including SVHN, CIFAR-10, and Tiny ImageNet across various architectures (MLPs, CNNs, and Autoencoders).
- Performance Parity: SeqIL-MQ matched or exceeded the accuracy of BP-Adam on CIFAR-10 and SVHN. On the more challenging Tiny ImageNet, it performed comparably to BP-Adam and significantly outperformed standard BP.
- Efficiency: SeqIL-MQ requires approximately one-third the memory of Adam. By reducing the necessary inference iterations, the total training time for PC models is brought very close to that of standard BP.
- Convergence Speed: In autoencoder tasks, PC-based models demonstrated faster initial loss reduction compared to BP, highlighting the benefits of its inherent second-order nature.
Conclusion
By introducing Sequential Inference and the MQ optimizer, we have addressed the primary computational and optimization bottlenecks of Predictive Coding. Our results demonstrate that bio-plausible algorithms can be made computationally competitive with backpropagation while offering superior memory efficiency. Future work will explore the scalability of these methods to deeper architectures like ResNets and Transformers, as well as their behavior in large-scale industrial training settings.
Summary updated