cond-mat.dis-nnOct 15, 2026

Attention over noisy examples: generalization and memorization in the exponential Hopfield network

Authors: Francesco Alemanno

Abstract

In Hebbian learning from examples, a Hopfield network retrieves archetypes seen only through noisy examples. We study it in the exponential Hopfield model: one softmax attention step with the unlabelled examples as keys. A signal-to-noise analysis gives the overlap with an unseen archetype in closed form: a majority-rule law in which an attention entropy replaces the dataset entropy. At high temperature the archetype is lost in the crosstalk; at low temperature the softmax freezes on the closest training example, as in a random energy model, and the layer memorizes. In between, in a window widening with the square root of the network size, the layer pools the examples of the correct class and retrieves the unseen archetype as well as their majority vote allows, at any fixed load. On structured datasets, such as MNIST and fashion-MNIST, the best accuracy lies beyond the freezing.

Figures & tables

Explore similar work

CardsList
  1. Phases in a class of associative memories via hidden neurons

    Sep 10, 2026Toshihiro Ota, Masato TakiPhase TransitionsHopfield Networks

  2. Hierarchical Prototype Emergence in Modern Hopfield Models

    Sep 10, 2026Aditya Cowsik, Adithya SriramNeural Network GeneralizationHopfield Networks

  3. Implicit Bias and Invariance: How Hopfield Networks Efficiently Learn Graph Orbits

    Dec 16, 2025Michael Murray, Tenzin Chan, Kedar Karhadker +1Sample ComplexityNeural Network Memorization