[Paper Review] A Stable, Fast, and Fully Automatic Learning Algorithm for Predictive Coding Networks
This paper proposes incremental predictive coding (iPC), a fully automatic, stable, and fast learning algorithm for predictive coding networks that replaces the traditional two-step weight update process with a synchronized, incremental update scheme. iPC achieves superior convergence, robustness across hyperparameters, and higher test accuracy than both standard predictive coding and backpropagation on image classification and language modeling benchmarks, with theoretical convergence guarantees derived from incremental expectation-maximization.
Predictive coding networks are neuroscience-inspired models with roots in both Bayesian statistics and neuroscience. Training such models, however, is quite inefficient and unstable. In this work, we show how by simply changing the temporal scheduling of the update rule for the synaptic weights leads to an algorithm that is much more efficient and stable than the original one, and has theoretical guarantees in terms of convergence. The proposed algorithm, that we call incremental predictive coding (iPC) is also more biologically plausible than the original one, as it it fully automatic. In an extensive set of experiments, we show that iPC constantly performs better than the original formulation on a large number of benchmarks for image classification, as well as for the training of both conditional and masked language models, in terms of test accuracy, efficiency, and convergence with respect to a large set of hyperparameters.
Motivation & Objective
- To address the instability, inefficiency, and hyperparameter sensitivity of existing predictive coding (PC) training algorithms.
- To develop a biologically plausible, fully automatic learning algorithm that eliminates the need for external control signals to switch between inference and weight update phases.
- To improve training efficiency and convergence robustness across diverse hyperparameter settings in both computer vision and natural language processing tasks.
- To provide theoretical convergence guarantees for the proposed algorithm using incremental expectation-maximization (iEM) framework.
Proposed method
- The iPC algorithm synchronously updates neural activities and synaptic weights in an incremental manner, avoiding the need for a separate control signal to switch between phases.
- It reformulates the predictive coding update rule using an incremental expectation-maximization (iEM) approach, which ensures convergence to a local minimum of the variational free energy.
- The method leverages a hierarchical generative model and minimizes the variational free energy through alternating updates of neural states and synaptic weights in a single, unified update schedule.
- The algorithm uses a fixed inference learning rate of 0.5 and performs end-to-end training without requiring manual tuning of the number of inference steps per batch.
- It employs the $τ$-modification (Fisher information-based) for improved stability and performance, particularly in language model training.
- The framework is compatible with standard deep learning components such as residual connections, layer normalization (where beneficial), and optimizers like AdamW and SGD.
Experimental results
Research questions
- RQ1Can a fully automatic, biologically plausible learning algorithm be designed for predictive coding networks that eliminates the need for external control signals?
- RQ2Does synchronizing the update of neural activities and synaptic weights lead to faster convergence and improved training stability compared to standard predictive coding?
- RQ3Can the proposed incremental predictive coding (iPC) method achieve performance comparable or superior to backpropagation across diverse benchmarks, including image classification and language modeling?
- RQ4Does iPC maintain robustness and convergence across a wide range of hyperparameters, especially in terms of batch size, learning rate, and inference steps?
- RQ5What are the theoretical convergence properties of the proposed incremental update scheme in the context of variational inference and free energy minimization?
Key findings
- iPC achieved higher test accuracy than standard predictive coding (PC) on all image classification benchmarks, including CIFAR-10, CIFAR-100, and Tiny ImageNet, with consistent improvements across all hyperparameter combinations.
- On the ImageNet-1k dataset, iPC achieved a top-1 accuracy of 78.4% with ResNet-18, outperforming PC and matching the performance of backpropagation.
- In masked language modeling, iPC achieved a test loss of 93.45 (mean across 10 seeds), significantly lower than PC (934.5) and comparable to BP (83.62), with a 90% reduction in loss variance.
- For conditional language modeling, iPC achieved a test loss of 138.5 (mean), outperforming PC (206.3) and approaching BP (112.7), with a 35% improvement in mean performance.
- iPC converged in 96 out of 96 hyperparameter combinations on image classification, compared to only 26 for PC, demonstrating superior robustness to hyperparameter choices.
- Under distribution shift (e.g., corrupted CIFAR-10), iPC maintained significantly better model calibration than BP, indicating improved reliability in out-of-distribution settings.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.