Faster Predictive Coding Networks via Better Initialization
Luca Pinchetti, Simon Frieder, Thomas Lukasiewicz, Tommaso Salvatori
TL;DR
This work tackles the computational bottleneck of predictive coding networks (PCNs) by focusing on neuron initialization to reduce iterative inference. It introduces two complementary strategies: stream-aligned average initialization (I$_{\text{avg}}$) to stabilize hidden states during classification and memory-based initialization (I$_{\text{mem}}$) using Hopfield networks for unsupervised tasks, plus a hybrid approach combining forward initialization for early layers with average initialization for deeper layers. Empirically, I$_{\text{avg}}$ delivers faster convergence and higher accuracy across multiple supervised benchmarks, approaching or even surpassing backpropagation in some configurations, while I$_{\text{mem}}$ yields superior performance and stability in unsupervised generation. Overall, the results demonstrate substantial reductions in sequential matrix multiplications (SMMs) and training time, suggesting a viable path for making neuro-inspired energy-based learning competitive with conventional deep learning on GPUs.
Abstract
Research aimed at scaling up neuroscience inspired learning algorithms for neural networks is accelerating. Recently, a key research area has been the study of energy-based learning algorithms such as predictive coding, due to their versatility and mathematical grounding. However, the applicability of such methods is held back by the large computational requirements caused by their iterative nature. In this work, we address this problem by showing that the choice of initialization of the neurons in a predictive coding network matters significantly and can notably reduce the required training times. Consequently, we propose a new initialization technique for predictive coding networks that aims to preserve the iterative progress made on previous training samples. Our approach suggests a promising path toward reconciling the disparities between predictive coding and backpropagation in terms of computational efficiency and final performance. In fact, our experiments demonstrate substantial improvements in convergence speed and final test loss in both supervised and unsupervised settings.
