TL;DR
Predictive coding (PC) offers a biologically plausible, energy-based alternative to backpropagation (BP), but its slow iterative inference phase has limited its practical utility. This paper introduces incremental predictive coding (iPC), an approach grounded in incremental Expectation-Maximization that performs inference and synaptic weight updates simultaneously in parallel without external synchronization signals. The result is an autonomous learning algorithm with $O(1)$ parallel time complexity per update across layers, achieving classification accuracy and calibration comparable to or exceeding standard backpropagation.
What Problem Does This Paper Address?
While backpropagation drives modern deep learning, it suffers from notable biological implausibilities: it requires sequential forward and backward sweeps (locking layer updates until subsequent computations finish) and relies on global coordination signals. Neuroscience-inspired alternatives like standard predictive coding (PC) resolve these issues by formulating learning as minimizing local prediction errors across hierarchical layers.
However, classic PC uses an alternating Expectation-Maximization (EM) cycle:
- E-step (Inference): Holds weights fixed while iteratively relaxing latent neural activities until convergence (taking dozens of steps $T$).
- M-step (Learning): Freezes activities to compute weight updates.
This alternating structure makes standard PC significantly slower than BP and still dependent on a global orchestrator to decide when inference has converged before triggering parameter updates.
Methods
The authors reframe PC through incremental Expectation-Maximization (iEM):
- Simultaneous Updates: Instead of running the E-step to convergence before running the M-step, iPC updates neural activity states $x^{(l)}$ and network weights $\theta^{(l)}$ concurrently at every discrete time step $t$ via local gradient descent on the variational free energy: $$\Delta x^{(l)} = \gamma \left( -\varepsilon^{(l)} + f'(x^{(l)}) * (\theta^{(l-1)})^T \varepsilon^{(l-1)} \right)$$ $$\Delta \theta^{(l)} = \alpha \, x^{(l+1)} (\varepsilon^{(l)})^T$$
- Fully Autonomous & Parallel Execution: Because updates at every layer depend only on locally available values and prediction errors $\varepsilon^{(l)} = x^{(l)} - \mu^{(l)}$, all layers update in parallel without waiting for sequential forward or backward sweeps.
- Parallel Complexity Metric: The authors define the metric Simultaneous Matrix Multiplications (SMMs)—the count of non-parallelizable matrix products per parameter update. In a network with $L$ layers:
- Standard BP requires sequential passes: $2L - 1$ SMMs (Time complexity: $O(L)$).
- iPC executes every layer simultaneously: 2 SMMs (Time complexity: $O(1)$ on an idealized parallel architecture).
Datasets
The authors evaluated iPC across several standard vision benchmarks (no newly introduced datasets):
- Generative Tasks: CIFAR-10, Tiny ImageNet (subsets).
- Classification Tasks: MNIST, FashionMNIST, SVHN (Street View House Numbers), and CIFAR-10.
- Robustness/Distribution Shift: CIFAR-10 subjected to 6 distinct corruptions (rotation, Gaussian blur, Gaussian noise, hue, brightness, contrast) across 5 intensity levels.
Key Insights and Ideas
- Continuous Shift in Credit Assignment: Standard PC waits until the end of inference to update weights, whereas BP-equivalent variants (like Z-IL) must carefully time updates across layers ($t = l$). iPC continuously updates parameters at every step $t$, bridging the gap between exact gradient matching and biologically plausible local dynamics.
- Removing Layer-to-Layer Latency: Standard BP cannot compute layer $l$'s gradient until errors from layer $l+1$ propagate back. In iPC, errors persist in internal state variables, meaning layers update continuously and concurrently.
- Better Uncertainty Calibration: Because iPC is rooted in energy-based generative formulation, it maintains significantly better predictive calibration under covariate shift (measured via Adaptive Expected Calibration Error, AdaECE) compared to overconfident BP networks.
Key Results
- Theoretical & Empirical Speed:
- Theoretically achieves $O(1)$ parallel time complexity per update vs. $O(L)$ for BP.
- On a multi-threaded CPU implementation, iPC was up to $10\times$ faster than BP for large, deep networks (32 layers, hidden width 1024).
- Classification Accuracy:
- Outperformed BP and PC on mid-sized CNNs:
- SVHN: 96.45% (iPC) vs. 95.35% (BP) and 94.53% (PC).
- CIFAR-10: 72.54% (iPC) vs. 69.34% (BP) and 70.84% (PC).
- AlexNet on CIFAR-10: 72.42% (iPC) vs. 75.64% (BP) and 64.63% (PC).
- Parameter Efficiency & Calibration:
- iPC achieved higher peak accuracy at narrower network widths compared to BP, although its performance plateaued sooner when drastically overparameterized.
- On in-distribution data, iPC produced an average calibration error of 0.05 compared to 0.12 for BP. Under level-3 data corruption, iPC retained better calibration than unshifted BP.
Limitations and Future Work
- Standard Deep Learning Framework Constraints: Current GPU frameworks (e.g., PyTorch) execute layer-by-layer kernels sequentially. Taking practical advantage of iPC's $O(1)$ layer parallelism requires custom neuromorphic, analog, or distributed hardware architectures.
- Overparameterization Sensitivity: While iPC excels at smaller network widths, accuracy slightly degrades under extreme overparameterization—unlike BP, which generalizes reliably with vast overparameterization.
- Mini-Batch Scaling: Full-batch training yields the highest efficiency gain; in multi-batch training, error states must be reset per batch, diminishing parallel speed advantages.
- Future Directions: Incorporating adaptive precision weightings or exploring dynamical EM formulations to automatically tune layer updates.
Summary updated