Analog-Friendly Predictive Coding without Activation Derivatives
Organizations: Brain Network Dynamics Unit University of Oxford, UK
Abstract
Predictive coding (PC) is a local, energy-based alternative to backpropagation (BP) whose iterative inference dynamics make it attractive for implementation on analog hardware. However, standard nonlinear PC requires evaluating the derivative of the activation function during both inference and learning, which can be difficult to realise physically. Here, we introduce \textit{activation-matched Bregman PC}, replacing standard squared-error energies with Bregman divergences matched to the activation function. This formulation eliminates activation derivatives and, when combined with inference via mirror descent, yields local inference and learning rules requiring only weighted sums, local prediction errors, state integration, and the activation function. In digital experiments, Bregman PC performs comparably to standard PC and BP on classification and generative tasks, while preserving characteristic learning dynamics of PC and its convergence to BP under stable large-model parameterisations. These results provide a more analog-friendly formulation of nonlinear PC while retaining its key computational properties.
Figures & tables
| Symbol | Name | Description |
|---|---|---|
| Activity / primal state | State of layer . The input and output activities are clamped to and , respectively, while hidden activities are inferred. | |
| Dual state | Dual coordinate of the activity, , equivalently . | |
| Preactivation | Bottom-up linear input to layer , . At feedforward initialisation, . | |
| Predicted activity | Bottom-up prediction of the activity at layer , . | |
| Activation function | Map applied elementwise. | |
| Scalar Bregman potential | Strictly convex scalar function matched to the activation through . |
| Classification accuracy (%) | Reconstruction MSE | |||
|---|---|---|---|---|
| Algorithm | MNIST | Fashion-MNIST | MNIST | Fashion-MNIST |
| BP | ||||
| Standard PC | ||||
| Bregman PC | ||||
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.