atlas

Research map / Architectures and efficiency / RNNs and normalization

Sparse and Structured Hopfield Networks

ICML 2024 · Architectures and efficiency › RNNs and normalization · approach: Differentiable optimization layers · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Unifies sparse modern Hopfield networks with Fenchel-Young losses (Hopfield-Fenchel-Young energies), proves exact one-step retrieval under margin conditions, and extends to structured retrieval of pattern associations via SparseMAP.

Problem

Modern Hopfield networks (and transformer attention-based updates) use softmax, which prevents exact retrieval and can yield metastable mixtures; sparse variants retrieve only approximately, and retrieval of pattern associations is not addressed.

Approach

Define Hopfield energies as a convex-concave decomposition where the concave part is a negative Fenchel-Young loss for a generalized negentropy (Tsallis or norm), so update rules are sparse transformations (entmax, normmax, sparsemax); margin properties of the loss give exact retrieval with exponential capacity, and SparseMAP over structured sets enables retrieval of pattern associations.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use SparseMAP k-subsets with k=K instead of other pooling variantsHopfield pooling for MNIST K-MIL · MNIST K=2 and K=3accuracy: 97.7\pm0.3; 96.5\pm0.5Helped
Increase entmax alpha from 1 to 2 (ablation)Hopfield pooling · MNIST K=2accuracy: 94.6\pm0.5 -> 96.7\pm0.5Helped
Increase normmax alpha from 2 to 5 (ablation)Hopfield pooling · MNIST K=3accuracy: 93.9\pm0.7 -> 95.8\pm0.4Helped
Use 1-entmax instead of other transformationsHopfield pooling · MNIST K=1accuracy: 98.4\pm0.2Helped
Use SparseMAP pooling instead of sparse poolingHopfield pooling · Fox and Elephant MIL benchmarksROC AUC: 66.1\pm0.6 -> 67.4\pm2.0; 92.4\pm0.7 -> 93.2\pm0.7Mixed
Use sequential k-subsets rather than non-sequential k-subsets (ablation)SparseMAP text rationalizer · Beer HROF1: .42 { (.29/.62)} -> .63 { (.49/.70)}Helped
Use sequential k-subsets rather than non-sequential k-subsets (ablation)SparseMAP text rationalizer · Beer MSEMSE: .017 { (.017/.018)} -> .020 { (.018/.021)}Hurt
Increase entmax alpha (ablation)Sparse Hopfield network · MNIST test queries, beta=1single-pattern metastable state frequency (%): 97.8 -> 100.0Helped
Use sequential structure to encourage adjacent selected tokensSparseMAP text rationalizer · Beer HROF1: .61 -> .63Helped

Surprising findings

Limitations

Experimental setup

Datasets: MNIST Elephant Fox Tiger SST AgNews IMDB BeerAdvocate

Benchmarks: MNIST Elephant Fox Tiger SST AgNews IMDB BeerAdvocate

Metrics: accuracy ROC AUC F1 MSE metastable state distribution

Baselines: softmax Hopfield pooling (1-entmax) sparsemax Hopfield pooling (2-entmax) HardKuma SPECTRA

Builds on: modern Hopfield networks (Ramsauer et al.) sparse Hopfield networks (Martins et al. / sparsemax Hopfield) Fenchel-Young losses entmax SparseMAP

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy