ELVIA.Evidence Atlas
ICML 2025ELVIA assessment Major

Nonparametric Modern Hopfield Models

Jerry Yao-Chieh Hu, Bo-Yu Chen, Dennis Wu, Feng Ruan, Han Liu

ELVIA analysis

Independent review pending

This review checks the published nonparametric construction, retrieval guarantees, capacity argument, and corresponding released implementations. Five substantive problems are established: finite sample constraints are promoted to neighborhood guarantees and a prescribed softmax map is identified with an incompatible regression optimum; the printed retrieval bound is false; the universal sparse-versus-dense comparison is false and its convergence argument does not follow; the radius used in the capacity proof makes its required separation event impossible in the stated spherical setting; and released sparse implementations retain positive weights on excluded memories. The supported overall assessment is Major. These are initial AI-generated scientific findings, with adjudication pending; numerical benchmarks have not been reproduced.

0199-P1 — SVR sample constraints neither guarantee neighborhood retrieval nor identify the stated softmax optimizer — Counterevidence and alternative readings: Finite-sample SVR generalization may be studied under additional regularity and uniform approximation assumptions; these are not the universal guarantee stated.

Problem 1. SVR sample constraints neither guarantee neighborhood retrieval nor identify the stated softmax optimizer

Major
Evidence and reasoning

Problem statement

Write Ξ=(ξ1,…,ξM),\Xi=(\xi_1,\ldots,\xi_M), with ξj∈Rd,\xi_j\in\mathbb R^d, m=max⁡j∥ξj∥m=\max_j\left\lVert \xi_j\right\rVert and R=12min⁡i≠j∥ξi−ξj∥,Sμ={x:∥x−ξμ∥≤R}.R=\tfrac12\min_{i\ne j}\left\lVert \xi_i-\xi_j\right\rVert,\qquad S_\mu=\{x:\left\lVert x-\xi_\mu\right\rVert\le R\}. For uncontaminated memories, the displayed sparse map is TM(x)=∑j∈MpjM(x)ξj,pjM(x)=exp⁡(β⟨x,ξj⟩)∑ℓ∈Mexp⁡(β⟨x,ξℓ⟩). T_\mathcal M(x)=\sum_{j\in\mathcal M}p^\mathcal M_j(x)\xi_j,\qquad p^\mathcal M_j(x)=\frac{\exp(\beta\langle x,\xi_j\rangle)} {\sum_{\ell\in\mathcal M}\exp(\beta\langle x,\xi_\ell\rangle)}. The dense map uses all memories. All counterexamples below set the contamination to zero, retain the target memory, use β>0,\beta>0, and place the query within the prescribed target ball. Thus they do not exploit the acknowledged failure mode of randomly deleting the target.

For any feature map the solution has ϵ\epsilon retrieval throughout each memory neighborhood, and the proposed normalized exponential feature map yields the prescribed dense/sparse Hopfield rule as the SVR optimizer.

Proof

Equation (3.2), Theorem 3.1 and the paragraph crossing pp. 5–6 claim that, for any feature map, fitting the finite query–memory sample gives ϵ\epsilon-retrieval for every x∈Sμ.x\in S_\mu. Lemma 3.1, Eq. (3.5), further identifies the fitted regressor with the dense softmax map. The decisive proof step is on p. 20, Appendix D.2: the predetermined output memory is set equal to the vector of optimal dual coefficients divided by a feature normalization. Appendix D.3 repeats the identification for the sparse model.

Set d=1,d=1, M=2,M=2, (ξ1,ξ2)=(1,−1),(\xi_1,\xi_2)=(1,-1), zero contamination, Φ(x)=x,\Phi(x)=x, C=1C=1 and ϵ′=ϵ=1/10.\epsilon'=\epsilon=1/10. The linear feature map is legitimate and R=1.R=1. In the displayed problem the upper slack constraint forces η1=η2=0.\eta_1=\eta_2=0. The two upper residual inequalities then give 1−w≤1/10,−1+w≤1/10,hence9/10≤w≤11/10.1-w\le 1/10,\qquad -1+w\le 1/10, \quad\text{hence}\quad 9/10\le w\le11/10 . At w=9/10w=9/10 all slacks may be zero. Since every feasible objective is at least w2/2,w^{2}/2, its minimizer is w∗=9/10.w^*=9/10. The training errors are both exactly 1/10.1/10.

Now use x=1/2.x=1/2. It lies strictly in S1S_1 because ∣x−ξ1∣=1/2<1.|x-\xi_1|=1/2<1. Nevertheless, TSVR(1/2)=9/20,∣TSVR(1/2)−1∣=11/20>1/10.T_{\rm SVR}(1/2)=9/20,\qquad |T_{\rm SVR}(1/2)-1|=11/20>1/10 . A finite set of constraints does not enforce the claimed uniform neighborhood property. This counterexample remains valid if the intended upper bound on both signs of slack is supplied.

Use the same memories, C=1C=1 and ϵ′=ϵ=1/10,\epsilon'=\epsilon=1/10, with the exponential-feature construction and β=1.\beta=1. Equation (3.5) would give TDense(1)=tanh⁡(1)=0.7615941559….T_{\rm Dense}(1)=\tanh(1)=0.7615941559\ldots. But the positive training residual is 1−tanh⁡(1)=0.2384058440…>1/10,1-\tanh(1)=0.2384058440\ldots>1/10, whereas η1=0.\eta_1=0. Thus the proposed map is not even feasible for the displayed optimization problem. This is not a difficulty inherent to interpolating the two samples: the exponential kernel Gram matrix on {−1,1}\{-1,1\} is nonsingular, and positive finite feature normalizations preserve this property.

The representer identity in Theorem 3.1 leaves data-dependent dual coefficients in the solution. It does not allow the labels, which were fixed before optimization, to be redefined afterward as those coefficients. Nor can arbitrary choices of CC and the error tube disappear without an additional argument.

□\square

Possible revision

Restrict the constraint guarantee to sampled inputs and retain learned dual coefficients in the representer solution. No general neighborhood theorem or equality to prescribed softmax weights is certified.

Problem 2. The printed retrieval-error bound is violated within its stated memory neighborhood

Major
Evidence and reasoning

Problem statement

Write Ξ=(ξ1,…,ξM),\Xi=(\xi_1,\ldots,\xi_M), with ξj∈Rd,\xi_j\in\mathbb R^d, m=max⁡j∥ξj∥m=\max_j\left\lVert \xi_j\right\rVert and R=12min⁡i≠j∥ξi−ξj∥,Sμ={x:∥x−ξμ∥≤R}.R=\tfrac12\min_{i\ne j}\left\lVert \xi_i-\xi_j\right\rVert,\qquad S_\mu=\{x:\left\lVert x-\xi_\mu\right\rVert\le R\}. For uncontaminated memories, the displayed sparse map is TM(x)=∑j∈MpjM(x)ξj,pjM(x)=exp⁡(β⟨x,ξj⟩)∑ℓ∈Mexp⁡(β⟨x,ξℓ⟩). T_\mathcal M(x)=\sum_{j\in\mathcal M}p^\mathcal M_j(x)\xi_j,\qquad p^\mathcal M_j(x)=\frac{\exp(\beta\langle x,\xi_j\rangle)} {\sum_{\ell\in\mathcal M}\exp(\beta\langle x,\xi_\ell\rangle)}. The dense map uses all memories. All counterexamples below set the contamination to zero, retain the target memory, use β>0,\beta>0, and place the query within the prescribed target ball. Thus they do not exploit the acknowledged failure mode of randomly deleting the target.

Theorem 4.1, Eq. (4.1), p. 8 bounds the retrieval error by m(M+k−2)exp⁡{−β(⟨ξμ,x⟩−max⁡ν≠μ⟨ξμ,ξν⟩)}. m(M+k-2)\exp\left\{-\beta\left( \langle\xi_\mu,x\rangle-\max_{\nu\ne\mu}\langle\xi_\mu,\xi_\nu\rangle \right)\right\}. The second inner product was confirmed in the rendered original PDF; it is not an extraction artifact.

Choose d=1,d=1, M=k=2,M=k=2, M={1,2},\mathcal M=\{1,2\}, memories (1,−1),(1,-1), β=10,\beta=10, target ξ1=1\xi_1=1 and x=1/10.x=1/10. Then m=R=1,m=R=1, ∣x−ξ1∣=9/10<R,|x-\xi_1|=9/10<R, the target is retained, and k=Mk=M is allowed. The actual map gives TM(1/10)=tanh⁡(1),∥TM(1/10)−1∥=0.2384058440….T_\mathcal M(1/10)=\tanh(1),\qquad \left\lVert T_\mathcal M(1/10)-1\right\rVert=0.2384058440\ldots. The asserted upper bound is 2exp⁡[−10(1/10−(−1))]=2e−11=0.0000334034….2\exp[-10(1/10-(-1))]=2e^{-11} =0.0000334034\ldots . The actual error exceeds it by a factor of about 7137.17.7137.17.

Proof

Appendix D.4 instead introduces query-dependent competitor products, but also replaces restricted-support softmax weights by weights with a denominator over all MM memories. Those denominators differ when k<M.k<M. A valid elementary bound for the displayed formula, with k≥2k\ge2 and μ∈M,\mu\in\mathcal M, is obtained by defining gμ(x)=⟨x,ξμ⟩−max⁡j∈M∖{μ}⟨x,ξj⟩.g_\mu(x)=\langle x,\xi_\mu\rangle- \max_{j\in\mathcal M\setminus\{\mu\}}\langle x,\xi_j\rangle. Indeed, with q=(k−1)e−βgμ(x),q=(k-1)e^{-\beta g_\mu(x)}, ∥TM(x)−ξμ∥≤2m(1−pμM(x))≤2mq1+q≤2m(k−1)e−βgμ(x).\left\lVert T_\mathcal M(x)-\xi_\mu\right\rVert \le 2m(1-p^\mathcal M_\mu(x)) \le \frac{2mq}{1+q}\le2m(k-1)e^{-\beta g_\mu(x)}. The first inequality is the triangle inequality applied to ∑j≠μpjM(ξj−ξμ);\sum_{j\ne\mu}p^\mathcal M_j(\xi_j-\xi_\mu); the second follows by bounding the sum of competitor-to-target exponential ratios by q.q. For k=1k=1 the retrieval error is zero. This repair is proved here only for uncontaminated keys and the displayed restricted softmax. It does not restore the paper’s noisy-key assertions or the other corollaries automatically.

The location of an erroneous inner product may be typographical in origin, but its quantitative consequence is substantive. The main guaranteed bound is false, supporting Major.

□\square

Possible revision

For noiseless keys/values, retained target and fixed mask, define g=⟨x,ξμ⟩−max⁡j retained,j≠μ⟨x,ξj⟩g=\langle x,\xi_\mu\rangle-\max_{j\ {\rm retained},j\ne\mu}\langle x,\xi_j\rangle and q=(k−1)exp⁡(−β⋅g).q=(k-1)\exp(-\beta\cdot g). Then ∥T−ξμ∥≤2mq/(1+q)≤2m(k−1)exp⁡(−β⋅g);\|T-\xi_\mu\|\le2m q/(1+q)\le2m(k-1)\exp(-\beta\cdot g); k=1k=1 gives exact retrieval. The report supplies the complete probability-ratio and triangle-inequality proof.

Problem 3. Sparse retrieval can have larger error than dense retrieval, invalidating dependent proof steps

Major
Evidence and reasoning

Problem statement

Write Ξ=(ξ1,…,ξM),\Xi=(\xi_1,\ldots,\xi_M), with ξj∈Rd,\xi_j\in\mathbb R^d, m=max⁡j∥ξj∥m=\max_j\left\lVert \xi_j\right\rVert and R=12min⁡i≠j∥ξi−ξj∥,Sμ={x:∥x−ξμ∥≤R}.R=\tfrac12\min_{i\ne j}\left\lVert \xi_i-\xi_j\right\rVert,\qquad S_\mu=\{x:\left\lVert x-\xi_\mu\right\rVert\le R\}. For uncontaminated memories, the displayed sparse map is TM(x)=∑j∈MpjM(x)ξj,pjM(x)=exp⁡(β⟨x,ξj⟩)∑ℓ∈Mexp⁡(β⟨x,ξℓ⟩). T_\mathcal M(x)=\sum_{j\in\mathcal M}p^\mathcal M_j(x)\xi_j,\qquad p^\mathcal M_j(x)=\frac{\exp(\beta\langle x,\xi_j\rangle)} {\sum_{\ell\in\mathcal M}\exp(\beta\langle x,\xi_\ell\rangle)}. The dense map uses all memories. All counterexamples below set the contamination to zero, retain the target memory, use β>0,\beta>0, and place the query within the prescribed target ball. Thus they do not exploit the acknowledged failure mode of randomly deleting the target.

Corollary 4.1.1, p. 8, asserts ∥TM(x)−ξμ∥≤∥TDense(x)−ξμ∥\left\lVert T_\mathcal M(x)-\xi_\mu\right\rVert\le\left\lVert T_{\rm Dense}(x)-\xi_\mu\right\rVert for any x∈Sμx\in S_\mu and retained target. Use three nonzero, equal-norm memories in R2:\mathbb R^{2}: ξ1=(1,0),ξ2=(1/2,3/2),ξ3=(1/2,−3/2).\xi_1=(1,0),\quad \xi_2=(1/2,\sqrt3/2),\quad \xi_3=(1/2,-\sqrt3/2). Every norm is one, the minimum pair distance is one, R=1/2,R=1/2, and the target separation is Δ1=1/2>0.\Delta_1=1/2>0. Set x=ξ1,x=\xi_1, β=1\beta=1 and M={1,2}.\mathcal M=\{1,2\}. The target uniquely has the largest score. This is an admissible generic support in Definition 3.3. The tied example is not the threshold-based top-KK rule of Eq. (3.8), which retains every tied score; the corollary being tested applies to general supports.

Proof

Put a=e−1/2>0.a=e^{-1/2}>0. In the dense update, the vertical components cancel, giving ∥TDense(ξ1)−ξ1∥=a1+2a=0.2740686191….\left\lVert T_{\rm Dense}(\xi_1)-\xi_1\right\rVert=\frac{a}{1+2a} =0.2740686191\ldots. The sparse update deletes one canceling component: ∥TM(ξ1)−ξ1∥=a1+a∥ξ2−ξ1∥=a1+a=0.3775406688….\left\lVert T_\mathcal M(\xi_1)-\xi_1\right\rVert =\frac{a}{1+a}\left\lVert \xi_2-\xi_1\right\rVert =\frac{a}{1+a}=0.3775406688\ldots. The claimed inequality is reversed. This exact argument avoids zero memories, a negative separation, removal of the target, or a query outside its ball.

The increase of the target’s softmax weight is true. It does not imply a smaller Euclidean error: the direction and cancellation of the other memory vectors also matter. Appendix D.5, pp. 21–22, passes from the target coefficient comparison to the norm comparison without accounting for that geometry. Its Eq. (D.9) also writes unexponentiated scores, but replacing these by the intended exponentials does not repair the counterexample.

The claimed reduction in retrieval iterations, the transfer of one-step accuracy in Corollary 4.1.2, and the proof of Corollary 4.1.3 depend on this comparison. Appendix D.6 additionally invokes convergence to the memory itself, Eq. (D.11). For memories ±1\pm1 and β=1,\beta=1, however, the dense map is tanh⁡(x)\tanh(x) and 11 is not a fixed point; continuity precludes an orbit converging to 1.1. A squeeze inequality evaluated at a common input also does not compare two different iterative trajectories. These observations invalidate the supplied convergence proof; they do not establish that a fixed-support, uncontaminated softmax map can never converge to a fixed point.

A sufficient bound can improve with a smaller support under additional controlled gaps. Universal ordering of the actual errors is false. This is Major because guaranteed sparsity advantages are a principal contribution.

□\square

Possible revision

No universal sparse/dense error ordering is proposed. Specific configurations and independently justified fixed-support convergence remain possible.

Problem 4. The stated radius makes the capacity proof's separation condition impossible

Major
Evidence and reasoning

Problem statement

Write Ξ=(ξ1,…,ξM),\Xi=(\xi_1,\ldots,\xi_M), with ξj∈Rd,\xi_j\in\mathbb R^d, m=max⁡j∥ξj∥m=\max_j\left\lVert \xi_j\right\rVert and R=12min⁡i≠j∥ξi−ξj∥,Sμ={x:∥x−ξμ∥≤R}.R=\tfrac12\min_{i\ne j}\left\lVert \xi_i-\xi_j\right\rVert,\qquad S_\mu=\{x:\left\lVert x-\xi_\mu\right\rVert\le R\}. For uncontaminated memories, the displayed sparse map is TM(x)=∑j∈MpjM(x)ξj,pjM(x)=exp⁡(β⟨x,ξj⟩)∑ℓ∈Mexp⁡(β⟨x,ξℓ⟩). T_\mathcal M(x)=\sum_{j\in\mathcal M}p^\mathcal M_j(x)\xi_j,\qquad p^\mathcal M_j(x)=\frac{\exp(\beta\langle x,\xi_j\rangle)} {\sum_{\ell\in\mathcal M}\exp(\beta\langle x,\xi_\ell\rangle)}. The dense map uses all memories. All counterexamples below set the contamination to zero, retain the target memory, use β>0,\beta>0, and place the query within the prescribed target ball. Thus they do not exploit the acknowledged failure mode of randomly deleting the target.

Lemma 4.1, p. 9, and Appendix D.8, pp. 23–24, base storage of the spherical memories on Δmin⁡≥2mR+β−1log⁡((M+k−2)mR). \Delta_{\min}\ge 2mR+\beta^{-1}\log\left(\frac{(M+k-2)m}{R}\right). In the spherical setting of Proposition 4.1, ∥ξμ∥=m.\left\lVert \xi_\mu\right\rVert=m. With the specified radius R=12min⁡μ≠ν∥ξμ−ξν∥,R=\frac12\min_{\mu\ne\nu}\left\lVert \xi_\mu-\xi_\nu\right\rVert, Δmin⁡=min⁡μ≠ν(m2−⟨ξμ,ξν⟩)=12min⁡μ≠ν∥ξμ−ξν∥2=2R2≤2mR.\Delta_{\min} =\min_{\mu\ne\nu}(m^{2}-\langle\xi_\mu,\xi_\nu\rangle) =\tfrac12\min_{\mu\ne\nu}\left\lVert \xi_\mu-\xi_\nu\right\rVert^{2} =2R^{2}\le2mR . For M≥2,M\ge2, k≥2k\ge2 and distinct points, 0<R≤m0<R\le m and (M+k−2)m/R≥2.(M+k-2)m/R\ge2. The logarithmic term in the displayed formula is strictly positive. Therefore the displayed formula is impossible. Already two antipodal unit memories give Δmin⁡=2,\Delta_{\min}=2, R=m=1,R=m=1, while β=1\beta=1 requires 2≥2+log⁡2.2\ge2+\log 2.

Taking the full-support case k=Mk=M makes this contradiction independent of possible ambiguity between a radius over the retained set and a radius over all memories. That case is explicitly included in the paper, which says the result recovers the dense model. For random distinct points on the sphere the same equality applies to each realized configuration; the stipulated event has probability zero, not the advertised positive success probability.

Proof

This does not prove that Hopfield models lack exponential storage capacity. It shows that the paper’s capacity derivation cannot establish it from its specified radius and separation event. A freely chosen smaller local radius may yield a useful sufficient condition, but replacing the radius changes the stated setup and requires rederiving the probability bound. In D.8 the later replacement of the 2mR2mR term by 1/β1/\beta also needs an explicit radius relation, which is not part of the stated definition. No corrected exponential-capacity constant is certified here. This is Major because capacity is one of the principal inherited guarantees claimed by the new construction.

□\square

Possible revision

No corrected capacity constant or probability theorem is claimed.

Problem 5. Released sparse kernels assign positive mass to excluded memories

Major
Evidence and reasoning

Problem statement

Write Ξ=(ξ1,…,ξM),\Xi=(\xi_1,\ldots,\xi_M), with ξj∈Rd,\xi_j\in\mathbb R^d, m=max⁡j∥ξj∥m=\max_j\left\lVert \xi_j\right\rVert and R=12min⁡i≠j∥ξi−ξj∥,Sμ={x:∥x−ξμ∥≤R}.R=\tfrac12\min_{i\ne j}\left\lVert \xi_i-\xi_j\right\rVert,\qquad S_\mu=\{x:\left\lVert x-\xi_\mu\right\rVert\le R\}. For uncontaminated memories, the displayed sparse map is TM(x)=∑j∈MpjM(x)ξj,pjM(x)=exp⁡(β⟨x,ξj⟩)∑ℓ∈Mexp⁡(β⟨x,ξℓ⟩). T_\mathcal M(x)=\sum_{j\in\mathcal M}p^\mathcal M_j(x)\xi_j,\qquad p^\mathcal M_j(x)=\frac{\exp(\beta\langle x,\xi_j\rangle)} {\sum_{\ell\in\mathcal M}\exp(\beta\langle x,\xi_\ell\rangle)}. The dense map uses all memories. All counterexamples below set the contamination to zero, retain the target memory, use β>0,\beta>0, and place the query within the prescribed target ball. Thus they do not exploit the acknowledged failure mode of randomly deleting the target.

Released sparse retrieval implements the paper's normalization over the retained memory support.

Proof

In the pinned snapshot, `layers.py`, |SparseStructured_HopfieldCore.top_k_attn|, lines 9595–113,113, computes the largest scores, scatters them into a tensor initialized to zero, and then applies softmax over the whole score axis. Excluded scores therefore contribute exp⁡(0)=1,\exp(0)=1, rather than zero probability. In `rand_masked_attn`, lines 116116–133,133, dropout is applied to logits before softmax, with the same zero-logit effect and rescaling of surviving scores. The model path imports this module: `models.py`, line 4,4, and its sparse model branches instantiate the corresponding layer; the retrieval trainer imports the same layers and models.

For a one-dimensional single-head core with scale one, norm disabled, no external mask, the top-kk branch and `rand_prob=0.5`, query 1,1, keys/values (1,−1)(1,-1) and k=1,k=1, the intended restricted map returns 11 exactly. The released arithmetic changes logits (1,−1)(1,-1) to (1,0)(1,0) and returns e−1e+1=tanh⁡(1/2)=0.4621171573…,\frac{e-1}{e+1}=\tanh(1/2)=0.4621171573\ldots, with target error 0.5378828427….0.5378828427\ldots. Both memories retain positive weights. The independent script evaluates this formula; it does not import or run the author’s implementation.

This establishes a wrong-model implementation in the inspected public snapshot. It does not identify which exact commit or private path produced every published figure. The separately present `layers2.py` includes dense/sparsemax alternatives; its existence does not change the inspected imports of the relevant sparse paths. The paper itself acknowledges practical limitations of random sparse kernels in Appendix G.5. That caveat concerns efficiency, whereas the present defect changes the distribution and retrieved value.

For top-k,k, assigning excluded logits −∞-\infty before softmax, or normalizing only the selected logits, implements the displayed formula provided at least one element is retained. The two-memory fixture verifies that limited repair. A random-mask repair must retain original selected logits without dropout rescaling if it is to preserve the stated β.\beta. End-to-end experimental effects remain unmeasured. The supported implementation issue is Major because the central sparse algorithm is replaced by a dense weighted update in these released paths; historical benchmark attribution remains Needs Evidence.

□\square

Possible revision

Mask excluded logits with negative infinity or normalize only selected original logits, retaining at least one item. For the random method use a boolean support without dropout's logit rescaling. The k=1k=1 example then yields exact target output. Experimental consequences remain unmeasured.

Supporting record & provenance

Work status

Current version

Version 1

Minhao Liu · Initial report · Version 1

Independent review pending

Original claim and review scope

We establish that this sparse model inherits the appealing theoretical properties of its dense analogue — connection with transformer attention, fixed point convergence and exponential memory capacity.

Published ICML 2025 proceedings PDF (PMLR 267); Abstract, PDF p. 1

Actual review scope

The recorded inspection concerns these source locations: PDF pp. 5–6, Eq.(3.2), Theorem 3.1, Lemma 3.1 and Eq.(3.5) PDF pp. 19–20, Appendix D.2–D.3; PDF p. 8, Theorem 4.1 and Eq.(4.1) PDF p. 21, Appendix D.4; PDF p. 8, Corollaries 4.1.1–4.1.3 PDF pp. 21–22, Appendix D.5–D.6; PDF p. 9, Lemma 4.1 PDF pp. 23–24, Appendix D.8 Memory-radius and separation definitions in the main paper; Pinned source layers.py lines 95–113, SparseStructured_HopfieldCore.top_k_attn Pinned source layers.py lines 116–133, rand_masked_attn models.py imports and sparse-branch wiring; trainers/memory_retrieval_trainer.py; retrieval_main.py.

Submit an author revisionContribute a review