Introduction
Backpropagation (BP) is the engine of modern deep learning, enabling the training of massive neural networks by efficiently computing gradients. Despite its success, BP faces significant criticism from the neuroscience community regarding its biological plausibility. Specifically, BP requires non-local computations—where a neuron needs information from distant parts of the network to update its synapses—and symmetric weight updates, mechanisms not observed in biological brains.
Predictive Coding (PC) offers a compelling alternative. Rooted in the theory that the brain constantly generates and updates a mental model of sensory input, PC relies on strictly local computations and local plasticity. While recent work showed that a specific PC algorithm, Zero-divergence Inference Learning (Z-IL), could replicate BP in simple Multilayer Perceptrons (MLPs), it failed to generalize to complex modern architectures like ResNets and Transformers. This paper addresses this gap, providing a generalized framework for exact reverse differentiation on any computational graph.
The Challenge of Asynchronous Error Propagation
The failure of Z-IL on complex architectures stems from the structure of the computational graphs themselves. In networks with skip connections or multiple branches, such as ResNets, error signals travel through paths of varying lengths.
In standard Z-IL, weight updates are triggered by local errors. However, in a branched graph, error signals from the output reach a specific node at different time steps depending on the path taken. This "asynchronous error propagation" leads to temporal misalignment, preventing the local PC updates from matching the global BP gradient.
Synchronizing the Graph: Levelled Computational Graphs
To resolve this misalignment, the authors introduce the concept of Levelled Computational Graphs. The core idea is to synchronize the arrival of error signals by ensuring all paths from the output to any given node have the same length.
This is achieved through a novel graph transformation:
- Identity Padding: The algorithm identifies shorter paths in the Directed Acyclic Graph (DAG) and inserts "identity vertices"—nodes that simply pass data forward without modification.
- Temporal Alignment: This padding ensures that error signals propagate backward in perfect synchronization, reaching every node at a specific, unified time step.
- Generalized Z-IL: The authors define a refined Z-IL algorithm that operates on these levelled graphs, updating weights only at the precise time step corresponding to their level in the synchronized graph.
By framing the problem as one of timing rather than mathematical incompatibility, the authors demonstrate that local, biologically plausible rules can indeed replicate global optimization.
Empirical Results and Efficiency
The authors mathematically prove and empirically verify that the divergence between BP weight updates and generalized Z-IL updates is exactly zero across a wide range of architectures, including CNNs (AlexNet), RNNs, ResNets, and Transformers.
Beyond theoretical equivalence, the method is computationally efficient. Traditional Predictive Coding (Inference Learning) is often slow, requiring hundreds of iterations to converge. In contrast, Z-IL achieves BP equivalence in a single synchronized sweep. Benchmarks on a ResNet18 show that Z-IL (12.53 ms) is nearly as fast as standard BP (12.43 ms), while being orders of magnitude faster than standard IL (1452.34 ms).
Conclusion
This work bridges a significant gap between artificial intelligence and neuroscience. By proving that even the most complex AI architectures can be trained using biologically plausible local rules, the authors suggest that deep learning models may be more relevant to understanding neurobiology than previously thought. While the existence of "identity nodes" or perfect synchronization in the brain remains a hypothesis for future study, this research provides a robust mathematical foundation for the biological plausibility of the most powerful algorithms in AI.
Summary updated