Abstract
Predictive Coding (PC) offers a biologically plausible alternative to backpropagation, but it has traditionally been too slow and optimization-heavy for practical use. This paper introduces Sequential Inference to drastically reduce computational overhead and a memory-efficient Matrix Update Equalization (MQ) optimizer that prevents the network from getting stuck in poor local minima. Furthermore, the authors provide a theoretical bridge showing that PC is naturally sensitive to second-order (Hessian) information, explaining why it often converges faster than standard gradient descent.
Introduction
While Backpropagation (BP) is the engine of modern AI, it is often criticized as a "biological myth." It requires segregated feedback signals and non-local updates that the brain simply doesn't seem to do. Predictive Coding Networks (PCNs) are a promising alternative because they use local, Hebbian-like updates and recurrent circuitry. However, PCNs face three major engineering hurdles: high computational cost due to the inference phase, a dependency on memory-hungry optimizers like Adam, and a lack of theoretical understanding regarding their convergence properties.
Methods
The authors tackle these issues with a three-pronged approach:
- Sequential Inference: Standard PC updates all layers simultaneously, which creates a "lag" as errors trickle through the network. The authors propose updating layers one-by-one, starting from the output and moving backward. This allows errors to reach the earliest layers in a single iteration ($T=1$), significantly cutting down the number of required inference steps.
- Matrix Update Equalization (MQ) Optimizer: The authors observed that in PC, weight updates in early layers are orders of magnitude smaller than in later layers, causing the network to "freeze" near its initial state. MQ uses a single scalar per layer to track and equalize update magnitudes. It provides the stability of Adam but uses roughly one-third the memory per parameter.
- Theoretical Framework: They prove that PC with static learning rates is equivalent to the Proximal Gradient Update (or Implicit SGD). Crucially, they show that this makes PC sensitive to the Hessian (the curvature of the loss landscape), allowing it to behave like a "damped" version of second-order optimization methods.
Key Insights
- PC is a Second-Order Optimizer in Disguise: The most striking insight is that PC isn't just a "bio-hack" for gradient descent. Because it minimizes an energy function (Free Energy) before updating weights, it inherently incorporates information about the loss landscape's curvature. This explains why it can take "shorter paths" to a solution than standard BP.
- The "Vanishing Update" is the Real Enemy: In PC, the magnitude of updates decays rapidly as you move away from the output. The success of Adam in previous PC research wasn't necessarily due to its per-parameter learning rates, but simply because it boosted these tiny early-layer updates. MQ proves you can fix this with much less memory.
Results
The researchers evaluated their methods on standard computer vision benchmarks: SVHN, CIFAR-10, and Tiny ImageNet. They tested these across various architectures, including Multi-Layer Perceptrons (MLPs), Convolutional Neural Networks (CNNs), and Autoencoders.
Using Sequential Inference, the authors achieved high performance with only $T=3$ to $5$ iterations, compared to the $T=15$ or more typically required by simultaneous inference. PCNs using the MQ optimizer (SeqIL-MQ) matched or slightly outperformed BP-Adam and BP-SGD across all datasets. For example, on Tiny ImageNet, SeqIL-MQ achieved a Top-1 accuracy of ~23.9%, comparable to BP's ~23.1%. In almost all tests, PC models reduced loss significantly faster than BP in the early stages of training, supporting the theory that they utilize higher-order information to find better directions for optimization.
Discussion and Limitations
While Sequential Inference is faster in terms of total operations, it is inherently less parallelizable than simultaneous updates, which could be a drawback for certain high-performance hardware implementations. Additionally, while Tiny ImageNet is a solid benchmark, the authors haven't yet tested these methods on massive architectures like Transformers. Finally, the MQ optimizer is a heuristic designed for engineering stability; more work is needed to reconcile MQ with the formal probabilistic interpretations of Predictive Coding.
Summary updated