Manuscript Offprint
arXiv:2610.26118Superposed analog memory for vector storage in neural networks
Athanasios Vasilopoulos, Patrick Diener, Michael Hersche, Abbas Rahimi, and Abu Sebastian
IBM Research Europe, Zurich Research Laboratory, 8803 Rüschlikon, Switzerland
Department of Electrical and Computer Engineering, University of Patras, 26504 Patras, Greece
Kirchhoff-Institut für Physik, Heidelberg University, 69120 Heidelberg, Germany
(Dated: 20 October 2026)
The growing memory demands of artificial neural networks pose a major challenge for energy-efficient computing, particularly for models that rely on large collections of high-dimensional weight and embedding vectors. Conventional memory architectures store these vectors individually, requiring many memory cells per vector and limiting achievable storage density. Here we demonstrate an analog memory architecture that encodes multiple vectors in a distributed superposition within a single memory array. Individual vectors are recovered through in-memory matrix-vector multiplication, allowing the degree of superposition to be tuned to balance storage density against recall fidelity. This approach introduces a new scaling dimension for analog memory, in which effective storage density can be increased without a corresponding increase in the number of physical memory cells. The distributed representation also provides resilience to device-level noise. We implement the architecture on a prototype phase-change memory chip and experimentally evaluate it using embedding tables from deep learning recommendation models and large language models. The results demonstrate inference accuracy comparable to full-precision software baselines, establishing analog superposition as a promising route towards dense, energy-efficient memory for artificial intelligence.
I. INTRODUCTION
The rapid progress of deep learning (DL) over the past decade has been driven not only by advances in algorithms, but mainly by advances in computing hardware, particularly specialized accelerators . During inference, these artificial intelligence (AI) accelerators repeatedly access large sets of deep neural network (DNN) parameters stored in memory and deliver them to processing units for computation. Because the energy required to access memory often exceeds that required to perform arithmetic operations, the storage and movement of model parameters have emerged as major bottlenecks in AI hardware. As neural networks continue to grow, increasing the amount of model information that can be stored close to the processing units has become increasingly important.
Most contemporary AI accelerators rely on a memory hierarchy comprising static random-access memory (SRAM) as high-performance cache memory on the processor chip and off-chip dynamic random-access memory (DRAM) as high-capacity system memory. However, the storage density of SRAM, which typically requires a six-transistor cell, remains limited, and improvements through conventional semiconductor scaling have not kept pace with the rapid growth of modern neural networks. Embedded flash memory has traditionally served as on-chip storage for low-end edge platforms, but it becomes impractical to integrate at advanced technology nodes. Emerging memristive devices such as resistive random-access memory (RRAM) and phase-change memory (PCM) are expected to contribute significantly to integrated on-chip memory because of their compact size ; their ability to represent data through binary high-and low-resistance states has already established a niche in edge-AI processors for storing neural-network parameters . Nevertheless, conventional approaches to increasing memory capacity, namely, reducing device dimensions, enlarging arrays, or extending them into three dimensions, ultimately depend on the number of physical devices and the number of reliably distinguishable states per device. Moreover, depending on the memory technology, device scaling can increase device resistance, while larger arrays introduce greater interconnect losses, both leading to more demanding sensing conditions. Finally, although emerging non-volatile memory devices are intrinsically analog, their continuous state space is often restricted to a limited number of discrete levels to manage variability and sensing constraints.
Here we introduce an analog memory architecture that increases effective storage density through the representation of information rather than through physical device scaling alone. The proposed architecture adds a capacity-scaling dimension that arises from how information is represented, improves the sensing conditions that constrain memory-array scalability, and exploits the analog characteristics of emerging memory devices. Multiple high-dimensional vectors are stored across a fixed set of devices, and the number of vectors can exceed the number of physical rows of the array. This partially decouples effective storage capacity from the number of physical memory units. Increasing
a) Electronic mail: atv@zurich.ibm.com
b) Electronic mail: ase@zurich.ibm.com the superposition factor is accompanied by a gradual reduction in retrieval fidelity, providing a continuous density-fidelity trade-off that can be selected according to the requirements of the application. The approach is particularly suited to DNN parameters, whose information is distributed across high-dimensional vectors and is often tolerant to reduced precision and moderate perturbations .
The proposed memory architecture also changes the physical readout mechanism. Rather than sensing an individual memory device, a vector is retrieved by collectively activating the array rows and sensing the resulting column currents generated by many devices. Under the operating conditions examined here, this collective readout produces a median current more than two orders of magnitude larger than single-device readout, while reducing the coefficient of variation by more than sixfold. The resulting sensing margin can be traded against individual-device conductance, creating headroom for operation with more resistive nanoscale devices and extending the design space for larger memory arrays.
We demonstrate the operating principles and experimental realization of this architecture using a prototype PCM chip. We establish the relationship between superposition factor and retrieval fidelity, quantify the sensing advantages of collective readout, and show how embedding tables from a deep learning recommendation model (DLRM) and an large language model (LLM) can be adapted to superposed storage. Experimental retrieval from the PCM chip preserves downstream inference performance comparable to full-precision software baselines, demonstrating the potential of analog superposition as a complementary scaling strategy for dense memory in AI hardware.
A. Encoding scheme
Prior to being written into the memory array, each D-dimensional vector is mapped to a two-dimensional representation that can be stored in a memory array. To achieve this, we lift the vectors into a matrix representation and combine them into a single superposed composite representation (SCR). To achieve this, we employ tensor-product representations (TPRs) , a mathematical framework which defines the binding of two vectors, a key and a value, using a tensor (outer) product operation. The result is a higher-order representation where information about both components is preserved in a distributed fashion. In our setting, the value corresponds to a DNN vector that we wish to store in memory, while the key is an auxiliary vector that indexes the value within the superposed representation. The overall encoding and retrieval process is illustrated in Fig. 1c.
The first step is to bind each value vector with its corresponding key vector , both of dimensionality , producing a matrix representation :
Multiple such bindings can then be superposed to form a single SCR S that contains information about all stored vectors.
The superposition can be performed through direct addition, as in Eq. 2, or through update methods that improve representational capacity, such as the delta rule , described in the Methods.
This representation can then be stored directly in the memory array. Retrieval of a stored vector is performed by multiplying the composite representation with the corresponding key vector:
The accuracy of the retrieved vector depends on the relationships among the key vectors. If the keys are orthogonal ( for ), the original vector can be reconstructed exactly, which is possible only when the number of stored vectors satisfies . However, exact orthogonality is not required in practice for DNNs. When the keys are drawn randomly in a high-dimensional space, they tend to be approximately orthogonal – a property sometimes referred to as the blessing of dimensionality . In this regime, the inner products remain small but non-zero, resulting in an approximate reconstruction , where represents an interference term arising from the other stored vectors. Although this interference grows as more vectors are superposed, the direction of the retrieved vector remains largely preserved (see Extended Data Fig. 1). This phenomenon, known as graceful degradation , enables a controllable trade-off between storage capacity and retrieval accuracy.
Crucially, this property allows the number of stored vectors N to exceed the dimensionality D of the memory array. We define the ratio as the superposition factor. In this work, we intentionally exploit quasi-orthogonal keys to unlock this regime, enabling the superposed memory to store more vectors than the number of physical rows while maintaining the retrieval fidelity required for the downstream tasks.
B. Physical storage and collective readout
After its creation, the SCR S is mapped directly onto a analog memory array, where each memory cell, comprising one or more analog devices, is programmed to represent the corresponding element of S. Programming can be performed using iterative read-write-verify techniques commonly employed in analog memory devices . In contrast to digital parameter storage, the continuously programmable device conductances are used directly to represent the elements of the composite matrix. In this work, we only investigate the storage of parameters that are static during inference and as such S does not require updating. However, one could incrementally update S by leveraging the crystallization kinetics and the corresponding accumulative behavior of PCM devices .
Retrieval of vector corresponds physically to an in-memory matrix-vector multiplication (MVM) between the stored matrix and the key (Eq. 3). Keys need only be quasi-orthogonal between them, a condition that can be achieved with bipolar values. Therefore, the inputs to the MVM is bipolar voltages representing the elements of and are applied simultaneously to the array rows, with the resulting column currents being digitized to obtain the elements of . This differs from conventional cell-addressed storage, in which the sensing conditions are determined primarily by the current of an individual device.
Collective readout provides a larger current margin while preserving the analog information encoded in the array. In the experimental conditions considered here, SCR retrieval produces a median current more than two orders of magnitude larger than single-device readout and reduces the coefficient of variation of the read-current distribution by more than sixfold (Extended Data Fig. 2). This additional margin allows the use of more resistive nanoscale devices, without imposing strict sensing requirements that increase sensing time or the complexity of sensing circuitry as to not pollute a very faint signal.
C. Organization of a tiled memory system
Figure 2 illustrates how the proposed architecture can be organized using multiple analog memory tiles. Each tile contains a analog array, row digital-to-analog converters (DACs), column analog-to-digital converters (ADCs), and the programming circuitry required to program a SCR. Vectors whose dimensionality exceeds the tile dimension are partitioned across tiles. These tiles form a tile group and are activated in parallel to retrieve the different segments of the same vector.
Within each tile group, one SCR stores vectors. A collection of parameters containing vectors therefore requires tile groups. Increasing reduces the required number of tile groups without changing the physical dimensions of the individual arrays, at the cost of the gradual retrieval-fidelity reduction introduced by superposition.
The same set of keys is reused across tile groups because the key identifies the position of a vector within a group, while the group address identifies the physical tiles containing that vector. Consequently, the key-generation circuitry does not need to be replicated for every analog tile. Instead, a shared generator supplies the selected bipolar key to the row-driving circuits of all tiles activated for a read operation. Its hardware cost is therefore amortized across many arrays and across all vector segments participating in the retrieval.
Finally, the fact that the keys need only be quasi-orthogonal bipolar vectors further simplifies the key generator circuit significantly. While a detailed design-space exploration of the key generator circuit falls out of scope for this work, for our simulations we adopt a hardware-inexpensive solution of keys that are generated sequentially via binary operations of an internal state, thus not requiring the storage of a separate key matrix. In this work, we use a cellular automata (CA) based on Rule 30 to generate pseudo-random bipolar sequences (see related Methods section).
III. NEURAL NETWORK ADAPTATION
The memory architecture described in Section II stores vectors approximately due to the interference term introduced by the SCR. Therefore, it is essential to adapt the parameters of the DNN model to tolerate this interference. We achieve this by introducing the TPR-based encoding during model retraining by injecting the retrieval error caused by superposition into the model parameters during the forward pass. Backpropagation then updates the parameters such that they become robust to the errors introduced by the SCR transformation, allowing the model to converge to parameters amenable to noisy storage in superposition. A detailed description of the training procedure is provided in Methods and in Extended Data Fig. 3.
To assess downstream performance when model parameters are stored in S, we consider two representative application scenarios where storage capacity is critical and where the inherent superposition capability of the transformation becomes advantageous. First, we evaluate a DLRM , which contains large embedding tables that are repeatedly accessed during inference. Second, we apply the method to store the embedding table of a LLM, specifically GPT2-large . Details on the selected networks and datasets are provided in Methods, while the hyperparameters used during training are listed in Extended Data Table I.
We first analyze the impact of storing the embedding tables of the DLRM using SCR, evaluated in the Criteo Kaggle Display Advertising dataset and measured in area under the curve (AUC) (Fig. 3a). When the embeddings are stored in memory arrays with superposition factor equal to one ( ), the resulting AUC matches the software baseline, indicating that the encoding does not affect downstream performance. However, since embedding tables in DLRMs are known to be highly compressible , we further investigate the behavior of the model as the number of stored vectors increases way beyond . Figure 3a shows that performance remains close to the software baseline even at superposition ratios as high as , with the model remaining within 0.01 AUC of both the baseline and the state-of-the-art embedding compression method ROBE . Notably, our approach introduces no decompression overhead, as retrieval from the SCR results to the target vector naturally.
We perform a similar analysis for GPT2-large by storing its embedding tables in S and measuring perplexity on WikiText . Here, on a network much more sensitive to interference, we observe that we need to employ the delta rule variant of SCR to achieve baseline perplexity when we store N = D vectors. As superposition increases, perplexity degrades gracefully, reflecting the interference introduced by superposition and the tradeoff of storage density to retrieval fidelity. Importantly, storing embeddings using SCR without compressing (N = D) does not alter the perplexity landscape of the network compared to the baseline model, as shown in the inset of Fig. 3b, denoting no observable change in the quality of the results.
From these studies, we observe that networks trained with SCR awareness can achieve baseline accuracy without compression on both tasks, while also providing a flexible capacity to retrieval fidelity tradeoff without any overhead cost during retrieval. Furthermore, the achievable superposition can be tuned continuously by adjusting the number of stored vectors N, rather than being limited to coarse compression factors such as or , common in digital systems. Finally, the performance of the method generalizes across both model types as the encoding process is distribution-agnostic, as opposed to highly specialized compression methods developed for specific network architectures, like ROBE (see Extended Data Fig. 4).
Besides SCR awareness, robustness to analog hardware non-idealities must also be ensured. Analog memory devices exhibit conductance fluctuations, and in-memory MVM operations introduce additional effects such as IR-drop and output discretization . To account for these factors, we extend the training procedure to include analog hardware-aware (HA) elements. Following standard practice, we introduce Gaussian noise, clipping, and ADC quantization during training to improve robustness to hardware imperfections . Details of the HA training procedure are described in Methods.
To verify robustness, we measure the performance of HA-trained networks under varying levels of injected Gaussian noise in the elements of S during evaluation, as a proxy for the device noise . Figures 3c,d show the results for DLRM at superposition and for GPT2-large at and superposition. The HA simulations demonstrate that performance is sustained even in the presence of substantial noise – up to 10% variation in the stored representation.
IV. EXPERIMENTAL VALIDATION
We validate the proposed memory architecture through hardware experiments using the PCM-based analog in-memory computing (AIMC) chip described in . The chip consists of 64 memory tiles, each implementing a
crossbar array of unit cells based on PCM devices. The chip – fabricated in 14nm CMOS technology node – integrates all required peripheral circuitry to program the PCM devices to target analog conductance states and to carry out in-memory MVM operations.
To match the hardware tile dimensions, we construct a tiled representation of the network embeddings evaluated in Figures 3c,d using . The SCR S is then mapped directly onto the PCM array. Each element of S is encoded using a differential pair of PCM devices, whose conductance difference represents the signed analog value of the corresponding matrix element (Fig. 4a). The conductance states are realized physically through different amorphous-crystalline phase configurations within the PCM material, enabling the storage of analog values in the memory array.
Retrieval is performed directly on chip through in-memory MVM operations with the key vectors . During readout, the rows of the array are biased with 0.2 V read voltages according to the key vector values, producing column currents proportional to the values of the stored vectors . These currents are digitized using current-controlled oscillator-based ADCs and converted on-chip into signed 8-bit integers, which we used as the final readout values. More details about the experimental platform can be found in Methods.
These hardware-generated parameters are subsequently used to perform inference in software to evaluate model accuracy. Figure 4b summarizes the resulting performance across the evaluated networks. The measured accuracy closely matches the software baselines and aligns with the simulation results reported in the previous section for noise levels of approximately 8 – 10%. These results confirm that the proposed superposed analog storage scheme can be realized on existing PCM hardware while preserving the accuracy benefits predicted by simulation.
V. DISCUSSION
The proposed memory architecture addresses several key challenges in the design of memory devices and large-scale arrays. By replacing conventional row-by-row readout with collective readout through in-memory MVM, it relaxes the minimum-conductance requirements for reliable sensing while simultaneously increasing the effective read signal. Because the readout current arises from multiple devices operating in unison rather than from a single memory cell, the architecture tolerates substantially higher device resistances. This, in turn, allows the use of smaller devices , enabling further increases in array density and crossbar size. In addition, the collective read mechanism can deliver substantially faster read operations even when the underlying devices exhibit very high resistances. From a performance and energy efficiency standpoint, we provide array-level projections of latency, bandwidth, and energy per effective bit in Extended Data Table II. We do not attempt direct comparisons with SRAM or DRAM memory systems, as our projections correspond to a single array and do not include the full overhead of modern memory hierarchies. Nevertheless, the array-level performance and the key properties of the proposed memory architecture – non-volatility, on-chip integration, and superposition without decompression overhead – suggest a credible research path towards integrating many such arrays within future memory systems.
Moreover, the architecture provides a path for exploiting noisy analog device states. Although reliable multi-bit storage remains challenging at the level of individual PCM devices, the relevant metric in the proposed architecture is the accuracy of the collective MVM output. In Extended Data Fig. 7, we show that, in one of the cases explored in the paper, the retrieval error lies between that of 3- and 4-bit digital reference, closer on average to the 4-bit reference. This is consistent with the effective MVM precision previously demonstrated for DNN inference . This suggests that useful multilevel memory characteristics can also emerge from the collective response of devices whose individual states are noisy, opening a path towards exploiting scaled analog memories without requiring precise resolution of each device state.
Beyond improving on-chip storage capacity, the proposed architecture also opens opportunities for rethinking the role of AIMC hardware. In particular, AIMC tiles could be used not only for computation but also as high-density vector storage units with minimal hardware and control overhead. For example, in multi-tile AIMC chips , some tiles could perform in-memory computation while others store DNN vectors such as embeddings. Such a configuration could reduce the reliance of AIMC systems on external memory accesses and may be particularly beneficial for cost-and energy-sensitive markets such as edge computing, where large off-chip DRAM resources may be impractical .
Although the primary focus of this work is to address challenges related to on-chip storage, the proposed memory architecture can also be applied to standalone analog memories, including Flash storage. In combination with emerging 3D analog memory technologies, this architecture could potentially enable the storage of trillions of DNN vectors within an extremely compact area and with minimal energy consumption. Notably, 3D analog memory is already being investigated for use in in-memory MVM operations , suggesting a natural extension of the proposed architecture, by mapping the depicted tile groups of Fig. 2 on separate tiers of the same tiles.
From an algorithmic perspective, we introduced an SCR- and analog-aware training procedure to adapt the network parameters. Although such retraining is common when deploying models on reduced-precision hardware – including analog or low-bit quantized platforms – it can become prohibitively expensive in the era of LLMs . Future work could therefore explore methods to reduce this overhead. For instance, a lightweight post-training adaptation step that compensates for the approximate recovery of embeddings could significantly reduce retraining overhead. Similarly, limiting parameter updates to a small subset of layers – by freezing most of the network and updating only a few layers following the embedding stage – may allow the remaining layers to remain unchanged while preserving overall performance.
In summary, we introduced a memory architecture that stores high-dimensional DNN vectors as distributed analog superpositions, providing an additional scaling dimension beyond the number of physical devices and their individually distinguishable states. We demonstrated its realization using two-dimensional analog memory arrays with the required peripheral circuitry, developed training procedures that compensate for superposition and hardware non-idealities, and experimentally validated the storage and retrieval of embedding tables from a DLRM and an LLM on a prototype PCM chip. Beyond these application-level demonstrations, the architecture offers a new perspective on nanoscale memory design. By exploiting collective readout and distributed representations, it creates opportunities to use more resistive, noisy and densely integrated devices without requiring each cell to provide the precision or readout conditions demanded by conventional memory architectures. This could relax constraints associated with device miniaturization, multilevel-state reliability and array scaling, while enabling more effective use of the intrinsic analog characteristics of emerging memory technologies. More broadly, our results suggest that information representation can become a design variable alongside device materials, geometry and array organization, opening a route towards co-optimizing nanoscale devices and memory architectures for the storage demands of future neural-network hardware.
METHODS
Superposition using a modified delta update rule
An alternative way to superpose tensor product representations to the element-wise addition of Eq. 2 is the method of delta update, adapted from the memory update rule introduced in linear transformers by Schlag et. al. . In an iterative process, a new key-value pair is added to the existing superposed representation by first unbinding with the newly drawn key vector to yield . This vector contains the information already stored in that would interfere with if it were to be added as is.
A linear combination is then formed between the existing value vector and the new value vector , with a factor controlling the flow of new information in the representation. Note that in our modified rule, we keep as a data-independent hyperparameter, while in the formulation by Schlag et. al. , it is a function of the transformer token.
The convex combination of old and new information is subsequently bound with the new key and added to the existing memory matrix . At the same time, we remove the contribution of the existing part as its participation is now represented in the convex combination .
While prior work supports that this way of superposing increases the representational capacity of the memory S, the process serializes the creation of the memory, as one vector is added at a time. To improve runtime, we further modify this method with a batched implementation of the delta update rule, where a complete batch of keys and their corresponding values are updated at the same time, using batched versions of the equations M1- M3. We use the batched implementation for our experiments, as using the serialized version of the algorithm during retraining adds significant overhead to the runtime.
Key generation
We consider three methods to generate keys: one to generate orthogonal keys, and two to generate quasi-orthogonal keys, based on pseudo-random processes.
To generate the orthogonal keys used in the analysis of Extended Data Fig. 1, we utilize Hadamard matrices. Hadamard matrices provide a deterministic and efficient way to generate orthogonal keys . A Hadamard matrix satisfies the equation . Each row (or column) of is orthogonal to all others, making them ideal choices for key vectors.
The quasi-orthogonal keys used in Extended Data Fig. 1 are sampled from the Rademacher distribution , where each element is drawn independently from with equal probability. Given sufficiently large dimensionality , these vectors are quasi-orthogonal .
A more hardware-friendly approach to implement random sampling to create quasi-orthogonal vectors is to use the CA Rule 30 . Rule 30 is a one-dimensional binary cellular automaton known for producing pseudo-random sequences. Starting from a seed vector drawn from the Rademacher distribution, we evolve it using Rule 30 to generate successive key vectors. Each is then mapped from binary values to . The transition matrix of CA Rule 30 is included in Fig. 2. Due to its hardware-friendly nature, we use this process to generate the keys in all the neural network experiments presented in the paper.
SCR-aware training
To enable DNN parameter storage in the proposed memory system, the networks must be adapted to be robust to the interference introduced by the SCR. To achieve this, we devise a training procedure that can be applied either during training from scratch or fine-tuning. During this procedure, we introduce the TPR transformation during the forward pass of the model, adding on the parameters the error term . That way, the backpropagation modifies the parameters to find optima that both lead to good task performance and to robustness to the TPR transformation.
In Extended Data Fig. 3, we demonstrate the steps to introduce TPR in the forward pass. At a first step, the parameters of the model P that are to be stored in the SCR S are collected and mapped in a set of value vectors V of dimension D, which represents the size of the memory array in the hardware. To achieve this, the parameters are all flattened in a single one-dimensional vector and then reshaped in the shape , where is the number of all value vectors necessary to store all parameters. To achieve an integer number , we pad with zeros when necessary. Then, according to the selected superposition factor, i.e., the number of vectors stored per memory array of dimension D, we tile the parameters in a shape , where is the number of memory arrays required to store all parameters P.
In the second step, we generate all the unique keys required to bind and unbind the value vectors. Note that we only require keys, as the different memory arrays can share the same keys. It is crucial that the keys generated here agree with the implementation found in hardware, as the keys used here must be used during the hardware experiments as well. For our experiments, the generation of these keys happens via the CA Rule 30, which, as mentioned in the previous Methods section, is a hardware-friendly method to generate quasi-orthogonal keys.
In the third step, the value vectors are bound with the key vectors to produce the SCR . Notably, since the value vectors are of shape , the SCR is in reality a tiled representation comprising matrices of shape . Then, on step 4, using the same keys , we retrieve all values from the SCR matrices via an unbinding operation and finally on step 5 we map them back to the original set of parameters , reversing the tiling and padding of the first step.
Due to the inaccurate retrieval process of the transformation, the retrieved vectors contain an error term, which is isolated for each parameter . Finally, in step 6, as in a conventional noise injection-based training procedures, we perturb the parameters of the model according to the collected error terms, such that during the forward pass the model uses , while during the backwards pass the backpropagation updates . After an update step takes place (step 7), and a new set of parameters is found, we repeat the bind and unbind process all over.
This procedure adds overhead compared to the conventional fine-tuning of the model. However, we vectorize all binding and unbinding operations using the Einstein summation notation (einsum) offered by the PyTorch library. This optimization leads to the overhead being on par with other noise-injection or quantization-aware training procedures, such as ones found in popular frameworks . Using the delta update rule to achieve superposition, though, inflicts further overhead, as the construction of the memory matrices S happens in a serial manner. However, we overcome this by adopting a batched version of the delta update rule, which reduces the serialization overhead to an acceptable amount, trading off the effectiveness of the delta rule with training overhead according to the batch size B. For our implementation, we set the batch size of the delta rule update to be the full number of vectors contained in the memory matrix, as we find that we can achieve good performance while keeping the delta rule overhead to a minimum.
Neural network and dataset selection
For our experiments, we utilized publicly available implementations and datasets to ensure reproducibility. The GPT-2-large model was obtained via the Huggingface Transformers library, and all language modeling evaluations, as well as SCR-aware training, were conducted using the WikiText dataset , specifically wikitext-2-raw-v1, also accessed through Huggingface's datasets module. For the DLRM, we employed the official implementation released by Facebook AI . Training and evaluation of the DLRM were performed on the Criteo Kaggle Display Advertising Challenge dataset, which is publicly distributed by Criteo .
Analog hardware-aware training
In addition to the SCR-aware training procedure, which makes the model parameters robust to the TPR-induced interference , the memory matrix S must also be made robust to the variability of analog devices. Prior works have shown both in simulation and in hardware that such robustness can be achieved through three main mechanisms during training: clipping, Gaussian noise injection, and output quantization.
To that end, we extend the SCR-aware training procedure to incorporate these elements. Specifically, after constructing S during the third step of the procedure, we apply clipping to the memory matrix using a threshold defined in terms of standard deviations. Gaussian noise is then injected into each element with a standard deviation propor-tional to its magnitude. After these two steps, the unbinding operation is performed to retrieve the vectors , which are then quantized to emulate the effect of ADC discretization. The rest of the procedure then proceeds as outlined in the respective Methods section.
Adding these analog HA elements during training causes the error term that is added to the parameters P, to include both the TPR interference and hardware-related perturbations such as noise and quantization. As a result, backpropagation converges to parameters that are both robust to the TPR interference and to the analog hardware non-idealities. Importantly, clipping, noise injection, and output quantization are computationally inexpensive steps, and there introduce negligible overhead during training.
In the hardware experiments reported in this work, networks were trained using the hyperparameters listed in Extended Data Table I. For completeness, Extended Data Fig. 5 shows the impact of different clipping and embedding quantization settings during training and evaluation under varying levels of injected Gaussian noise.
Hardware Platform
The hardware platform used in this work is the IBM HERMES Project chip described in Le Gallo et al. . It comprises 64 compute tiles, each with a crossbar array based on PCM devices. In this work, the arrays are used to store the memory matrices S with dimensionality . A photograph of the chip and the experimental setup is shown in Extended Data Fig. 6.
To map a matrix S onto the hardware, we employ the one-device programming scheme described in , resulting in only two physical devices per matrix element and a total of 131,072 devices per memory array. Specifically for this work, we use chips that contain the Projected PCM devices described in . The maximum conductance per-device used in our experiments span from to , depending on the distribution of the SCR, such that the on-chip ADC does not saturate during integration ( ) .
Key vectors with values in are applied to the array using voltage pulses of 0.2V and a duration of 130 ns. The minimum pulse duration is limited by the 8-bit input interface of the hardware, which results in a minimum MVM time of approximately 127 ns. For that reason, in Section V, we include a projection of the performance of hardware that is designed to support bipolar inputs – commonplace in the literature, due to the popularity of bit-slicing . Array outputs are sensed using current-controlled oscillator-based ADCs and converted on-chip to signed 8-bit integers, which are used as the retrieved vector values in the experiments.
The retrieval accuracy using the analog hardware is depicted for one of the evaluated tasks in Extended Data Fig. 7. The hardware has an effective equivalent precision between 3- and 4-bits (i.e., storing the weights in 4-bits, reading them, and performing the SCR readout MVM in full precision). This falls in line with the demonstrated precision of the analog hardware when used to perform MVMs for DNN inference .
For the hardware experiments reported in Fig. 4, the number of tiled SCRs required for each application was 8 for DLRM, 1002 for GPT2-large, and 501 for its compressed version. These experiments were executed by serially utilizing the 64 tiles available on the hardware platform.
REFERENCES
10
N. P. Jouppi, C. Young, N. Patil, D. Patterson, G. Agrawal, R. Bajwa, S. Bates, S. Bhatia, N. Boden, A. Borchers, R. Boyle, P.-l. Cantin, C. Chao, C. Clark, J. Coriell, M. Daley, M. Dau, J. Dean, B. Gelb, T. V. Ghaemmaghami, R. Gottipati, W. Gulland, R. Hagmann, C. R. Ho, D. Hogberg, J. Hu, R. Hundt, D. Hurt, J. Ibarz, A. Jaffey, A. Jaworski, A. Kaplan, H. Khaitan, D. Killebrew, A. Koch, N. Kumar, S. Lacy, J. Laudon, J. Law, D. Le, C. Leary, Z. Liu, K. Lucke, A. Lundin, G. MacKean, A. Maggiore, M. Mahony, K. Miller, R. Nagarajan, R. Narayanaswami, R. Ni, K. Nix, T. Norrie, M. Omernick, N. Penukonda, A. Phelps, J. Ross, M. Ross, A. Salek, E. Samadiani, C. Severn, G. Sizikov, M. Snelham, J. Souter, D. Steinberg, A. Swing, M. Tan, G. Thorson, B. Tian, H. Toma, E. Tuttle, V. Vasudevan, R. Walter, W. Wang, E. Wilcox, and D. H. Yoon, “In-datacenter performance analysis of a tensor processing unit,” in International Symposium on Computer Architecture (ISCA), ISCA '17 (ACM, 2017) pp. 1–12.
V. Sze, Y.-H. Chen, T.-J. Yang, and J. S. Emer, “Efficient Processing of Deep Neural Networks: A Tutorial and Survey,” Proceedings of the IEEE 105, 2295–2329 (2017).
A. Reuther, P. Michaleas, M. Jones, V. Gadepally, S. Samsi, and J. Kepner, “AI and ML Accelerator Survey and Trends,” in High Performance Extreme Computing Conference (HPEC) (IEEE, 2022) pp. 1–10.
C. Silvano, D. Ielmini, F. Ferrandi, L. Fiorin, S. Curzel, L. Benini, F. Conti, A. Garofalo, C. Zambelli, E. Calore, et al., “A survey on deep learning hardware accelerators for heterogeneous hpc platforms,” ACM Computing Surveys 57, 1–39 (2025).
Y. Yang and W. Lu, “Nanoscale resistive switching devices: mechanisms and modeling,” Nanoscale 5, 10076–10092 (2013).
M. Lanza, A. Sebastian, W. D. Lu, M. Le Gallo, M.-F. Chang, D. Akinwande, F. M. Puglisi, H. N. Alshareef, M. Liu, and J. B. Roldan, “Memristive technologies for data storage, computation, encryption, and radio-frequency communication,” Science 376, eabj9979 (2022).
M. Hellenbrand, I. Teck, and J. L. MacManus-Driscoll, “Progress of emerging non-volatile memory technologies in industry,” MRS communications 14, 1099–1112 (2024).
M. Lanza, S. Pazos, F. Aguirre, A. Sebastian, M. Le Gallo, S. M. Alam, S. Ikegawa, J. J. Yang, E. Vianello, M.-F. Chang, G. Molas, I. Naveh, D. Ielmini, M. Liu, and J. B. Roldan, “The growing memristor industry,” Nature 640, 613–622 (2025).
K. Prabhu, R. M. Radway, J. Yu, K. Bartolone, M. Giordano, F. Peddinghaus, Y. Urman, W.-S. Khwa, Y.-D. Chih, M.-F. Chang, et al., “Minotaur: A posit-based 0.42–0.50-TOPS/W edge transformer inference and training accelerator,” IEEE Journal of Solid-State Circuits (2025).
S. Gupta, A. Agrawal, K. Gopalakrishnan, and P. Narayanan, “Deep learning with limited numerical precision,” in International conference on machine learning (ICML) (2015) pp. 1737–1746.
M. J. Rasch, C. Mackin, M. Le Gallo, A. Chen, A. Fasoli, F. Odermatt, N. Li, S. R. Nandakumar, P. Narayanan, H. Tsai, G. W. Burr, A. Sebastian, and V. Narayanan, “Hardware-aware training for large-scale and diverse deep learning inference workloads using in-memory computing-based accelerators,” Nature Communications 14, 5282 (2023).
J. Büchel, I. Chalas, G. Acampa, A. Chen, O. Fagbohungbe, S. Tsai, K. E. Maghraoui, M. L. Gallo, A. Rahimi, and A. Sebastian, “Analog foundation models,” in Advances in Neural Information Processing Systems (NeurIPS) (2025).
P. Smolensky, “Tensor product variable binding and the representation of symbolic structures in connectionist systems,” Artificial intelligence 46, 159–216 (1990).
I. Schlag, K. Irie, and J. Schmidhuber, “Linear transformers are secretly fast weight programmers,” in International conference on machine learning (ICML) (2021) pp. 9355–9366.
P. Kanerva, “Hyperdimensional computing: An introduction to computing in distributed representation with high-dimensional random vectors,” Cognitive Computation 1, 139–159 (2009).
N. Papandreou, H. Pozidis, A. Pantazi, A. Sebastian, M. Breitwisch, C. Lam, and E. Eleftheriou, “Programming algorithms for multilevel phase-change memory,” in International Symposium of Circuits and Systems (ISCAS) (2011) pp. 329–332.
G. Karunaratne, M. Hersche, J. Langeneager, G. Cherubini, M. L. Gallo, U. Egger, K. Brew, S. Choi, I. Ok, C. Silvestre, N. Li, N. Saulnier, V. Chan, I. Ahsan, V. Narayanan, L. Benini, A. Sebastian, and A. Rahimi, “In-memory realization of in-situ few-shot continual learning with a dynamically evolving explicit memory,” in European Solid State Circuits Conference (ESSCIRC) (2022) pp. 105–108.
M. Naumov, D. Mudigere, H.-J. M. Shi, J. Huang, N. Sundaraman, J. Park, X. Wang, U. Gupta, C.-J. Wu, A. G. Azzolini, D. Dzhulgakov, A. Mallevich, I. Cherniavskii, Y. Lu, R. Krishnamoorthi, A. Yu, V. Kondratenko, S. Pereira, X. Chen, W. Chen, V. Rao, B. Jia, L. Xiong, and M. Smelyanskiy, “Deep learning recommendation model for personalization and recommendation systems,” (2019).
A. Radford, J. Wu, R. Child, D. Luan, D. Amodei, and I. Sutskever, “Language models are unsupervised multitask learners,” Technical Report (OpenAI, 2019).
J.-B. Tien, joycenv, and O. Chapelle, “Display Advertising Challenge,” https://kaggle.com/competitions/criteo-display-ad-challenge (2014), kaggle.
H.-J. M. Shi, D. Mudigere, M. Naumov, and J. Yang, “Compositional Embeddings Using Complementary Partitions for Memory-Efficient Recommendation Systems,” in Proceedings of the ACM SIGKDD International Conference on Knowledge Discovery & Data Mining (2020) pp. 165–175.
A. Desai, L. Chou, and A. Shrivastava, “Random Offset Block Embedding (ROBE) for compressed embedding tables in deep learning recommendation systems,” in Proceedings of Machine Learning and Systems, Vol. 4 (2022) pp. 762–778.
S. Merity, C. Xiong, J. Bradbury, and R. Socher, “Pointer sentinel mixture models,” (2016), arXiv:1609.07843 [cs.CL].
A. Singh, M. Le Gallo, A. Vasilopoulos, J. Luquin, P. Narayanan, G. W. Burr, and A. Sebastian, “The design of analogue in-memory computing tiles,” Nature Electronics 8, 1156–1169 (2025).
M. Le Gallo, R. Khaddam-Aljameh, M. Stanisavljevic, A. Vasilopoulos, B. Kersting, M. Dazzi, G. Karunaratne, M. Brändli, A. Singh, S. M. Müller, J. Büchel, X. Timoneda, V. Joshi, M. J. Rasch, U. Egger, A. Garofalo, A. Petropoulos, T. Antonakopoulos, K. Brew, S. Choi, I. Ok, T. Philip, V. Chan, C. Silvestre, I. Ahsan, N. Saulnier, V. Narayanan, P. A. Francese, E. Eleftheriou, and A. Sebastian, “A 64-core mixed-signal in-memory compute chip based on phase-change memory for deep neural network inference,” Nature Electronics (2023).
G. S. Syed, K. Brew, A. Vasilopoulos, V. P. Jonnalagadda, B. Kersting, T. Philip, V. Bragaglia, S. Ambrogio, J. Büchel, J. Giannopoulos, M. L. Gallo, C.-W. Cheng, M. BrightSky, V. Narayanan, N. Saulnier, and A. Sebastian, “In-Memory Compute Chips with Carbon-based Projected Phase-Change Memory Devices,” in International Electron Devices Meeting (IEDM) (2023).
S. Pi, C. Li, H. Jiang, W. Xia, H. Xin, J. J. Yang, and Q. Xia, “Memristor crossbar arrays with 6-nm half-pitch and 2-nm critical dimension,” Nature Nanotechnology 14, 35–39 (2018).
A. Vasilopoulos, J. Büchel, B. Kersting, C. Lammie, K. Brew, S. Choi, T. Philip, N. Saulnier, V. Narayanan, M. Le Gallo, and A. Sebastian, “Exploiting the state dependency of conductance variations in memristive devices for accurate in-memory computing,” IEEE Transactions on Electron Devices 70, 6279–6285 (2023).
W. Wan, R. Kubendran, C. Schaefer, S. B. Eryilmaz, W. Zhang, D. Wu, S. Deiss, P. Raina, H. Qian, B. Gao, et al., “A compute-in-memory chip based on resistive random-access memory,” Nature 608, 504–512 (2022).
S. Ambrogio, P. Narayanan, A. Okazaki, A. Fasoli, C. Mackin, K. Hosokawa, A. Nomura, T. Yasuda, A. Chen, A. Friz, M. Ishii, J. Luquin, Y. Kohda, N. Saulnier, K. Brew, S. Choi, I. Ok, T. Philip, V. Chan, C. Silvestre, I. Ahsan, V. Narayanan, H. Tsai, and G. W. Burr, “An analog-AI chip for energy-efficient speech recognition and transcription,” Nature 620, 768–775 (2023).
W.-S. Khwa, T.-H. Wen, H.-H. Hsu, W.-H. Huang, Y.-C. Chang, T.-C. Chiu, Z.-E. Ke, Y.-H. Chin, H.-J. Wen, W.-T. Hsu, C.-C. Lo, R.-S. Liu, C.-C. Hsieh, K.-T. Tang, M.-S. Ho, A. S. Lele, S.-H. Teng, C.-C. Chou, Y.-D. Chih, T.-Y. J. Chang, and M.-F. Chang, “A mixed-precision memristor and SRAM compute-in-memory AI processor,” Nature 639, 617–623 (2025).
S. Jain, H. Tsai, C.-T. Chen, R. Muralidhar, I. Boybat, M. M. Frank, S. Woźniak, M. Stanisavljevic, P. Adusumilli, P. Narayanan, K. Hosokawa, M. Ishii, A. Kumar, V. Narayanan, and G. W. Burr, “A Heterogeneous and Programmable Compute-In-Memory Accelerator Architecture for Analog-AI Using Dense 2-D Mesh,” IEEE Transactions on Very Large Scale Integration Systems 31, 114–127 (2023).
I. Boybat, T. Boesch, M. Allegra, M. Baldo, J. Bertolini-Agnoletto, G. W. Burr, A. Buschini, A. Cabrini, E. Calvetti, C. Cappetta, F. Conti, E. Ferro, E. F. Scarselli, A. Garofalo, F. Girardi, G. Islamoglu, V. P. Jonnalagadda, G. Karunaratne, C. Lammie, M. Le Gallo, C. Li, R. Massa, A. C. Ornstein, H. Pang, M. Pasotti, B. Rajendran, A. Redaelli, I. Sanli, W. A. Simon, A. Singh, S.-P. Singh, G. Urlini, A. Vasilopoulos, R. Zurla, G. Desoli, and A. Sebastian, “Heterogeneous Embedded Neural Processing Units Utilizing PCM-Based Analog In-Memory Computing,” in International Electron Devices Meeting (IEDM) (IEEE, 2024).
J. Büchel, A. Vasilopoulos, W. A. Simon, I. Boybat, H. Tsai, G. W. Burr, H. Castro, B. Filipiak, M. Le Gallo, A. Rahimi, V. Narayanan, and A. Sebastian, “Efficient scaling of large language models with mixture of experts and 3D analog in-memory computing,” Nature Computational Science 5, 13–26 (2025).
Z. Liu, B. Oguz, C. Zhao, E. Chang, P. Stock, Y. Mehdad, Y. Shi, R. Krishnamoorthi, and V. Chandra, “LLM-QAT: Data-Free Quantization Aware Training for Large Language Models,” in Findings of the Association for Computational Linguistics ACL 2024 (Association for Computational Linguistics, 2024) pp. 467–484.
A. Hedayat and W. D. Wallis, “Hadamard matrices and their applications,” The Annals of Statistics 6 (1978), 10.1214/aos/1176344370.
R. Vershynin, High-Dimensional Probability: An Introduction with Applications in Data Science (Cambridge University Press, 2018).
S. Wolfram, “Statistical mechanics of cellular automata,” Reviews of Modern Physics 55, 601–644 (1983).
M. Le Gallo, C. Lammie, J. Büchel, F. Carta, O. Fagbohungbe, C. Mackin, H. Tsai, V. Narayanan, A. Sebastian, K. El Maghraoui, and M. J. Rasch, “Using the IBM analog in-memory hardware acceleration kit for neural network training and inference,” APL Machine Learning 1, 041102 (2023).
A. Vasilopoulos, E. Boulharts, C. Lammie, J. Büchel, H. Benmeziane, M. Le Gallo, and A. Sebastian, “A framework for analog-digital mixed-precision neural network training and inference,” in International Symposium on Circuits and Systems (ISCAS) (IEEE, 2025).
R. Khaddam-Aljameh, M. Stanisavljevic, J. Fortn Mas, G. Karunaratne, M. Brändli, F. Liu, A. Singh, S. M. Müller, U. Egger, A. Petropoulos, T. Antonakopoulos, K. Brew, S. Choi, I. Ok, F. L. Lie, N. Saulnier, V. Chan, I. Ahsan, V. Narayanan, S. R. Nandakumar, M. Le Gallo, P. A. Francese, A. Sebastian, and E. Eleftheriou, “HERMES-Core—A 1.59-TOPS/mm2 PCM on 14-nm CMOS in-memory compute core using 300-ps/LSB linearized CCO-based ADCs,” IEEE Journal of Solid-State Circuits 57, 1027–1038 (2022).
M. L. Gallo, S. R. Nandakumar, L. Ciric, I. Boybat, R. Khaddam-Aljameh, C. Mackin, and A. Sebastian, “Precision of bit slicing with in-memory computing based on analog phase-change memory crossbars,” Neuromorphic Computing and Engineering 2, 014009 (2022).
C.-X. Xue, T.-Y. Huang, J.-S. Liu, T.-W. Chang, H.-Y. Kao, J.-H. Wang, T.-W. Liu, S.-Y. Wei, S.-P. Huang, W.-C. Wei, Y.-R. Chen, T.-H. Hsu, Y.-K. Chen, Y.-C. Lo, T.-H. Wen, C.-C. Lo, R.-S. Liu, C.-C. Hsieh, K.-T. Tang, and M.-F. Chang, “A 22nm 2Mb ReRAM Compute-in-Memory Macro with 121-28TOPS/W for Multibit MAC Computing for Tiny AI Edge Devices,” in International Solid-State Circuits Conference (ISSCC) (IEEE, 2020).
J.-M. Hung, T.-H. Wen, Y.-H. Huang, S.-P. Huang, F.-C. Chang, C.-I. Su, W.-S. Khwa, C.-C. Lo, R.-S. Liu, C.-C. Hsieh, K.-T. Tang, Y.-D. Chih, T.-Y. J. Chang, and M.-F. Chang, “8-b Precision 8-Mb ReRAM Compute-in-Memory Macro Using Direct-Current-Free Time-Domain Readout Scheme for AI Edge Devices,” IEEE Journal of Solid-State Circuits 58, 303–315 (2023).
J. Büchel, A. Vasilopoulos, B. Kersting, C. Lammie, K. Brew, T. Philip, N. Saulnier, V. Narayanan, M. Le Gallo, and A. Sebastian, “Programming weights to analog in-memory computing cores by direct minimization of the matrix-vector multiplication error,” IEEE Journal on Emerging and Selected Topics in Circuits and Systems 13, 1052–1061 (2023).
ACKNOWLEDGEMENTS
This work was supported by the IBM Research AI Hardware Center. A. Sebastian acknowledges partial funding from the European Research Council (ERC) under the European Union's Horizon Europe research and innovation programme (grant agreement no. 101201020). This work was also partially supported by the European Union's Horizon Europe Research and Innovation Program under Grant Agreement No. 101223271, and by the Swiss State Secretariat for Education, Research and Innovation (SERI) under contract number 25.00443.
AUTHOR CONTRIBUTIONS
The research was initiated by A. Rahimi and A. Sebastian. A. Vasilopoulos, A. Rahimi, and A. Sebastian jointly developed the research plan. Simulations and hardware experiments were carried out by A. Vasilopoulos and P.
Diener. M. Hersche assisted with data analysis. A. Vasilopoulos and A. Sebastian wrote the manuscript with inputs from all the authors.
DATA AVAILABILITY
The neural networks in this work were trained and evaluated using the WikiText dataset (wikitext-2-raw-v1) , which is publicly available at https://huggingface.co/datasets/Salesforce/wikitext, and the Criteo Kaggle Display Advertising Dataset , which is publicly available at https://ailab.criteo.com/ressources/.
CODE AVAILABILITY
The code used to perform the simulations included in this study can be made available by the corresponding authors upon request.
COMPETING INTERESTS
The authors declare no competing interests.
FIGURES
13
a

b
Superposed analog memory array
Sequential application
of key vectors

Additional vectors from superposition
High-resolution readout per activation
C

FIG. 1. From localized binary to distributed superposed analog storage. a, Conventional digital memories store vector elements as binary states in individual cells and retrieve them through sequential row-by-row activation. The number of vectors that can be stored is therefore limited by the number of physical rows in the array. Colored circles denote logic 1, while blank circles denote logic 0. Different colors correspond to different vectors. b, In the proposed architecture, vector elements are stored as distributed analog states across the entire array and retrieved through collective activation of multiple rows. This collective readout increases the effective signal, and the encoding allows multiple vectors to be stored in superposition within the same set of devices, enabling storage capacity beyond the number of physical rows. c, Encoding and retrieval based on tensor-product representations. Each value vector is bound with an associated key vector through an outer product to form a distributed matrix representation . Multiple bindings are then superposed to form the SCR S. Individual vectors are retrieved by multiplying S with the corresponding key vector , producing an approximate reconstruction of the stored value .

Analog Memory Tile
CA-based key generator
FIG. 2. Possible hardware realization and tiled organization of the proposed memory architecture. An individual analog memory tile stores one SCR S in a crossbar, with each memory cell comprising one or more programmable analog devices that encode an element of S. During retrieval, the key vector is converted to row voltages through a bipolar DACs and applied to the array, performing an in-memory matrix-vector multiplication. The resulting column currents are digitized by multi-bit ADCs to produce the retrieved vector segment . Programming of the devices is performed through standard read-write verify circuitry. For vectors of dimensionality , multiple tiles are organized into a tile group and operated in parallel, with each tile storing and retrieving one D-dimensional segment of the vector. The number of tiles per group is , while a collection of vectors requires tile groups, where is the superposition factor. A shared lightweight CA-based key generator produces quasi-orthogonal bipolar keys using Rule 30 and distributes the selected key to the active tiles. Reusing the same keys across tile groups and the tiles within them amortizes key generation over many arrays and avoids explicit storage of the key vectors.
a

b
C

d
FIG. 3. SCR-aware adaptation of DNN vectors. a, Performance of a DLRM on the Criteo Kaggle Display Advertising dataset when embedding tables are stored in superposition using TPRs. Baseline accuracy is preserved when storing N = D vectors (no compression), while increasing N enables compression of the embedding table with only minor degradation in AUC. Performance remains within 0.01 AUC of the baseline and of the state-of-the-art compression method ROBE. b. Perplexity of the GPT2-large on WikiText when the embedding table is stored in superposition. Baseline performance is recovered for N = D (using the delta SCR variant) while increasing N produces a graceful degradation in perplexity, enabling a tunable trade-off between compression and model accuracy. Inset: the perplexity distribution for the baseline model and for N = D remains nearly identical. c, Robustness of DLRM embeddings stored in superposition (N = 1024D) under injected Gaussian noise representing analog hardware non-idealities. Networks trained with hardware-aware noise injection maintain iso-accuracy – less than 1% drop from baseline – even for high noise levels. d, Noise robustness of GPT2-large embeddings stored in superposition for N = D and N = 2D. Language models exhibit greater sensitivity to noise, with modest perplexity degradation at higher noise levels and slightly increased sensitivity under compression. Arrows in the y-axis labels indicate whether higher (↑) or lower (↓) values correspond to better performance.
a

Write to analog memory
Differential PCM device pairs
Low conductance device
Intermediate conductance device
High conductance device
Low conductance device
Mapping to atomic phase configurations
b
FIG. 4. Experimental validation on PCM hardware. a, Physical storage of the superposed composite representation S in PCM devices. Each element of S is encoded using a differential pair of PCM devices, whose conductance difference represents the signed analog value of the corresponding matrix element. The conductance states are manifested as different amorphous-crystalline phase configurations within the PCM material, enabling storage of analog values directly in the memory array. b, Hardware inference results when embedding tables are stored in superposition on the PCM-based AIMC chip. Vectors are retrieved through in-memory matrix-vector multiplication and digitized on chip before being used for inference in software. Measured performance closely follows the hardware-aware simulation results and remains near the software baseline, with only modest degradation corresponding to effective noise levels of approximately 8–10% in the stored representation. Arrows in the y-axis labels indicate whether higher (↑) or lower (↓) values correspond to better performance.
EXTENDED DATA
17
a

b

EXTENDED FIG. 1. SCR properties with increasing superposition. a, Retrieval accuracy of vectors stored in the superposed composite representation S as a function of the number of stored vectors relative to dimensionality (N/D). Random value vectors are drawn from a Gaussian distribution . When orthogonal keys are used, retrieval is exact, and both cosine similarity and normalized L2-error indicate perfect reconstruction. However, orthogonality restricts the number of stored vectors to . When quasi-orthogonal keys drawn from a Rademacher distribution are used, cosine similarity degrades gradually as N increases beyond D, while the L2-error grows because the magnitude of the retrieved vector deviates from the original value. This behaviour reflects the preservation of vector direction despite increasing interference from other stored vectors. The two superposition functions considered – simple addition and the modified delta update rule – exhibit similar behavior for superposition factors larger than one ( ), while small differences appear for low superposition levels, as the delta update rule is not optimized for that regime. b, Distribution of cosine similarity between the retrieved vectors and their corresponding stored vectors for quasi-orthogonal keys. For , retrieved signals remain well separated from random vectors drawn from the same distribution but not stored in the representation. As more vectors are superposed ( ), the distributions gradually overlap with random noise, indicating increasing interference. Nevertheless, useful signal separation remains visible even for substantial superposition factors (for example, and ), illustrating the graceful degradation of retrieval quality. Retrieval accuracy is evaluated using two metrics: the normalized L2-error, , which measures the relative magnitude difference between retrieved and stored vectors, and cosine similarity, , which measures their angular alignment. Points in panel a correspond to averages over a batch of vectors, while panel b shows the distribution of cosine similarity across individual vectors.

EXTENDED FIG. 2. Readout current comparison between single-device reads and SCR reads on the GPT2 embeddings. The collective readout mechanism provides 150× higher median current and a more packed distribution overall compared to the single-device reads. Differential readout is assumed for SCR, as described in Fig. 4. A maximum device conductance of was used during the programming of the arrays on the hardware platform used in this work .

EXTENDED FIG. 3. SCR-aware training procedure. This figure describes pictorially the SCR-aware training procedure described in the Methods section. Steps are numbered according to the text to guide the reader.

EXTENDED FIG. 4. Generalization of SCR across tasks. The compression behaviour of the proposed method generalizes across both DLRM and GPT2-large embedding tables. In contrast, the state-of-the-art DLRM compression method ROBE fails to generalize to GPT2-large embeddings, even without compression. This difference arises because the SCR representation is distribution-agnostic: the memory state is constructed directly from the stored vectors through key binding, without assumptions about their underlying distribution.

GPT2-large@2x

GPT2-large@2x
EXTENDED FIG. 5. Ablation study of hardware-aware training hyperparameters. We observe that the clipping threshold directly affects robustness to analog noise. Stricter clipping (e.g., 2 standard deviations) produces models that remain more stable under the same noise level than models trained with weaker clipping thresholds. By contrast, output quantization down to 8 bits has little impact on the precision of the models, performing comparably to the non-quantized case.
22 EXTENDED FIG. 6. The IBM HERMES Project chip hardware platform25. The experimental platform consists of three main components. A custom baseboard provides power delivery, clock distribution, and discrete electronics required to operate the chip, as well as interfaces to a host PC. Communication with the host is performed through JTAG for FPGA programming and control, and through Ethernet for data transfer. Second, an off-the-shelf Xilinx Trenz TE0808-04 module with a Xilinx Zynq UltraScale+ FPGA controls the baseboard electronics and provides the interface between the host PC and the chip through its serial input/output interface. Finally, the packaged IBM HERMES Project chip is mounted on the baseboard socket and accessed through the FPGA-controlled interface.
a

b

EXTENDED FIG. 7. SCR retrieval MVM accuracy on the GPT2 embeddings at 2× superposition. The analog hardware performs has an effective precision 3- and 4-bit digital equivalent, closer on average to the 4-bit baseline. This demonstrates effective use of the analog states of the devices.
| Hyperparameter | DLRM | GPT2-large@1x | GPT2-large@2x |
| Learning rate | 1.0 | 1e-5 | 1e-5 |
| Batch size | 512 | 32 | 32 |
| Delta rule | 0.5 | 0.5 | 0.5 |
| Gaussian noise (%) | 8 | 10 | 10 |
| S clipping (std) | 3 | 3 | 3 |
| Output quantization (bits) | 8 | 8 | 8 |
EXTENDED DATA TABLE I. Training hyperparameters for all experiments. The fields learning rate and batch size are used in all experiments, while the rest of the fields are only applicable to the appropriate experiments. Specifically, the delta rule only applies when the delta update rule is used, while the Gaussian noise, the clipping, and the output quantization are only used in the hardware-aware training and simulations.
| Hardware parameters | Memory performance | ||||
| Array Size(D × D) | Energy per MAC (fJ) | Periphery Overhead | Read time (ns) | Energy per effective bit read (pJ) | Bandwidth (GB/s) |
| 512×512 | 0.5 | 10 | 10 | 0.704 | 25.6 |
| 5 | 0.704 | 51.2 | |||
| 5 | 10 | 0.384 | 25.6 | ||
| 0.05 | 10 | 5 | 0.384 | 51.2 | |
| 10 | 0.0704 | 25.6 | |||
| 5 | 5 | 0.0704 | 51.2 | ||
| 10 | 0.0384 | 25.6 | |||
| 5 | 0.0384 | 51.2 | |||
| 0.05 | 5 | 5 | 0.0768 | 102.4 | |
| 0.05 | 5 | 5 | 0.1536 | 204.8 | |
| 0.05 | 5 | 5 | 0.3072 | 409.6 | |
EXTENDED DATA TABLE II. Analog memory array-level performance and energy projections. We use the following formulas to calculate the Energy per-bit () and Bandwidth () according to the hardware parameters: and . We assume an effective precision for the retrieval , in line with effective weights storage precision in published AIMC hardware. Baseline parameters, such as array size of , energy per-MAC of 0.5 fJ, periphery overhead and read time are taken from published NVM-based AIMC hardware, while the table also explores various projections to future improved hardware parameters, i.e., larger array size, improved energy per MAC due to more resistive devices, more energy efficient periphery, and faster read time.