Phases in a class of associative memories via hidden neurons

Toshihiro Ota, Masato TakiarXiv 2026

TL;DR

This paper unifies polynomial-load dense associative memories and exponential-load modern Hopfield networks under a single bipartite architecture framework called "class $\mathcal{H}$." By treating hidden neurons as the order parameter for memory retrieval, the authors show that the visible layer's geometry dictates retrieval stability, while the hidden layer's nonlinearity determines the storage capacity scale and crosstalk noise statistics.

What Problem Does This Paper Address?

Associative memories, famously exemplified by the Hopfield network, store patterns as attractors in an energy landscape. Over the years, researchers found that replacing pairwise interactions with higher-order polynomial interactions increases storage capacity polynomially. More recently, exponential interactions (using a log-sum-exp energy function) were shown to yield exponential capacity, mapping directly to the softmax attention mechanism used in modern Transformers.

However, these two regimes—polynomial vs. exponential load—have historically been studied using entirely different mathematical tools and separate architectures. This paper addresses this fragmentation by providing a single, unified framework to answer a fundamental question: What structural features fix the storage scale, and how does the underlying crosstalk noise transition between these two regimes?

Methods

The authors leverage a two-layer bipartite architecture originally proposed by Krotov and Hopfield, termed class $\mathcal{H}$. In this network, a visible layer and a hidden layer are coupled exclusively via pairwise interactions, with no intralayer connections.

FIG. 1: The class-H associative memories. The Nv visible neurons and the Nh hidden neurons form a bipartite network with no intralayer connections.

The entire model's behavior is determined simply by choosing a "Lagrangian" function for each layer, which defines the activation functions of the neurons. The authors analyze three representative models within this class:

  • Model A: Ising (binary) visible neurons with a polynomial hidden layer.
  • Model B: Quadratic visible neurons with a softmax hidden layer (the attention model).
  • Model C: Spherical (continuous) visible neurons with a polynomial hidden layer.

To solve these models, the authors apply the replica method from spin-glass physics to the polynomial regime (Models A and C). For the exponential regime (Model B), they introduce a novel copy representation that maps the system's thermodynamics onto counting states in Derrida's Random Energy Model (REM), utilizing large-deviation and extreme-value statistics.

Datasets

Not discussed in the paper. This study is purely theoretical and evaluates the associative memory models using synthetic, randomly generated memory patterns (e.g., i.i.d. Rademacher $\pm 1$ variables or standard Gaussians).

Key Insights and Ideas

  • Separation of Roles: The class $\mathcal{H}$ framework cleanly splits the retrieval problem into two axes. The visible Lagrangian controls retrieval stability via visible entropy (Ising vs. spherical geometry), while the hidden Lagrangian dictates the storage scale (polynomial vs. exponential) and the nature of the crosstalk noise.
  • Crosstalk Dichotomy: At polynomial load, crosstalk noise obeys the Central Limit Theorem and is insensitive to the exact pattern ensemble. At exponential load, crosstalk is governed by large deviations and becomes highly sensitive to the pattern ensemble.
  • Quantized Attention Defection: In the attention model (Model B), heating the system does not smoothly erode memory overlap. Instead, thermal destabilization occurs via discrete, quantized reassignments of attention weights—essentially, discrete "copies" of attention defecting to competing patterns.
  • Metastability of Typical Memories: At exponential load, typical memories are never the true global equilibrium phase at low temperatures. They are inherently metastable because rare patterns with atypically large norms dominate the global minimum (forming a "frozen" phase).

Key Results

  • Closed-Form Capacities: The authors derive exact zero-temperature storage capacities for the polynomial models. They show that while the quadratic spherical model (Model C, $k=2$) has zero capacity, higher-order interactions ($k>2$) successfully restore a robust retrieval phase.
  • Phase Diagrams: Complete replica-symmetric phase diagrams are mapped out. Models A and C exhibit paramagnetic, spin-glass, and retrieval phases, with Model A showing an interesting "reentrant" boundary due to entropic asymmetry.
Phase diagram of Model A.
Phase diagram of Model C.
  • Model B reveals a rich structure featuring paramagnetic, condensed (a mixture of retrieval lumps), and frozen phases, alongside a clearly delineated metastable retrieval region.
Finite-temperature phase diagram of Model B.
Phase diagram of Model B with escape barrier contours.

Limitations and Future Work

  • Replica Symmetry Assumption: The analysis for Models A and C relies on the replica-symmetric (RS) ansatz. Exploring Replica Symmetry Breaking (RSB) is required to precisely locate the de Almeida–Thouless (AT) instability lines and correct low-temperature boundaries.
  • Adiabatic Limit: The hidden neurons are assumed to relax instantaneously ($\tau_h \to 0$). Analyzing the fully coupled, two-temperature dynamic system at finite $\tau_h$ remains an open challenge.
  • Softmax Zero-Mode Corrections: For Model B, the zero-mode of the softmax function introduces non-trivial hidden-sector corrections at exponential load that need to be fully integrated into the thermodynamic limit.

Summary updated

BibTeX
@misc{ota2026phases,
  author = {Toshihiro Ota and Masato Taki},
  title = {{Phases in a class of associative memories via hidden neurons}},
  year = {2026},
  eprint = {2609.10976},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.10976},
}
Figure