Simplicial Hopfield networks

Thomas F Burns, Tomoki Fukai

Abstract

Traditional Hopfield networks are limited by pairwise connections between neurons, but biological evidence suggests that "setwise" interactions are fundamental to memory. This paper introduces Simplicial Hopfield Networks (SHNs), which leverage simplicial complexes to model higher-dimensional relationships. By extending the energy functions of Hopfield networks to include higher-order simplices, SHNs dramatically increase memory capacity—even when constrained to the same number of parameters as standard pairwise networks.

Introduction

Hopfield networks serve as a foundational model for associative memory, where patterns are stored as energy minima in a neural network. A significant bottleneck in traditional models is memory capacity: in a network of $N$ neurons, reliable storage is typically limited to approximately $0.14N$ patterns. While modern variants have improved this, they still rely primarily on pairwise interactions, akin to edges in a graph.

The authors argue that this pairwise focus ignores the rich, setwise connectivity observed in biological brains, where neurons, astrocytes, and dendrites interact in complex, non-pairwise ensembles. SHNs formalize these higher-order interactions using simplicial complexes, moving beyond simple graph-based architectures to improve artificial memory systems.

Methods and Mathematical Framework

The core innovation of SHNs is the use of simplicial complexes—mathematical structures that generalize graphs to higher dimensions. While a standard graph consists of vertices (0-simplices) and edges (1-simplices), a simplicial complex incorporates triangles (2-simplices), tetrahedra (3-simplices), and higher-dimensional analogs.

Hierarchy of simplicial interactions across dimensions (0-simplex to 3-simplex).

Key methodological contributions include:

  • Generalized Energy Functions: The authors extended energy functions and update rules for binary, energy-based, and continuous Hopfield networks to account for higher-order simplices.
  • Mixed Diluted Networks: To ensure a fair comparison with standard models, the researchers developed "mixed diluted" networks. These networks maintain the same total number of parameters (non-zero weights) as a standard pairwise network but distribute them across multiple dimensions (e.g., a combination of edges and triangles).
  • Geometric Similarity Measures: For continuous data, the paper introduces measures like Cumulative Euclidean Distance (ced) and Cayley–Menger Distance (cmd). These metrics account for the multi-neuron geometry of simplices, providing a more nuanced measure of state similarity than the standard dot product.

Key Insights

The research yields several critical insights into the nature of associative memory:

  • Topology Over Parameter Count: Memory recall improves significantly by simply swapping some pairwise edges for higher-order triangles, without increasing the total number of parameters.
  • Sophisticated Energy Landscapes: Modeling relationships between groups of three or more neurons creates a more pattern-separating energy landscape. This allows the network to distinguish between similar memories that might otherwise cause interference in a pairwise model.
  • Geometric Precision: In continuous networks, geometric measures like the Cayley–Menger distance outperform standard Euclidean metrics as data complexity increases.
  • Biological Alignment: The authors suggest that the brain's superior memory capacity may be a direct consequence of its simplicial-like architecture, linking their findings to biological "synapsembles" and astrocytic signaling.

Results

The researchers evaluated SHNs using random binary patterns and image datasets including MNIST, CIFAR-10, and Tiny ImageNet.

  • 6x Capacity Increase: In binary tests, a simplicial network performed as well with $0.3N$ patterns as a standard pairwise network did with only $0.05N$ patterns—all while using the same number of non-zero weights.
  • Superior Image Recall: On the Tiny ImageNet dataset, the simplicial model using the cmd distance measure achieved a recall fraction of nearly 0.95, while the standard pairwise Euclidean model struggled at around 0.31.
  • Robustness: Performance gains were consistent across various topological configurations, indicating that the benefit is intrinsic to the presence of higher-order simplices.

Limitations and Future Directions

Despite the strong results, several challenges remain:

  • Theoretical Proofs: While capacity was proven for fully connected simplicial networks, the "diluted" case currently relies on numerical evidence.
  • Structural Optimization: Future work could involve "learning" the optimal simplicial topology for specific datasets rather than using random selections.
  • Scalability: Calculating higher-order geometric distances and homology is computationally more intensive than simple matrix operations, posing potential scaling hurdles for large-scale applications like Transformers.

Summary updated

BibTeX
@inproceedings{burns2023simplicial,
  author = {Thomas F Burns and Tomoki Fukai},
  title = {{Simplicial Hopfield networks}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=_QLsH8gatwx},
}
Figure