atlas

Research map / Architectures and efficiency / RNNs and normalization

Provably Optimal Memory Capacity for Modern Hopfield Models: Transformer-Compatible Dense Associative Memories as Spherical Codes

NeurIPS 2024 · Architectures and efficiency › RNNs and normalization · approach: Associative memory networks · 0 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.

Frames kernelized modern Hopfield model (KHM) memory storage as an optimal spherical code problem, derives a matching exponential capacity upper/lower bound, and proposes U-Hop+ (projected gradient descent on an average separation loss) to learn the feature map.

Problem

Optimal memorization capacity of kernelized modern Hopfield models (KHMs) and how to choose the feature map to reach it; prior capacity results were lower bounds and lacked optimality guarantees.

Approach

Treat the stored memory set in the learned feature space as a spherical code satisfying a well-separation condition ("memory code"), show optimal capacity corresponds to an optimal spherical code, and use a convex average-separation surrogate loss optimized with projected gradient descent (U-Hop+) that approaches the hardmax objective as temperature tends to zero.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
apply U-Hop+ with SoftmaxModern Hopfield model · Syntheticmetastable state size 1 (%): 0.0 -> 90.0Helped
apply U-Hop+ with 1.5-entmaxModern Hopfield model · Syntheticmetastable state size 1 (%): 0.0 -> 100.0Helped
apply U-Hop+ with SparsemaxModern Hopfield model · Syntheticmetastable state size 1 (%): 0.0 -> 100.0Helped
apply U-Hop+ with SoftmaxModern Hopfield model · MNISTmetastable state size 1 (%): 3.48 -> 100.0Helped
apply U-Hop+ with 1.5-entmaxModern Hopfield model · MNISTmetastable state size 1 (%): 69.2 -> 100.0Helped
apply U-Hop+ with SparsemaxModern Hopfield model · MNISTmetastable state size 1 (%): 88.1 -> 100.0Helped

Surprising findings

Limitations

Experimental setup

Datasets: MNIST synthetic Gaussian memories multiple instance learning datasets

Benchmarks: MNIST synthetic memory retrieval multiple instance learning datasets

Metrics: metastable state size test AUC energy landscape basins of attraction

Baselines: softmax modern Hopfield model 1.5-entmax modern Hopfield model sparsemax modern Hopfield model U-Hop HopfieldPooling

Builds on: U-Hop modern Hopfield networks dense associative memory spherical codes

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