NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Faster Predictive Coding Networks via Better Initialization

Luca Pinchetti, Simon Frieder, Thomas Lukasiewicz, Tommaso SalvatoriarXiv 2026

TL;DR

Predictive Coding Networks (PCNs) offer a biologically plausible, locally parallel alternative to backpropagation, but their iterative nature makes them computationally expensive to train. This paper introduces two novel neuron initialization techniques—stream-aligned average initialization for supervised tasks and Hopfield-memory-based initialization for unsupervised tasks—that preserve optimization progress across training steps. These methods drastically reduce the required number of inference iterations, boosting training speed by up to 5x while simultaneously improving final accuracy.

What Problem Does This Paper Address?

While deep learning has achieved human-level performance across numerous tasks, standard backpropagation (BP) relies on global weight updates and sequential backward passes. This makes it poorly suited for emerging neuromorphic and analog hardware, which demand parallel, localized operations.

Predictive Coding (PC) is a promising alternative inspired by neuroscience. In a PC network, layers independently minimize an internal "energy" function (the prediction error) during an iterative inference phase, followed by a local learning phase to update weights.

However, PCNs face a massive efficiency bottleneck: the inference phase must run for multiple iterative steps ($T$) per weight update to allow error signals to propagate through the network. On modern GPU hardware, this iterative requirement makes PC significantly slower than BP. Current initialization methods either fail to converge at low values of $T$ or fail to generalize to complex, cyclic, or generative network architectures.

Methods

The authors propose that "resetting" neurons at the start of every new minibatch discards valuable historical convergence information. Since model weights change only slightly after a single gradient update, the hidden states from the previous batch serve as an excellent starting point for the next—provided the data samples are sufficiently similar.

To exploit this, the paper introduces two novel initialization strategies:

  1. Stream-Aligned Average Initialization ($I_{avg}$) for supervised learning: Instead of randomly shuffling minibatches, samples are grouped ("aligned") by their class labels. The network computes a class-wise average of the converged hidden neuron states from the previous minibatch and uses it to initialize the neurons for the incoming batch. This drastically reduces data variance and spreads energy efficiently across the network.
  2. Memory-Based Initialization ($I_{mem}$) for unsupervised/generative learning: Because unsupervised tasks lack classification labels, the authors enhance PC layers with continuous Hopfield Networks (external associative memories). This memory architecture stores historical hidden states and retrieves an optimized initialization state based on the current input observation.
Figure 3: Comparison between batch training and stream aligned training on a classification task. Different colors represent different classes. (Left) Batch training: samples are randomly shuffled within a batch; consequently the hidden state of the network after T steps cannot be preserved, as new samples may belong to different classes, which would result in high error values in the first and last layers. (Right) Stream-aligned training: the hidden state is always associated with elements of the same class, reducing the data distribution variance and, consequently, the error. Furthermore, by taking class-wise averages of the hidden neurons, we further spread the energy through the network, as highlighted by the red-shaded lines (saturation represents error).

Datasets

The proposed methods were evaluated on standard image classification and generation benchmarks:

  • MNIST (Handwritten digits)
  • FashionMNIST (Clothing items)
  • KMNIST (Kuzushiji kanji)
  • CIFAR10 (Complex natural images, evaluated using an AlexNet architecture)

Key Insights and Ideas

  • Initialization is a Hidden Bottleneck: The choice of how hidden neurons are initialized at $t=0$ dictates how many inference steps $T$ are needed. Better initialization directly translates to fewer sequential matrix multiplications (SMMs).
  • Don't Reset, Reuse: Standard forward initialization ($I_{fw}$) acts like a standard feedforward pass, concentrating all error at the final layer. By reusing and averaging historical states ($I_{avg}$), the network starts the inference phase with error already distributed across all layers, accelerating convergence.
  • Associative Memory Bridges the Unsupervised Gap: Continuous Hopfield networks can effectively approximate the conditional distribution of hidden states given an input, allowing generative, decoder-only PC architectures to bypass the limitations of forward-pass initializations.

Key Results

  • Speed and Efficiency: Under supervised settings, PC-$I_{avg}$ achieved up to a 5x speedup in terms of sequential matrix multiplications compared to standard PC networks. It consistently maintained high performance even when the number of inference steps was reduced below the number of network layers ($T < L$).
  • Accuracy Boost: On the challenging CIFAR10 dataset using AlexNet, PC-$I_{avg}$ scored 75.41% accuracy, outperforming the standard forward-initialized PC baseline ($I_{fw}$) by nearly 10% and closely matching backpropagation (75.82%). On MNIST, FashionMNIST, and KMNIST, PC-$I_{avg}$ actually outperformed backpropagation.
Impact of inference steps T on accuracy; the proposed method trains robustly even at low T values.
  • Generative Quality: For unsupervised image reconstruction on FashionMNIST, the memory-based PC-$I_{mem}$ produced high-quality, clear images at a fraction of the computational cost ($T=3$), whereas standard initializations required $T=20$ to achieve comparable clarity.

Limitations and Future Work

Despite bridging the algorithmic efficiency gap, the authors note a hardware-level limitation: current deep learning libraries and GPU architectures are optimized for the global operations of backpropagation. They do not yet offer efficient parallelization for the independent, localized computational graphs inherent to Predictive Coding, meaning practical execution times on current GPUs still scale quadratically with network depth.

Future directions include extending these stream-aligned and memory-based initialization frameworks to other energy-based learning paradigms (like equilibrium propagation) and scaling them to more complex architectures, such as Graph Neural Networks and Transformers.

Summary updated

BibTeX
@misc{pinchetti2026faster,
  author = {Luca Pinchetti and Simon Frieder and Thomas Lukasiewicz and Tommaso Salvatori},
  title = {{Faster Predictive Coding Networks via Better Initialization}},
  year = {2026},
  eprint = {2601.20895},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.20895},
}
Figure