While the Rectified Linear Unit (ReLU) activation function is the undisputed heavyweight champion of traditional deep learning, it turns out to be a surprisingly poor choice for Predictive Coding Networks (PCNs). Recent research demonstrates that ReLU creates "dead zones" in the energy landscape of PCNs, preventing them from converging to optimal solutions and causing a significant performance gap compared to standard backpropagation.
The Problem with Porting ReLU to Predictive Coding
Predictive Coding (PC) is a biologically inspired framework for learning that offers an alternative to the standard backpropagation algorithm. In a PCN, every layer attempts to predict the activity of the layer below it, and learning occurs by minimizing the "prediction error" (or energy) across the network.
Most researchers in this field have ported over standard tools from classic machine learning—like ReLU—assuming they would be equally effective. However, while we understand how PCNs behave during inference (making a prediction), the dynamics of the training stage under different activation functions remain less explored. This paper investigates whether the "ReLU-is-best" intuition holds up in the predictive coding paradigm.
Theoretical Analysis and The "Line of Zeros" Trap
To understand the mechanics at play, the authors analyzed a simple three-node toy network to compare the "critical points" (where the gradient is zero) of the Predictive Coding energy function versus the standard Empirical Risk Minimization (ERM) used in classic deep learning.
The core issue with ReLU in a PCN context is its flat region for negative inputs. This creates a "line of zeros" in the energy landscape. If the network's weights fall into this region during training, the network essentially "dies" and cannot find the true energy minimum.
The authors prove mathematically that for ReLU, the points where a PCN stabilizes are not the same as the points that minimize standard error in classic machine learning. In contrast, activation functions that lack a hard "flat" region at zero—like GELU, tanh, or Leaky ReLU—provide a smoother energy landscape that allows the PCN to converge reliably.
Empirical Results: The Performance Gap
Moving beyond toy models, the authors evaluated full-scale architectures (including a 3-layer MLP and AlexNet) using Inference Learning (IL), a specific flavor of predictive coding, on standard computer vision benchmarks like FashionMNIST and CIFAR-10.
Across all experiments, ReLU consistently resulted in the lowest accuracy for the predictive coding network. While PC generally performs slightly worse than backpropagation in these specific tests, the performance drop is uniquely massive when using ReLU. Furthermore, in AlexNet tests on CIFAR-10, training with ReLU was highly unstable, often diverging to near-random accuracy. Switching to Leaky ReLU, however, led to significant and stable accuracy gains.
Conclusion and Future Directions
This research highlights that ReLU isn't just "suboptimal" for Predictive Coding; it is fundamentally ill-suited to the architecture's energy minimization mechanics. Because the standard baselines of traditional machine learning do not seamlessly apply here, the field must develop a new set of best practices specifically tailored for biologically plausible learning algorithms. Future work will likely focus on discovering or designing optimal activation functions that maximize the efficiency and stability of predictive coding networks.
Summary updated