Dynamical stability for dense patterns in discrete attractor neural networks

Uri Cohen, Máté Lengyel

TL;DR

Classical theories of memory networks tell us how many patterns can be mathematically stored as fixed points, but fail to explain whether these memories are dynamically stable attractors when biological constraints like graded firing rates, noise, and weight asymmetry are introduced. By analyzing the bulk and outlier eigenvalues of the dynamics' Jacobian, this paper reveals a distinct phase transition for stability that is strictly lower than storage capacity. The analysis demonstrates that near-linear threshold activations and high-variance ("sparse-like") activity patterns are optimal for stable memory recall.

What Problem Does This Paper Address?

Attractor neural networks (such as Hopfield networks) model auto-associative memory: given a noisy or partial cue, the network's dynamics converge to a stored memory pattern (a stable fixed point). Historically, proving that these fixed points are dynamically stable required restrictive "Hebbian" assumptions—such as binary neural states, symmetric connection weights, and energy (Lyapunov) functions.

Conversely, the "Gardner" approach from statistical physics computes the maximal storage capacity ($\alpha_C = P/N$, the ratio of patterns $P$ to neurons $N$) by treating memory storage as a constraint-satisfaction problem. However, Gardner's framework remains silent on dynamical stability: just because a pattern is an equilibrium point does not mean small perturbations will converge back to it.

The authors bridge this gap by developing an analytical framework to determine when discrete, graded, dense memory patterns stored in continuous rate-based networks are locally stable attractors.

Methods

The authors consider continuous rate dynamics: $$\tau \dot{\mathbf{r}} = -\mathbf{r} + g(W\mathbf{r} - \theta)$$ where $g(\cdot)$ is a soft-rectified power-law activation function parameterized by exponent $n$ and smoothness/noise parameter $\sigma$.

To evaluate memory stability, the authors combine two frameworks:

  1. Replica Theory for Capacity: They derive a mean-field replica theory to compute the minimal-norm weight matrix $W$ (with zero self-couplings) that embeds $P$ dense or sparse graded patterns as fixed points. In the dense case, this yields a pseudo-inverse solution $W^* \approx V R^\dagger$.
  2. Spectral Analysis of the Jacobian: Local stability around pattern $\mathbf{r}^\mu$ requires all eigenvalues of the Jacobian $J_\mu = -I + g'(g^{-1}(\mathbf{r}^\mu)) \circ W$ to have negative real parts.
  3. Bulk and Outlier Spectrum Decomposition:
  4. Bulk: Approximated using random matrix theory for paired correlated Gaussian matrices with pseudo-inverses, yielding the bulk edge $\lambda_{\text{bulk}}$.
  5. Outliers: The authors identify two critical outlier eigenvalues:
  6. $\lambda_{\text{ave}}$, associated with the average row-sum of the Jacobian.
  7. $\lambda_{\text{mem}}$, an outlier aligned with the memory pattern itself, which causes perturbations parallel to the pattern to grow or shrink.

Combining these yields an analytical predictor for the critical stability load $\alpha_S$.

Datasets

The study evaluates the theory using synthetic pattern ensembles rather than real-world datasets:

  • Dense Graded Patterns: Random vectors sampled from a log-normal distribution parameterized by the coefficient of variation ($CV \in [1/8, 8]$) with fixed mean $\langle r \rangle = 1$.
  • Sparse Graded Patterns: Patterns where a fraction $1 - f$ of neurons have exact zero activity, while the active fraction $f \in [1/16, 1]$ is log-normally distributed.

Numerical simulations optimized weights using off-the-shelf conic optimization solvers (Clarabel).

Key Insights and Ideas

  • Stability vs. Storage Disconnect: The critical load for stability ($\alpha_S$) is governed by an entirely different phase transition than the storage capacity ($\alpha_C$). For dense patterns, capacity is always $\alpha_C = 1$, but patterns become unstable at a lower critical threshold $\alpha_S < 1$. Below $\alpha_S$, all patterns are stable; above it, all patterns destabilize.
  • The Pitfall of Supralinear Activation: While supralinear activations ($n > 1$) are widely studied in cortical models, the paper shows they trigger a memory-specific instability ($\lambda_{\text{mem}} > 0$). Any perturbation along the pattern vector is amplified supralinearly, causing the dynamics to blow up.
  • Optimality of Threshold-Linear Units: Robust stability requires $n \approx 1$ (near-linear/rectified-linear) alongside finite noise/smoothness ($\sigma > 0$). Sublinear regimes ($n < 1$) destabilize due to the bulk spectrum ($\lambda_{\text{bulk}} > 0$), while supralinear regimes ($n > 1$) destabilize due to the pattern outlier.
  • Negative Activation Thresholds: Maximizing stability requires a negative threshold $\theta^* = -\langle g^{-1}(r) \rangle$, producing weight matrices with zero or negative mean. This challenges the standard view that stable attractors necessitate strong global inhibition paired with selective excitation.
  • Asymmetry Promotes Stability: High stability capacity is naturally accompanied by asymmetric connections and non-normal Jacobian dynamics, departing from classical symmetric energy-based models.

Key Results

  • Theoretical Accuracy: The predicted stability boundary $\alpha_S$ closely matches numerical simulations across a broad range of smoothness $\sigma$, exponent $n$, and pattern $CV$.
  • Benefits of High Variance ("Sparse-like" Patterns): As pattern variation increases ($CV = 0.5 \to 8$), the critical load for stability jumps from near zero to $\alpha_S \approx 0.5$ in dense networks.
  • Sparse Pattern Scaling: In sparse networks, critical capacity scales as $\alpha_C \sim \frac{1}{f \log(1/f)}$, and the stability load $\alpha_S$ similarly increases as pattern sparsity $f$ decreases.

Limitations and Future Work

  • Non-Local Weight Optimization: Synaptic weights are solved via global pseudo-inverse/quadratic optimization rather than biologically plausible, local synaptic plasticity rules.
  • Approximation Bounds in Matrix Theory: The Jacobian entries violate strict Gaussian and independent identically distributed (i.i.d.) assumptions. While the bulk-plus-outlier approximation is empirically accurate, discrepancies appear near the phase boundary $n \approx 1$.
  • Large Smoothness Breakdown: When smoothness $\sigma$ is very large, the correlation between the pattern and its transformed counterpart degrades ($\tau_{\text{mem}} < 0.9$), causing the outlier formula for $\lambda_{\text{mem}}$ to lose accuracy.

Summary updated

BibTeX
@misc{cohen2025dynamical,
  author = {Uri Cohen and Máté Lengyel},
  title = {{Dynamical stability for dense patterns in discrete attractor neural networks}},
  year = {2025},
  eprint = {2507.10383},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.10383},
}
Figure