Updates of Equilibrium Prop Match Gradients of Backprop Through Time in an RNN with Static Input

Maxence Ernoult, Julie Grollier, Damien Querlioz, Yoshua Bengio, Benjamin Scellier

While deep learning has revolutionized artificial intelligence, its core engine—Backpropagation Through Time (BPTT)—is often criticized for being biologically implausible. The brain does not appear to pause its activity, store every intermediate state in a buffer, and then run a perfectly synchronized backward pass to update synaptic weights.

Equilibrium Propagation (EP) was proposed as a more "natural" alternative. It trains Recurrent Neural Networks (RNNs) that settle into a steady state (equilibrium). However, the original EP was formulated in continuous time, making it computationally expensive and difficult to scale to modern architectures like Convolutional Neural Networks (CNNs). This paper bridges the gap by introducing a discrete-time version of EP, speeding it up, and proving that it computes the same gradients as BPTT under specific conditions.

Rethinking the Math: Discrete-Time and Two-Phase Learning

To make EP practical, the researchers introduced several key innovations, moving away from complex differential equations to a discrete-time version. This simplification significantly speeds up simulations and makes the algorithm easier to implement in standard deep learning frameworks.

EP operates through a unique two-phase learning process:

  1. Phase 1 (Free Phase): The network is fed a static input $x$ and allowed to settle into an equilibrium state $s_*$.
  2. Phase 2 (Nudged Phase): A small "elastic force" is applied, nudging the output neurons toward the correct target $y$.
Comparison of BPTT and EP computational graphs

The authors prove the Gradient-Descending Updates (GDU) property. It states that if the network's transition function derives from a "primitive function" (an energy-like scalar function), the step-by-step updates in EP's second phase are exactly equal to the gradients computed by BPTT.

Key Insights: Forward is Backward

The most profound insight from this work is that the forward-time dynamics of the second phase in EP effectively perform the backward-time computation of BPTT. By simply observing how the system settles after being "nudged," the network generates the necessary gradient information naturally, without requiring a separate backward pass.

The strict mathematical equivalence (the GDU property) depends on the network having a primitive function $\Phi$, referred to as an "Energy-based" setting. However, the authors found that even in "Prototypical" networks—standard RNNs that don't strictly follow this rule—the equivalence holds closely enough to work in practice.

Relative MSE between EP and BPTT updates

As shown in the error comparisons, while Energy-based models show near-zero discrepancy between EP and BPTT updates, Prototypical models still maintain a low enough error to train effectively, especially in shallower networks.

State-of-the-Art Results for EP

By adapting the dynamics to include convolution and pooling operations, the team allowed EP to move beyond simple fully connected layers.

  • MNIST Benchmark: The resulting convolutional architecture achieved a ~1.02% test error on MNIST, the lowest error ever reported for an EP-based algorithm at the time of publication.
  • BPTT Parity: In almost all tests, EP performed as well as, or very nearly as well as, BPTT in terms of final accuracy.
  • Efficiency Gains: By using discrete-time steps, the authors reduced the number of iterations needed to reach equilibrium by a factor of 3 to 5 compared to previous real-time EP implementations. The "Prototypical" setting was significantly faster than the "Energy-Based" setting, dropping wall-clock time for a 1-hidden-layer network from 1 minute 33 seconds to just 17 seconds.

Limitations and the Path Forward

While a major step forward, the current theory and experiments only apply to "static" inputs, such as a single image. The algorithm requires the network to reach a steady state, making it difficult to apply to sequential data like video or speech where the input changes continuously. Furthermore, like BPTT, EP suffers from vanishing gradients in very deep networks, where saturated non-linearities can block the error signal from reaching early layers.

Despite these limitations, the implications for hardware are massive. While this work was simulated on standard GPUs, the real power of EP lies in neuromorphic hardware. In physical systems utilizing magnetism or optics, these dynamical equations could be solved natively by the hardware's physics. By proving that EP can match BPTT's performance with simpler, forward-only dynamics, this research paves the way for a new generation of highly efficient, biologically inspired AI accelerators.

Summary updated

BibTeX
@inproceedings{ernoult2019updates,
  author = {Maxence Ernoult and Julie Grollier and Damien Querlioz and Yoshua Bengio and Benjamin Scellier},
  title = {{Updates of Equilibrium Prop Match Gradients of Backprop Through Time in an RNN with Static Input}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=rrSNJXyLrl5},
}
Figure