Abstract
Predictive coding (PC) is a biologically inspired algorithm for training neural networks that relies only on local updates, allowing parallel learning across layers. However, practical implementations face two key limitations: error signals must still propagate from the output to early layers through multiple inference-phase steps, and feedback decays exponentially during this process, leading to vanishing updates in early layers. We propose direct Kolen-Pollack predictive coding (DKP-PC), which simultaneously addresses both feedback delay and exponential decay, yielding a more efficient and scalable variant of PC while preserving update locality. Leveraging direct feedback alignment and direct Kolen-Pollack algorithms, DKP-PC introduces learnable feedback connections from the output layer to all hidden layers, establishing a direct pathway for error transmission. This yields an algorithm that reduces the theoretical error propagation time complexity from $O(L)$, with $L$ being the network depth, to $O(1)$, removing depth-dependent delay in error signals. Moreover, empirical results demonstrate that DKP-PC achieves performance at least comparable to, and often exceeding, that of standard PC, while offering improved latency and computational performance, supporting its potential for custom hardware-efficient implementations.
Introduction: The Biological Plausibility vs. Performance Trade-off
Modern deep learning is powered by Backpropagation (BP), an algorithm that calculates gradients by traversing the network in reverse. While highly effective, BP is often criticized for its biological implausibility. It suffers from update locking, where layers must wait for a full forward and backward pass before they can update their weights, and non-locality, as neurons require precise information from distant parts of the network. These constraints make BP difficult to implement on massively parallel, low-power neuromorphic hardware.
The Bottlenecks of Predictive Coding
Predictive Coding (PC) emerged as a promising local, parallel alternative. In a PC network, each layer attempts to predict the activity of the next, and learning is driven by minimizing local prediction errors. This allows for simultaneous updates across layers. However, PC has two "Achilles' heels":
- Feedback Delay: Error signals originate at the output and must propagate backward layer-by-layer during an iterative "inference phase." In a deep network with $L$ layers, it takes $O(L)$ steps for the first layer to receive a meaningful error signal.
- Feedback Decay: As these signals travel backward, they tend to vanish exponentially, leaving early layers with ineffective updates.
Methodology: Direct Kolen-Pollack Predictive Coding (DKP-PC)
To overcome these limitations, we propose Direct Kolen-Pollack Predictive Coding (DKP-PC). This method integrates Direct Feedback Alignment (DFA) and the Direct Kolen-Pollack (DKP) algorithm into the predictive coding framework.
The fundamental innovation is the addition of learnable direct feedback connections ($\\Psi$) that link the output layer directly to every hidden layer. This architectural shift transforms error propagation from a sequential $O(L)$ process into a direct $O(1)$ process, effectively removing the "speed limit" imposed by network depth.
The DKP-PC Training Cycle
DKP-PC operates through a refined cycle that preserves locality while accelerating convergence:
- Direct Update: Before the main inference phase, the network uses the direct feedback connections to give the forward weights an initial "nudge" based on the output error.
- Parallel Inference: Because every layer now has an immediate error signal, the inference phase can happen in parallel. Empirical evidence shows that just one inference step is often sufficient for DKP-PC, whereas standard PC requires many.
- Local Learning: Both forward and feedback weights are updated using only locally available information, maintaining the biological plausibility that makes PC attractive.
Key Results and Insights
DKP-PC was stress-tested across various benchmarks, including MNIST, CIFAR-10/100, and Tiny ImageNet, using both MLP and VGG architectures.
- Superior Accuracy: On the challenging Tiny ImageNet dataset, DKP-PC achieved 35.04% top-1 accuracy, significantly outperforming standard PC (21.78%) and other recent variants like iPC (26.34%).
- Massive Speedups: In VGG-style networks, DKP-PC reduced training time by over 60% compared to standard PC.
- Computational Efficiency: As networks grow deeper, DKP-PC requires nearly an order of magnitude fewer Floating Point Operations (FLOPs) than standard PC because it converges with far fewer inference steps.
- Gradient Alignment: A key theoretical finding is that DKP-PC achieves much higher "gradient alignment" with Backpropagation than previous local learning methods. The learnable feedback matrices converge toward the Moore-Penrose pseudoinverse of the forward weights, ensuring the weight updates are mathematically near-optimal.
Conclusion and Future Work
DKP-PC successfully addresses the primary scaling issues of predictive coding, offering a high-performance, biologically inspired alternative to backpropagation. By reducing error propagation complexity to $O(1)$, it enables faster training and better scalability for deep architectures.
Future research will focus on addressing current software bottlenecks through custom CUDA kernels to fully realize hardware speed gains. Additionally, exploring sparse or quantized feedback connections could further reduce the memory overhead associated with direct connections, making DKP-PC even more suitable for edge computing and specialized neuromorphic chips.
Summary updated