Probabilistic Memory for Trustworthy Edge Intelligence


Abstract

Probabilistic computation plays an important role in trustworthy edge intelligence to quantify uncertainty, enhance robustness, reconstruct data and protect privacy, but its adoption is limited by the orders-of-magnitude data throughput gap between Gaussian random number generation (GRNG) and computation, as well as instruction overhead. This paper introduces probabilistic memory (p-MEM), a unified memory primitive that stores distribution parameters (e.g., mean and standard deviation) and samples directly at the native memory bandwidth where deterministic data becomes the zero-variance special case. Using a layout-validated p-MEM simulator, we comprehensively explore device choices, memory specifications, and technology nodes, showing that p-MEM can achieve \(>1000\) GSa/s/mm\(^2\) GRNG throughput (including memory arrays access). Integrated into CPU / GPU systems, p-MEM reduces instruction count by up to \(2.19\times\)/\(4.37\times\), sampling latency by \(562\times\)/\(3.45\times\), and energy by \(295.5\times\)/\(3.53\times\) for Bayesian neural network workloads, providing a scalable hardware substrate for trustworthy probabilistic AI.

1 2

1 Introduction↩︎

As AI systems are increasingly integrated into real-world edge platforms that directly interact with humans, their trustworthiness–including decision robustness [1], uncertainty awareness [2], partial observation reconstruction [1], and privacy protection [3]–has become a critical requirement. In medical domains such as wearable and implanted devices for ventricular arrhythmia detection [4], [5], blood-glucose monitoring [6], and automated insulin delivery [7], unreliable inference can lead to severe consequences. Similarly, in defense applications such as autonomous drone reconnaissance [8], robustness to sensor noise, out-of-distribution detection, reasoning under uncertainty, and protection of sensitive mission data are equally essential.

Figure 1: (a) Motivation for probabilistic memory to support probabilistic computation in trustworthy edge intelligence. (b) State-of-the-art GRNG and MAC throughput across platforms and area efficiency. p-MEM is expected to close the gap required for scalable probabilistic AI.

To address these challenges, probabilistic computation–a foundational class of algorithms that includes Bayesian neural networks (BNNs) for robust inference [9], variational autoencoders (VAEs) and diffusion models for generative reconstruction [10], [11], probabilistic graphical models and Bayesian decision trees for structured reasoning [12], [13], and differential privacy (DP) for data protection [3], [14][16]-has emerged as a central pillar of trustworthy AI (Fig. 1 (a)). These methods explicitly model uncertainty by sampling from learned probability distributions rather than relying on fixed parameters or deterministic operations. However, they require large-scale probabilistic sampling at high sampling intensity–the number of samples required per computation step–which far exceeds traditional uses such as weight initialization. For example, BNNs resample all weights during each inference, and differential privacy injects calibrated noise into every data vector element. This exposes a fundamental hardware bottleneck: existing random number generators (RNGs) are decoupled from the memory arrays that store distribution parameters, incurring significant latency and energy at both circuit and instruction levels. Even state-of-the-art Gaussian RNGs(GRNG) deliver less than 10 GSa/s/mm² [4], [17], [18], which is 3-4 orders of magnitude below state-of-the-art AI compute engines [19], [20] (Fig. 1 (b)). Stochastic compute-in-memory (SCIM) [21] leverages intrinsic device randomness [9], [22], [23] to accelerate probabilistic matrix–vector operations. However, probabilistic models extend well beyond dense linear algebra and often require extensive deterministic data handling (e.g., variational autoencoders, or VAE).

This gap motivates a general-purpose probabilistic memory (p-MEM) that unifies deterministic storage and probabilistic sampling within a single memory abstraction. The main contributions of this work are summarized as follows:

  • Introducing a new hardware primitive–probabilistic memory–that unifies probabilistic and deterministic data handling through a novel memory-entropy decomposition and near-memory entropy integration scheme.

  • Developing a cross-layer probabilistic memory simulator (pMEMSim) to explore the throughput-density-energy trade space of p-MEM across diverse memory specifications, device technologies, and random number generation schemes, guiding scalable probabilistic memory design.

  • Demonstrating up to 4.37\(\times\) instruction count reduction, 546\(\times\) latency reduction and 295\(\times\) energy savings on representative probabilistic workloads, including Bayesian inference, probabilistic embedding search, and differential privacy.

2 Background↩︎

2.1 Probabilistic Computation↩︎

Probabilistic computation encompasses a family of algorithms that model uncertainty by sampling from learned probability distributions during inference or data processing. BNNs [9] draw random samples for weights on every forward pass, resulting in extremely high sampling intensity. VAEs [10] and diffusion models [11] introduce stochasticity through latent-variable sampling or iterative noise injection, producing moderate but frequent sampling events. Probabilistic graphical models (PGMs) [12] and Bayesian decision trees (BDTs) [13] rely on sampling-based inference, where randomness governs node traversal and posterior updates. DP [3], [14] injects calibrated noise into each data element or gradient update, yielding fine-grained, element-wise sampling. Probabilistic Cross-Modal Embeddings (PCME) [24] model semantic uncertainty directly in the representation space by mapping each image or text instance to a Gaussian distribution and computing similarity via Monte Carlo estimation. Across these methods, probabilistic sampling occurs at different granularities—per-weight, per-latent-vector, per-step, per-node, per-element, or per-embedding—and can match or exceed memory-access bandwidth, creating substantial hardware pressure on RNG throughput.

Figure 2: Compiled-instruction analysis on RISC-V CPU and NVIDIA GPU, targeting RV64GC and Ampere architecture respectively. Instruction-level comparison demonstrating potential system-level savings when p-MEM is used as both deterministic and probabilistic memory, enabling sampling through standard memory reads.

2.2 GRNG Hardware↩︎

Probabilistic computation fundamentally depends on high-rate sampling—typically from Gaussian distributions—making GRNG efficiency critical for hardware implementations. Digital GRNGs rely on methods such as inverse transform sampling [25], central limit theorem(CLT)-based accumulation [26], the Box–Muller transform [27], and the Ziggurat algorithm [28]. Even when implemented on FPGAs or ASICs, these designs achieve \(<10~\mathrm{GSa/s/mm^2}\), over \(100\times\) lower than state-of-the-art von Neumann processors and \(1000\times\) lower than CIM-engine MAC throughput (Fig. 1 (b)). When executed on general-purpose CPUs and GPUs, they incur additional overhead from repeated GRNG function calls. For example, without a probabilistic memory capable of sampling at native memory bandwidth and latency, vector products with probabilistic sampling—an arithmetic primitive central to BNNs and other probabilistic algorithms—require \(2\)\(4\times\) more instructions solely due to GRNG calls (Fig. 2).

Analog GRNGs, on the other hand, exploit intrinsic entropy sources—such as thermal noise, supply noise, and quantum tunneling—using devices including ReRAM [22], PCM [23], CMOS circuits [29], and FD-SOI [9]. These entropy-enabled devices are often integrated into SCIM architectures [21], which mandate dense vector-matrix multiplication with embedded sampling. More importantly, trustworthy-AI workloads rarely map to CIM-style dense linear algebra, as they involve heterogeneous algorithms with hybrid probabilistic-and-deterministic data access. For example, BDT follows sequential sampling paths, while VAEs exhibit partial stochasticity—sampling only latent variables while relying on deterministic encoder and decoder networks. This mismatch motivates a general-purpose memory that unifies deterministic and stochastic data access, providing native, flexible, and scalable support for the diverse probabilistic algorithms essential to trustworthy AI.

Figure 3: Overall architecture of the proposed p-MEM. (a) Weight decomposition and hybrid deterministic / probabilistic data storage. (b) Near-memory analog RNG circuits. (c) Near-memory digital RNG circuits.

3 Probabilistic Memory Architecture↩︎

3.1 Design Requirement and Capabilities↩︎

To provide the required functionalities for trustworthy probabilistic computation, an ideal p-MEM should exhibit the following key capabilities: (1) It supports both deterministic data and probabilistic parameters at arbitrary memory addresses using standard memory-write operations. (2) It provides unified reads of deterministic and probabilistic data. In the probabilistic mode, p-MEM directly samples from the stored distribution, enabling single-instruction sampling and a unified load interface for both data types, which substantially reduces instruction count in probabilistic computation (Fig. 2). (3) The added sampling functionality incurs minimal area overhead, preserves memory density, and does not increase the energy or latency of deterministic reads and writes. (4) The architecture is device-agnostic—e.g., compatible with 6T SRAM, memristors, FeFETs, and other emerging devices—and supports diverse randomness sources (analog noise or digital logic), multiple memory configurations (e.g., MUX ratio and array size), and scalability to advanced technology nodes and multiple memory hierarchies. Below, we introduce our p-MEM design to achieve these capabilities.

3.2 p-MEM Architecture↩︎

Probabilistic data following a Gaussian distribution \(w_{ij} \sim \mathcal{N}(\mu, \sigma)\) are commonly decomposed as \(w_{ij} = \mu + \epsilon \cdot \sigma\), where \(\epsilon \sim \mathcal{N}(0,1)\) is generated at runtime, as demonstrated in the compute-in-entropy (CIE) architecture [2]. This separates each stochastic weight into two deterministic parameters, \(\mu\) and \(\sigma\), stored in memory, and a dynamic stochastic component, \(\epsilon\). By storing \((\mu,\sigma)\) and generating \(\epsilon\) near the memory, p-MEM enables high-throughput sampling while avoiding repeated weight transfers.

Building on this, p-MEM introduces a unified memory architecture where \((\mu,\sigma)\) are stored conventionally, and \(\epsilon\) is generated near-memory. Each cell supports two modes: deterministic (returns stored value) and probabilistic (computes \(w = \mu + \epsilon \cdot \sigma\)). This design removes the need for explicit GRNG instructions and supports sampling through the standard memory read path.

Because the architecture is device-agnostic, it applies to both CMOS-based SRAM and emerging devices such as RRAM, FeRAM. It is also compatible with both analog and digital \(\epsilon\)-generation schemes.

Table 1: Comparison of statistical test results for different CLT numbers in digital GRNG versus analog RNG implementation.
Metric Digital GRNG (CLT Number) Analog GRNG
2-9 2 4 6 8 12 16 [2] [9]
KS Test \(p\)-value 0.002 0.21 0.48 0.504 0.694 0.728 0.591 0.757
\(\chi^2\) Test \(p\)-value 0 0 0 0.003 0.141 0.29 0.137 0.707
Equivalent CLT Level Analog \(\approx\) CLT = 12–16

6pt

3.3 Near-Memory Randomness Generation↩︎

To generate the stochastic variable \(\epsilon\) with minimal latency and data movement, p-MEM supports two forms of near-memory RNG: analog RNG and digital RNG.

Analog RNG: In the analog configuration (Fig.3 (b)), every four columns share a common RNG and ADC to balance area efficiency and read throughputwlarger sharing ratios reduce area but also limit parallelism. Based on this trade-off and prior findings[2] showing that 4-bit \(\sigma\) precision provides sufficient uncertainty information, we adopt 4-bit as the minimum granularity for probabilistic units. Higher-precision formats (e.g., 8-bit or 16-bit) can be constructed by grouping multiple 4-bit units. Each cell includes a small multiplexer and a mode-control register to support both deterministic and probabilistic modes.

As shown in Fig. 3 (b), we sample the supply voltage and extract both low- and high-frequency noise components using low-pass and high-pass filters, respectively [2]. The resulting signals are amplified through an operational amplifier, then sampled by a capacitor. The sampled voltage is converted into a pulse via an inverter, which is used to control the charge and discharge behavior of the bitline.

In the probabilistic mode, the cell receives stochastic pulse streams from the shared RNG. These stochastic excitations modulate the charge-discharge dynamics of the cell, and the resulting analog waveform is subsequently digitized by an ADC. In the deterministic mode, the stochastic path is bypassed entirely, and the stored value is accessed directly through a sense amplifier. A compact register stores the sign bit associated with the stochastic output.

Digital RNG: In the digital configuration, each group of four probabilistic cells shares a dedicated digital RNG. This RNG uses a CLT-based scheme that forms pseudo-Gaussian noise by summing uniform random variables generated by configurable 16-bit linear-feedback shift registers (LFSRs). The number of LFSRs per block is tunable to adjust RNG quality. Each block also integrates a local multiplier to compute the \(\sigma \epsilon\) product in the digital domain before contributing to the final sampled output.

Quality Metrics and Comparison: The quality of digital RNGs, based on the CLT, depends on the number of accumulated uniform variables. To determine a suitable CLT depth and ensure fair comparison with analog designs, we evaluate output distributions using two statistical metrics: the Kolmogorov-Smirnov (KS) test [30] and the Chi-square (\(\chi^2\)) test [31], both reported through p-values.

As shown in Table.1, increasing the number of uniform sources in CLT-based digital RNGs improves statistical quality, indicated by higher p-values in KS and Chi-square tests. The two analog RNGs achieve comparable or better results than digital CLT implementations with more than 12 accumulations. Therefore, CLT-12 is selected as the standard digital configuration for fair comparison.

4 Design Space Exploration↩︎

4.1 P-MEM Simulator Overview↩︎

The backbone of our probabilistic memory simulator, pMEMSim, is based on NeuralSim [32], which originally models deterministic CIM architectures. To model p-MEM systems, we retain its memory and peripheral modeling infrastructure while extending it to incorporate integrated RNGs and stochastic behavior, as shown in Fig.4. The framework consists of an interactive interface, configurable parameters file structure, and a simulation engine.

The interface allows users to configure modeling parameters such as memory type, bit precision, \(\mu\)/\(\sigma\) ratio, application workload, supply voltage, clock frequency, and ADC precision. It also supports importing user-defined device and RNG models. All parameters are organized into structured files and passed to the simulation engine.

The simulation engine models the full probabilistic memory stack hierarchically—from devices to logic gates, peripheral blocks, and the system level. SRAM device models are based on Predictive Technology Models (PTM) [33], supporting nodes from 180nm to 22nm. In contrast, RRAM and FeFET models are derived from fabricated data provided in the NeuroSim framework. The technology file defines electrical parameters, the config file specifies \(\mu\) and \(\sigma\) bit precision and system-level settings, and the parameter file contains customizable physical attributes such as capacitance and resistance. RNG specifications follow a fixed input format to support diverse implementations via circuit-level metrics.

From the device models, we construct a logic gate library (INV, NAND, NOR), capturing key parameters like area, capacitance, resistance, and drive strength. Higher-level circuits—such as WL/column decoders, sense amplifiers, ADCs, prechargers, write drivers, and level shifters—are built from these primitives. The p-MEM model supports hardware-level configuration of analog and digital RNG integration. Disabling the \(\sigma\) path yields deterministic behavior; additional implementation details are discussed in later sections.

Figure 4: Framework overview of proposed p-MEM.

At the system level, application-specific configurations generate a workload mapping file that defines operation modes and memory access patterns. The simulator reports three key metrics: area, latency, and energy. Area is modeled with layout-aware constraints and placement rules. Latency is estimated using the Horowitz model [34], considering gate and interconnect delay. Dynamic energy is calculated using E=C\(V^2\), including parasitic capacitance.

4.2 Validation↩︎

Our framework3 builds on NeuroSim by reusing some circuit parameters and structures, but modifies the overall architecture and peripherals to support probabilistic computation.

We performed layout-level validation of key building blocks under a 65nm technology node to evaluate the accuracy of area estimation. As shown in Table. 2, the simulated results for representative modules are compared against extracted layout data. The average relative error across modules is approximately 3.05\(\%\), demonstrating good agreement between our model and actual layout implementations.

For latency and energy validation, we benchmarked the analytical results from our simulator against detailed SPICE-level simulations using Cadence Virtuoso. The average error in latency estimation is 13.87\(\%\), and for energy estimation the average error is 14.48\(\%\) across multiple modules and configurations. The latency of the DFF module is simplified in our framework and is assumed to be equal to the system clock cycle for modeling convenience.

4.3 Performance Evaluation on 65nm CMOS Memory↩︎

Table 2: Comparison of predicted vs. EDA-based results for Area, Latency, and Energy.
Module Area (\(um^{2}\)) Latency (ps) Energy (fJ)
2-4 (lr)5-7 (lr)8-10 EDA Tool Predicted Error EDA Tool Predicted Error EDA Tool Predicted Error
MUX 2.675 2.697 0.8% 42.8 50 16.8% 0.976 1.17 19.8%
DFF 12.76 12.856 0.75% - - -% 4.275 4.217 1.3%
Level Shifter 20.52 19.95 2.7% 40.96 47.44 15.8% 206.5 240.4 14.1 %
Precharger 7.0626 7.012 0.7% 347.4 291.8 16% 99.48 113.7 14.29 %
Sense Amp 34.42 32.5 5.57% 359.9 335 6.9% 18.66 14.37 22.9%

3pt

Evaluation Metrics: For performance evaluation at the subarray level, we define several key metrics. Area per bit is used to quantify the storage efficiency of the memory. Latency refers to the time required for a single read operation, while read dynamic energy quantifies the energy consumed per access. In addition, we define bandwidth per area, expressed in bit/s/mm², as a measure of memory throughput efficiency under different architectural configurations.

Figure 5: Comparison of pSRAM-D, pSRAM-A, and conventional SRAM under different array sizes in terms of area per cell, read latency, and dynamic energy. Each bar indicates the proportional contribution of different module components.

Comparative Evaluation: Fig. 5 presents a comparison of the area per bit among three memory architectures: SRAM, pSRAM-D (digital, CLT-based RNG), and pSRAM-A (analog, noise-based RNG), under a configuration with a CLT size of 12, a 4-bit ADC, and a MUX-sharing ratio of 8. Conventional SRAM exhibits the smallest area per bit, whereas pSRAM-A and pSRAM-D incur 6.1\(\%\)/21.2\(\%\) degradation, respectively, at a 32 kB array size. The digital design shows 1.95× higher latency than the analog version, mainly due to the use of multipliers in the \(\sigma\epsilon\) computation. While the analog design achieves faster stochastic integration, it consumes slightly more energy due to ADC usage in each read. The difference is minimal, with only a 2.2\(\%\) energy overhead compared to the digital design.

Figure 6: Bandwidth-per-area comparison between pSRAM-D and pSRAM-A under different configurations.

GRNG Throughput per Area: Fig. 6 presents the GRNG throughput per area under various configurations for both analog and digital implementations. For the analog design, different ADC precisions are explored, while for the digital counterpart, we sweep across multiple CLT accumulation depths. In addition, several MUX sharing ratios are evaluated to understand their impact on performance. The figure shows results based on a 128\(\times\)​128 array, corresponding to a 2kB memory instance. Across the evaluated configurations, the peak bandwidth per area reaches up to 72.3Gsamples/s/mm², effectively closing the performance gap observed in Fig. 1 and demonstrating the scalability of the proposed probabilistic memory architecture under high-throughput design targets.

Figure 7: Comparison of SRAM, RRAM, and FeRAM in area, latency, and energy across array sizes, with module-wise breakdown.

4.4 Cross-Technology and Memory-Type Evaluation↩︎

Fig. 7 compares three memory cell types—SRAM, RRAM, and FeRAM under the pMEM-Analog architecture across various array sizes, with a 4-bit ADC and a MUX sharing ratio of 8. At a 32 kB array size, FeRAM and RRAM demonstrate significant area efficiency improvements over SRAM, reducing per-bit area by 54\(\%\) and 39.7\(\%\), respectively, due to their higher cell densities and simpler peripheral requirements. In terms of latency and energy, nonvolatile memories exhibit similar trends, with both RRAM and FeRAM incurring approximately 2.3× higher latency compared to SRAM. However, they achieve energy savings of up to 18.87\(\%\), making them attractive options for energy-constrained applications despite the access speed trade-off.

As shown in Fig.8, the bandwidth per area of pSRAM-A, configured with (4-bit ADC, 8 MUX ratio), is evaluated across different array sizes and technology nodes. Since these results also take into account memory array (not only near-memory RNG), smaller SRAM array show better GRNG area efficiency. Results show consistent improvement with scaling, reaching up to 1100GSa/s/mm² at the 22nm node.

Figure 8: Bandwidth per area comparison across different array sizes and technology nodes.

5 P-MEM Benchmarking↩︎

5.1 Algorithm Evaluation↩︎

Bayesian Neural Network: BNNs are distinguished by their ability to provide probabilistic estimates of uncertainty in predictions. Unlike classical neural networks, which optimize for a single best set of parameters, BNNs infer a posterior distribution over weights, thereby capturing multiple plausible solutions to a given task. Formally, the posterior distribution after observing the dataset \(D\) is given by Bayes’ rule: \(p(\mathbf{w}|D) = \frac{p(D|\mathbf{w}) \, p(\mathbf{w})}{p(D)}\), where \(p(D|\mathbf{w})\) denotes the likelihood of the data given the weights, and \(p(\mathbf{w})\) is the prior distribution over the weights.

For BNNs, which are designed to capture predictive uncertainty beyond deterministic neural networks, algorithm-level evaluation focuses on classification accuracy and uncertainty calibration. To assess the latter, we use Expected Calibration Error (ECE), a standard metric that quantifies the discrepancy between a model’s predicted confidence and its actual accuracy. A lower ECE indicates better-calibrated uncertainty estimates.

Differential Privacy: Differential privacy (DP)[3] provides a rigorous framework for protecting individual information in data analysis. A randomized mechanism \(\mathcal{A}: D \to \mathbb{R}^d\) satisfies \((\varepsilon,\delta)\)-DP if, for any two neighboring datasets \(D \sim D'\) differing in a single record and for any set \(S \subseteq \mathbb{R}\), \(\Pr[\mathcal{A}(D) \in S] \leq e^{\varepsilon} \Pr[\mathcal{A}(D') \in S] + \delta\), Here, \(\varepsilon > 0\) bounds the privacy loss, while \(\delta \in [0,1]\) allows a small probability of failure. The Gaussian mechanism [14], [35] achieves \((\varepsilon,\delta)\)-DP by injecting noise sampled from the normal distribution, calibrated to the \(\ell_2\)-sensitivity of the query. For a function \(f : D \to \mathbb{R}^d\), the mechanism is defined as \(\mathcal{A}_G(D; f, \varepsilon, \delta) = f(D) + (Y_1, Y_2, \ldots, Y_d)\), where \(Y_i \sim \mathcal{N}(0,\sigma^2)\) for \(i=1,\ldots,d\). A common calibration is \(\sigma = \frac{\Delta^2_f \sqrt{2 \ln(1.25/\delta)}}{\varepsilon}\), with \(\Delta^2_f\) denoting the \(\ell_2\)-sensitivity of \(f\).

Table 3: Comparison of full precision and quantized (8-bit \(\mu\), 4-bit \(\sigma\)) settings across applications.
Application Dataset Precision Config ECE (%) ↓ ACC (%) ↑
BNN CIFAR-10 Full Precision 3.1 88.93
8-bit \(\mu\), 4-bit \(\sigma\) 3.7 88.91
Precision Config V→T R@1 (%) ↑ V→T R@10 (%) ↑
Deterministic MSR-VTT Full Precision 26.7 72.5
PCME MSR-VTT Full Precision 37.2 73.7
8-bit \(\mu\), 4-bit \(\sigma\) 37.1 73.8

Probabilistic Cross-Modal Embeddings: Probabilistic embedding approaches model semantic uncertainty directly in the representation space. In cross-modal retrieval, where a single image may correspond to multiple textual descriptions (and vice versa), this ambiguity is naturally expressed by representing each sample as a probability distribution rather than a deterministic vector.

PCME [24] exemplifies this approach by mapping each image or text instance to a multivariate Gaussian \(\mathcal{N}(\boldsymbol{\mu}, \mathrm{diag}(\boldsymbol{\sigma}^2))\) in a shared latent space, where \(\boldsymbol{\mu} \in \mathbb{R}^D\) encodes the canonical embedding and \(\boldsymbol{\sigma}^2 \in \mathbb{R}^D\) quantifies sample-specific semantic uncertainty. To compute similarity between two samples, PCME estimates the expected matching probability via reparameterized sampling. Given \(\mathbf{z}_i \sim \mathcal{N}(\boldsymbol{\mu}_i, \mathrm{diag}(\boldsymbol{\sigma}_i^2))\) and \(\mathbf{z}_j \sim \mathcal{N}(\boldsymbol{\mu}_j, \mathrm{diag}(\boldsymbol{\sigma}_j^2))\), the similarity is defined as \(p_{ij} = \mathbb{E}_{\mathbf{z}_i, \mathbf{z}_j}\!\left[\sigma(\alpha - \beta \|\mathbf{z}_i - \mathbf{z}_j\|^{2})\right]\), where \(\sigma(\cdot)\) denotes the sigmoid function, and \(\alpha, \beta\) are learnable temperature parameters. In practice, this expectation is approximated via Monte Carlo sampling with 10-100 samples per pair.

For probabilistic cross-modal embeddings, which model uncertainty in video-text matching, we evaluate both retrieval accuracy and computational efficiency. We use standard recall metrics (R@1) to measure retrieval performance.

Dataset and Network Architecture: To evaluate the BNN algorithm in the context of image classification, we adopt the CIFAR-10 [36] dataset and use MobileNet [37] as the backbone. CIFAR-10 is a widely used benchmark dataset containing 60,000 color images across 10 classes. MobileNet is designed for low-power devices with depthwise separable convolutions that significantly reduce computation and model size, making it well-suited for edge deployment.

To evaluate probabilistic cross-modal embeddings, we use the MSR-VTT dataset [38], a large-scale video-text retrieval benchmark with 10,000 video clips and paired textual descriptions. Following standard practice, we train on the official training split (6,513 videos) and evaluate on the 1kA test set—1,000 curated video-text pairs for consistent benchmarking. We adopt ImageBind-Huge [39] as a frozen backbone to extract 1024-dimensional embeddings for both modalities. Our probabilistic projector is a two-layer MLP (2048 hidden units) that maps embeddings to Gaussian parameters (mean and log-variance), enabling uncertainty-aware similarity via Monte Carlo sampling (10 samples per inference).

Evaluation Results: As shown in Table 3, we evaluate the performance of deterministic and probabilistic models across both BNN and cross-modal retrieval tasks. To align with our hardware configuration, \(\mu\) is quantized to 8 bits and \(\sigma\) to 4 bits. Results indicate that probabilistic models consistently outperform their deterministic counterparts, demonstrating the benefits of uncertainty modeling. Moreover, low-precision quantization introduces minimal performance degradation.

5.2 System Benchmark↩︎

To systematically evaluate the benefits of pMEM, we construct a benchmark framework based on three representative algorithms. Each exhibits a different interaction pattern between deterministic and probabilistic data. In the BNN benchmark, the core computation involves deterministic inputs multiplied by probabilistic weights. In the PCME scenario, the operation consists of element-wise multiplication between two probabilistic vectors. For DP inference, deterministic inputs are combined with additive probabilistic noise.

For each algorithm, we implement the core computation in C and compile (RISCV-GCC) to obtain the baseline instruction count. In this flow, pMEM is used to replace instructions related to random number generation and memory access, effectively offloading the sampling workload into the memory fabric. Energy and latency are further estimated via hardware-level simulation on multiple platforms, including CPU (Intel Xeon W-2265) and GPU (NVIDIA RTX A5000). The p-MEM configurations are tailored to each workload. For BNN and DP, we adopt a 4-4-2kB architecture–comprising four mats, each with four subarrays. PCME uses custom 16-4-32kB pMEM configurations optimized for their respective access patterns. As shown in Table. 4, p-MEM integration leads to significant reductions in instruction count and improvements in both latency and energy per operation. Specifically, on CPU/GPU platform, for BNN, we observe a \(2.19\times\)/\(4.2\times\) reduction in instructions, along with \(562\times\)/\(3.45\times\) speedup and \(295.5\times\)/\(3.53\times\) energy savings. The savings come from p-MEM generated random weight, avoiding the software random sampling and associated computation and data movement. PCME achieves a \(1.67\times\)/\(4.37\times\) gain in instruction count, \(546\times\)/\(2.95\times\) latency reduction, and \(270\times\)/\(2.89\times\) lower energy consumption. DP inference similarly benefits from a \(2.19\times\)/\(4.2\times\) instruction reduction and \(46\times\)/\(2.27\times\) improvements in latency and \(35.6\times\)/\(2.25\times\) improvements in energy.

Table 4: Performance comparison of different hardware configurations across applications. Latency and energy are reported as the average over \(10^5\) vector–vector operations.
Application Platform Instruction Count (M) Latency (us/op) ↓ Energy (uJ/op) ↓
BNN CPU 33.7 40.81 2600.90
CPU + p-MEM 15.37 (\(\times\)2.19) 0.072 (\(\times\)562.8) 8.801 (\(\times\)295.5)
GPU 23.6 0.11 8.99
GPU + p-MEM 5.62 (\(\times\)4.2) 0.034 (\(\times\)3.45) 2.543 (\(\times\)3.53)
PCME CPU 701.7 40.2303 2976.04
CPU + p-MEM 419.8 (\(\times\)1.67) 0.073 (\(\times\)546.6) 10.99 (\(\times\)270.7)
GPU 671.7 0.1123 8.0951
GPU + p-MEM 153.6 (\(\times\)4.37) 0.038(\(\times\)2.95) 2.7986 (\(\times\)2.89)
DP CPU 0.069 41.371 2673.723
CPU + p-MEM 31.48 (\(\times\)2.19) 0.898 (\(\times\)46) 75.073 (\(\times\)35.61)
GPU 48.38 0.112 8.339
GPU + p-MEM 0.011 (\(\times\)4.2) 0.0495(\(\times\)2.27) 3.6987 (\(\times\)2.25)

6 Conclusion↩︎

We propose a general, scalable, and programmable p-MEM architecture that bridges the performance gap between RNG sampling and memory access. To support comprehensive design exploration, we develop a full-stack simulation framework spanning device, circuit, and system levels. The framework enables parametric analysis of key configurations such as ADC precision, MUX ratio, and RNG types. We validate p-MEM across three representative algorithms–BNN, PCME, and DP–on both CPU and GPU platforms. Experimental results show that p-MEM reduces instruction count by \(2.19\times\)/\(4.2\times\), achieves up to \(546.6\times\)/\(3.6\times\) latency improvement, and delivers \(295.5\times\)/\(3.65\times\) energy savings, demonstrating its effectiveness for efficient and trustworthy probabilistic computing.

7 Acknowledgments↩︎

This work was supported by the National Science Foundation under Grant No. 2404874.

References↩︎

[1]
X. Wang, B. Wang, Y. Wu, Z. Ning, S. Guo, and F. R. Yu, “A Survey on Trustworthy Edge Intelligence: From Security and Reliability to Transparency and Sustainability,” IEEE Communications Surveys & Tutorials, vol. 27, no. 3, pp. 1729–1757, Jun. 2025, doi: 10.1109/COMST.2024.3446585.
[2]
L. Pei et al., Towards uncertainty-quantifiable biomedical intelligence: Mixed-signal compute-in-entropy for bayesian neural networks,” in 2024 IEEE/ACM international conference on computer aided design (ICCAD), 2024.
[3]
J. Liu, B. Cheng, P. Zeng, S. Davis, M. Chang, and N. Cao, “Privacy-by-Sensing with Time-domain Differentially-Private Compressed Sensing,” in 2023 Design, Automation & Test in Europe Conference & Exhibition (DATE), Apr. 2023, pp. 1–6, doi: 10.23919/DATE56975.2023.10137205.
[4]
J. Liu et al., “15.3 A 65nm Uncertainty-Quantifiable Ventricular Arrhythmia Detection Engine with \mathbf1.75\boldsymbol\mu\mathbfJ Per Inference,” in 2025 IEEE International Solid-State Circuits Conference (ISSCC), Feb. 2025, vol. 68, pp. 1–3, doi: 10.1109/ISSCC49661.2025.10904610.
[5]
A. Abdelrazik et al., “Wearable Devices for Arrhythmia Detection: Advancements and Clinical Implications,” Sensors (Basel, Switzerland), vol. 25, no. 9, p. 2848, Apr. 2025, doi: 10.3390/s25092848.
[6]
A. A. Metwally et al., “Prediction of metabolic subphenotypes of type 2 diabetes via continuous glucose monitoring and machine learning,” Nature Biomedical Engineering, vol. 9, no. 8, pp. 1222–1239, Aug. 2025, doi: 10.1038/s41551-024-01311-6.
[7]
J. L. Diaz C, P. Colmegna, E. Pryor, and M. D. Breton, “A Performance-Based Adaptation Index for Automated Insulin Delivery Systems,” Journal of Diabetes Science and Technology, p. 19322968251315499, Feb. 2025, doi: 10.1177/19322968251315499.
[8]
H. Yu, K. Meier, M. Argyle, and R. W. Beard, “Cooperative Path Planning for Target Tracking in Urban Environments Using Unmanned Air and Ground Vehicles,” IEEE/ASME Transactions on Mechatronics, vol. 20, no. 2, pp. 541–552, Apr. 2015, doi: 10.1109/TMECH.2014.2301459.
[9]
L. Pei et al., “Towards Uncertainty-aware Robotic Perception via Mixed-signal BNN Engine Leveraging Probabilistic Quantum Tunneling,” in 2025 62nd ACM/IEEE Design Automation Conference (DAC), Jun. 2025, pp. 1–7, doi: 10.1109/DAC63849.2025.11132881.
[10]
D. P. Kingma and M. Welling, “Auto-Encoding Variational Bayes.” arXiv, Dec. 2022, doi: 10.48550/arXiv.1312.6114.
[11]
J. Ho, A. Jain, and P. Abbeel, “Denoising diffusion probabilistic models,” in Proceedings of the 34th International Conference on Neural Information Processing Systems, Dec. 2020, pp. 6840–6851, Accessed: Nov. 16, 2025. [Online].
[12]
D. Koller and N. Friedman, Probabilistic Graphical Models: Principles and Techniques. Cambridge, MA, USA: MIT Press, 2009.
[13]
G. Nuti, L. A. Jiménez Rugama, and A.-I. Cross, “An Explainable Bayesian Decision Tree Algorithm,” Frontiers in Applied Mathematics and Statistics, vol. 7, Mar. 2021, doi: 10.3389/fams.2021.598833.
[14]
C. Dwork and A. Roth, “The Algorithmic Foundations of Differential Privacy,” Found. Trends Theor. Comput. Sci., vol. 9, no. 3–4, pp. 211–407, Aug. 2014, doi: 10.1561/0400000042.
[15]
S. Davis, J. Liu, B. Cheng, M. Chang, and N. Cao, “In-Situ Privacy via Mixed-Signal Perturbation and Hardware-Secure Data Reversibility,” IEEE Transactions on Circuits and Systems I: Regular Papers, vol. 71, no. 6, pp. 2538–2549, Jun. 2024, doi: 10.1109/TCSI.2024.3383337.
[16]
N. Cao, J. Liu, B. Cheng, and M. Chang, “Stochastic Mixed-Signal Circuit Design for In-Sensor Privacy,” in Proceedings of the 41st IEEE/ACM International Conference on Computer-Aided Design, Dec. 2022, pp. 1–9, doi: 10.1145/3508352.3561099.
[17]
Z. M. Enciso et al., “A 65 nm Bayesian Neural Network Accelerator with 360 fJ/Sample In-Word GRNG for AI Uncertainty Estimation.” arXiv, Jan. 2025, doi: 10.48550/arXiv.2501.04577.
[18]
R. Dorrance, D. Dasalukunte, H. Wang, R. Liu, and B. R. Carlton, “An Energy-Efficient Bayesian Neural Network Accelerator With CiM and a Time-Interleaved Hadamard Digital GRNG Using 22-nm FinFET,” IEEE Journal of Solid-State Circuits, vol. 58, no. 10, pp. 2826–2838, Oct. 2023, doi: 10.1109/JSSC.2023.3283186.
[19]
M.-E. Shih et al., “20.1 NVE: A 3nm 23.2TOPS/W 12b-Digital-CIM-Based Neural Engine for High-Resolution Visual-Quality Enhancement on Smart Devices,” in 2024 IEEE International Solid-State Circuits Conference (ISSCC), Feb. 2024, vol. 67, pp. 360–362, doi: 10.1109/ISSCC49657.2024.10454482.
[20]
Y. Qin et al., “23.8 An 88.36TOPS/W Bit-Level-Weight-Compressed Large-Language-Model Accelerator with Cluster-Aligned INT-FP-GEMM and Bi-Dimensional Workflow Reformulation,” in 2025 IEEE International Solid-State Circuits Conference (ISSCC), Feb. 2025, vol. 68, pp. 420–422, doi: 10.1109/ISSCC49661.2025.10904774.
[21]
J. Yang, T. Li, W. Romaszkan, P. Gupta, and S. Pamarti, “A 65-nm Digital Stochastic Compute-in-Memory CNN Processor With 8-bit Precision,” IEEE Journal of Solid-State Circuits, vol. 60, no. 10, pp. 3749–3761, Oct. 2025, doi: 10.1109/JSSC.2025.3554554.
[22]
P.-H. Tseng, M.-H. Lee, Y.-H. Lin, H.-L. Lung, K.-C. Wang, and C.-Y. Lu, ReRAM-Based Pseudo-True Random Number Generator With High Throughput and Unpredictability Characteristics,” IEEE Transactions on Electron Devices, vol. 68, no. 4, pp. 1593–1597, Apr. 2021, doi: 10.1109/TED.2021.3057028.
[23]
E. Piccinini, R. Brunetti, and M. Rudan, “Self-Heating Phase-Change Memory-Array Demonstrator for True Random Number Generation,” IEEE Transactions on Electron Devices, vol. 64, no. 5, pp. 2185–2192, May 2017, doi: 10.1109/TED.2017.2673867.
[24]
S. Chun, S. J. Oh, R. S. De Rezende, Y. Kalantidis, and D. Larlus, “Probabilistic embeddings for cross-modal retrieval,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2021, pp. 8415–8424.
[25]
M. E. Muller, “An Inverse Method for The Generation of Random Normal Deviates on Large-Scale Computers,” Mathematical Tables and Other Aids to Computation, vol. 12, no. 63, pp. 167–174, 1958, doi: 10.2307/2002017.
[26]
J. S. Malik, A. Hemani, J. N. Malik, B. Silmane, and N. D. Gohar, “Revisiting Central Limit Theorem: Accurate Gaussian Random Number Generation in VLSI,” IEEE Transactions on Very Large Scale Integration (VLSI) Systems, vol. 23, no. 5, pp. 842–855, May 2015, doi: 10.1109/TVLSI.2014.2322573.
[27]
G. E. P. Box and M. E. Muller, “A Note on the Generation of Random Normal Deviates,” The Annals of Mathematical Statistics, vol. 29, no. 2, pp. 610–611, Jun. 1958, doi: 10.1214/aoms/1177706645.
[28]
G. Marsaglia and W. W. Tsang, “The Ziggurat Method for Generating Random Variables,” Journal of Statistical Software, vol. 5, pp. 1–7, Oct. 2000, doi: 10.18637/jss.v005.i08.
[29]
B. K. Park et al., “Practical True Random Number Generator Using CMOS Image Sensor Dark Noise,” IEEE Access, vol. 7, pp. 91407–91413, 2019, doi: 10.1109/ACCESS.2019.2926825.
[30]
F. J. Massey Jr., “The Kolmogorov-Smirnov Test for Goodness of Fit,” Journal of the American Statistical Association, vol. 46, no. 253, pp. 68–78, Mar. 1951, doi: 10.1080/01621459.1951.10500769.
[31]
M. Nikulin, L. Gerville-Réache, and X. Q. Tran, On Chi-Squared Goodness-of-Fit Test for Normality,” in Statistical Models and Methods for Reliability and Survival Analysis, John Wiley & Sons, Ltd, 2013, pp. 213–227.
[32]
A. Lu, X. Peng, W. Li, H. Jiang, and S. Yu, NeuroSim Simulator for Compute-in-Memory Hardware Accelerator: Validation and Benchmark,” Frontiers in Artificial Intelligence, vol. 4, Jun. 2021, doi: 10.3389/frai.2021.659060.
[33]
W. Zhao and Y. Cao, “Predictive technology model for nano-CMOS design exploration,” ACM Journal on Emerging Technologies in Computing Systems (JETC), vol. 3, no. 1, pp. 1–es, 2007.
[34]
X. Dong, C. Xu, Y. Xie, and N. P. Jouppi, “NVSim: A circuit-level performance, energy, and area model for emerging nonvolatile memory,” IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, vol. 31, no. 7, pp. 994–1007, 2012, doi: 10.1109/TCAD.2012.2185930.
[35]
S. P. Kasiviswanathan, H. K. Lee, K. Nissim, S. Raskhodnikova, and A. Smith, “What Can We Learn Privately?” arXiv, Feb. 2010, doi: 10.48550/arXiv.0803.0924.
[36]
A. Krizhevsky, “Learning multiple layers of features from tiny images,” University of Toronto, 2009. [Online]. Available: https://www.cs.toronto.edu/~kriz/learning-features-2009-TR.pdf.
[37]
A. G. Howard et al., “MobileNets: Efficient convolutional neural networks for mobile vision applications,” in Proceedings of the IEEE conference on computer vision and pattern recognition, 2017.
[38]
J. Xu, T. Mei, T. Yao, and Y. Rui, “MSR-VTT: A large video description dataset for bridging video and language,” in 2016 IEEE conference on computer vision and pattern recognition (CVPR), 2016, pp. 5288–5296, doi: 10.1109/CVPR.2016.571.
[39]
R. Girdhar et al., “Imagebind: One embedding space to bind them all,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2023, pp. 15180–15190.

  1. This paper has been accepted for publication in the proceedings of the ACM/IEEE Design Automation Conference (DAC), 2026.↩︎

  2. The authors are with the College of Engineering at the University of Notre Dame, Notre Dame, IN, USA.↩︎

  3. https://github.com/CSIRLab/PROMISE↩︎