Introduction
This paper introduces PC graphs, a framework that uses Predictive Coding (PC) to train neural networks on arbitrary graph topologies—including those with cycles and backward connections that break standard backpropagation. By minimizing local prediction errors rather than a global objective, a single PC graph can perform classification, image generation, denoising, and associative memory tasks simultaneously without needing to be retrained.
The Problem: Standard Deep Learning vs. Biological Reality
Standard deep learning relies heavily on backpropagation (BP), which requires information to flow through an acyclic computational graph. If a cycle is introduced—where a neuron’s output eventually feeds back into its own input—BP gets stuck in an infinite loop.
However, the human brain—the ultimate inspiration for AI—is "heterarchical," filled with complex feedback loops and recurrent connections that are likely fundamental to how we process information. To build more brain-like AI, we need a way to train networks that aren't restricted to rigid, feedforward structures. The authors tackle this by moving away from the "forward-backward" pass of BP in favor of a biologically plausible mechanism called Predictive Coding.
Methods: Predictive Coding on Graphs
The authors propose PC graphs, where every vertex in a directed graph is a "value node" that tries to predict its own state based on the states of its neighbors.
- Local Error Minimization: Each node calculates a local error—the difference between its current value and the prediction it receives. The network's goal is to minimize a total "energy" function, which is simply the sum of all these local squared errors.
- Two-Phase Learning:
- Inference: Weights are fixed, and node values are updated via gradient descent to minimize the local errors.
- Weight Update: Once the node values settle (converge), the synaptic weights are updated using only local information (the values of the two nodes the synapse connects).
- Flexible Querying: Because the network is just trying to reach a state of low "energy," you can interact with it in two novel ways:
- Query by Conditioning: You "clamp" certain nodes (like the top half of an image) to fixed values and let the rest of the network infer the missing pieces.
- Query by Initialization: You start nodes at specific values (like a noisy image) and let the network's natural dynamics "clean" the data as it moves toward a low-energy state.
Key Insights and Capabilities
- One Model, Many Identities: Unlike a standard CNN that is hard-coded to output a label given an image, a PC graph is a generative world model. The same weights can be used to classify an image, generate a new image from a label, or "hallucinate" the bottom half of a partial picture.
- Breaking the Acyclic Barrier: Because PC relies on iterative local updates rather than a single sequential chain of derivatives, it handles cycles naturally. The network simply iterates until it reaches a consensus state.
- Topology as a Hyperparameter: The authors show that while PC can train on a "fully connected" mess of neurons, performance improves when you impose specific structures (like hierarchies). This allows researchers to study how different brain-like architectures influence learning efficiency.
- Localism is Key: Every update in a PC graph happens using information physically available at that "synapse." This makes the model highly parallelizable and a prime candidate for future neuromorphic hardware.
Experimental Results
The researchers evaluated PC graphs using several standard computer vision benchmarks, including MNIST, FashionMNIST, SVHN, and CIFAR10.
- Superiority over Baselines: On fully connected graphs, PC graphs significantly outperformed other biologically inspired learning rules like Hopfield Networks, Boltzmann Machines, and the Almeida-Pineda algorithm. For example, on MNIST, PC reached 91.76% accuracy, while the next best baseline (Boltzmann Machine) reached only 79.23%.
- Generative Quality: The models successfully performed "conditioned reconstruction," where providing a label (e.g., the number "7") helped the network correctly resolve ambiguities in a partial image that could have been either a 7 or a 9.
- Associative Memory: PC graphs proved to be robust associative memories, able to retrieve high-resolution colored images from CIFAR10 even when presented with heavily corrupted or partial versions of the original data.
Limitations and Future Work
The primary limitation is computational cost. Because PC requires an iterative "inference" phase (multiple steps of updating node values) before every weight update, it is currently much slower to train on standard GPUs than feedforward networks using BP.
The authors also note that while PC graphs beat other "biologically plausible" methods, they still lag behind state-of-the-art (SOTA) deep learning models specifically engineered for classification. Future work will likely focus on scaling these graphs to much larger datasets and exploring their implementation on analog or neuromorphic chips, where the local update rules could provide massive energy efficiency gains.
Summary updated