Accelerating Hopfield Network Dynamics: Beyond Synchronous Updates and Forward Euler

Cédric Goemaere, Johannes Deleu, Thomas Demeester
11/27/2023
cs.LGcs.NE

Official code: cgoemaere/hopdeq (6 stars, Apache-2.0, last commit 2024-10-09).

Abstract

The Hopfield network serves as a fundamental energy-based model in machine learning, capturing memory retrieval dynamics through an ordinary differential equation (ODE). The model's output, the equilibrium point of the ODE, is traditionally computed via synchronous updates using the forward Euler method. This paper aims to overcome some of the disadvantages of this approach. We propose a conceptual shift, viewing Hopfield networks as instances of Deep Equilibrium Models (DEQs). The DEQ framework not only allows for the use of specialized solvers, but also leads to new insights on an empirical inference technique that we will refer to as 'even-odd splitting'. Our theoretical analysis of the method uncovers a parallelizable asynchronous update scheme, which should converge roughly twice as fast as the conventional synchronous updates. Empirical evaluations validate these findings, showcasing the advantages of both the DEQ framework and even-odd splitting in digitally simulating energy minimization in Hopfield networks. The code is available at https://github.com/cgoemaere/hopdeq

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Code for the paper "Accelerating Hopfield Network Dynamics: Beyond Synchronous Updates and Forward Euler", presented at the ML-DE workshop at ECAI 2024.

60Python, Jupyter NotebookOct 20, 20232 years agoApache-2.0

Similar Papers

Cite this paper

@article{goemaere2023accelerating,
  title  = {Accelerating Hopfield Network Dynamics: Beyond Synchronous Updates and Forward Euler},
  author = {Cédric Goemaere and Johannes Deleu and Thomas Demeester},
  year   = {2023},
  eprint = {2311.15673},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.15673v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.15673.svg)](https://codeofpaper.com/paper/2311.15673)

Discussion