ELVIA.Evidence Atlas
← Back to analysis

AI context

ELVIA analysis of: Nonparametric Modern Hopfield Models — Problem 5: Released sparse kernels assign positive mass to excluded memories

Original paper: Jerry Yao-Chieh Hu; Bo-Yu Chen; Dennis Wu; Feng Ruan; Han Liu. Nonparametric Modern Hopfield Models. Proceedings of the 42nd International Conference on Machine Learning, vol. 267, 2025. https://proceedings.mlr.press/v267/hu25c.html
Source version: Published ICML 2025 proceedings PDF (PMLR 267)
Source location: 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

Question: What does the recorded analysis establish about “Released sparse kernels assign positive mass to excluded memories”?
Bounded finding:
The code writes retained logits into zeros_like, then applies softmax over all entries. For \(k=1\) the resulting logits (1,0) yield probabilities (0.731058579,0.268941421), so the supposedly excluded value contributes positive mass. Output is 0.462117157 instead of restricted-support output 1. The random method applies dropout to logits before softmax, likewise keeping dropped logits at zero and rescaling retained logits. Checks completed: counterevidence. Checks completed: severity. Relevant frozen source passages/static source, existing actual check output and independent analytic integration; no author-code execution. The wired sparse branch fills excluded logits with zero before a full softmax, so the \(k=1\) fixture produces .462117 instead of 1. Random logit dropout additionally rescales retained entries. Boolean support and normalization over retained original logits repair that local definition. Major is limited to the central released sparse operation; historical experimental impact remains unknown.

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

Case-wide limitations:
- 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.
- 0199-P1 — SVR sample constraints neither guarantee neighborhood retrieval nor identify the stated softmax optimizer — Counterevidence and alternative readings: Adding the natural bound on the second slack family does not repair the explicit linear example.
- 0199-P1 — SVR sample constraints neither guarantee neighborhood retrieval nor identify the stated softmax optimizer — Counterevidence and alternative readings: The exponential kernel expansion itself is valid, but does not determine the learned dual coefficients.
- 0199-P2 — The printed retrieval-error bound is violated within its stated memory neighborhood — Counterevidence and alternative readings: This is not an OCR ambiguity or a missing retained-target assumption.
- 0199-P2 — The printed retrieval-error bound is violated within its stated memory neighborhood — Counterevidence and alternative readings: A query-dependent score-gap bound is available for uncontaminated memories, but it is a different statement and does not establish the noisy theorem or downstream corollaries.
- 0199-P3 — Sparse retrieval can have larger error than dense retrieval, invalidating dependent proof steps — Counterevidence and alternative readings: The sparse target probability is higher; that alone cannot order vector-valued errors because removed distractors may cancel.
- 0199-P3 — Sparse retrieval can have larger error than dense retrieval, invalidating dependent proof steps — Counterevidence and alternative readings: The report does not declare the general fixed-point statement false: it identifies failure of the supplied comparison-based proof and distinguishes convergence to a nearby fixed point from convergence to the stored memory.
- 0199-P3 — Sparse retrieval can have larger error than dense retrieval, invalidating dependent proof steps — Counterevidence and alternative readings: Same-input error comparison, even if true, cannot directly compare different trajectories.
- 0199-P4 — The stated radius makes the capacity proof's separation condition impossible — Counterevidence and alternative readings: A freely chosen smaller radius can avoid this algebraic incompatibility but changes the stated radius and requires a new capacity argument.
- 0199-P4 — The stated radius makes the capacity proof's separation condition impossible — Counterevidence and alternative readings: The calculation invalidates the presented derivation, not the possible existence of exponential capacity under other hypotheses or arguments.
- 0199-P4 — The stated radius makes the capacity proof's separation condition impossible — Counterevidence and alternative readings: The full-support case avoids possible ambiguity about the radius over masked versus all memories.
- 0199-P5 — Released sparse kernels assign positive mass to excluded memories — Counterevidence and alternative readings: The code also contains other dense/sparsemax modules, but these do not correct the inspected sparse branch imports.
- 0199-P5 — Released sparse kernels assign positive mass to excluded memories — Counterevidence and alternative readings: This establishes a defect in the reviewed released snapshot; it does not establish the precise code version used for published experiments or quantify any score impact.
- Not performed: Author-code execution
- Not performed: Training/evaluation reproduction
- Not performed: Downloaded data or package installation
- Not performed: New benchmark runs or timing/FLOP measurement
- Not performed: Full codebase security/correctness audit
- Not performed: Exhaustive literature/erratum survey
- Not performed: Parent independent integration was outside the auxiliary's work; completed by parent, see /parent_integration.
- Not performed: Final report compilation or report PDF visual QA by this auxiliary
- Unresolved: Published experimental code commit and masks/seeds/raw logs
- Unresolved: Empirical effects of fixing released support masking
- Unresolved: Corrected general capacity theorem and noisy-key retrieval guarantee
- The original report's complete scope, counterevidence and unresolved questions are retained below.
- This import checks publication format and identity; it does not repeat scientific review.
- Independent human scientific review is pending; author adoption has not been requested.
Source problem ID: p5
Source report index: 5

Original source excerpts (verbatim):
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.
Source: Published ICML 2025 proceedings PDF (PMLR 267)
Locator: Abstract, PDF p. 1
Source PDF SHA-256: b4e7817eff9051642973c055a248399da35c60a92f5aba8a86cd64677b40de47

Review status: Independent review pending
Case: icml2025-0199-nonparametric-modern-hopfield-models
Revision: 1
Record created: 2026-10-26T04:21:21.357774+00:00
Permalink: https://elvia-atlas.org/atlas/cases/icml2025-0199-nonparametric-modern-hopfield-models.html#problem-5
Versioned public record: https://elvia-atlas.org/atlas/evidence/icml2025-0199-nonparametric-modern-hopfield-models/records/icml2025-0199-nonparametric-modern-hopfield-models.r1.json
Canonical record SHA-256: cb0fed9166789ba798672dbb34e2d097517d2dc090d3f9996d40be783bbb5e60
The page follows the latest revision; the versioned record identifies this snapshot.