Introduction
Predictive Coding (PC) has emerged as a prominent framework in the "bio-plausible" AI community. Unlike standard backpropagation, which requires a global backward pass, PC treats neural training as a physical system that minimizes internal energy through local interactions. This decentralized nature makes PC theoretically ideal for future neuromorphic hardware. However, implementing PC on current digital hardware reveals significant scaling challenges that have historically limited its application to shallow networks.
The Problem: Exponential Signal Decay
The primary obstacle for PC on digital systems is a "hardware-algorithm mismatch." In digital simulations, continuous time is discretized into update steps. Consequently, the teaching signal from the output layer must propagate through the network layer by layer. Because each "hop" attenuates the signal by the learning rate (typically $<1$ for stability), the signal decays exponentially with depth. In deep architectures, this signal often vanishes below numerical precision before reaching early layers, leading to a failure in depth scaling.
Methodology: Error-based Predictive Coding (ePC)
To address this, we introduce error-based Predictive Coding (ePC). While standard state-based PC (sPC) optimizes neural activations ($s$) directly through local updates, ePC reparameterizes the network to optimize prediction errors ($\epsilon$).
By restructuring the computational graph, ePC enables the use of backpropagation as a tool to distribute error signals globally and instantaneously across all layers. Crucially, ePC is mathematically equivalent to sPC at equilibrium; it does not change the model's objective, only the optimization path. This transformation allows ePC to act as a high-speed "digital twin" for studying PC dynamics without the computational burden of local simulation.
Experimental Results
The efficacy of ePC was evaluated across standard computer vision benchmarks, including MNIST, CIFAR-10, and CIFAR-100, using architectures ranging from simple MLPs to ResNet-18.
Signal Propagation and Convergence
The shift to error-based optimization resolves the signal decay problem. In a 20-layer linear network, ePC demonstrated a 100x speedup in convergence over sPC. For non-linear models with complex inputs, this speedup reached up to 10,000x.
Performance Benchmarks
ePC successfully closed the performance gap between PC and backpropagation. On a ResNet-18 architecture trained on CIFAR-10—a task where standard sPC is notoriously unstable—ePC achieved 92.17% accuracy, nearly matching the 92.36% achieved by backpropagation. This demonstrates that PC can indeed scale to deep architectures when the propagation bottleneck is removed.
Conclusion
Error-based Predictive Coding (ePC) provides a robust solution to the depth scaling failure of traditional PC in digital environments. By leveraging global signal propagation, ePC allows researchers to train deep PC networks with the efficiency of backpropagation while maintaining the theoretical properties of the PC framework. While ePC itself sacrifices biological plausibility for digital speed, it serves as a vital tool for exploring the potential of PC in domains like online and continual learning, where its unique dynamics may offer advantages over standard gradient descent.
Summary updated