Skip to main content
QUICK REVIEW

[Paper Review] A Theoretical Framework for Inference and Learning in Predictive Coding Networks

Beren Millidge, Yuhang Song|arXiv (Cornell University)|Jul 21, 2022
Domain Adaptation and Few-Shot LearningComputer Science8 citations
TL;DR

This paper establishes a theoretical foundation for predictive coding networks (PCNs) trained via prospective configuration, showing that their inference phase converges to a solution analytically linked to target propagation, and that their learning phase implements a constrained generalized expectation-maximization algorithm that converges to critical points of the backpropagation loss function—providing theoretical justification for PCNs' strong performance in online, few-shot, and continual learning despite not approximating backpropagation in standard regimes.

ABSTRACT

Predictive coding (PC) is an influential theory in computational neuroscience, which argues that the cortex forms unsupervised world models by implementing a hierarchical process of prediction error minimization. PC networks (PCNs) are trained in two phases. First, neural activities are updated to optimize the network's response to external stimuli. Second, synaptic weights are updated to consolidate this change in activity -- an algorithm called \emph{prospective configuration}. While previous work has shown how in various limits, PCNs can be found to approximate backpropagation (BP), recent work has demonstrated that PCNs operating in this standard regime, which does not approximate BP, nevertheless obtain competitive training and generalization performance to BP-trained networks while outperforming them on tasks such as online, few-shot, and continual learning, where brains are known to excel. Despite this promising empirical performance, little is understood theoretically about the properties and dynamics of PCNs in this regime. In this paper, we provide a comprehensive theoretical analysis of the properties of PCNs trained with prospective configuration. We first derive analytical results concerning the inference equilibrium for PCNs and a previously unknown close connection relationship to target propagation (TP). Secondly, we provide a theoretical analysis of learning in PCNs as a variant of generalized expectation-maximization and use that to prove the convergence of PCNs to critical points of the BP loss function, thus showing that deep PCNs can, in theory, achieve the same generalization performance as BP, while maintaining their unique advantages.

Motivation & Objective

  • To theoretically understand the inference and learning dynamics of predictive coding networks (PCNs) trained with prospective configuration, which do not approximate backpropagation in standard settings.
  • To establish a formal connection between PCN inference and target propagation (TP), showing that the inference equilibrium is a weighted average of feedforward activations and TP targets.
  • To interpret PCN learning as a variant of generalized expectation-maximization (EM) with a constrained expectation step, offering a principled theoretical basis for its training dynamics.
  • To prove that PCNs converge to critical points of the standard backpropagation loss function, thereby justifying their strong generalization performance despite non-BP training dynamics.
  • To provide a Bayesian interpretation of the residual error term in PCNs as a Gaussian prior on activity deviations, enabling principled generalizations via alternative priors.

Proposed method

  • Derive analytical expressions for the inference equilibrium in linear PCNs, showing it results from a balance between feedforward activations and target propagation targets, controlled by the ratio of feedback to feedforward precision.
  • Extend the analysis to nonlinear PCNs using fixed-point iteration, demonstrating that the same equilibrium intuition holds even without closed-form solutions.
  • Reframe the learning phase as a constrained generalized expectation-maximization (EM) algorithm, where the E-step is restricted by the predictive coding inference process.
  • Prove convergence of the PCN learning algorithm to critical points of the standard backpropagation loss function, using the EM interpretation and the structure of the inference objective.
  • Interpret the residual error term in the predictive coding objective as a Bayesian prior on neural activities, specifically a Gaussian prior centered on lower-layer predictions.
  • Suggest generalizations of PCNs by replacing the Gaussian prior with data-specific priors (e.g., log-normal) to improve inductive bias and efficiency for structured data distributions.

Experimental results

Research questions

  • RQ1How does the inference equilibrium in predictive coding networks relate to target propagation (TP) in linear architectures?
  • RQ2What is the theoretical basis for the learning dynamics in PCNs trained with prospective configuration, and how do they compare to backpropagation?
  • RQ3Can the PCN learning process be formally interpreted as a variant of generalized expectation-maximization (EM), and if so, what are its convergence properties?
  • RQ4What is the role of the residual error term in the predictive coding objective, and how can it be interpreted in a Bayesian framework?
  • RQ5Can the theoretical framework be extended to support alternative prior distributions beyond the current Gaussian assumption to improve inductive bias for specific data types?

Key findings

  • The inference equilibrium in linear PCNs is mathematically equivalent to a weighted average of feedforward activations and target propagation targets, with the weighting determined by the ratio of feedback to feedforward precision.
  • In nonlinear PCNs, the inference equilibrium retains the same intuitive structure as in the linear case, even though no closed-form solution exists, as confirmed by fixed-point iteration simulations.
  • The learning phase of PCNs with prospective configuration can be formally interpreted as a constrained generalized expectation-maximization (EM) algorithm, which ensures convergence to critical points of the backpropagation loss function.
  • The residual error term in the predictive coding objective corresponds to a Gaussian prior on neural activity deviations from lower-layer predictions, providing a principled Bayesian interpretation.
  • The theoretical framework supports generalizations of PCNs by replacing the current Gaussian prior with data-specific priors—such as log-normal or power-law distributions—potentially improving inductive bias and inference efficiency for structured data.
  • Empirical results on MNIST and Fashion-MNIST show that PCNs trained with prospective configuration achieve performance comparable to backpropagation, with superior performance in online, few-shot, and continual learning scenarios, consistent with the theoretical convergence to BP loss critical points.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.