Sequence Learning Using Equilibrium Propagation

Malyaban Bal, Abhronil Sengupta

Abstract

Equilibrium Propagation (EP) offers a biologically plausible alternative to Backpropagation (BP) for training neural networks, particularly suited for neuromorphic hardware. However, EP has historically struggled with sequence-based tasks due to its requirement for networks to settle into a steady state from static inputs. This paper introduces a novel framework that integrates Modern Hopfield Networks (MHNs) as an attention mechanism within the EP paradigm. By leveraging the massive storage and retrieval capabilities of MHNs, the proposed architecture enables EP to process temporal dependencies effectively. We demonstrate state-of-the-art performance for EP on natural language processing benchmarks, including the IMDB and SNLI datasets, achieving results competitive with traditional BP-trained models while maintaining local-in-space-and-time updates.

Introduction

Deep learning predominantly relies on Backpropagation (BP), which, despite its success, lacks biological plausibility due to its requirement for distinct forward and backward pathways and global error signals. Equilibrium Propagation (EP) addresses these issues by using a single circuit for both phases and local weight updates. Despite its promise for energy-efficient neuromorphic AI, EP's application has been largely restricted to static image classification because its underlying convergent Recurrent Neural Networks (RNNs) require fixed inputs to reach a steady state.

This work bridges the gap between bio-plausible learning and complex sequence tasks. The core challenge lies in capturing temporal dependencies without violating the mathematical convergence requirements of EP. We propose using Modern Hopfield Networks (MHNs) to provide a stable, "metastable" embedding of input sequences, allowing the convergent RNN to process them as static representations.

Methods

The architecture combines convergent RNNs with a Hopfield-based attention mechanism ($HopAttn$). Training follows the standard EP two-phase protocol: a "free phase" where the network reaches a minimum energy state, and a "nudge phase" where the output is perturbed toward the target label, propagating local updates.

To handle sequences, we utilize MHNs, which employ an exponential energy function for high storage capacity and rapid retrieval. The attention module implements a "Query-Key-Value" mechanism similar to Transformers but within the constraints of energy-based models. A scalar primitive function $\phi$ defines the transition dynamics, ensuring mathematical convergence to a steady state even with embedded attention modules.

Model architecture integrating Modern Hopfield Networks with Equilibrium Propagation.

Results

The model was evaluated on the IMDB sentiment analysis dataset and the Stanford Natural Language Inference (SNLI) benchmark. On IMDB, the EP-trained model achieved 88.9% accuracy, surpassing standard BP-trained LSTMs (87.2%) and GRUs (86.5%). On SNLI, it reached 81.4% accuracy, which is on par with or better than many established BP-trained LSTM encoders (ranging from 77% to 80%).

A critical finding is the role of Hopfield Attention in generalization. As shown in Figure 6, the inclusion of $HopAttn$ prevents premature convergence and significantly improves test accuracy compared to standard EP-trained RNNs. The computational overhead for adding the attention module is approximately 17%, a modest cost for the resulting performance gains.

Comparison of training and test accuracy with and without Hopfield Attention.

Conclusion

This work represents the first successful application of EP to complex NLP tasks. By integrating Modern Hopfield Networks, we overcome the static input limitation of EP while preserving its biological plausibility and potential for neuromorphic efficiency. Future work will focus on making word embeddings learnable within the EP framework and implementing the model on physical spiking neuromorphic hardware to validate its energy-saving potential.

Summary updated

BibTeX
@inproceedings{bal2023sequence,
  author = {Malyaban Bal and Abhronil Sengupta},
  title = {{Sequence Learning Using Equilibrium Propagation}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.24963/ijcai.2023/329},
}
Figure