Papers
Topics
Authors
Recent
Search
2000 character limit reached

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

Published 15 Oct 2026 in cond-mat.dis-nn, cs.LG, and cs.NE | (2610.22191v1)

Abstract: In Hebbian learning from examples a Hopfield network of NN neurons is not supplied with the KK archetypes it has to retrieve but with MM blurred examples of each, of quality rr, and whether it can infer them depends on the load α=K/Nα=K/N (interference among them) and on the dataset entropy ρ=(1−r<sup>2)/(Mr<sup>2)ρ=(1-r<sup>2)/(Mr<sup>2) (how little the examples say about them). We transfer this protocol to the exponential Hopfield model, whose zero-temperature update is a step of softmax attention with the unlabelled examples as keys. A signal-to-noise analysis gives in closed form the overlap between the output and an unseen archetype, m<sup>(1)=</sup>erf(1/2ρ<em>eff)m<sup>{(1)}={\rm</sup> erf}(1/\sqrt{2ρ<em>{\rm eff}}): the majority-rule law of the pairwise model at small load, with ρρ replaced by an attention entropy ρ</em>effρ</em>{\rm eff} built from the weight the softmax gives to the correct class and the number of examples it spreads it over. Two consequences follow. First, in a window of inverse temperatures ββ that widens as N\sqrt N the interference between archetypes is exponentially small in NβNβ: the load drops out and the number of archetypes that can be learnt grows as exp⁡(cN)\exp(c\sqrt N). Second, learning fails differently: in the pairwise model through a spin-glass phase, in the exponential model through memorization: the softmax concentrates its weight on the training example closest to the input and returns it in place of the archetype. Seen from the input the softmax weights are those of the random energy model, and memorization is its freezing transition, at βN(1−r<sup>2)≃2ln⁡</sup>Mβ\sqrt{N(1-r<sup>2)}\simeq\sqrt{2\ln</sup> M}; it is measurable on a head whose keys are examples as the number of examples carrying weight. On MNIST the diagnostic follows the random-energy prediction; on fashion-MNIST it detects sub-clusters in the classes, and the best accuracy lies beyond the memorization threshold, where the softmax reads out a local sub-prototype.

Authors (1)

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.

Tweets

Sign up for free to view the 1 tweet with 0 likes about this paper.