arXiv:2610.19321cs.ETOct 2026

Manuscript Offprint

arXiv:2610.19321

Hopfield Networks in Non-volatile Memory

Patrick Miller, Ulya R. Karpuzcu

Patrick Miller and Ulya R. Karpuzcu, University of Minnesota, Twin Cities, USA

Abstract—Many important computational workloads are bound by the performance of the memory system that supplies data to conventional processors. Compute in Memory (CiM) promises to circumvent this bottleneck by performing the processing within the memory. Neural Networks are memory-bound, and a notable example of such is the Hopfield Network. This work explores the design space of non-volatile computing-in-memory (NV-CiM) architectures using an instruction-level simulator to evaluate application mappings and workload-driven architectural adaptations. The exploration examines the resulting design tradeoffs and includes theoretical comparisons with representative CPU and GPU architectures.

Index Terms—Nonvolatile compute in memory, Hopfield Networks.

I. INTRODUCTION

Conventional computational systems have separate devices for processing and memory. The performance of modern and emerging workloads such as Artificial Intelligence (AI) and Genomics are bottlenecked by limited bandwidth between the processor and memory, resulting from slower technological scaling of the bus compared to scaling at the chip level [11], [30]. Compute in Memory (CiM) is an alternative paradigm that seeks to circumvent this bottleneck by performing compute operations near or within memory. The high bandwidth provided by performing operations near or within memory is leveraged by many accelerator architectures for bandwidth-limited workloads [6], [17], [33], [34].

Variations on CiM can be differentiated by the level of integration of compute and memory, and the underlying technologies used for the memory cells. The highest bandwidths are possible when processing elements are in the periphery of memory arrays, or if the storage elements within the involved arrays can perform processing steps. Accelerators can use more conventional memory technologies such as Static Random Access Memory (SRAM) [33] or Dynamic Random Access Memory (DRAM) [34], which are volatile memory technologies that require continuous power to maintain state, which introduces leakage or refresh power that scales with memory capacity. Non-volatile memory technologies can maintain state in the absence of power, and this work focuses on a non-volatile CiM (NV-CiM) using Magnetoresistive Random Access Memory (MRAM) which can perform computational operations directly between memory cells while possessing circuit speeds closer to SRAM and DRAM, denser arrays than SRAM, and favorable endurance characteristics to other non-volatile memory technologies [36].

Neural Networks draw inspiration from the functionality of biological systems such as the brain, relying on complex interconnected networks of individually simple neurons to perform computational tasks. Choices vary in terms of fidelity to the biological function of neurons, with activity encoded in series of neural spikes [5], or more abstract with neuron activation represented as a binary state [15]. A common thread between these schemes is the modeling of the connections between neurons and their strength of interactions as various weight values, where a neuron's future behavior is determined by some function with an input based on the integration of current state and its connection weights.

Hopfield Networks are a model of recurrent neural network that uses principles of energy minimization derived from spin glass and Ising models of magnetic materials to emulate the emergent behavior of pattern storage and recall by biological neurons [15]. Hopfield networks have been extended over time to enhance their applicability in fields ranging from optimization problems, image retrieval, and forms with self-attention that give them functionality analogous to the transformers found in many machine learning products [25].

The evaluation of neuron state and connection weights requires the access of a potentially massive number of values, given the high level of interconnectedness of artificial and natural neural networks. In a system where weights and neuron states are held in memory, the memory bus limits the rate by which the processing elements can execute. This paper explores the initial implementation of a classic Hopfield Network in a NV-CiM, relying cells based on MRAM to maximize bandwidth by performing in-memory compute, and relying on the density of the technology allow for larger data sets in the CiM device.

In this paper, we will cover the functionality of classical hopfield networks and MRAM-based CiM, explore the application mapping of a network to a representative NV-CiM, explore performance scaling in terms of increasing network complexity, discuss architectural changes that become necessary to fully implement a network within a CiM as well as mitigations for scaling barriers found with a basic CiM design. We will provide roofline models for theoretical comparison with more conventional CPU and GPU devices, and discuss the thresholds where CiM's poorer small-problem performance scales more gracefully once working sets begin to exceed the on-die memory resources available for standard solutions.

References (39)