Abstract: 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.

Date: 24 October 2026

Title: Scientific Review of Nonparametric Modern Hopfield Models

# Identity, version, and scope

The reviewed article is J. Y.-C. Hu, B.-Y. Chen, D. Wu, F. Ruan and H. Liu, Nonparametric Modern Hopfield Models, ICML 2025, PMLR 267, 24232–24269, assigned ID I25-43568 (0199) [paper]. Page references below are one-based PDF pages, which coincide with the article’s printed pages 1–38. The acquired PDF SHA-256 is

b4e7817eff9051642973c055a248399d
a35c60a92f5aba8a86cd64677b40de47

Its embedded appendices were examined, with detailed checks of Sections 3–4 and Appendices D.1–D.8. Sections 1–2, Appendix B, the family and layer constructions in E–F, and the experimental design and reported results in G were also read. The source snapshot is |MAGICS-LAB/NonparametricHopfield|, commit |13ce6a8d9bec319beb8cb7f21ce42fc5eae32489|, dated 8 January 2024 [code]. Relevant kernels, model wiring and retrieval entry points were inspected statically. No author code, training, GPU benchmark or dataset experiment was executed.

The official arXiv record, checked on 24 October 2026, lists v2 of 9 June 2025 as the latest version and identifies it as the camera-ready version [arxiv]. No separate correction was identified in that record or the inspected repository documentation. This bounded version check does not establish absence of every possible erratum. The acquisition manifest records the separate OpenReview supplement as unavailable because its metadata API returned 403; the complete embedded supplement was available.

# Definitions and assessment

Equation reference: eq:map. Write \(\Xi=(\xi_1,\ldots,\xi_M)\), with \(\xi_j\in\mathbb R^d\), \(m=\max_j\left\lVert \xi_j\right\rVert\) and \[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 \[
 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 \(\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.

Major is used because the demonstrated failures affect the paper’s principal nonparametric identification, sparsity advantages, theoretical guarantees or implementation of the proposed model. This judgment does not require every experiment to fail, or deny that valid efficient attention mechanisms and exponential-capacity Hopfield models exist.

# Problem 1: the regression construction does not provide the stated retrieval map

## Claims and locations

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\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.

## Complete neighborhood counterexample

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

Now use \(x=1/2\). It lies strictly in \(S_1\) because \(|x-\xi_1|=1/2<1\). Nevertheless, \[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.

## The softmax formula is not the stated optimizer

Use the same memories, \(C=1\) and \(\epsilon'=\epsilon=1/10\), with the exponential-feature construction and \(\beta=1\). Equation (3.5) would give \[T_{\rm Dense}(1)=\tanh(1)=0.7615941559\ldots.\] But the positive training residual is \(1-\tanh(1)=0.2384058440\ldots>1/10\), whereas \(\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\}\) 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 \(C\) and the error tube disappear without an additional argument.

## Counterevidence, impact and bounded repair

The Taylor expansion of the exponential dot-product kernel in Lemmas D.2–D.3 is valid. A normalized kernel smoother with memory values can indeed reproduce Eq. [eq:map] (#eq:map); that useful algebraic construction is not a proof that this smoother minimizes Eq. (3.2). The finite training constraints can support training-point error statements, not a uniform statement on \(S_\mu\) without additional conditions. The natural bounded correction is to retain the learned dual coefficients when describing an SVR solution, and state the normalized kernel smoother as a separately defined model. Establishing a regression optimization that yields the prescribed memory coefficients, and its neighborhood guarantees, requires a new derivation. The present defect is Major because the nonparametric identification is the central construction.

# Problem 2: the printed sparsity-dependent bound is false

## Claim and counterexample

Equation reference: eq:printed. Theorem 4.1, Eq. (4.1), p. 8 bounds the retrieval error by \[
 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\), \(M=k=2\), \(\mathcal M=\{1,2\}\), memories \((1,-1)\), \(\beta=10\), target \(\xi_1=1\) and \(x=1/10\). Then \(m=R=1\), \(|x-\xi_1|=9/10<R\), the target is retained, and \(k=M\) is allowed. The actual map gives \[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 \[2\exp[-10(1/10-(-1))]=2e^{-11}
 =0.0000334034\ldots .\] The actual error exceeds it by a factor of about 7137.17.

## Proof defect and a valid limited replacement

Appendix D.4 instead introduces query-dependent competitor products, but also replaces restricted-support softmax weights by weights with a denominator over all \(M\) memories. Those denominators differ when \(k<M\). A valid elementary bound for Eq. [eq:map] (#eq:map), with \(k\ge2\) and \(\mu\in\mathcal M\), is obtained by defining \[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^{-\beta g_\mu(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 \(\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\). For \(k=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.

# Problem 3: sparse reweighting need not improve the actual retrieval error

## Claim and all assumptions

Corollary 4.1.1, p. 8, asserts \(\left\lVert T_\mathcal M(x)-\xi_\mu\right\rVert\le\left\lVert T_{\rm Dense}(x)-\xi_\mu\right\rVert\) for any \(x\in S_\mu\) and retained target. Use three nonzero, equal-norm memories in \(\mathbb R^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\), and the target separation is \(\Delta_1=1/2>0\). Set \(x=\xi_1\), \(\beta=1\) and \(\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-\(K\) rule of Eq. (3.8), which retains every tied score; the corollary being tested applies to general supports.

## Exact calculation

Put \(a=e^{-1/2}>0\). In the dense update, the vertical components cancel, giving \[\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: \[\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.

## Dependence and counterevidence

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 \(\pm1\) and \(\beta=1\), however, the dense map is \(\tanh(x)\) and \(1\) is not a fixed point; continuity precludes an orbit converging to \(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.

# Problem 4: the capacity argument uses an impossible separation event

## Claim and algebraic check

Equation reference: eq:separation. Lemma 4.1, p. 9, and Appendix D.8, pp. 23–24, base storage of the spherical memories on \[
 \Delta_{\min}\ge
 2mR+\beta^{-1}\log\left(\frac{(M+k-2)m}{R}\right).\] In the spherical setting of Proposition 4.1, \(\left\lVert \xi_\mu\right\rVert=m\). With the specified radius \(R=\frac12\min_{\mu\ne\nu}\left\lVert \xi_\mu-\xi_\nu\right\rVert\), \[\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\ge2\), \(k\ge2\) and distinct points, \(0<R\le m\) and \((M+k-2)m/R\ge2\). The logarithmic term in Eq. [eq:separation] (#eq:separation) is strictly positive. Therefore Eq. [eq:separation] (#eq:separation) is impossible. Already two antipodal unit memories give \(\Delta_{\min}=2\), \(R=m=1\), while \(\beta=1\) requires \(2\ge2+\log 2\).

Taking the full-support case \(k=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.

## Impact and possible repair

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 \(2mR\) term by \(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.

# Problem 5: released top-\(k\) and random masking do not implement restricted support

## Static evidence and finite check

In the pinned snapshot, `layers.py`, |SparseStructured_HopfieldCore.top_k_attn|, lines 95–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\), rather than zero probability. In `rand_masked_attn`, lines 116–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, 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-\(k\) branch and `rand_prob=0.5`, query \(1\), keys/values \((1,-1)\) and \(k=1\), the intended restricted map returns \(1\) exactly. The released arithmetic changes logits \((1,-1)\) to \((1,0)\) and returns \[\frac{e-1}{e+1}=\tanh(1/2)=0.4621171573\ldots,\] with target error \(0.5378828427\ldots\). Both memories retain positive weights. The independent script evaluates this formula; it does not import or run the author’s implementation.

## Impact, counterevidence and correction

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\), assigning excluded logits \(-\infty\) before softmax, or normalizing only the selected logits, implements Eq. [eq:map] (#eq:map) 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.

# Overall dependence and empirical assessment

The five problems concern separate links: optimization to dynamics, the error bound, relative error and convergence reasoning, capacity, and implementation. The first four are established from the published mathematical statements and explicit deductions; no empirical score decrease is required to assess them. Valid exponential-kernel expansions, the algebraic attention connection, linear-attention factorization and the possibility of efficient sparse computation survive these findings.

Appendix G reports retrieval, MNIST multiple-instance learning, real-world bag classification, forecasting and efficiency studies. Its single-step experimental restriction (Remark G.1) is material counterevidence against interpreting those experiments as a test of iterative fixed-point convergence. Supervised training curves also measure parameter optimization, not the fixed-memory recurrence of Corollary 4.1.3. The published empirical numbers have not been refuted here. To resolve their relation to the intended sparse method, the exact generating implementation, masks, seeds and raw outputs must be checked, followed by appropriate reruns after correction.

Issue | Assessment | Repair verification / remaining work

P1: regression guarantees and identification | Major | Counterexamples verified; new construction required

P2: printed error bound | Major | Restricted noiseless bound proved here

P3: universal comparison and dependent proof | Major | Comparison refuted; convergence needs separate proof

P4: capacity separation event | Major | Contradiction proved; radius/probability derivation required

P5: released sparse kernel | Major | Scalar repair verified; historical attribution unresolved

All issue adjudications remain pending. Repair statements above are limited to their explicit domains. Author adoption has not been requested or recorded; there are no human review declarations. A separate later review must independently accept or challenge these initial findings.

# Supporting checks

The independent check uses only Python’s standard library. It evaluates the exact formulas above, verifies the strict inequalities, and hashes the PDF, extracted text, manifest and key implementation files. The original PDF was re-extracted with the existing Poppler `pdftotext -layout`; its text hash matches the acquired extraction.

The PDF-read convenience tool initially failed with an internal `toLowerCase` error. This was resolved by reading the actual PDF through the existing Poppler tools; no installation or other-project cache was used. Complete source bindings, coverage, current execution roles, and compilation/visual checks performed by the integrating parent are recorded in the adjacent JSON files. Earlier recovery classifications are preserved as history and are not counted as this review’s scientific work.

9 J. Y.-C. Hu, B.-Y. Chen, D. Wu, F. Ruan and H. Liu. Nonparametric Modern Hopfield Models. Proceedings of ICML, PMLR 267 (2025), 24232–24269. https://proceedings.mlr.press/v267/hu25c.html. Reviewed acquired proceedings PDF, including appendices. MAGICS-LAB. Static inspection only. J. Y.-C. Hu et al. Nonparametric Modern Hopfield Models, arXiv:2404.03900v2, 9 June 2025. https://arxiv.org/abs/2404.03900. Official version metadata consulted 24 October 2026.
