Manuscript Offprint
arXiv:2610.21493Phase Kernel Lifts Capacity of Dense Associative Memory
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Dense associative memory underlies modern attention mechanisms; however, Modern Hopfield Networks (MHNs) with linear kernels yield overlapping attractor basins and spurious states under high memory load, limiting their theoretically exponential storage capacity in practice. We construct a class of nonlinear phase kernels that modify the energy landscape and retrieval dynamics, and prove that these kernels preserve exponential storage capacity and local fixed-point convergence under given conditions on kernel smoothness, memory separation, and memory distributions. The framework is instantiated by the Sigmoidal Phase Hopfield Network (S-Hop), which guarantees monotone energy descent and mitigates practical capacity loss. S-Hop has and gains in one-step noisy retrieval load over Uniform Hopfield Networks (U-Hop) on CIFAR-10 and TinyImageNet respectively, and reaches a gain in first-failure load for ImageNet. The results demonstrate that phase kernels provide a principled route to robust dense associative memory .
1 Introduction
The MHN framework [1] provides a rigorous energy framework with provable capacity [2] and a direct mathematical equivalence to self-attention, yet most existing variants remain bound by linear or polynomial kernels that produce a dot-product energy surface in which increasing memory load can reduce pattern separation [3–5]. This geometric limitation causes narrow, overlapping attractor basins and spurious states under high memory load, motivating kernel designs that improve separation while retaining the MHN energy structure.
Continuous oscillator networks [6] offer a parallel paradigm in which stable retrieval emerges from smooth phase dynamics, and their success serves as the motivational starting point for our construction. Any modified kernel attempting to escape the geometric bottleneck of linear MHN must simultaneously preserve Lyapunov stability and exponential capacity, neither of which follows from a nonlinear feature substitution alone. Closing this gap therefore requires a structural condition on the kernel that is verifiable in advance and supports convergence and capacity analysis for a family of nonlinear embeddings, with energy descent verified for each instantiation.
Here, we propose a general theoretical framework that introduces a family of nonlinear phase kernels into MHN through separable strong convexity of the phase potential and a kernel contraction condition.
*Corresponding author: jamestang23@gmail.com
Code is available at https://github.com/Machine-learning-and-complex-systems/S-Hop.
40th Conference on Neural Information Processing Systems (NeurIPS 2026).
Under the stated assumptions, kernels in this family preserve exponential storage capacity and local fixed-point convergence. The induced Hessian metric controls local conditioning, while feature scale and separation also enter the capacity bound. S-Hop instantiates this framework with a coupled hyperbolic mapping and admits a concave-convex procedure (CCCP) with monotone energy descent. Figure 1 illustrates the energy-shaping motivation; the analysis establishes disjoint local attraction regions under a margin condition.
We evaluate S-Hop on MNIST, CIFAR-10, TinyImageNet, and ImageNet using one noisy retrieval update and a mean squared error (MSE) threshold of 0.1. On CIFAR-10 at , S-Hop achieves 92.07% mean success compared with 48.40% for U-Hop's public avg objective, a 43.67% percentage-point gain over three seeds. On ImageNet, S-Hop passes the 90% success criterion through at both and resolution (Figure 4). Scale and component controls identify contributions from feature scale and the energy-derived state update (Appendices D.1 and D.3). Figure 2 provides a visual illustration of image retrieval from noisy queries.
(a)

(b)
(c)


S-Hop (Nonlinear)
ImageNet (d = 150528)
Projection u
Figure 1: Framework, energy landscape, and capacity gains of S-Hop. (a) Schematic of the energy-shaping motivation for stored patterns. (b) Illustrative 2D energy contours around , , independently scaled to for each kernel. (c) Retrieval-load summaries on CIFAR-10 ( ) and ImageNet ( , ) for S-Hop, U-Hop [7], MHN [1], and Cosine Hopfield Network (C-Hop). S-Hop achieves passing-load ratios of over than the previous methods.
Our main contributions are:
• We introduce a class of nonlinear phase kernels for MHN. Their phase potential yields a component-wise inverse local field and an energy-derived retrieval update.
• We establish exponential storage capacity and local fixed-point convergence under explicit kernel and memory conditions. S-Hop also has monotone energy descent via CCCP.
• We quantify retrieval gains on MNIST, CIFAR-10, TinyImageNet, and ImageNet (Table 1). S-Hop supports more than 500 memories on MNIST, CIFAR-10, and ImageNet.
Tench Chainsaw Springer Church 1 Truck Gas 1 Horn Gas 2 Church 2 Church 3

Figure 2: Illustrative image retrieval from a shared memory bank of 500 ImageNet images. Each column shows a target image, its noisy query, and retrieval results after 20 updates ( ) without PCA or normalization. Queries are generated as with . S-Hop successfully retrieves target images, while MHN, U-Hop and C-Hop converge to other stored images.
via shared energy formulations [24–26], a correspondence further deepened by Rende et al. [27], who show that a single self-attention layer learns the conditionals of a generalized Potts model—a direct statistical-mechanics analogue of Hopfield energies. Santos et al. [28] further generalized this connection by formulating Hopfield-Fenchel-Young networks, revealing that sparsity and loss margins jointly govern exact single-pattern retrieval. Together, these results confirm that capacity and convergence in MHN are highly sensitive to the choice of interaction function—a sensitivity our nonlinear phase kernel framework directly exploits. Context-based retrieval [29] complements this approach by conditioning recall on auxiliary query signals.
Limitations of Linear Kernels Despite the widespread success of continuous MHN, most existing variants rely on linear or polynomial kernel functions for pattern embedding. As demonstrated by Jin and Zhao [4] and Hu et al. [3], linear mappings can exhibit overlapping attractor basins at high memory loads in high-dimensional memory spaces, causing memory confusion and spurious states under load. The role of low-dimensional representations in shaping these energy landscapes is studied in [30], providing theoretical grounding for this failure mode. Recent biologically plausible approaches [31, 32] escape this bottleneck through a two-layer architecture with threshold nonlinearity, achieving capacity exponential in the number of hidden units via distributed representations. These models operate in a discrete two-layer setting without a continuous-state energy landscape or continuous-state convergence guarantees—the regime targeted by our framework.
Uniform Retrieval, Oscillatory Dynamics, and Distance-Based Variants U-Hop [7] improves the capacity ratio by repositioning memory embeddings in a kernelized feature space, yet uses a learned linear projection, whereas S-Hop changes both the embedding and the phase-space retrieval update. Oscillator-based and input-driven dynamical models [6, 33–37] leverage continuous phase dynamics for stable retrieval, and recent work [38, 39] proves exponential capacity in honeycomb Kuramoto networks, but these paradigms operate outside the attention-equivalent energy framework. A parallel line of work [16, 34] reshapes basin geometry through distance-based overlaps rather than feature embeddings, achieving strong capacity gains via a memory-norm penalty that operates on an axis orthogonal to ours. Curved neural networks with higher-order interactions have also been introduced to enhance memory capacity and accelerate memory retrieval [40]. Our framework develops this complementary direction through separable, strongly convex phase potentials and explicit contraction conditions. These conditions support a family of nonlinear embeddings with exponential capacity and local convergence, while S-Hop additionally admits monotone energy descent.
3 Method
In this section, we formalize the proposed family of nonlinear phase kernels. We construct a surrogate Hopfield energy defined in phase space and derive tractable CCCP fixed-point dynamics. Here, d is the phase-space dimension and N the number of stored patterns.
3.1 Nonlinear Phase Kernel and Memory Patterns
We work with phase variables , motivated by continuous oscillator dynamics. Each memory pattern is represented by a phase vector for . We embed phases into an MHN feature space through a nonlinear map:
and denote the embedded memories by
Our theoretical framework applies to a class of kernels F satisfying the smoothness and derivative bounds (Appendix A) and a structural condition that enables a tractable implicit step in phase space (Section 3.3). As a concrete instantiation, we formulate the S-Hop architecture using the kernel in (3).
Here, , and the stored patterns are
This map is smooth and locally Lipschitz on any compact phase region, with a Jacobian sharing the same square-root structure used in our theoretical derivations. The analysis in Appendix A applies to kernels satisfying the stated structural and regularity conditions, of which (3) is one instance.
3.2 Hopfield Energy in Feature Space
Given a feature vector and memory matrix , the standard MHN energy in feature space is
where is an inverse-temperature parameter and denotes the log-sum-exp [1]. The logits induce softmax weights
where is the -dimensional probability simplex. The constant term in (5) does not affect the dynamics but simplifies parts of the theoretical analysis. The pullback through introduces the Jacobian into the phase-space update; the kernel structure below enables a component-wise implicit update.
3.3 Surrogate Energy in Phase Space
Directly pulling back through yields
For a general embedding, its regularizer gradient can couple phase coordinates. Our kernel family admits the component-wise representation:
(8) for some constant and a scalar local field acting component-wise. This identity decouples the implicit step across coordinates and makes the phase-space update transparent. For the S-Hop kernel, a direct calculation yields
which is smooth and globally strictly monotone on , hence admits a component-wise inverse . The local regularizer is
with understood component-wise. Appendix A (Lemma 3) shows that the quadratic kernel term
is globally -strongly convex, so is globally -strongly monotone and -Lipschitz, supporting the contraction analysis in Appendix B. The MHN log-sum-exp interaction is
Applying the chain rule gives [28]
where . The surrogate phase-space energy is .
For the S-Hop kernel, both and are globally strictly convex on (Appendix A), so admits a strict difference-of-convex decomposition and the iteration in the next subsection is a CCCP with monotone energy descent.
3.4 CCCP Fixed-Point Dynamics
The gradient of the surrogate energy has the form
so stationary points satisfy
Treating implicitly and explicitly, the CCCP update for the current phase with is defined by
Since h is globally strictly monotone, the implicit relation can be solved independently for each coordinate:
For S-Hop, whose F is injective, this induces a feature-space dynamical system,
which preserves the MHN interaction structure and, for S-Hop, satisfies the monotone descent with equality only at stationary points (Appendix A).
Geometrically, the separable strong convexity of Q induces a flat Hessian manifold on phase space with a Legendre isometry to its dual; the condition number controls the metric distortion and bounds the inverse-field sensitivity. See Appendix A.2 for the Hessian-geometric viewpoint.
Table 1: Retrieval loads at 90% MSE < 0.1 success: one update, . Public avg and ImageNet entries use three-seed means. U-Hop uses a block projection at . Times amortize MNIST training over 256 queries at (: RTX 5090). TinyImageNet: Appendix D.4.
| Method | MNIST | CIFAR-10 | ImageNet | Time (ms/q) | |
|---|---|---|---|---|---|
| MHN [1] | < 10 | < 10 | < 10 | < 10 | |
| U-Hop (max) [7] | 40 | < 10 | < 10 | < 10 | 10–40 |
| U-Hop (public avg) | 60 | < 10 | < 10 | ||
| C-Hop | < 10 | < 10 | < 10 | < 10 | |
| S-Hop (ours) | |||||
3.5 Theoretical Guarantees
Appendices A and B analyze the dynamics (18). Under the kernel smoothness and contraction conditions, and sufficient separation of the embedded patterns , we establish:
-
Local convergence. Around each stored phase there exists an invariant ball on which the phase-space update is a strict contraction. Each ball contains a unique fixed point; composing the convergent phase iterates with gives convergence in feature space.
-
Correct retrieval and disjoint basins. If the similarity gaps between each memory and its closest competitor satisfy the deterministic lower bound (124), the balls are pairwise disjoint, so each stored pattern has a dedicated basin.
-
Exponential storage capacity. For independent phase coordinates uniformly distributed on , the embedded memories satisfy the storage condition with probability at least for a failure bound whenever
for sufficiently large , where depends on the kernel and (Theorem 3). Storage thus has the same exponential order in as standard MHN [2].
4 Experiments
We evaluate the proposed nonlinear phase kernel framework, concretely instantiated as the S-Hop architecture, along five axes: (i) memory retrieval accuracy under increasing load, (ii) critical capacity measured by an MSE criterion, (iii) ablation of kernel and preprocessing, (iv) computational efficiency of the proposed kernel, and (v) generalization in a downstream CIFAR-10 classification task; full training curves are provided in Appendix C.
The implementation builds on the U-Hop codebase [7]. Unless otherwise stated, retrieval uses one update with , Gaussian query noise with standard deviation , and success criterion MSE < 0.1. “Perfect retrieval” in the plots denotes success under this MSE threshold. We define the noisy critical retrieval load as the largest tested with over success; a passing sweep endpoint gives a lower bound. Table 1 summarizes the loads. Our primary U-Hop comparison uses its public avg objective (Section 4.1); Figures 3–4 use this objective, with the max comparison retained in Table 1. Appendix D provides additional controls, and Appendix C evaluates a learned gating wrapper [41].
4.1 Memory Retrieval Performance and Capacity
With U-Hop's public avg objective, a three-seed CIFAR-10 comparison at gives success rates of for S-Hop, for U-Hop, and for MHN (mean sample standard deviation). The mean gain over U-Hop is 43.67 percentage points. All methods share memories, noisy queries, and one update, without principal component analysis (PCA) preprocessing [42]. U-Hop last passes at 60; S-Hop passes through 500, giving a tested-load ratio of at least 8.3. Figure 34 gives raw, normalized, and matched-logit curves; Appendix D.5 specifies the objective and protocol.
Figure 3 extends the public avg comparison to ImageNet at , averaging three seeds over . S-Hop maintains at least 90% success throughout the sweep, reaching at ; U-Hop reaches at this load. The error curves show lower mean reconstruction error for S-Hop as the memory load increases. These results extend the retrieval gain to high-resolution images; normalization and matched-scale controls on CIFAR-10 isolate the contributions of feature scale and retrieval dynamics (Appendix D.1).
Further tests examine retrieval across datasets and kernel instances. MNIST (d = 784) also gives , and Phase Hopfield Network (P-Hop) supplies a second admissible kernel (Appendices C.1 and C.2). A centered dot-product control compares our embedding with a variant without the norm-penalty mechanism of [34] (Appendix C.5). These comparisons connect retrieval performance to kernel choice and memory geometry.
(a)

Number of Stored Patterns (N)
(b)
Number of Stored Patterns (N)
Figure 3: ImageNet retrieval at , averaged over three seeds with U-Hop's public avg objective. (a) MSE < 0.1 success; outlined points mark first failures below 90% or passing endpoints. (b) Mean retrieval error. Shared memories and queries; one update, , , and no PCA.
4.2 Critical Capacity Across Datasets
(a)

(b)

Figure 4: ImageNet retrieval-load summaries at (a) and (b) , using three-seed mean success and U-Hop's public avg objective. Bars mark passing endpoints for S-Hop ( ) and first failures for the baselines ( ), under the protocol of Figure 3.
Table 1 summarizes retrieval loads on MNIST, CIFAR-10, and ImageNet. On MNIST, both S-Hop and U-Hop (public avg) pass through N = 500, with U-Hop achieving success at this load. On CIFAR-10, the normalized-logit sweep extends S-Hop's passing load to 5000, compared with 870 for MHN and 880 for U-Hop (max), giving tested-load ratios of approximately 5.75 and
5.68. With matched logit scale, S-Hop achieves success at , compared with for MHN and for U-Hop (Appendix D.1). The aligned sum-of-squared-differences (SSD) criterion gives the same pattern-level success decisions as MSE (Figure 11).
On ImageNet, S-Hop achieves and success at for and inputs, respectively (Figure 4). Both sweeps give , versus for U-Hop (public avg), a load advantage of over . TinyImageNet's gain and selected 500-memory result are reported together in Appendix D.4.
4.3 Ablation of Kernel and Preprocessing
Table 2: Ablation study and protocol checks on CIFAR-10 (). Loads are passing endpoints or first failures, identified in the final column. “↓linear” denotes the linear-kernel ablation. U-Hop uses max unless indicated.
| Variant | Load | Key observation |
|---|---|---|
| S-Hop (full) | ≥ 500 | Passing sweep endpoint |
| w/o PCA | — | Retrieval error increases under noise |
| P-Hop (2nd admissible kernel) | 50 | Below 90% success at this load |
| ↓linear (w/o nonlinear kernel) | 10 | Below threshold at the smallest load |
| C-Hop (cosine kernel) | 10 | Violates strong convexity |
| Cross-framework & metric robustness | ||
| S-Hop (SSD metric) | ≥ 500 | Equivalent threshold, SSD < 0.1d |
| S-Hop (legacy avg) | ≥ 500 | Passing endpoint in this comparison |
| S-Hop + Gating | ≥ 500 | Passing endpoint; heuristic update |
| U-Hop (legacy avg) | 60 | 81.7% success; below threshold |
| H-Hop- (dot-product degenerate of [34]) | 40 | Centered overlap; norm penalty removed |
Table 2 summarizes the kernel and preprocessing controls. A similarity-only S-Hop variant fails the criterion at , while restoring the joint Jacobian/inverse-field update recovers a curve close to full S-Hop through . S-Hop also outperforms the learned U-Hop embedding (Figure 28). Figure 29 presents the preprocessing and noise controls, and Figures 8–9 compare the two admissible kernels.
4.4 Computational Efficiency Trade-Offs

Figure 5: Efficiency trade-off between mean retrieval error and amortized wall-clock time per query, exemplified on CIFAR-10 under the original max protocol. U-Hop training is performed once per memory set and amortized over 256 queries at N=300; S-Hop uses a training-free retrieval map.
On MNIST at N = 300, S-Hop requires approximately 1.5 ms per query, compared with 0.1 ms for MHN and 10–40 ms for U-Hop (max; Figure 5). S-Hop has the lowest retrieval error in this comparison and is approximately 7–27 times faster than U-Hop when projection training is amortized over 256 queries. U-Hop trains its projection once per memory set and fixes it during retrieval; its amortized cost therefore decreases as more queries share that memory set. These measurements place S-Hop between MHN's lower latency and U-Hop's training overhead while improving retrieval accuracy.
4.5 Energy-Shaped Classification on CIFAR-10
We integrate S-Hop layers into a CIFAR-10 classifier by replacing attention-based aggregation modules; a hybrid of early S-Hop and later MHN layers achieves test accuracy, approximately 0.2 percentage points above the best baseline peak in the 100-epoch run (Figure 20, Appendix C). These results extend the evaluation to supervised classification. Supplementary retrieval, gating, and multiple-instance learning (MIL) results are reported in Appendix C.
5 Discussion
The retrieval protocol specifies the inverse temperature and evaluation noise level . The original capacity experiments use , , and one update, with success measured by MSE < 0.1. One update gives a shared evaluation budget, while repeated updates connect the experiments to the convergence analysis. Appendix D.2 examines how error thresholds, identification criteria, and additional updates affect retrieval.
PCA denoising reduces input variance before storage through spectral shrinkage with regularization parameter . Our ablation shows improved retrieval at higher noise ( ) without changing the phase-kernel update (Figure 16). The load–error curves in Figure 29 support preprocessing as a complementary source of robustness.
Memory geometry affects retrieval alongside input dimension. The TinyImageNet selection and target-removal controls link performance to memory separation and stored-memory information (Appendix D.4). The ImageNet resolution comparison extends this observation to two input dimensions. These results motivate representations with well-separated memories and comparable feature norms.
The scale and component controls identify contributions from both feature scale and the complete retrieval map (Figures 22 and 28). S-Hop and P-Hop share admissibility conditions but differ in their Jacobians, inverse local fields, and finite-dimensional performance (Appendix B.6). Extending these conditions to learned phase kernels could adapt retrieval to correlated data.
6 Conclusion
We introduced a nonlinear phase-kernel framework that reshapes both the MHN energy landscape and its retrieval dynamics. Separable strong convexity makes the inverse local field tractable, while explicit contraction and memory-separation conditions establish local convergence. The framework preserves exponential storage capacity for independent random phases, and S-Hop additionally guarantees monotone energy descent.
The experiments connect this construction to larger one-step noisy retrieval loads. S-Hop passes through 500 memories on MNIST, CIFAR-10, and ImageNet at both resolutions, while U-Hop (public avg) passes through 500 on MNIST, last passes at 60 on CIFAR-10, and falls below threshold at 10 on ImageNet. TinyImageNet, scale, and component controls connect these gains to memory separation, feature scale, and the joint Jacobian/inverse-field update. These results establish phase-kernel design as a practical means of improving dense associative retrieval with an analyzable energy model.
6.1 Limitations
The capacity theorem assumes independent, uniformly distributed phases, whereas natural images have correlated pixels and uneven feature norms. The original TinyImageNet subset contains visually similar goldfish images with lower average brightness than the selected subset and has a retrieval-load threshold of 40. Selecting better-separated memories with comparable feature norms raises the passing load to over 500 at the same resolution (Appendix D.4). This improvement motivates extending the theory to correlated image distributions and evaluating independently sampled memory sets. Stricter retrieval criteria, separate Jacobian and inverse-field ablations, energy-based gating, and faster kernel evaluation provide further routes to robust and efficient associative memory (Appendix D.6).
Acknowledgments and Disclosure of Funding
We thank Hong Zhao and Tailin Wu for discussions. This work is supported by Projects 12322501, 12575035 of the National Natural Science Foundation of China, and 2026NSFSCZY0124 of the Natural Science Foundation of Sichuan Province.
References
[1] Hubert Ramsauer, Bernhard Schäfl, Johannes Lehner, Philipp Seidl, Michael Widrich, Lukas Gruber, Markus Holzleitner, Thomas Adler, David Kreil, Michael K Kopp, Günter Klambauer, Johannes Brandstetter, and Sepp Hochreiter. Hopfield networks is all you need. In Proc. Int. Conf. Learn. Represent., 2021. URL https://openreview.net/forum?id=tL89RnzIiCd.
[2] Carlo Lucibello and Marc Mézard. Exponential capacity of dense associative memories. Phys. Rev. Lett., 132(7):077301, 2024. URL https://doi.org/10.1103/PhysRevLett.132.077301.
[3] Jerry Yao-Chieh Hu, Donglin Yang, Dennis Wu, Chenwei Xu, Bo-Yu Chen, and Han Liu. On sparse modern Hopfield model. In Adv. Neural Inf. Process. Syst., volume 36, pages 27594–27608, 2023. URL https://proceedings.neurips.cc/paper_files/paper/2023/hash/57bc0a850255e2041341bf74c7e2b9fa-Abstract-Conference.html.
[4] Tao Jin and Hong Zhao. Pattern recognition using asymmetric attractor neural networks. Phys. Rev. E, 72(6):066111, 2005. URL https://doi.org/10.1103/PhysRevE.72.066111.
[5] Saul Santos, Nuno Gonçalves, Daniel C. McNamee, Marcos Vinicius Treviso, and André F. T. Martins. Sparse associative memories through the lens of compact kernel regression. In Workshop on New Frontiers in Associative Memories (NFAM) at ICLR 2026, 2026. URL https://openreview.net/forum?id=8AGVhVFKsk.
[6] Takashi Nishikawa, Ying-Cheng Lai, and Frank C Hoppensteadt. Capacity of oscillatory associative-memory networks with error-free retrieval. Phys. Rev. Lett., 92(10):108101, 2004. URL https://doi.org/10.1103/PhysRevLett.92.108101.
[7] Dennis Wu, Jerry Yao-Chieh Hu, Teng-Yun Hsiao, and Han Liu. Uniform memory retrieval with larger capacity for modern Hopfield models. In Proc. Int. Conf. Mach. Learn., volume 235 of Proc. Mach. Learn. Res., pages 53282–53314. PMLR, 21–27 Jul 2024. URL https://proceedings.mlr.press/v235/wu24i.html.
[8] SG Hu, Y Liu, Z Liu, TP Chen, JJ Wang, Q Yu, LJ Deng, Y Yin, and Sumio Hosaka. Associative memory realized by a reconfigurable memristive hopfield neural network. Nat. Commun., 6(1):7522, 2015. URL https://doi.org/10.1038/ncomms8522.
[9] John J Hopfield. Neural networks and physical systems with emergent collective computational abilities. Proc. Natl. Acad. Sci. U.S.A., 79(8):2554–2558, 1982. URL https://doi.org/10.1073/pnas.79.8.2554.
[10] Dmitry Krotov, Benjamin Hoover, Parikshit Ram, and Bao Pham. Modern methods in associative memory, 2025. URL https://icml.cc/virtual/2025/tutorial/40004. Tutorial presented at ICML 2025.
[11] Miquel Noguer i Alonso. John hopfield's contributions to neural networks: A detailed mathematical exploration. SSRN Electron. J., 2024. URL https://doi.org/10.2139/ssrn.4980016.
[12] Dmitry Krotov. A new frontier for Hopfield networks. Nat. Rev. Phys., 5(7):366–367, 2023. doi: 10.1038/s42254-023-00595-y. URL https://www.nature.com/articles/s42254-023-00595-y.
[13] Dmitry Krotov and John J Hopfield. Dense associative memory for pattern recognition. In Adv. Neural Inf. Process. Syst., volume 29, 2016. URL https://proceedings.neurips.cc/paper_files/paper/2016/hash/eaae339c4d89fc102edd9dbdb6a28915-Abstract.html.
[14] Dmitry Krotov and John J Hopfield. Large associative memory problem in neurobiology and machine learning. In Proc. Int. Conf. Learn. Represent., 2021. URL https://openreview.net/forum?id=X4y_100X-hX.
[15] Mete Demircigil, Judith Heusel, Matthias Löwe, Sven Upgang, and Franck Vermet. On a model of associative memory with huge storage capacity. J. Stat. Phys., 168(2):288–299, 2017. URL https://doi.org/10.1007/s10955-017-1806-y.
[16] Benjamin Hoover, Zhaoyang Shi, Krishnakumar Balasubramanian, Dmitry Krotov, and Parikshit Ram. Dense associative memory with Epanechnikov energy. In Adv. Neural Inf. Process. Syst., volume 38, 2025. URL https://openreview.net/forum?id=ZbQ5Zq3zA3. Spotlight.
[17] Hamza Tahir Chaudhry, Jacob A. Zavatone-Veth, Dmitry Krotov, and Cengiz Pehlevan. Long sequence Hopfield memory. In Adv. Neural Inf. Process. Syst., volume 36, pages 54300–54340, 2023. URL https://proceedings.neurips.cc/paper_files/paper/2023/hash/aa32ebcdd2ce1bed4ef7f456fc8fa5c1-Abstract-Conference.html.
[18] Matteo Negri, Clarissa Lauditi, Gabriele Perugini, Carlo Lucibello, and Enrico Malatesta. Storage and learning phase transitions in the random-features Hopfield model. Phys. Rev. Lett., 131(25):257301, 2023. URL https://doi.org/10.1103/PhysRevLett.131.257301.
[19] Jerry Yao-Chieh Hu, Dennis Wu, and Han Liu. Provably optimal memory capacity for modern Hopfield models: Transformer-compatible dense associative memories as spherical codes. In Adv. Neural Inf. Process. Syst., volume 37, pages 70693–70729, 2024. URL https://proceedings.neurips.cc/paper_files/paper/2024/hash/82846e19e6d42ebfd4ace4361def29ae-Abstract-Conference.html.
[20] Benjamin Hoover, Yuchen Liang, Bao Pham, Rameswar Panda, Hendrik Strobelt, Duen Horng Chau, Mohammed J. Zaki, and Dmitry Krotov. Energy transformer. In Adv. Neural Inf. Process. Syst., volume 36, pages 27532–27559. Curran Associates, Inc., 2023. doi:10.52202/075280-1197. URL https://proceedings.neurips.cc/paper_files/paper/2023/hash/57a9b97477b67936298489e3c1417b0a-Abstract-Conference.html.
[21] Matthew Smart, Alberto Bietti, and Anirvan M. Sengupta. In-context denoising with one-layer transformers: Connections between attention and associative memory retrieval. In Proc. Int. Conf. Mach. Learn., volume 267 of Proc. Mach. Learn. Res., pages 55950–55971. PMLR, 13–19 Jul 2025. URL https://proceedings.mlr.press/v267/smart25a.html.
[22] Rasmus Høier, Tugdual Kerjan, and Benjamin Scellier. Training a convergent energy transformer with equilibrium propagation. In Workshop on New Frontiers in Associative Memories (NFAM) at ICLR 2026, 2026. URL https://openreview.net/forum?id=Qrfml76eWJ.
[23] Alexi Gladstone, Ganesh Nanduru, Md Mofijul Islam, Peixuan Han, Hyeonjeong Ha, Aman Chadha, Yilun Du, Heng Ji, Jundong Li, and Tariq Iqbal. Energy-based transformers are scalable learners and thinkers. In Proc. Int. Conf. Learn. Represent., 2026. URL https://openreview.net/forum?id=ZBj3Qp1bYg.
[24] Luca Ambrogioni. In search of dispersed memories: Generative diffusion models are associative memory networks. Entropy, 26(5):381, 2024. URL https://doi.org/10.3390/e26050381.
[25] Adrian Rodriguez, Benjamin Hoover, Yunhui Guo, and Yilun Du. Generative associative memory via equilibrium matching. In Workshop on New Frontiers in Associative Memories (NFAM) at ICLR 2026, 2026. URL https://openreview.net/forum?id=4zjhUaeeVh.
[26] Bao Pham, Gabriel Raya, Matteo Negri, Mohammed J. Zaki, Luca Ambrogioni, and Dmitry Krotov. Memorization to generalization: Emergence of diffusion models from associative memory networks. In Workshop on New Frontiers in Associative Memories (NFAM) at ICLR 2025, 2025. URL https://openreview.net/forum?id=IWZnhP3YgK.
[27] Riccardo Rende, Federica Gerace, Alessandro Laio, and Sebastian Goldt. Mapping of attention mechanisms to a generalized Potts model. Phys. Rev. Res., 6(2):023057, 2024. URL https://doi.org/10.1103/PhysRevResearch.6.023057.
[28] Saul Santos, Vlad Niculae, Daniel McNamee, and André FT Martins. Hopfield-fenchel-young networks: A unified framework for associative memory retrieval. J. Mach. Learn. Res., 26(265):1–51, 2025. URL https://jmlr.org/papers/v26/24-1961.html.
[29] Moulik Choraria, Argyrios Gerogiannis, Vidhata Jayaraman, Ankur Mani, and Lav R. Varshney. Towards context-based retrieval in associative memories. In Workshop on New Frontiers in Associative Memories (NFAM) at ICLR 2026, 2026. URL https://openreview.net/forum?id=BuiIB04Mmr.
[30] David Lipshutz. On low-dimensional representations and associative memory energy functions. In Workshop on New Frontiers in Associative Memories (NFAM) at ICLR 2026, 2026. URL https://openreview.net/forum?id=9fvo0b0B0B.
[31] Mohadeseh Shafiei Kafraj, Dmitry Krotov, and Peter E. Latham. A biologically plausible dense associative memory with exponential capacity. In Proc. Int. Conf. Learn. Represent., 2026. URL https://openreview.net/forum?id=mRZ0ayQL1i.
[32] Leo Kozachkov, Jean-Jacques Slotine, and Dmitry Krotov. Neuron–astrocyte associative memory. Proc. Natl. Acad. Sci. U.S.A., 122(21):e2417788122, 2025. URL https://doi.org/10.1073/pnas.2417788122.
[33] Simone Betteti, Giacomo Baggio, Francesco Bullo, and Sandro Zampieri. Input-driven dynamics for robust memory retrieval in Hopfield networks. Sci. Adv., 11(17):eadu6991, 2025. URL https://doi.org/10.1126/sciadv.adu6991.
[34] Benjamin Hoover, Duen Horng Chau, Hendrik Strobelt, Parikshit Ram, and Dmitry Krotov. Dense associative memory through the lens of random features. In Adv. Neural Inf. Process. Syst., volume 37, pages 23549–23576, 2024. URL https://proceedings.neurips.cc/paper_files/paper/2024/hash/29ff36c8fbed10819b2e50267862a52a-Abstract-Conference.html.
[35] Takeru Miyato, Cindy Löwe, Andreas Geiger, and Max Welling. Artificial kuramoto oscillatory neurons. In Proc. Int. Conf. Learn. Represent., 2025. URL https://openreview.net/forum?id=nwDRD4AMoN.
[36] Takashi Nishikawa, Frank C Hoppensteadt, and Ying-Cheng Lai. Oscillatory associative memory network with perfect retrieval. Phys. D: Nonlinear Phenom., 197(1-2):134–148, 2004. URL https://doi.org/10.1016/j.physd.2004.06.011.
[37] Qingshan Wang, Clara C Wanjura, and Florian Marquardt. Training coupled phase oscillators as a neuromorphic platform using equilibrium propagation. Neuromorph. Comput. Eng., 4(3): 034014, 2024. URL https://doi.org/10.1088/2634-4386/ad752b.
[38] Taosha Guo, Arie Ogranovich, Arvind R Venkatakrishnan, Madelyn R Shapiro, Francesco Bullo, and Fabio Pasqualetti. Oscillatory associative memory with exponential capacity. In Proc. IEEE Conf. Decis. Control, pages 986–991, 2025. URL https://ieeexplore.ieee.org/document/11312859.
[39] Arie Ogranovich, Taosha Guo, Arvind R. Venkatakrishnan, Madelyn Shapiro, Francesco Bullo, and Fabio Pasqualetti. Oscillator-based associative memory with exponential capacity: Theory, algorithms, and hardware implementation. arXiv preprint arXiv:2604.01469, 2026. URL https://arxiv.org/abs/2604.01469.
[40] Miguel Aguilera, Pablo A Morales, Fernando E Rosas, and Hideaki Shimazaki. Explosive neural networks via higher-order interactions in curved statistical manifolds. Nat. Commun., 16(1):6511, 2025. URL https://www.nature.com/articles/s41467-025-61475-w.
[41] Zihan Qiu, Zekun Wang, Bo Zheng, Zeyu Huang, Kaiyue Wen, Songlin Yang, Rui Men, Le Yu, Fei Huang, Suozhi Huang, Dayiheng Liu, Jingren Zhou, and Junyang Lin. Gated attention for large language models: Non-linearity, sparsity, and attention-sink-free. In Adv. Neural Inf. Process. Syst., 2025. URL https://openreview.net/forum?id=1b7wh04SfY.
[42] Yann Le Cun, Ido Kanter, and Sara A Solla. Eigenvalues of covariance matrices: Application to neural-network learning. Phys. Rev. Lett., 66(18):2396, 1991. URL https://doi.org/10.1103/PhysRevLett.66.2396.
[43] Hirohiko Shima. The Geometry of Hessian Structures. World Scientific, 2007. URL https://www.worldscientific.com/worldscibooks/10.1142/6241.
[44] Shun-ichi Amari and Hiroshi Nagaoka. Methods of Information Geometry, volume 191 of Translations of Mathematical Monographs. American Mathematical Society, 2000. URL https://bookstore.ams.org/mmono-191.
[45] R. Tyrrell Rockafellar. Convex Analysis. Princeton University Press, 1970. URL https://press.princeton.edu/books/paperback/9780691015866/convex-analysis.
[46] Wassily Hoeffding. Probability inequalities for sums of bounded random variables. J. Am. Stat. Assoc., 58(301):13–30, 1963. doi: 10.1080/01621459.1963.10500830. URL https://doi.org/10.1080/01621459.1963.10500830.
Appendix
A Theoretical Framework: Regularity, Convexity, and Energy Descent 15
A.1 Notation Table 15
A.2 Kernel Family Viewpoint 17
A.3 Verification of the CCCP Structural Identity 19
A.4 Regularity of the Kernel and Dynamics 20
A.5 Strong Convexity of the Local Phase Potential 20
A.6 Gradient of the Log-Sum-Exp Term 22
A.7 Global Strict Convexity of for S-Hop 22
A.8 Strict CCCP Descent for S-Hop 25
B Convergence, Storage Capacity, and Instantiation Comparison 26
B.1 Local Approximation at a Stored Pattern 26
B.2 Invariant Balls and Margin Conditions 27
B.3 Jacobian Bounds and Contraction 29
B.4 Correct Storage and Separation of Basins 34
B.5 Exponential Storage Capacity 35
B.6 Theoretical Comparison of P-Hop and S-Hop Instantiations 36
C Additional Numerical Results 37
C.1 MNIST Retrieval and Capacity 38
C.2 Framework-Level Validation: A Second Kernel Instance 39
C.3 Robustness Under the U-Hop SSD Metric 40
C.4 Alternative U-Hop Evaluation Protocol (Avg vs. Max) 41
C.5 Comparison with a Centered Dot-Product Control 42
C.6 Extended Ablations and Diagnostics 43
C.7 Gating Wrapper: Additional Retrieval Gains 43
C.8 Additional Generalization: MIL 45
C.9 Energy-Shaped Classification on CIFAR-10 45
D Additional Retrieval Analyses 46
D.1 Scale, Centering, and Minimum-Margin Controls 46
D.2 Retrieval Criteria and Multiple Updates 49
D.3 Similarity, Dynamics, Dimension, and Preprocessing 53
D.4 Cross-Dataset Separation and ImageNet 54
D.5 Public Average-Separation Baseline and Training Diagnostics 57
D.6 Empirical Findings and Future Directions 58
A Theoretical Framework: Regularity, Convexity, and Energy Descent
This part develops the structural foundations of the nonlinear phase kernel family. We introduce the notation (Appendix A.1) and the Hessian-geometric viewpoint (Appendix A.2), verify the CCCP decoupling identity (Appendix A.3), and establish the regularity and global strong convexity of the local phase potential (Appendices A.4–A.6). For the S-Hop instantiation, we additionally prove global strict convexity of the interaction term (Appendix A.7) and derive the monotone CCCP energy descent guarantee (Appendix A.8, Theorem 2). These structural results underpin the contraction and storage-capacity analysis in Appendix B.
A.1 Notation Table
Tables 3 and 4 summarize the model, proof, and experimental notation.
Table 3: Key mathematical notation.
| Notation | Description |
|---|---|
| Dimensions and Constants | |
| Phase-space dimension. | |
| Capacity ratio, . | |
| Feature-space dimension; for S-Hop. | |
| Number of stored memories. | |
| Largest tested load with success at MSE < 0.1. | |
| Softmax inverse temperature. | |
| State Variables and Memory Patterns | |
| Phase state and phase of memory , in . | |
| Embedded state in . | |
| Embedded memory, . | |
| Memory matrix, . | |
| Attention weights, . | |
| Functions and Energy Terms | |
| Phase kernel, . | |
| Jacobian of . | |
| Transposed Jacobian, . | |
| Standard MHN energy in feature space. | |
| Surrogate Hopfield energy in phase space. | |
| Local regularizer and interaction energy. | |
| Dynamical energy, . | |
| Phase potential, . | |
| Component-wise local field, . | |
| Feature-space fixed-point update. | |
| Theoretical Bounds and Geometry | |
| Invariant phase-space ball centered at . | |
| Memory margin, . | |
| State-dependent margin, . | |
| Margin threshold for correct storage. | |
| Strong-convexity and gradient-Lipschitz constants of . | |
| Hessian-metric condition number, . | |
| Kernel structural bound; admissibility requires . | |
| Lipschitz constant of . | |
| Bound on and over the phase region. | |
| Storage-failure probability bound, . | |
| Common state and memory norm bound, Eq. (37). | |
| Lipschitz bound for ; uniform derivative bound. | |
| Scalar-feature variance; coordinate-margin bound, Eqs. (126)–(127). | |
| Capacity exponent in , Eq. (129). | |
Table 4: Additional notation for geometry, proofs, and experiments.
| Notation | Description |
|---|---|
| Indices, Operators, and Kernel Geometry | |
| Memory, coordinate, and scalar-feature indices (). | |
| Iteration index and iterates; also denotes a scalar argument. | |
| ; id | Identity matrix (size for ); identity map. |
| Euclidean/spectral norm; maximum absolute value or supremum. | |
| Euclidean inner product; positive-semidefinite matrix order. | |
| Gradient, Hessian, and Jacobian; primes denote scalar derivatives. | |
| Log-sum-exp, logit vector, and probability simplex. | |
| tanh, sech, arctanh | Hyperbolic tangent, hyperbolic secant, and inverse hyperbolic tangent. |
| Scalar features; potential and constant in . | |
| S-Hop radicals, and . | |
| Auxiliary function, . | |
| Scalar convexity numerator, . | |
| Stationary point ; negative-tail variable. | |
| Weighted feature coordinate, . | |
| Hessian metrics; Fenchel conjugate of . | |
| Tangent space at . | |
| Local tangent/dual vectors or scalar integration variables. | |
| Differential of ; Bregman divergence generated by . | |
| Local Dynamics and Capacity Proofs | |
| Compact convex region containing stored phases and invariant balls. | |
| Phase update and its Jacobian. | |
| Stationary phase and feature states. | |
| Attracting fixed point in and its image . | |
| Distances from the current or intermediate phase point to . | |
| Intermediate phase point and its feature image. | |
| Stored-pattern softmax leakage bound, . | |
| Upper bounds on softmax leakage . | |
| Uniform contraction factor on an invariant ball, . | |
| Leakage and displacement coefficients, Eq. (103). | |
| , , | Perturbation bounds; softmax contribution to . |
| Load thresholds for contraction, invariance, and correct storage. | |
| Transformed memory, . | |
| Local-field input ; weighted memory . | |
| Softmax covariance and Jacobian . | |
| Derivative of with held fixed. | |
| Feature residual, . | |
| Directed gap and coordinate- contribution. | |
| Norm coefficient; storage-threshold growth constant. | |
| Probability, expectation, and variance. | |
| Asymptotic upper-order and vanishing relative-order notation. | |
Table 4 (continued)
| Notation | Description |
|---|---|
| Retrieval, Preprocessing, and Diagnostic Quantities | |
| (Figure 1) | Illustrative memories; orthonormal memory-plane directions. |
| Standard deviation of Gaussian query noise. | |
| Target, retrieved output, and their pixel coordinates. | |
| MSE, SSD | Mean squared error and squared-difference sum; SSD = d MSE. |
| clamp; cos | Coordinate-wise clipping; cosine similarity. |
| PCA shrinkage regularizer and memory-covariance eigenvalue. | |
| Raw memory matrix and next phase state. | |
| Mean raw and embedded memories in centering controls. | |
| (Appendix C.5) | Query, memory, and memory mean; tildes denote centered values. |
| U-Hop projection and normalized memory . | |
| Method, query, and their indexed features in scale controls. | |
| Raw and normalized scores for method and memory . | |
| Softmax entropy (nats); mean within-query logit standard deviation. | |
| Mean logit spread; scale multiplier . | |
| Minimum directed feature gap for method . | |
| Std, mean | Standard deviation and arithmetic mean. |
We analyze the feature-space fixed-point iteration from the main text:
with and .
The nonlinear phase kernel is
so that the feature-space dimension is . Stored patterns are , and has the same square-root structure. All boundedness and Lipschitz conditions required in the analysis will follow from the explicit kernel above together with the global properties of the local field in Lemma 3 below.
A.2 Kernel Family Viewpoint
Although we work throughout with the explicit kernel (21) for concreteness, the arguments in this appendix are not specific to the hyperbolic-tangent instance. More generally, the phase-space analysis applies to smooth coordinate-wise kernels with and . We require that the associated phase potential
is (up to an additive constant) separable and strongly convex in the phase coordinates. Concretely, we require that can be written as
for some scalar and constant , so that the local field acts component-wise and admits a component-wise inverse on its range. In addition, we assume uniform Hessian bounds
for some constants , which ensure that is globally -strongly monotone and -Lipschitz and that is globally Lipschitz on range(). We further assume that is globally Lipschitz, equivalently that the third derivative is uniformly bounded:
This is a mild regularity condition on the scalar potential q and is used only in the Jacobian-perturbation step of Lemma 10 (Step 4). Together with smoothness of F on compact phase regions, these conditions give the regularity bounds in Lemma 2. The contraction argument also uses the condition below. The separable form (23), Hessian bounds (24), and third-derivative bound (25) can be checked directly for S-Hop and P-Hop.
In addition, we require the following contraction condition on the component functions , of (i.e., and ):
The identity then gives
In particular, the scalar feature pair is nonconstant and has a uniformly bounded derivative. S-Hop satisfies (26) by Lemma 10, Step 1; the P-Hop bound is verified in Appendix B.6.
Remark (Hessian-geometric interpretation of the kernel family). The structural conditions (23)–(26) admit a clean geometric reading in terms of Hessian geometry [43, 44], which we state here as an interpretive summary. No new assumptions are introduced; all claims below follow from Lemma 3 by standard results in convex analysis [45].
Induced Hessian metric. The global Hessian bounds from Lemma 3 imply that induces a flat Hessian metric on phase space,
turning into a smooth Riemannian manifold. By separability of (Eq. (23)), the metric is diagonal with entries .
Dual metric and Legendre isometry. Since is globally strongly convex and essentially smooth, it is of Legendre type in the sense of Rockafellar [45, §26], so its Fenchel conjugate is also smooth and strongly convex, with
The dual manifold carries the dual Hessian metric , satisfying . The Legendre map is a Riemannian isometry: for any tangent vectors ,
which follows directly from and (28).
CCCP update as primal–dual–primal trajectory. Using , the update rule (17) rewrites as
which admits the geometric reading: (i) compute in the dual space ; (ii) pull it back to primal phase space via the dual gradient . The separability of preserves separability of [45, Theorem 16.4], making component-wise tractable—this is precisely the structural property exploited in Lemma 1.
Condition number as a unified geometric constant. The condition number from Lemma 3 admits three interrelated geometric interpretations in our framework, each following from Lemma 3 together with the isometry (29):
(i) Ellipsoidal distortion. The metric relative to the Euclidean metric has maximal-to-minimal eigenvalue ratio at most uniformly in ; equivalently, the metric ellipsoid has semi-axis ratio at most .
(ii) Bregman asymmetry. The induced Bregman divergence satisfies
for , quantifying its asymmetry.
(iii) Inverse-field sensitivity. The inverse local field has Lipschitz constant at most , and the softmax contribution to the Jacobian bound is . Appendix B.6 gives the leading capacity-scale dependence and the lower-order regularity terms.
For S-Hop, , whereas P-Hop has (Appendix B.6). These bounds characterize the local-potential geometry. The linear embedding has and recovers the standard MHN, which retains exponential-order capacity under its usual assumptions.
The strong-convexity bounds enter the convergence and capacity proofs together with the kernel contraction and memory-margin conditions. The geometric interpretation identifies separable strong convexity with a flat Hessian manifold and well-behaved Legendre duality [43].
A.3 Verification of the CCCP Structural Identity
The surrogate-energy construction in Section 3.3 requires that the phase potential satisfies the decoupling identity
for a component-wise local field and some additive constant . This identity is the structural prerequisite for the CCCP update (16)–(17): it ensures that the implicit step can be inverted component-wise via . For a general kernel in our family the convexity of is not guaranteed, and the update has the form of a CCCP-inspired iteration. However, for the S-Hop kernel (21) we prove in Section A.7 that is globally strictly convex, upgrading the iteration to a genuine CCCP with monotone energy descent (Theorem 2, Section A.8). We now verify this identity explicitly for the S-Hop kernel (21).
Lemma 1 (CCCP structural identity for S-Hop). For the S-Hop kernel F defined in (21), the identity (8) holds with the local field
and the constant . Consequently, the local regularizer is with gradient (cf. Eq. (10)), and the CCCP update (16)–(17) is well-defined, yielding the feature-space iteration in (18).
Proof. Expanding the left-hand side of (8) using the explicit form of F in (21):
(33)
For the right-hand side, we compute the antiderivative of . Using the standard integral , we obtain
Summing over k and adding C = d:
Comparing (33) and (35) term by term establishes (8) with C = d.
Since and for all (Lemma 3 below), is globally strictly monotone and hence admits a component-wise inverse on . This guarantees that the implicit CCCP relation (Eq. (16)) uniquely determines , yielding the component-wise implicit update (Eq. (17)) and the feature-space iteration in (18).
Comparison with the P-Hop identity. For the P-Hop kernel, the analogous identity holds with and , following from . Both kernels thus satisfy the decoupling condition with the same constant ; their local fields and regularity properties are analyzed in the following subsections.
A.4 Regularity of the Kernel and Dynamics
Lemma 2 (Regularity of the kernel and dynamics). Let be a compact convex phase region containing the stored phases and the balls used below (note that is injective on , since is strictly monotone and the map is injective on ). For the kernel in (21) and the component-wise local field
the following hold.
- There exist finite constants such that, for all , and all stored patterns with ,
-
Both and are globally Lipschitz, with constants bounded by .
-
The Jacobians of and are globally bounded, and the derivative of is bounded on . Their operator-norm bounds are absorbed into .
In particular, the map T in (20) is smooth on , and all subsequent bounds involving M, , and are understood to hold uniformly on this compact phase region.
Proof. For each k, the radicands in (21) are
Radicand . Since for all , the second component is smooth everywhere with no clamping required.
Radicand . Using for all , we have . For an explicit bound, when , giving ; for , . Thus globally. Hence each component of in (21) is smooth and has bounded derivative on , and so does .
Since is compact and is continuous, is compact and the norms of and are uniformly bounded; the same holds for because is continuous and are bounded. This yields (37) for a suitable .
From Lemma 3 below we know that is globally Lipschitz and -strongly monotone on for some , so is a diffeomorphism onto its range and is globally Lipschitz with constant at most . The derivative bound following (26) makes globally Lipschitz, so is globally Lipschitz as well. Finally, since is compact and all maps under consideration are smooth, their Jacobians are uniformly bounded on , and we absorb those bounds into .
A.5 Strong Convexity of the Local Phase Potential
We next record a simple global convexity property of the quadratic term associated with the nonlinear phase kernel. Recall that the kernel map with is given componentwise by (21), and that the local phase potential in the main text is defined as
In the main-text energy decomposition, equals up to a constant.
Lemma 3 (Strong convexity of the local phase potential). There exist global constants such that
In particular, (and hence ) is -strongly convex on , and its gradient is -strongly monotone and -Lipschitz on .
Proof. By the explicit form of F, we obtain
where the one-dimensional potential is
In particular, Q is separable in the coordinates and its Hessian is diagonal:
Differentiating q twice, we obtain
Here we used the standard identity .
We now bound the perturbation term . Setting :
(44)
Since for all , the critical points satisfy . Using the identity , this gives , hence and .
At these critical points, , so
Since and as , the global extrema of are indeed attained at , confirming . Therefore
This immediately yields the uniform bounds
so we can take
in (39). The corresponding condition number is .
By construction we also have , and component-wise
(48) which coincides with the local field used in the main text and in (36). The eigenvalue bounds (39) imply that is -strongly convex and that its gradient is -strongly monotone and -Lipschitz on : for all ,
In particular, strong monotonicity yields a global Lipschitz bound on the inverse of on its range: whenever and ,
so that is injective and is globally Lipschitz with constant at most on range. Since differs from only by an additive constant, it inherits the same strong convexity and smoothness properties. These global bounds on and will be used in the contraction analysis of the fixed-point map below.
A.6 Gradient of the Log-Sum-Exp Term
We derive explicitly to recover Eq. (13). From (12),
Taking the gradient with respect to yields
where are the softmax weights defined in (6). By the chain rule,
Collecting terms, we obtain
which is Eq. (13) in the main text.
A.7 Global Strict Convexity of for S-Hop
The convergence analysis in Sections B.1–B.4 (below) is based on contraction-mapping arguments and applies to the entire kernel family. In this and the next subsection we show that the S-Hop kernel (21) enjoys an additional, stronger guarantee: the interaction term is globally strictly convex in the phase variable , so that the iteration (17) is an instance of CCCP applied to the difference of convex decomposition . We begin by establishing the convexity of the two scalar component functions of the S-Hop kernel.
Lemma 4 (Strict convexity of ). The function is strictly convex on .
Proof. Differentiating twice,
Lemma 5 (Global convexity of ). The function satisfies for all .
Proof. Let , so that . By the chain rule, is convex if and only if
We compute:
Global lower bound on . From Lemma 3,
hence
This implies that is itself strictly convex, but this alone does not directly imply the convexity of ; we must verify .
Asymptotic analysis. Case . Expanding and gives
Substituting,
Case . Let . Expanding in gives
A direct computation yields
(61)
Note that , so becomes nearly linear as but does not lose convexity.
Finite-point verification and monotonicity of . Let be the point where attains its maximum :
Thus
The sign can also be bounded without rounding: using and gives , , and . Hence . It remains to justify that checking is enough. Differentiating (57) gives
since the terms cancel. From (58),
and for all . Hence the sign of is exactly the sign of . Therefore is increasing on , decreasing on , and increasing on , where .
Now (61) shows that as , so on because is increasing there. On , the above monotonicity implies that the minimum is attained at , and (63) gives . Therefore for all , and thus globally.
Lemma 6 (Strict positivity of S-Hop embeddings). For all , every component of the S-Hop feature vector defined in (21) is strictly positive:
Proof. For each :
• : since for all finite , we have , and at the radicand equals . More precisely, from Lemma 2 the global minimum of the radicand is .
Hence all embedded features .
We can now state the main convexity result.
Theorem 1 (Global strict convexity of for S-Hop). Under the S-Hop kernel (21), the interaction term
is globally strictly convex.
Proof. Denote and . The Hessian of is
where .
Term (A). The matrix is the Jacobian of the softmax function and is positive semidefinite (PSD). The quadratic form involving , , and preserves this property. Hence .
Term (B). By the separable structure of the S-Hop kernel (21), each depends on one phase coordinate . Specifically, and , with diagonal Hessians:
(68)
Hence (B) is a diagonal matrix with the j-th diagonal entry
By Lemma 6, ; since and , we have for all . By Lemma 4, . By Lemma 5, . Therefore:
Thus (B) is strictly positive definite (PD).
Combining. . Hence is globally strictly convex.
A.8 Strict CCCP Descent for S-Hop
With Theorem 1 in hand, we upgrade the convergence guarantee for S-Hop from the contraction-based analysis to a standard CCCP descent argument.
Theorem 2 (Energy monotone descent for S-Hop). Under the S-Hop kernel (21), the update rule satisfies
Equality holds if and only if is a stationary point of E.
Proof. By construction, , where is -strongly convex (Lemma 3) and is globally strictly convex (Theorem 1). Both functions are therefore convex, so admits a difference of convex decomposition with both components convex. The update rule (16) is precisely the CCCP optimality condition:
Energy difference.
Bounding the difference. Since is convex, the first-order convexity condition at gives
which rearranges to
Substituting the CCCP condition. Using from (72),
Bounding the difference. By the convexity of (Theorem 1),
Rearranging:
Combining. Substituting (75) and (76) into (73):
The last inequality follows directly from the convexity of .
Equality condition. Equality in (74) requires (by the strict convexity of ), which is precisely the stationary-point condition .
Lemma 7 (Zangwill global convergence for S-Hop). Let be the sequence generated by the S-Hop update from any initialization . Then the energy sequence converges, and every accumulation point of is a stationary point of .
Proof. We verify the hypotheses of Zangwill's convergence theorem.
Monotone descent. Theorem 2 gives for all , with equality only at stationarity.
Closedness of the iteration map. The map is a composition of smooth functions , and the component-wise , whose smoothness follows from Lemma 3). Hence is continuous and thus closed in Zangwill's sense.
Coercivity and compactness of the trajectory. The explicit potential gives , so grows quadratically. For , each component of the S-Hop kernel (21) satisfies as (since both and grow linearly), so for some . Using and Cauchy–Schwarz,
i.e. grows at most linearly. Therefore
confirming that is coercive. By the descent property, the trajectory lies in the sublevel set , which is closed and bounded (hence compact) by coercivity. In particular, has at least one accumulation point.
Conclusion. All hypotheses hold: is a continuous descent function that decreases strictly at non-stationary points, the map is continuous (hence closed), and the trajectory is contained in a compact set. By Zangwill's theorem, every accumulation point of is a stationary point of . Since is monotonically non-increasing and bounded below, it converges.
Remark. The energy descent guarantee in Theorem 2 is a global property that holds for any initialization, complementing the local contraction result of Lemma 11 (below), which guarantees exponential convergence within an invariant ball . For the general P-Hop kernel, the convexity of is not established, and the convergence analysis relies entirely on the contraction arguments in Sections B.1–B.3. This distinction represents a concrete theoretical advantage of S-Hop over P-Hop within the framework of the general kernel family.
B Convergence, Storage Capacity, and Instantiation Comparison
The preceding part established the structural foundations of the kernel family: the separable CCCP decoupling identity (Appendix A.3), uniform regularity of the kernel on compact phase regions, and global strong convexity of the local phase potential with condition number (Appendix A.5). For the S-Hop instantiation we further obtained global strict convexity of (Appendix A.7) and the monotone CCCP energy descent guarantee of Theorem 2 (Appendix A.8).
Building on these foundations, this part carries out the quantitative convergence and capacity analysis. We first establish a local approximation of the feature-space iteration near each stored pattern (Appendix B.1), identify invariant balls and margin conditions that make the iterates well-separated (Appendix B.2), and derive the central Jacobian bound that certifies local contraction on each invariant ball (Appendix B.3). Combining these ingredients with a pattern-separation argument (Appendix B.4) yields the exponential storage-capacity theorem (Theorem 3, Appendix B.5). We conclude with a quantitative comparison of the S-Hop and P-Hop instantiations in terms of condition number, radicand positivity, and convergence guarantees (Appendix B.6).
For kernels in Appendix A.2, the phase-space proofs below use component-wise and the bounds of Lemma 2. These bounds follow from smoothness on the compact region and the global derivative and inverse-field bounds. The feature iterates are obtained by applying F to the phase iterates; when F is injective, as for S-Hop, they also define the map T.
B.1 Local Approximation at a Stored Pattern
The feature-space iteration T in (20) factors through a phase-space map
so that whenever . Because , , , , and are all smooth maps defined on (or ), is well-defined and smooth on the full phase space, with no restriction to an image submanifold. All subsequent local-convergence arguments are formulated for in phase space; the feature-space conclusions follow by composing with .
We show that a single application of to a stored pattern returns a point close to when the pattern has sufficient margin.
Lemma 8 (Local approximation at a stored pattern). Let the assumptions of Lemma 2 hold and . For each stored pattern , set
where . Then
In particular, , since and is Lipschitz with constant (Lemma 2).
Proof. Since , the phase-space map evaluated at reads
Define for and
By the identity , we have
The logit dominates all others by at least when evaluated at , hence
We can write
Using the triangle inequality and from (37), we obtain
Since and by (83), the global Lipschitz continuity of with constant (Lemma 3) yields
which is the claimed bound.
B.2 Invariant Balls and Margin Conditions
We now show that, under a separation condition on the patterns , the phase-space map leaves a small neighbourhood of each invariant. For each stored pattern define the phase-space ball
with the compact region U chosen to contain these balls. Define the margin
Because is a ball in the full space and is smooth on , the mean-value theorem can be applied along any line segment in without domain restrictions—the key advantage of working in phase space rather than in the image .
For , define the effective margin at by
Lemma 9 (Invariant ball around a stored pattern). Assume the kernel and regularity conditions above, , and
If and
then .
Proof. We bound via the triangle inequality:
Bound on the second term. By Lemma 8,
Bound on the first term. Since and is convex, every point on the line segment lies in . Let . By the Lipschitz continuity of ,
By Cauchy–Schwarz, this implies
(95)
Hence
Applying Lemma 10 to gives
Therefore
(98)
Combining. To ensure , it suffices that
By (92), (93), and (98), it is sufficient that
The second inequality follows from . The first inequality follows from the first term in (91), since
The third inequality follows from the second term in (91). Hence .
B.3 Jacobian Bounds and Contraction
We bound the Jacobian of to establish contraction on each invariant ball .
Lemma 10 (Jacobian bound). Let for some , let , let
and let satisfy . Define
Under Lemma 2 there exist finite constants , depending only on kernel and regularity parameters (and independent of N), such that
Moreover, since implies , we have
Let bound and on the scalar coordinates of . One may take
Proof. Step 1: . For S-Hop the numerator in (100) is nonnegative by Lemmas 4 and 5. Since
differentiating twice gives
Hence
By Lemma 3, for all . For S-Hop, vanishes only at , while . Therefore
The ratio in the infimum tends to 1 as . Continuity and positivity on each compact interval therefore give a strictly positive global infimum, so . Other kernels in the family satisfy assumption (26) by hypothesis.
Step 2: Decomposition of . Let
so that . By the chain rule,
where is diagonal with entries and
The second factor expands as
where
Step 3: Softmax-dependent term. Using the chain rule through and the standard softmax Jacobian identity,
where
Let
Then
We first control . Since ,
which simplifies to
Hence, using ,
Therefore
and for ,
Applying the triangle inequality to (108),
(110) where the last step uses . Since ,
Combined with
from Lemma 2, the softmax-dependent contribution to is bounded by
This gives the softmax part of the bound, with
Step 4: Structural term . By the coordinate-wise kernel structure, is diagonal with entries
Write
where
Since
we obtain
Now and Lemma 2 imply
while
and for every j,
Therefore
and hence, componentwise,
Let
Then
(114)
with
Dividing by gives
It remains to control the principal term
First, by the definition of ,
Second, we compare and . By (25), is globally Lipschitz with constant . Also,
so
Using the global Lipschitz continuity of with constant (Lemma 3),
Hence
Since , it follows that
(116)
Therefore
(117)
Combining (114), (115), and (117), we obtain
for finite constants depending only on kernel and regularity parameters. Since the structural term is diagonal, this yields
Combining. Adding the bounds from Steps 3 and 4 gives
Using the constants in (103),
which is (101). Since for , (102) follows immediately.
Lemma 11 (Contraction on the invariant ball). Assume the hypotheses of Lemma 9. In particular, satisfies the margin condition
(118) where is the N-independent constant from Lemma 10. Assume also that
If , then there exists such that
In particular, is a contraction mapping on .
Proof. By Lemma 9, is -invariant. Since is a convex subset of , every point on the line segment
lies in . Let be any point on this segment, and set .
By the same argument as in (94)–(95), we have
Hence
Applying Lemma 10 to gives
Since ,
-term. By (118),
hence
r-term. Since ,
and therefore
Thus
Combining (120), (121), and (122), we obtain
Now is continuous on the compact set (Lemma 2), so the function attains its maximum on . Since it is pointwise strictly less than 1, there exists a uniform constant such that
Since is smooth on and the line segment joining and lies entirely in , we may write
Hence, taking norms and using the uniform Jacobian bound on ,
which proves (119).
33
□
B.4 Correct Storage and Separation of Basins
We now combine the previous lemmas to show that each pattern has its own attracting fixed point and basin of attraction.
Lemma 12 (Correct storage and disjoint basins). Assume the kernel and regularity conditions above, , and
where
Assume moreover that
where
Then:
-
For each , there exists a unique fixed point of in , and every phase-space trajectory starting in converges to . When is injective, is a fixed point of , and every feature-space trajectory starting at any with converges to .
-
The balls are pairwise disjoint, i.e., for . In particular, each stored pattern has its own basin of attraction, and the network retrieves the correct memory when initialized within .
Proof. If (124) holds, then for every the margin satisfies both the invariant-ball condition (91) and the contraction condition (118). Since , the corresponding lower bounds on also hold. Therefore, Lemma 9 gives , and Lemma 11 establishes contraction on .
Because is a closed ball in , it is complete. Banach's fixed-point theorem therefore yields a unique fixed point , and every trajectory starting in converges to it. Composing with the continuous map , the feature-space iterates converge to . When is injective, this point satisfies
To show that the are disjoint, suppose there exists with . Then
Applying the Lipschitz bound for F gives
Hence, by Cauchy–Schwarz and ,
which contradicts (124), since for and . Therefore for .
B.5 Exponential Storage Capacity
We apply the deterministic margin condition of Lemma 12 to memories generated by random phases. Let be independent and uniformly distributed on over both and , and set . Throughout this subsection, the scalar kernel functions and are fixed as grows. For a scalar uniform on , define
Both constants depend only on the scalar kernel. Smoothness on gives . The derivative lower bound following (26) ensures that the pair is nonconstant on this interval, so and hence .
Lemma 13 (Margin concentration for random phases). For the random memories above and any ,
Proof. For each ordered pair , write
The summands are independent over , satisfy , and have mean
Hoeffding’s inequality [46] therefore gives . Taking a union bound over the ordered pairs proves the claim.
Theorem 3 (Exponential storage capacity). Let be a fixed coordinate-wise kernel satisfying the conditions in Appendix A.2, and let the memories be generated by the random phases above. Fix , , and
For all sufficiently large d and every integer
the margin condition (124) holds with probability at least . Each phase-space ball then contains a unique attracting fixed point of , and the balls are pairwise disjoint.
Proof. Uniform regularity constants. Use the compact phase region , which contains all sampled memories and their balls for sufficiently large . The coordinate-wise structure gives dimension-independent bounds on and the second derivatives of its scalar components on this region. Choose to dominate these bounds, and choose a fixed large enough that
Thus satisfies (37). The constants in Lemma 10 obey and , with constants independent of and . We may take as specified there. The thresholds and are consequently equal to 1 for all sufficiently large .
Deterministic threshold. Substituting these bounds into the full definition of in Lemma 12 shows that there is a constant , independent of and , such that
Indeed, the first and third logarithms in that definition are at most plus a constant, and the second is at most plus a constant. The remaining term is bounded by . If , then
for all sufficiently large , since .
Probability and storage. By Lemma 13, the failure probability is at most
which is at most for sufficiently large by (129). On the complementary event, and . Lemma 12 gives the asserted fixed points, convergence, and disjointness.
Theorem 3 establishes exponential-order storage for memories in the image of . The constants and describe the geometry induced by the kernel on the stated phase distribution. Section 4 evaluates noisy retrieval on natural images.
B.6 Theoretical Comparison of P-Hop and S-Hop Instantiations
Both P-Hop and S-Hop are concrete instantiations of the general kernel family specified in Section 3.3 and verified in this appendix. They share the same feature-space dimension , the same surrogate energy decomposition , the same CCCP structural identity (Lemma 1 and its P-Hop counterpart, both with constant ), and the same phase-space update form in (78). The phase-space conclusions of Lemmas 8–12 and Theorem 3 apply to both kernels under their stated conditions. In addition to the potential bounds, they use the absolute structural bound (26) verified below. The two kernels have different scalar features, potentials, and regularity constants. We now present a systematic comparison.
Kernel definitions. The two maps are defined component-wise for each :
| P-Hop | S-Hop | |
|---|---|---|
(132)
Scalar potential and local field. Both kernels yield a separable phase potential with local field :
| P-Hop | S-Hop | |
|---|---|---|
(133)
Regularity constants and condition number. The global Hessian bounds are determined by bounding the perturbation term :
-
P-Hop (tight bound): so
-
S-Hop (tight bound): (attained at ; see Lemma 3).
Remark. The original P-Hop analysis uses the looser elementwise bound , yielding and . This is sufficient for all theoretical conclusions but overestimates . For a fair comparison with S-Hop, we give tight bounds for both kernels.
The resulting constants are:
| P-Hop (tight) | ||||
| P-Hop (loose, as stated) | ||||
| S-Hop (tight) |
The condition number describes the curvature of the local potential and bounds the inverse-field sensitivity through . The complete contraction bound combines the embedding, Jacobian, and memory-margin constants.
Structural contraction bound. For S-Hop, Lemma 10, Step 1, proves . For P-Hop, use the identity
For , the explicit derivatives and radicand bounds give
Together with , these bounds place the structural ratio in on both tails. On , outward-rounded interval evaluation on intervals of width encloses the ratio in . The supplied verify_theory.py reproduces this enclosure using interval arithmetic. Thus P-Hop also satisfies .
Scale and asymptotic order. Theorem 3 permits any exponent satisfying (129). The ratio controls the probability of memory separation, while controls the deterministic storage threshold. Multiplying all scalar features by a positive constant multiplies both and by its square, preserving the former ratio and scaling accordingly. The regularity constants enter the dimension threshold through (131). The values and describe the local-potential curvature; Figures 8 and 9 compare finite-dimensional retrieval.
Radicands and descent. The stated P-Hop radicand has a positive minimum of approximately 0.268, while . A clamp at is therefore inactive for these formulas. Both kernels have separable strongly convex local potentials and satisfy the local convergence and storage results under the stated assumptions. For S-Hop, Theorem 2 additionally establishes strict CCCP monotone descent.
C Additional Numerical Results
This appendix reports supplementary experiments that complement the main results in Section 4. We focus on (i) cross-dataset verification on MNIST, (ii) framework-level validation through a second admissible kernel instance, (iii) consistency under the aligned U-Hop SSD metric, (iv) an alternative evaluation protocol inherited from the U-Hop codebase, (v) comparison with a centered dot-product control, (vi) extended ablations and diagnostics, (vii) a plug-in gating wrapper for S-Hop, (viii) additional generalization evidence on an MIL benchmark, and (ix) downstream CIFAR-10 classification results. Unless otherwise stated, we follow the same MSE-based retrieval criterion as in the main text, with successful retrieval defined by MSE .
C.1 MNIST Retrieval and Capacity
This subsection extends the CIFAR-10 and ImageNet capacity comparisons to lower-dimensional MNIST images. We repeat the capacity protocol of Section 4 on MNIST (d = 784) under identical settings: one-step retrieval with , additive Gaussian noise of standard deviation , and the MSE < 0.1 perfect-retrieval criterion. The four methods are S-Hop, U-Hop (max), MHN, and the invalid-kernel baseline C-Hop. This cross-dataset check is the most direct test of whether the observed advantage generalizes beyond a single image resolution.

Figure 6: MNIST retrieval-load summary with U-Hop (max; ). S-Hop attains , a passing sweep endpoint matching that reached on CIFAR-10.
S-Hop reaches 100% success at N = 500 on MNIST. U-Hop (max) first falls below 90% at N = 20, then reaches 90% at 30 and 40; its largest passing load is therefore 40. The public avg objective instead passes through 500, with success. Figure 6 retains the original first-failure annotation of 20 for U-Hop; Table 1 reports the largest passing loads.
(a)

Number of Stored Patterns (N)
(b)
Number of Stored Patterns (N)
Figure 7: MNIST retrieval curves with U-Hop (max; ). (a) Perfect retrieval rate under the MSE < 0.1 criterion. (b) Mean retrieval error versus the number of stored patterns. S-Hop sustains above-threshold retrieval and low error across the full range, while baselines saturate early.
Figure 7 further confirms that S-Hop maintains consistently higher perfect retrieval rates and lower mean retrieval error across the full capacity range on MNIST. The qualitative separation between S-Hop and all baselines is essentially similar to that on CIFAR-10, supporting retrieval gains across these two datasets.
C.2 Framework-Level Validation: A Second Kernel Instance
The theoretical framework of Section 3 and Appendix A defines an entire family of admissible kernels, of which S-Hop is only one representative. To examine the behavior of the framework beyond the tanh-based embedding of Eq. (3), we evaluate a second admissible kernel, P-Hop, with coordinate map
Both kernels share the same feature-space dimension , the same CCCP structural identity with constant (Lemma 1), and the same conditional local-convergence and storage analysis (Lemmas 8–12 and Theorem 3); their detailed theoretical comparison is given in Appendix B.6.

Figure 8: Second admissible kernel on CIFAR-10: P-Hop and S-Hop retrieval loads. P-Hop is plotted at N = 50, the plotted threshold-crossing load, while S-Hop reaches the N = 500 endpoint. The bars mark a passing endpoint for S-Hop and a first failure for P-Hop.
Figure 8 reports the retrieval-load comparison with P-Hop added as a fifth method, under the protocol of Figure 36. Appendix B.6 compares the two kernels' local-potential geometry and capacity bounds.
(a)

Number of Stored Patterns (N)
(b)
Number of Stored Patterns (N)
Figure 9: Second admissible kernel on CIFAR-10: P-Hop and S-Hop retrieval curves. (a) Perfect retrieval rate versus the number of stored patterns. (b) Mean retrieval error versus the number of stored patterns. P-Hop improves on the baselines, while S-Hop achieves higher retrieval success and lower error over the tested loads.
Figure 9 compares the two retrieval maps: S-Hop sustains higher retrieval success and lower error over the tested CIFAR-10 loads.
C.3 Robustness Under the U-Hop SSD Metric
The main-text critical capacity is defined via the mean-squared-error criterion MSE < 0.1, which differs from the SSD metric reported in the U-Hop public codebase [7] and in related prior work. To check consistency under aligned thresholds, we re-evaluate all methods under the U-Hop SSD protocol, defined as
where is the target image, the retrieved output, and the pixel-coordinate index. We evaluate this metric on CIFAR-10 ( ) with additive Gaussian noise and the same one-step retrieval dynamics as the main protocol. Both metrics clamp targets and outputs to . We define SSD-based perfect retrieval as SSD , which by construction is equivalent at the pattern level to MSE . We note that the U-Hop evaluation [7] reports only mean-error curves without a defined critical capacity; the load-level 90% criterion is introduced here. The main finding of this appendix, summarized in Figure 10, is consistency with the MSE-based sweep in Section 4. The plotted loads follow the original endpoint/crossing convention.

Figure 10: Aligned SSD criterion on CIFAR-10: retrieval-load summary. S-Hop passes through N = 500 under the aligned threshold SSD < 0.1d. Baseline bars mark threshold-crossing loads, following the original plotting convention.
(a)

Number of Stored Patterns (N)
(b)
Number of Stored Patterns (N)
Figure 11: Aligned SSD criterion on CIFAR-10: retrieval-rate and error curves. (a) SSD-based perfect retrieval rate versus the number of stored patterns under the aligned threshold SSD < 0.1 · d ≈ 307. (b) Mean retrieval SSD versus the number of stored patterns. S-Hop remains below the threshold across the full range , while all baselines cross it by .
Figure 11 further illustrates that S-Hop achieves the lowest mean SSD at every N in the tested range, whereas U-Hop, MHN, and C-Hop all cross the aligned threshold well before the end of the range. The qualitative separation mirrors that of the main MSE protocol, providing a check of the aligned MSE and SSD implementations. Other retrieval criteria are evaluated in Appendix D.2.
C.4 Alternative U-Hop Evaluation Protocol (Avg vs. Max)
For each memory set, U-Hop trains its Stage-I projection for 100 epochs and then fixes it for all queries. With an identity projection, its linear-kernel retrieval reduces to MHN. The alternative avg experiment applies PCA spectral denoising ( ) to all methods. The legacy avg implementation averages over memory pairs with and appears in Table 2. The public avg objective instead takes the logarithm after averaging the exponentials; its primary comparison is given in Appendix D.5.

Figure 12: Legacy pairwise-average U-Hop protocol on CIFAR-10: retrieval-load summary. With MSE < 0.1, S-Hop passes through 500; U-Hop fails at the plotted load 60 (81.7% success).
Figure 12 shows that S-Hop continues to achieve the highest critical capacity under the avg protocol. Under this protocol, U-Hop achieves 81.7% success at N = 60. S-Hop remains above threshold through the N = 500 endpoint.
(a)

Number of Stored Patterns (N)
(b)
Number of Stored Patterns (N)
Figure 13: Legacy pairwise-average U-Hop protocol on CIFAR-10: retrieval curves. (a) Perfect retrieval rate versus the number of stored patterns. S-Hop maintains above-threshold retrieval up to , while U-Hop is below 90% at N = 60. (b) Mean retrieval error versus the number of stored patterns. U-Hop attains lower error at small N due to its learned separation loss that uniformizes memory distribution under low load [7]. Its error rises steeply as N grows; S-Hop sustains consistently low error across the full capacity range, retaining its advantage at larger loads.
Figure 13 further confirms that S-Hop maintains above-threshold retrieval through the full tested range and lower error at larger loads. The qualitative separation between S-Hop and all baseline variants closely matches that observed under the max protocol, supporting the main empirical conclusions.
C.5 Comparison with a Centered Dot-Product Control
Recent distance-overlap dense associative memory variants [16, 34] achieve capacity gains through an energy of the form
where is the query and are memory patterns. The per-pattern norm penalty reshapes basin volumes in a manner structurally distinct from the dot-product framework developed in this work. Our phase kernel modifies the feature embedding while the construction of [34] modifies the overlap form itself, so the two design axes are orthogonal: any admissible from our family can in principle be composed with a distance-based overlap, and vice versa. Here we compare the centered dot-product variant H-Hop in Figures 14–15.

Figure 14: Centered dot-product control on CIFAR-10: H-Hop and S-Hop retrieval loads. All methods use pattern-space centering , , where . H-Hop denotes the dot-product degenerate variant of [34], obtained by removing the penalty from Eq. (136) while retaining the pattern-space centering. S-Hop passes through ; the H-Hop bar marks under the original plotting convention.
Figure 14 compares H-Hop with the four main methods under a centered one-step retrieval protocol. S-Hop supports larger tested loads than this dot-product variant. Figure 15 gives the corresponding retrieval and error curves.
Figure 15 further illustrates that removing the penalty degrades H-Hop toward the linear baseline, while S-Hop preserves low error throughout the full range. This pattern is compatible with the strong performance of the full distance-based method of [34], which benefits from the norm penalty that H-Hop discards by construction, and positions our contribution as a structurally complementary axis: composing an admissible phase kernel with a distance-based overlap is a natural direction for future work.
(a)

Number of Stored Patterns (N)
(b)
Number of Stored Patterns (N)
Figure 15: Centered dot-product control on CIFAR-10: H-Hop and S-Hop retrieval curves. (a) Perfect retrieval rate versus the number of stored patterns. (b) Mean retrieval error versus the number of stored patterns. With the norm-penalty removed, H-Hop degrades toward the linear baseline, whereas S-Hop preserves low error throughout the full range, showing the retrieval benefit of S-Hop relative to this centered dot-product control.
C.6 Extended Ablations and Diagnostics
(a)

(b)
Number of Stored Patterns
Figure 16: CIFAR-10 kernel and preprocessing ablations: retrieval error and gains over MHN. (a) Retrieval error under increasing memory load for ablated variants and stress-test conditions, including removal of the nonlinear kernel, PCA preprocessing, cosine-kernel substitution, random truncation, and high-noise evaluation ( ). (b) Percentage improvement in retrieval accuracy over the MHN baseline as a function of the number of stored patterns, isolating the contributions of kernel choice and preprocessing.
Figure 16 aggregates retrieval error versus memory load for multiple ablated variants and stress tests, together with an improvement-over-baseline view. Removing the nonlinear kernel induces the largest degradation across the entire capacity range, while PCA primarily stabilizes retrieval under moderate noise and reduces error variation under noise. The random-truncation and cosine-kernel variants yield higher retrieval error than S-Hop in these comparisons, consistent with Section 4.
C.7 Gating Wrapper: Additional Retrieval Gains
This section reports the full results for the optional gating wrapper described in the main text. The wrapper proposes a one-step MHN, U-Hop, or S-Hop update, mixes it with the current state through a gate, and updates an auxiliary gated state. Figures 17–18 show the results.
Figure 17 compares retrieval-load summaries for the gated MHN, U-Hop, and S-Hop variants. S-Hop retains the largest passing load among the gated variants, supporting the use of the phase-kernel update within this wrapper.

Figure 17: Gating control on CIFAR-10: retrieval-load summary. S-Hop passes through N = 500; baseline bars show the plotted threshold-crossing loads.
(a)

Number of Stored Patterns (N)
(b)
Number of Stored Patterns (N)
Figure 18: Gating control on CIFAR-10: retrieval-rate and error curves. (a) Perfect retrieval rate and (b) mean retrieval error versus the number of stored patterns.
Figure 18 further illustrates that gating improves retrieval robustness under increasing load, as reflected in both higher perfect retrieval rates and lower mean MSE. These curves support combining the phase-kernel update with the gating wrapper for improved retrieval in the tested settings.
C.8 Additional Generalization: MIL
This section evaluates whether the proposed design choices transfer to a different learning setting beyond the CIFAR-10 classifier in the main paper. Figure 19 reports results on a multiple-instance learning benchmark across random seeds. The learning curves show the evolution of test accuracy, while the final comparison reports the best test accuracy across the repeated runs.
(a)

(b)
Figure 19: Downstream generalization to multiple-instance learning: training and final performance. (a) Learning curves with mean ± standard deviation. (b) Best test accuracy over repeated runs.
Across alternative U-Hop evaluation modes, extended ablations, the optional gating wrapper, and MIL generalization, the empirical evidence remains consistent with improved retrieval under the stated protocols, with further gains from the tested preprocessing and gating choices.
C.9 Energy-Shaped Classification on CIFAR-10
The classifier uses six blocks with patches, embedding width 384, and six attention heads. The hybrid places two S-Hop blocks before four MHN blocks. Training uses AdamW with learning rate , weight decay 0.05, batch size 128, and label smoothing 0.1. The training budget is 100 epochs, with a 10-epoch warm-up followed by cosine decay and seed 784. We record test accuracy at each epoch and the highest observed value.
Architecture Comparison on CIFAR-10

Figure 20: Downstream CIFAR-10 classification: hybrid S-Hop/MHN architectures. Hybrid architectures combining two early S-Hop layers with four later MHN layers reach approximately 90% peak test accuracy, about 0.2 percentage points above the best baseline peak (seed 784).
To evaluate the phase-kernel update in supervised learning, we integrate S-Hop layers into a CIFAR-10 classifier by replacing the attention-based aggregation modules. A hybrid architecture with early S-Hop layers followed by standard MHN layers achieves the highest test accuracy among the compared architectures. As shown in Figure 20, this hybrid achieves test accuracy around 90%, approximately 0.2 percentage points above the best baseline peak in the 100-epoch run. The test-accuracy trajectories for all four architectures are shown in Figure 20. Figures 18–19 cover gated retrieval and MIL.
D Additional Retrieval Analyses
This appendix examines the effects of feature scale, retrieval criterion, update count, and kernel components on the empirical retrieval load. All experiments use the stated protocol; passing sweep endpoints are reported as lower bounds.
D.1 Scale, Centering, and Minimum-Margin Controls
Protocol. The scale controls use CIFAR-10 at resolution ( ), Gaussian query noise , one retrieval update, base , no PCA, and MSE < 0.1 success with a 90% load-level criterion. U-Hop uses the implemented max separation objective, trained for 100 epochs on the first half of each memory set and then fixed for all queries.
Three-seed comparison. The sweep over uses seeds 42, 43, 44 for every method, with a fixed memory set and shared noisy queries within each seed. Noise is added before taking the elementwise absolute value and clipping to . At , normalized logits yield 100% success for S-Hop and 90.60% for each baseline. After logit-scale matching, success is for S-Hop, for MHN, and for U-Hop (mean sample standard deviation over seeds). Figure 21 shows the corresponding retrieval curves.
(a) Matched logit scale

(b) Normalized logits

Figure 21: Three-seed CIFAR-10 scale controls with the U-Hop max objective. Left: matched logit scale; right: normalized logits. Curves average seeds 42, 43, 44, with shared memories and noisy queries within each seed. Success means MSE < 0.1 after one update at ; dashed lines mark 90%. Outlined points mark first failures or passing sweep endpoints.
Scale diagnostics. Table 5 reports statistics from the same three-seed experiment at N = 500. Logit spread and entropy are averaged over 64 calibration queries per seed; feature norms are averaged over stored memories. Normalized logits have entropy near for all methods. The associated retrieval curves are shown in Figure 21.
U-Hop’s Stage-I optimization uses stochastic gradient descent (SGD) with learning rate 10. At N = 500, the mean separation loss over the three seeds decreases from -0.10573 at initialization to
-0.12867 at epoch index 90; the last objective evaluated during the 100-epoch training is -0.13142. The learned projection is then fixed for retrieval. Figure 35 shows the training trajectory.
Table 5: Feature and logit diagnostics at , averaged over three seeds. is softmax entropy in nats at base ; is the mean within-query logit standard deviation.
| Method | Mean feature norm | Raw | Normalized | Raw | Normalized |
|---|---|---|---|---|---|
| MHN | |||||
| U-Hop | |||||
| S-Hop |
Extended sweeps. Table 6 summarizes the extended scans in Figures 22 and 23. MHN and U-Hop results are averaged over seeds 42, 43, 44; S-Hop uses seed 42.
Table 6: CIFAR-10 scale controls: last passing load / first failing load under one-step retrieval with , base , MSE , and success. A bound denotes a passing sweep endpoint; denotes failure at the smallest tested load. U-Hop uses the implemented max objective. S-Hop uses one seed and the baselines use three.
| Control | MHN | U-Hop | S-Hop |
|---|---|---|---|
| Normalized logits | |||
| Matched logit scale | |||
| Input centering | |||
| Matched |
Normalized logits. For method , the normalized score is
Here and are method-specific memory and query features, with raw score . We normalize the scoring vectors and retain each method's value aggregation and state update. The sweep tests for all methods and extends S-Hop in increments of 100 to 5000. The last passing loads are 870 for MHN and 880 for U-Hop, with first failures at 880 and 890, respectively. S-Hop passes through 5000, yielding and tested-load ratios of approximately 5.75 and 5.68, respectively (Figure 22, left).
Empirical logit-scale matching. For each memory set, 64 calibration queries estimate
The multiplier is applied inside softmax; the base update coefficient remains unchanged. At , this matches the empirical spread of softmax inputs. S-Hop last passes at 790 and first fails at 800; both baselines fail at the smallest tested load, 10. Both baseline loads are left-censored at 10, so the sweep resolves no finite capacity ratio (Figure 22, right). Together with the normalized-logit bounds of 5.75 and 5.68, these results quantify the controlled comparisons at their measured resolution.
Input centering. The centering control uses , subtracting the memory-set mean in input/phase space before embedding and applying the same shift to queries. MHN last passes at 500 and fails at 510; S-Hop and U-Hop both pass through 1000 (Figure 23, left). Full nonlinear-feature centering, , is a further extension involving queries, values, and dynamics. Centering only stored keys shifts all logits for each query by the same scalar, preserving the softmax weights.
Signed minimum-margin matching. The additional control computes
and uses a positive multiplier inside softmax to match . This calibration requires nonzero margins of the same sign so that the multiplier is positive. With the same one-step MSE criterion and seed allocation as above, S-Hop passes at 790 and fails at 800, while both baselines fail at 10. Figure 23 (right) shows retrieval under this signed-margin calibration.
(a) Normalized logits

(b) Matched logit scale

Figure 22: Extended CIFAR-10 scale sweeps with the U-Hop max objective. Left: normalized logits; right: matched logit scale. Both use one update, , and MSE < 0.1. S-Hop uses seed 42; baselines average seeds 42, 43, 44. Dashed lines mark 90% success. With normalized logits, S-Hop passes through N = 5000.
(a) Input centering

(b) Matched

Figure 23: CIFAR-10 geometry controls: input centering and signed minimum-margin matching. Left: ; right: matched . Success means MSE < 0.1 after one update at ; dashed lines mark 90%. S-Hop uses seed 42; baselines average seeds 42, 43, 44.
D.2 Retrieval Criteria and Multiple Updates
MSE thresholds and sweep boundaries. A separate CIFAR-10 sweep uses seed 42, no PCA, one update, and to evaluate thresholds 0.01, 0.03, 0.05, and 0.1. It stops after two consecutive failures of the 90% criterion at MSE < 0.1. In this sweep, S-Hop last passes at 750 and first fails at 800 under MSE < 0.1; the final tested load is 850. At the three stricter thresholds, S-Hop already fails the 90% success criterion at N = 10. Figure 24 shows the success curves for all four thresholds.
Output-based identification. For output and target , cosine-threshold success means . Output-cosine top-1 means over the stored memories. At , S-Hop has 91.53% MSE success, 13.4% cosine-threshold success, and 1.53% output-cosine top-1 accuracy. Figure 25 presents the two output-based identification curves; Appendix C.3 gives the corresponding SSD evaluation.
(a) S-Hop

(b) U-Hop

(c) MHN
(d) C-Hop


MSE < 0.1
MSE < 0.03
MSE < 0.05
MSE < 0.01
Figure 24: CIFAR-10 criterion sensitivity: four MSE thresholds. One-step retrieval uses thresholds 0.01, 0.03, 0.05, and 0.1, with , no PCA, and seed 42. Dashed lines mark 90% success. At threshold 0.1, S-Hop last passes at 750 and first fails at 800; stricter thresholds fail at the smallest tested load, 10.
Multiple updates. The common-norm experiment rescales stored inputs to a sphere whose radius is their original mean norm and iterates retrieval at . At , S-Hop's mean MSE decreases from 0.04177 after one update to 0.01653 after 20, while nearest-memory accuracy changes from 100% to 90%. At , S-Hop's mean MSE decreases from 0.05026 after one update to 0.04497 after two, then rises to 0.05836 at step 20. Nearest-memory accuracy drops from 100% to 75% and then to 15% by step 5, remaining at 15% through step 20. At step
(a) Output-cosine top-1

(b) Output cosine 0.95

Figure 25: CIFAR-10 output identification: cosine top-1 and cosine-threshold criteria. Retrieval uses one update at . Left: top-1 accuracy selects the stored memory with highest cosine similarity to the retrieved output. Right: success requires output–target cosine similarity ; the dashed line marks 90% success.
20, the successive-update RMSE is 0.00250. The MSE and identification trajectories are shown in Figures 26 and 27, with numerical diagnostics in Table 7.
Table 7: S-Hop multiple-update diagnostics at common norm, CIFAR-10, (60 queries). Nearest-memory accuracy uses Euclidean distance. The margin is the mean nearest-competitor squared distance minus target squared distance, divided by .
| Step | Mean MSE | Accuracy (%) | Mean margin | Update RMSE |
|---|---|---|---|---|
| 0 | 0.07218 | 100 | 0.04342 | — |
| 1 | 0.05026 | 100 | 0.02206 | 0.11148 |
| 2 | 0.04497 | 75 | 0.00600 | 0.06249 |
| 5 | 0.04729 | 15 | -0.02372 | 0.02959 |
| 10 | 0.05517 | 15 | -0.03981 | 0.01019 |
| 20 | 0.05836 | 15 | -0.04347 | 0.00250 |
(a) Retrieval error

(b) Memory identification

(c) Distance margin
(d) Update size


S-Hop U-Hop MHN C-Hop
Figure 26: Common-norm CIFAR-10 dynamics at low load (N = 10). Initial query noise is . Panels show mean MSE, Euclidean nearest-memory accuracy, the nearest-competitor minus target squared-distance margin divided by d, and successive-update RMSE at .
(a) Retrieval error

(b) Memory identification

(c) Distance margin
(d) Update size


S-Hop U-Hop MHN C-Hop
Figure 27: Common-norm CIFAR-10 dynamics at higher load (N = 60). Panels use the four diagnostics in Figure 26, with initial noise . The dashed line marks zero margin; S-Hop values appear in Table 7.
D.3 Similarity, Dynamics, Dimension, and Preprocessing
Let and . The similarity-only variant uses . The joint variant uses , retaining raw-memory aggregation before the Jacobian/local-field transformation. Full S-Hop instead uses the embedded-memory aggregate in Eq. (17). In the CIFAR-10 sweep through , similarity alone falls below 90% success at , whereas the joint variant tracks full S-Hop and remains above threshold through 500. Figure 28 (left) shows the effect of jointly restoring the Jacobian and inverse-field operations. These arise together from the interaction-energy gradient and the CCCP minimization, respectively; the ablation measures their combined effect.
The dimension control equips U-Hop with a learned projection. S-Hop achieves higher retrieval success than this 2d linear baseline (Figure 28, right). P-Hop and the alternative U-Hop objective are reported in Appendices C.2 and C.4 with their respective protocols.
(a) Component control

(b) Dimension control

Figure 28: CIFAR-10 mechanism controls: state-update components and embedding dimension. Both use one update, , , no PCA, and seed 42. S-Hop-Sim uses phase-kernel scores with raw-memory averaging; S-Hop-Jac restores the Jacobian and inverse local field jointly. Right: U-Hop learns a projection. Success means MSE < 0.1; dashed lines mark 90%. Outlined points mark first failures or passing sweep endpoints.
Figure 29 compares S-Hop with and without PCA alongside kernel, truncation, and higher-noise controls across memory loads. PCA fits the memory covariance, retains components, scales each centered component by , and reconstructs the memories with their mean restored. Here is the corresponding covariance eigenvalue and is the shrinkage regularizer.
Preprocessing, kernel and noise controls

Figure 29: CIFAR-10 preprocessing controls: PCA, random truncation, and higher query noise. “w/o PCA” removes S-Hop’s PCA preprocessing; “Rand. Trunc.” retains 1024 random input coordinates. “High Noise” uses ; other curves use . Retrieval uses one update at ; the error axis is logarithmic.
D.4 Cross-Dataset Separation and ImageNet
The cross-dataset diagnostic uses CIFAR-10 and TinyImageNet resized to . It measures median nearest-neighbor squared distance per input dimension and rescales inputs to match this statistic. Figure 30 presents the retrieval curves and distance statistics before and after matching. This run uses a resampled TinyImageNet subset; the fixed-subset control below isolates the resizing effect.
Dimension and retrieval load. The original TinyImageNet subset has a retrieval-load threshold of 40 for S-Hop and 10 for each baseline, a gain (Table 8). The following controls examine memory geometry at fixed dimension, complementing the theorem's dimension scaling.
Table 8: Original TinyImageNet subset: images, one update, , and a MSE threshold. Loads mark the first threshold crossing. Public avg uses three-seed mean success.
| Method | Retrieval load |
|---|---|
| MHN | 10 |
| U-Hop (max) | 10 |
| U-Hop (public avg) | 10 |
| C-Hop | 10 |
| S-Hop | 40 |
TinyImageNet subset composition and separation. The original TinyImageNet experiment uses the first 500 images in class-sorted order, all from the goldfish class. These natural images have correlated content and varying feature norms, rather than the independent phase coordinates assumed in the capacity theorem. Both image similarity and norm differences affect the signed separation : at , only one of the original memories has positive . Keeping these 500 images fixed and resizing them from to raises mean MSE success from to over noise seeds 42, 43, 44. This modest improvement motivates examining subset geometry at the original resolution.
(a) Retrieval success

(b) Input separation

CIFAR-10
TinyImageNet
CIFAR-10 (matched)
TinyImageNet (matched)
CIFAR-10
TinyImageNet
CIFAR-10 (matched)
TinyImageNet (matched)
Figure 30: Cross-dataset separation control: CIFAR-10 and TinyImageNet. Curves compare S-Hop before and after input-distance matching. Left: one-step MSE < 0.1 success at , with the 90% threshold dashed. Right: median nearest-neighbor squared distance per input dimension.

Figure 31: Original TinyImageNet retrieval-load comparison. S-Hop reaches 40, versus 10 for the baselines, a gain. U-Hop uses the original max objective.
The geometry-selected 500-image subset used in Figure 32 is constructed at using clean-memory geometry. A candidate pool contains 50 randomly sampled images from each of the 200 classes (sampling seed 20261009). Within the 1000-image band with the smallest range of squared embedding norms, greedy selection maximizes the minimum of the two directed pairwise margins. The resulting subset spans 183 classes and has , with all 500 margins positive. Selection precedes noisy-query evaluation and leaves the images, kernel, and update unchanged.
The fixed-subset comparison uses , , one update, no PCA or normalization, and the same absolute-value and clipping transforms. Over noise seeds 20261010, 20261011, and 20261012, the original subset achieves 50.53% MSE < 0.1 success, mean MSE 0.10121, and 7.60% nearest-memory accuracy at N = 500. Under these same seeds, the selected subset achieves 100% MSE-based success and nearest-memory accuracy (Figure 32). One update reduces query MSE from 0.06274 to 0.02697 (57.02%); removing the target memory raises MSE to 0.04476 and lowers nearest-memory accuracy to 69.00%. Nearest-memory accuracy identifies the output's closest stored image by Euclidean distance; error bars are sample standard deviations across the three noise seeds on each fixed subset. These results isolate the effect of memory composition at the same input dimension.
(a) Reconstruction error

(b) Retrieval at N=500
Figure 32: Geometry-selected TinyImageNet memories ( ). (a) Reconstruction error. (b) MSE < 0.1 success and Euclidean nearest-memory accuracy. Bars show means and sample standard deviations across three noise seeds: one update, , , no PCA or normalization.
ImageNet protocol. We further extend the evaluation to ImageNet-1K, using the first 500 training images in class-sorted directory order, all from the tench class. Images are resized and center-cropped to , or resized to 256 pixels on the shorter side and center-cropped to , then converted to RGB values in [0, 1]. The original max runs use seed 42, no PCA, , one update, and Gaussian noise followed by the absolute-value and clipping transform. The sweep uses , with one noisy query per memory. U-Hop uses the max objective for 100 epochs; the run uses its block-diagonal projection implementation with block size 64. The high-resolution U-Hop sweep was completed using an equivalent closest-pair loss calculation that avoids the original pairwise-gradient memory allocation.
Figure 33 shows the resulting retrieval curves at and . S-Hop achieves 91.4% and 98.2% MSE < 0.1 success at , respectively, giving in both settings, compared with U-Hop's largest passing load of 10. Both resolutions include all four methods. At , U-Hop (block) achieves 2.0% success at . These MSE-based results at and , together with the fixed-resolution TinyImageNet subset control, show that input dimension alone does not explain the TinyImageNet degradation; image distribution and separation also affect retrieval.
(a) ImageNet,

(b) ImageNet,

Figure 33: ImageNet resolution comparison with U-Hop (max): one-step retrieval at and . Left and right use the same first 500 training images, seed 42, no PCA, , , and MSE < 0.1. Dashed lines mark 90% success; outlined points mark first failures or passing endpoints. S-Hop passes through in both runs. U-Hop uses a dense projection at and a block-diagonal projection (block size 64) at .
D.5 Public Average-Separation Baseline and Training Diagnostics
The public U-Hop avg objective is , where and . We train on the first half of each memory set using SGD with learning rate 10 for 100 epochs, starting from a standard-normal projection, and then fix . With , the implementation reproduces MHN exactly in the checked runs.
The experiment uses the first 500 CIFAR-10 training images, no PCA, seeds 42, 43, 44, and . Memories and noisy queries are shared across methods within each seed; the noise transform, , one-update budget, and MSE < 0.1 criterion follow Appendix D.1. Logit matching uses the first queries for calibration. Runs use float32 on an RTX 5060 Laptop graphics processing unit (GPU), with TensorFloat-32 (TF32) disabled.
At , raw-logit success is for S-Hop, for U-Hop, and for MHN. Normalization yields 100%, 90.80%, and 90.60%, respectively, with zero between-seed standard deviation at this load. Logit matching yields , , and . Thus normalization substantially improves the linear baselines, while S-Hop retains higher success in the three comparisons (Figure 34). The raw-logit U-Hop curve last passes at 60 and first fails at 100 on this grid; S-Hop passes through 500.
The new MNIST, TinyImageNet, and ImageNet public avg sweeps use seeds 42, 43, 44 and , with fixed memories and independent projection and query generators initialized by multiplying each seed by 100000 and adding . MNIST uses the first 500 training images; TinyImageNet and ImageNet use the subsets in Appendix D.4. ImageNet compares all four methods on shared queries, and repeats U-Hop (max) on the same grid. Runs use float32 on an RTX 5090, with TF32 disabled and a block size of 64 for the projection. Pairwise squared distances are evaluated through their equivalent Gram-matrix expression. Load bounds use mean success over the three seeds.
On MNIST, public avg reaches success at . On the original TinyImageNet subset, it fails at and reaches at . At on ImageNet, public avg reaches at and at ; S-Hop reaches and , respectively. The warmed-up MNIST timing at , averaged over the three seeds, is 1.24 ms per query after amortizing projection training over 256 queries, including 0.17 ms for retrieval.
(a) Raw logits
(b) Normalized logits

(c) Matched scale
S-Hop
U-Hop (public avg)
MHN
Figure 34: CIFAR-10 scale controls with the public U-Hop avg objective. (a) Raw, (b) normalized, and (c) matched-scale logits complement the max controls in Figure 21. Lines and shading show means and sample standard deviations over seeds 42, 43, 44. Methods share memories and queries: no PCA, one update, , and . Success means MSE < 0.1; dashed lines mark 90%.
(a) Max objective

(b) Public avg objective

Figure 35: U-Hop training diagnostics: max and public avg objectives at N = 500. (a) The max objective used for Figure 21, logged every 10 epochs through index 90. (b) The public avg objective used for Figure 34, including index 99. Both runs use 100 epochs and seeds 42, 43, 44; lines and bands show means and sample standard deviations on separate loss scales.
D.6 Empirical Findings and Future Directions
The scale controls in Figures 21 and 22 show S-Hop’s retrieval advantage under normalization and logit matching. The component comparison in Figure 28 highlights the role of the combined similarity and state update. Figures 24–27 characterize retrieval across success criteria and update counts, and Figures 30–33 extend the evaluation across datasets and resolutions.
Future directions. First, extending the capacity analysis to correlated memory distributions would help explain the dataset and subset differences. Learned or structured embeddings that improve memory separation offer a related practical direction. Second, formally incorporating the gating wrapper into the surrogate Hopfield energy would extend the Lyapunov analysis to the gated dynamics. Third, composing admissible phase kernels with the distance-based overlaps of [16, 34] is a natural next step, combining changes to memory features with the norm penalty in the retrieval scores. Fourth, approximating the coupled square-root maps with fast polynomials could improve scalability and reduce computational overhead in applications requiring low latency.
(a)

Number of Stored Patterns (N)
(b)
Number of Stored Patterns (N)
Figure 36: CIFAR-10 retrieval curves under the original one-step protocol with U-Hop (max). (a) Perfect retrieval rate under the MSE < 0.1 criterion (dots mark the first drop below 90%). (b) Mean retrieval error as a function of the number of stored patterns.
NeurIPS Paper Checklist
The checklist is designed to encourage best practices for responsible machine learning research, addressing issues of reproducibility, transparency, research ethics, and societal impact. Do not remove the checklist: The papers not including the checklist will be desk rejected. The checklist should follow the references and follow the (optional) supplemental material. The checklist does NOT count towards the page limit.
Please read the checklist guidelines carefully for information on how to answer these questions. For each question in the checklist:
• You should answer [Yes], [No], or [N/A].
• [N/A] means either that the question is Not Applicable for that particular paper or the relevant information is Not Available.
• Please provide a short (1–2 sentence) justification right after your answer (even for [N/A]).
The checklist answers are an integral part of your paper submission. They are visible to the reviewers, area chairs, senior area chairs, and ethics reviewers. You will also be asked to include it (after eventual revisions) with the final version of your paper, and its final version will be published with the paper.
The reviewers of your paper will be asked to use the checklist as one of the factors in their evaluation. While [Yes] is generally preferable to [No], it is perfectly acceptable to answer [No] provided a proper justification is given (e.g., error bars are not reported because it would be too computationally expensive” or “we were unable to find the license for the dataset we used”). In general, answering [No] or [N/A] is not grounds for rejection. While the questions are phrased in a binary way, we acknowledge that the true answer is often more nuanced, so please just use your best judgment and write a justification to elaborate. All supporting evidence can appear either in the main paper or the supplemental material, provided in appendix. If you answer [Yes] to a question, in the justification please point to the section(s) where related material for the question can be found.
IMPORTANT, please:
• Delete this instruction block, but keep the section heading “NeurIPS Paper Checklist”,
• Keep the checklist subsection headings, questions/answers and guidelines below.
• Do not modify the questions and only use the provided macros for your answers.
- Claims
Question: Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope?
Answer: [Yes]
Justification: The abstract and introduction explicitly state the theoretical guarantees (exponential storage capacity, fixed-point convergence) and empirical evaluations (superior critical capacity and retrieval robustness), which are fully addressed in Sections 3 and 4.
Guidelines:
• The answer [N/A] means that the abstract and introduction do not include the claims made in the paper.
• The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A [No] or [N/A] answer to this question will not be perceived well by the reviewers.
• The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings.
• It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper.
2. Limitations
Question: Does the paper discuss the limitations of the work performed by the authors?
Answer: [Yes]
Justification: Section 6.1 states the theoretical and empirical limitations, including the sampling and margin assumptions, criterion and scale dependence, and joint component ablations. Appendix D details the controls.
Guidelines:
• The answer [N/A] means that the paper has no limitation while the answer [No] means that the paper has limitations, but those are not discussed in the paper.
• The authors are encouraged to create a separate “Limitations” section in their paper.
• The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be.
• The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated.
• The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon.
• The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size.
• If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness.
• While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren’t acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations.
3. Theory assumptions and proofs
Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof?
Answer: [Yes]
Justification: Complete formal proofs, including all regularity assumptions and the contraction argument, are provided in Appendix A and B.
Guidelines:
• The answer [N/A] means that the paper does not include theoretical results.
• All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced.
• All assumptions should be clearly stated or referenced in the statement of any theorems.
• The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition.
• Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material.
• Theorems and Lemmas that the proof relies upon should be properly referenced.
4. Experimental result reproducibility
Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)?
Answer: [Yes]
Justification: Section 4 and Appendix C give the retrieval equations and baseline protocols. Appendix D specifies the additional control settings, seed counts, and evaluation criteria; code is supplied with the submission.
Guidelines:
• The answer [N/A] means that the paper does not include experiments.
• If the paper includes experiments, a [No] answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not.
• If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable.
• Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general, releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed.
• While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example
(a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm.
(b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully.
(c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset).
(d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results.
5. Open access to data and code
Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material?
Answer: [Yes]
Justification: Anonymized source code, together with a README, a dependency list, and configuration files reproducing the main capacity, ablation, and MIL results in Section 4 and Appendix C, is provided in the supplemental material.
Guidelines:
• The answer [N/A] means that paper does not include experiments requiring code.
• Please see the NeurIPS code and data submission guidelines (https://neurips.cc/public/guides/CodeSubmissionPolicy) for more details.
• While we encourage the release of code and data, we understand that this might not be possible, so [No] is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark).
• The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://neurips.cc/public/guides/CodeSubmissionPolicy) for more details.
• The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc.
• The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why.
• At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable).
• Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted.
6. Experimental setting/details
Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer) necessary to understand the results?
Answer: [Yes]
Justification: Experimental settings, including datasets, the alternative U-Hop evaluation protocol (max vs. avg), and retrieval criteria, are described in Section 4 and Appendix C.
Guidelines:
• The answer [N/A] means that the paper does not include experiments.
• The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them.
• The full details can be provided either with the code, in appendix, or as supplemental material.
7. Experiment statistical significance
Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments?
Answer: [Yes]
Justification: The MIL experiment reports mean and standard deviation across repeated runs. Appendix D.1 reports mean and sample standard deviation over three seeds for the scale controls through N = 500 (Figure 21); the extended scans specify their method-specific seed counts. Appendix D.5 adds a three-seed comparison using the public average-separation objective.
Guidelines:
• The answer [N/A] means that the paper does not include experiments.
• The authors should answer [Yes] if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper.
• The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions).
• The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.)
• The assumptions made should be given (e.g., Normally distributed errors).
• It should be clear whether the error bar is the standard deviation or the standard error of the mean.
• It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a 96% CI, if the hypothesis of Normality of errors is not verified.
• For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g., negative error rates).
• If error bars are reported in tables or plots, the authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text.
8. Experiments compute resources
Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments?
Answer: [Yes]
Justification: The original capacity, retrieval, ablation, and MIL experiments were run on a workstation equipped with two NVIDIA Tesla T4 GPUs (16 GB each). The single-T4 timing in Table 1 and Figure 5 includes training amortized over 256 queries at N = 300, as described in Section 4.4. Compute for the original experiment set, including preliminary tuning, was estimated at fewer than 50 GPU-hours; this estimate excludes the extended control sweeps. The public-average comparison in Appendix D.5 uses an NVIDIA RTX 5060 Laptop GPU (8 GB).
Guidelines:
• The answer [N/A] means that the paper does not include experiments.
• The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage.
• The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute.
• The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn’t make it into the paper).
9. Code of ethics
Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines?
Answer: [Yes]
Justification: The research involves foundational theoretical and empirical evaluations in associative memory and strictly conforms to the NeurIPS Code of Ethics.
Guidelines:
• The answer [N/A] means that the authors have not reviewed the NeurIPS Code of Ethics.
• If the authors answer [No], they should explain the special circumstances that require a deviation from the Code of Ethics.
• The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction).
10. Broader impacts
Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed?
Answer: [Yes]
Justification: Positive impacts. The nonlinear phase-kernel framework provides a principled route to associative memory and attention modules with provably exponential capacity and well-separated attractor basins, supporting more reliable long-context retrieval and reduced memory confusion in attention-based systems. Potential negative impacts. Because dense associative memory is mathematically equivalent to self-attention [1], capacity gains at this level can in principle propagate into Transformer-based applications with dual-use concerns (e.g., large-scale surveillance or automated disinformation). Our work is foundational and not tied to any specific deployment; we release no pretrained weights or scraped data, and the accompanying code is restricted to standard associative-memory benchmarks (MNIST, CIFAR-10, TinyImageNet, MNIST-Bags), which limits direct misuse.
Guidelines:
• The answer [N/A] means that there is no societal impact of the work performed.
• If the authors answer [N/A] or [No], they should explain why their work has no societal impact or why the paper does not address societal impact.
• Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations.
• The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate Deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster.
• The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology.
• If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML).
11. Safeguards
Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pre-trained language models, image generators, or scraped datasets)?
Answer: [N/A]
Justification: The work focuses on fundamental associative memory algorithms and does not involve releasing high-risk models, generators, or scraped datasets.
Guidelines:
• The answer [N/A] means that the paper poses no such risks.
• Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters.
• Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images.
• We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort.
12. Licenses for existing assets
Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected?
Answer: [Yes]
Justification: Standard benchmark datasets (MNIST, CIFAR-10, TinyImageNet, MNIST-Bags) and the public U-Hop codebase used in our experiments are properly cited in the text and references in Section 4 and Appendix C.
Guidelines:
• The answer [N/A] means that the paper does not use existing assets.
• The authors should cite the original paper that produced the code package or dataset.
• The authors should state which version of the asset is used and, if possible, include a URL.
• The name of the license (e.g., CC-BY 4.0) should be included for each asset.
• For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided.
• If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset.
• For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided.
• If this information is not available online, the authors are encouraged to reach out to the asset’s creators.
13. New assets
Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets?
Answer: [Yes]
Justification: We release anonymized source code for the S-Hop and P-Hop kernels and the capacity-evaluation pipeline as supplemental material. The submission includes a README documenting environment setup and exact commands to reproduce Tables 1–2 and Figures 3–20, a requirements.txt pinning dependency versions, and configuration files for each evaluation protocol (max/avg, MSE/SSD, with/without PCA, with/without gating). The code is released under the MIT license.
Guidelines:
• The answer [N/A] means that the paper does not release new assets.
• Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc.
• The paper should discuss whether and how consent was obtained from people whose asset is used.
• At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file.
14. Crowdsourcing and research with human subjects
Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)?
Answer: [N/A]
Justification: The research does not involve crowdsourcing or human subjects.
Guidelines:
• The answer [N/A] means that the paper does not involve crowdsourcing nor research with human subjects.
• Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper.
• According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector.
15. Institutional review board (IRB) approvals or equivalent for research with human subjects
Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained?
Answer: [N/A]
Justification: The research does not involve human subjects.
Guidelines:
• The answer [N/A] means that the paper does not involve crowdsourcing nor research with human subjects.
• Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper.
• We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution.
• For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review.
16. Declaration of LLM usage
Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigor, or originality of the research, declaration is not required.
Answer: [N/A]
Justification: The core method development and theoretical derivations in this research do not involve LLMs as any important, original, or non-standard components.
Guidelines:
• The answer [N/A] means that the core method development in this research does not involve LLMs as any important, original, or non-standard components.
• Please refer to our LLM policy in the NeurIPS handbook for what should or should not be described.