Understanding Predictive Coding as an Adaptive Trust-Region Method

Francesco Innocenti, Ryan Singh, Christopher L. BuckleyarXiv 2023 · DOI

Introduction

Predictive Coding (PC) has long been a cornerstone of theoretical neuroscience, often framed as a biologically plausible alternative to Backpropagation (BP). Traditionally, PC is viewed as a computationally expensive approximation of BP, requiring multiple inference iterations before updating weights. However, this paper challenges that perspective, demonstrating that PC is not merely an approximation but a more sophisticated optimizer: an adaptive trust-region method. By leveraging second-order information, PC can navigate complex loss landscapes and escape saddle points far more efficiently than standard gradient descent.

Theoretical Framework: PC as a Trust-Region Optimizer

The core contribution of this research is bridging the gap between neuroscience-inspired algorithms and classical optimization theory. The authors perform a second-order Taylor expansion of the PC "free energy" function, revealing that the inference stage is mathematically equivalent to solving a Trust-Region (TR) problem.

Unlike standard Stochastic Gradient Descent (SGD), which takes steps in the direction of the steepest descent, PC shapes its "trust region" based on the Fisher Information of the generative model. This allows the network to account for the local curvature of the loss landscape. Effectively, the PC weight update interpolates between the standard BP gradient and a second-order "Newton-like" direction, depending on the strength of the model's internal predictions. This "prospective configuration" allows neurons to "pre-view" a better part of the landscape before weights are ever adjusted.

Standard BP often struggles with "saddle points"—flat regions where the gradient is zero but the loss is not at a minimum. These plateaus are particularly problematic in deep networks with symmetries (e.g., Tanh or Linear activations).

Comparison of BP and PC optimization landscapes.

As shown in the visualization above, PC modifies the geometry of the optimization task. By sensing the curvature, PC makes saddle points more "unstable," repelling the trajectory from these plateaus more strongly than BP. The authors provide formal mathematical proofs using 1-hidden-layer MLPs to show that the maximum eigenvalue of the PC energy landscape is smaller than that of the BP loss, confirming that PC operates within a more favorable geometry for rapid optimization.

Empirical Validation

The theoretical advantages of PC were tested across several controlled environments, including synthetic "Deep Chains" and wider linear networks trained on MNIST.

Convergence rates for PC vs BP in deep linear networks.

In deep linear chains (depth $L=5, 10$), PC demonstrated a significant speed advantage. While BP frequently encountered long training plateaus, PC's trust-region behavior allowed it to converge in fewer iterations. This effect was also observed in wider linear networks on MNIST. Interestingly, the advantage disappeared in ReLU networks, as ReLU's non-invertibility breaks the specific symmetries that create the saddle points PC is designed to escape.

Conclusion and Future Directions

By reframing Predictive Coding as an adaptive trust-region method, this work provides a rigorous explanation for its efficiency in deep architectures. While the computational cost of the inference phase remains a challenge, the ability to escape saddle points and the resulting robustness to weight perturbations suggest that PC-like mechanisms may be vital for both biological learning and specialized "noisy" hardware. Future work will look to extend these proofs to modern architectures like Transformers and explore how biological neurons might physically implement this second-order information.

Summary updated

BibTeX
@misc{innocenti2023understanding,
  author = {Francesco Innocenti and Ryan Singh and Christopher L. Buckley},
  title = {{Understanding Predictive Coding as an Adaptive Trust-Region Method}},
  year = {2023},
  eprint = {2305.18188},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.18188},
}
Figure