Predictive Coding Networks (PCNs) are gaining significant traction in machine learning as a biologically plausible alternative to standard deep learning models. Inspired by neuroscience, PCNs approximate how the brain processes information and offer a potential pathway to perform tasks similar to backpropagation without its biological inconsistencies.
However, a major open problem has shadowed PCN research: do they actually converge? This paper provides the first mathematically rigorous analysis of convergence in PCNs, proving that while they are guaranteed to converge under specific conditions, they can also diverge or fall into stable oscillations when those conditions are violated.
The Problem: Iteration vs. Instant Computation
Unlike standard Fully-Connected Feedforward Networks (FCFNs), which compute an output in a single, instantaneous forward pass, PCNs are iterative. They use gradient-based steps to minimize "energy" (prediction error) at every layer until the network reaches an equilibrium state.
Because of this iterative nature, researchers have largely relied on the "fixed prediction assumption"—the hope that these iterations will always settle into a stable state. Until now, this assumption was supported only by numerical experiments, not formal mathematical proof. If a PCN fails to converge, it cannot provide a stable output, making it unreliable for real-world machine learning applications. This paper seeks to put PCN theory on a firm mathematical footing.
Methodology: PCNs as Dynamical Systems
To analyze convergence, the authors treat PCNs as discrete dynamical systems. They bridge the gap between the continuous-time ordinary differential equations (ODEs) often used in theoretical neuroscience and the discrete-time "Forward Euler" discretization actually used in computer implementations.
Using synthetic "toy" architectures (like a simple three-node PCN), the authors apply advanced mathematical techniques:
- Mathematical Formalization: Developing a unified notation to describe PCNs as maps in phase space.
- Stability Analysis: Using the Jacobian of the PCN map to determine the conditions under which the network's state remains stable.
- Bifurcation Theory: Specifically looking for Neimark-Sacker bifurcations—a phenomenon where a stable fixed point becomes unstable, giving rise to a "closed invariant curve" (an oscillation) around it.
Key Findings and Results
1. The "Small Weight" Safety Zone (Theorem 3.1)
The authors prove that if weights and initializations are "sufficiently small" and the step size ($\gamma$) is strictly between 0 and 1, the PCN is mathematically guaranteed to converge. Furthermore, it will converge to the exact same output that a standard feedforward network would produce. This theorem validates why many previous experimental implementations of PCNs have worked successfully in practice.
2. Discretization Errors and Gradient Systems
While continuous-time PCNs are gradient systems (meaning they naturally flow downhill to a minimum energy state), their discretized versions—what we actually run on hardware—do not inherit all of these stability properties. Discretization errors can accumulate with each time step, leading to complex, unintended behaviors.
3. The Discovery of Oscillations (Theorem 5.2)
The most surprising and significant finding is the formal proof that PCNs can fail to converge. By identifying a Neimark-Sacker bifurcation, the authors debunked the community's belief that PCNs are inherently stable.
Instead of reaching a fixed point, the node values can enter a state where they circle an unstable point forever. In this "pathological" behavior, trajectories starting near the center move away from the fixed point toward an outer ring, while trajectories starting outside move inward toward that same ring, trapping the network in an endless loop.
Limitations and Future Work
While this paper represents a massive leap forward in the theoretical understanding of PCNs, it leaves several open questions for future research:
- Architecture Complexity: The explicit counterexample of divergence was proven for a small, 3-node network. Analyzing "higher co-dimension" bifurcations in deep, complex networks is a significantly harder mathematical problem.
- The Step Size Paradox: The convergence proof requires a step size $\gamma < 1$. However, many PCN implementations that aim to exactly replicate backpropagation use a step size of exactly 1. Reconciling this discrepancy is crucial.
- Training Stage Analysis: This paper primarily focuses on the prediction (inference) stage. A full rigorous treatment of convergence during the learning process—where the weights themselves are dynamically changing alongside the node values—remains an active area of ongoing work.
Summary updated