Classifying States of the Hopfield Network with Improved Accuracy, Generalization, and Interpretability

Hayden McAlister, Anthony Robins, Lech Szymanski
3/4/2025
cs.LGcs.NE

No confident code implementation found for this paper.

Abstract

We extend the existing work on Hopfield network state classification, employing more complex models that remain interpretable, such as densely-connected feed-forward deep neural networks and support vector machines. The states of the Hopfield network can be grouped into several classes, including learned (those presented during training), spurious (stable states that were not learned), and prototype (stable states that were not learned but are representative for a subset of learned states). It is often useful to determine to what class a given state belongs to; for example to ignore spurious states when retrieving from the network. Previous research has approached the state classification task with simple linear methods, most notably the stability ratio. We deepen the research on classifying states from prototype-regime Hopfield networks, investigating how varying the factors strengthening prototypes influences the state classification task. We study the generalizability of different classification models when trained on states derived from different prototype tasks -- for example, can a network trained on a Hopfield network with 10 prototypes classify states from a network with 20 prototypes? We find that simple models often outperform the stability ratio while remaining interpretable. These models require surprisingly little training data and generalize exceptionally well to states generated by a range of Hopfield networks, even those that were trained on exceedingly different datasets.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{mcalister2025classifying,
  title  = {Classifying States of the Hopfield Network with Improved Accuracy, Generalization, and Interpretability},
  author = {Hayden McAlister and Anthony Robins and Lech Szymanski},
  year   = {2025},
  eprint = {2503.03018},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.03018v1}
}

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/2503.03018.svg)](https://codeofpaper.com/paper/2503.03018)

Discussion