Manuscript Offprint
arXiv:2610.39688Hardware-Aware Model Inversion in Memristive Spiking Neural Networks
Pablo Sorrentino
University of Groningen
Groningen, The Netherlands
Fernando M. Quintana
Technical University of Munich
Munich, Germany
Erika Covi
Technical University of Munich
Munich, Germany
Fatih Turkmen
University of Groningen
Groningen, The Netherlands
Abstract
Hardware-accelerated spiking neural networks (SNNs) implemented on memristive crossbar arrays offer significant gains in energy efficiency, while device variability and analog noise are sometimes assumed to hinder information extraction. However, whether these hardware effects improve, preserve, or degrade privacy after deployment remains largely unexplored. Therefore, we ask whether model-inversion leakage characterized on an SNN remains representative after the same model is mapped to a non-ideal memristive substrate, and how hardware non-idealities and reliability faults affecting synapses, neuron thresholds, and spike processing reshape that leakage. To study this problem, we introduce Spiking Domain Model Inversion (SDMI), an inversion method that combines Expectation over Transformation (EOT) with surrogate gradients to optimize inputs through stochastic analog behavior and non-differentiable spiking dynamics. We use SDMI consistently across the SNN model, its memristive SNN, and the same memristive SNN under additional hardware perturbations.
Across four datasets, reconstruction leakage does not vary monotonically with model accuracy or hardware variability. At comparable accuracy levels, neuron-threshold perturbations increase reconstruction fidelity, measured by SSIM, by up to 51.8%, whereas spike-level perturbations primarily degrade utility without consistently improving reconstruction. Weight noise, in contrast, reduces leakage under the same inversion procedure. These results show that hardware variability is not inherently privacy-preserving: model-inversion leakage in memristive SNNs depends on the hardware state and cannot be inferred from model accuracy alone.
Keywords
Spiking Neural Networks, Model Inversion, Memristive Computing, ReRAM, Neuromorphic Security, Privacy, Reliability
movement and energy consumption and can achieve orders-of-magnitude improvements in energy efficiency compared to conventional von Neumann architectures [20, 37] when implementing data-intensive applications.
However, the same physical properties that enable high energy efficiency and parallel computation also introduce new security and reliability challenges [33, 49, 58]. Memristive hardware inherently exhibits non-deterministic behavior due to device variability, analog noise, conductance drift, and temporal dynamics [25, 26]. These effects complicate whether functional behavior and privacy exposure characterized at the model level remain representative after deployment onto the analog substrate. Consequently, as these systems move toward real-world deployment, their privacy implications remain insufficiently understood, particularly when hardware behavior may differ from that of the software SNN.
In memristive neuromorphic systems, synaptic weights learned during training are directly mapped to device conductance states [21]. As a result, the trained SNN becomes tightly coupled to its physical implementation. Device variability, temporal drift, peripheral quantization, and other implementation effects can therefore alter the effective computation performed during inference [20]. Prior work has further shown that neuromorphic and in-memory computing systems expose hardware-dependent security surfaces, including side-channel and fault-related behaviors [9, 22, 45, 54]. These observations motivate privacy analysis that treats the hardware state as part of the deployed system rather than assuming that the software SNN fully describes inference behavior.
Despite the increasing adoption of memristive neuromorphic systems, particularly for implementing spiking neural networks (SNNs), analysis of privacy remains largely disconnected from the underlying hardware [31]. Existing privacy evaluations of Spiking Neural Networks (SNNs) predominantly consider idealized settings, without explicitly accounting for stochastic and time-dependent effects introduced by memristive hardware [40]. This raises a fundamental question: Does the privacy exposure measured on a SNN remain representative after the same model is mapped onto a non-ideal memristive substrate? Most existing work on privacy attacks in this context is tailored to conventional neural networks and does not explicitly account for the physical substrate [11, 48, 55].
At the same time, hardware reliability studies show that deviations in synaptic storage, neuron behavior, and signal propagation can substantially alter neural inference [2]. In particular, it is unclear whether different hardware states merely degrade model utility or whether they can also reshape the susceptibility of the deployed model to data-extraction attacks. This creates a blind spot in the privacy assessment of memristive SNNs: evaluating only the software SNN may overlook hardware-dependent changes that emerge after hardware mapping or under reliability faults.
1.1 Motivation and Problem Statement
Memristive neuromorphic systems may operate under a range of hardware conditions arising from intrinsic device non-idealities, aging, environmental disturbances, or reliability failures [23, 25]. In this context, device-level variability in Resistive random-access memory (ReRAM) crossbars becomes a double-edged property. Although such variability can support and enhance certain security primitives [4, 61], it also changes the behavior of a trained model after its parameters are mapped to physical conductance states. Reliability faults can further alter the hardware state at synaptic, neuronal, or spike-processing levels. Importantly, these mechanisms are not assumed to be equally controllable by a physical adversary; they are used to characterize how different reliability regimes affect model-inversion leakage.
Furthermore, device-to-device variability, cycle-to-cycle noise, conductance drift, and finite-precision conversion introduce stochasticity that is absent from the SNN. As a result, gradients and inversion behavior computed from the model need not fully characterize inversion after memristive weight mapping. This motivates a hardware-aware analysis of model inversion under both non-differentiable spiking dynamics and stochastic analog behavior.
Existing privacy attacks on neural networks are largely developed for settings in which model outputs and internal computations are deterministic or sufficiently repeatable [11, 44, 48]. In particular, many optimization-based Model Inversion (MI) methods rely on stable confidence or logit information and differentiable or surrogate-differentiable model behavior [55, 66]. These assumptions become more difficult to apply directly to memristive SNNs, where computation is sparse, event-driven, temporally encoded, and affected by hardware stochasticity [23, 25, 27, 31]. Recent work has also shown that privacy exposure can vary across model architectures even at comparable predictive performance [64].
This leads to two related questions. First, does model inversion performed on the SNN provide an accurate characterization of the privacy exposure of its memristive implementation? Second, once deployed, how do hardware non-idealities and reliability faults reshape the relationship between model utility and inversion leakage? We address these questions by studying Spiking Domain Model Inversion across different execution conditions of memristive SNNs. Our goal is to characterize how the effective hardware state influences model-inversion leakage, rather than to demonstrate a chip-specific physical fault-injection mechanism. Figure 1 illustrates the general model inversion setting considered in this work and the presence of hardware non-idealities and reliability faults affecting the behavior of a memristive SNN.
1.2 Contributions
This work investigates model-inversion leakage in memristive SNNs as a property of both the model and its hardware state. In summary, this paper makes the following contributions:
- We introduce Spiking Domain Model Inversion (SDMI), an inversion method for non-ideal memristive SNNs that combines Expectation over Transformation (EOT) with surrogate gradients to reconstruct class-representative inputs under stochastic analog behavior and non-differentiable spiking dynamics.
- We distinguish native hardware non-idealities, reliability faults, and controlled sensitivity conditions, and characterize how deviations at synaptic, neuronal, and spike-processing levels reshape inversion behavior in memristive SNNs.
- We implement the proposed framework using a ReRAM hardware model based on IBM AIHWKIT modeling abstractions [26] and evaluate it on static, biometric, and event-based benchmarks, including MNIST, Fashion-MNIST, AT&T Faces, and DVS128 Gesture.
- Finally, we show that model utility and reconstruction leakage do not necessarily evolve together. In particular, neuron-level perturbations increase reconstructed-image similarity by up to 51.8% relative to the memristive baseline, whereas spike-level perturbations can produce comparable accuracy degradation without corresponding gains in reconstruction similarity.

Figure 1: Overview of model inversion in memristive SNNs. Hardware non-idealities and reliability faults can alter the effective hardware state and observable model behavior, potentially affecting both predictive utility and model-inversion leakage. Model inversion iteratively optimizes a candidate input based on model responses.
2 Background
In this section, we provide background on spiking neural networks, memristive crossbar inference, hardware non-idealities and reliability faults, and model inversion attacks under non-ideal neuromorphic systems.
2.1 Spiking Neural Networks
SNNs define a paradigm shift from continuous-valued activations to discrete, temporal spike events [10, 34]. Unlike artificial neural networks (ANNs), inference in SNNs is a dynamical process where information is encoded in the timing and rate of spike events. The internal state of a neuron is defined by its membrane potential , which integrates synaptic inputs over an inference window . We formalize this behavior using the Leaky Integrate-and-Fire (LIF) model:
where is the membrane potential of the neuron at time , is the synaptic weight from the presynaptic neuron to the neuron , is the decay constant, and is the firing threshold. This temporal dependency implies that perturbations in spike timing, arising from stochastic encoding, hardware variability, or timing variations, can propagate through the network and alter firing patterns [35, 62]. The discrete output is defined by the Heaviside step function :
Although is discrete, the underlying membrane trajectory remains sensitive to accumulated synaptic input. Perturbations that alter threshold crossings, synaptic integration, or spike propagation can therefore change the temporal output behavior.
The non-differentiability of prevents direct gradient-based optimization through spike generation. As described in Section 7, SDMI addresses this issue using surrogate gradients during the backward pass [10, 34].
2.2 SNNs with Memristive Crossbars
Synaptic weights of SNNs can be realized as the conductance states of memristive devices arranged in a crossbar topology [5, 21, 56, 60]. Figure 2 summarizes representative parameters across the memristive-device, crossbar, and SNN execution stack.
According to Ohm's Law and Kirchhoff's Current Law (KCL), the current at column is obtained by summing the currents contributed by the devices connected to that column:
where is the input voltage applied to row , denotes the effective conductance of the device connecting row to column , and represents attenuation of the input voltage due to IR-drop along the interconnects [3]. To support signed synaptic weights, is represented using a differential pair of conductances:
where denotes the scaling factor between the conductance difference and the corresponding algorithmic weight.
The effective conductance may differ from its nominal programmed value because of device variability, conductance drift, and read-time non-idealities. These effects alter the relationship between the nominal weights and the effective computation performed during

Figure 2: Hierarchical overview of representative system parameters across three levels: memristor array (IR-drop and peripheral circuitry), device (conductance variability, drift, and noise), and SNN model (neural dynamics and temporal encoding).
inference. Consequently, models sharing the same parameters may behave differently after mapping to a non-ideal analog substrate. This distinction between the nominal configuration and effective hardware execution state is central to our work.
The analog crossbar interfaces with surrounding logic through Digital-to-Analog Converters (DACs), Analog-to-Digital Converters (ADCs), and sensing circuitry, introducing finite precision, quantization, saturation, and sensing effects [26]. Together with device-level variability and temporal conductance dynamics, these effects distinguish memristive inference from inference on the software SNN.
2.3 Hardware Non-Idealities and Reliability Faults
Memristive SNNs can deviate from their software behavior due to three broad causes: intrinsic device non-idealities, reliability faults in processing elements, and disturbances affecting spike communication. Similar behavioral effects may also arise under physical fault injection, although their controllability and physical cost depend on the hardware platform and perturbation mechanism.
We distinguish the physical origin of a hardware deviation from the experimental probe used to study its effect. Native hardware non-idealities, such as conductance variability and drift, arise during ordinary analog behavior. Reliability faults represent deviations associated with device, circuit, peripheral, or communication failures. Finally, controlled sensitivity probes deliberately vary execution parameters in simulation to isolate their effect on model behavior and model-inversion leakage. For analysis, we organize these deviations into three functional perturbation levels: synaptic, neuron, and spike.
2.3.1 Synaptic-Level Deviations. Synaptic-level deviations modify the effective strength of connections represented by the memristive crossbar. They include native effects such as conductance drift and variability, as well as hardware deviations such as weight noise or errors in the weight representation associated with the mapping or peripheral logic.
2.3.2 Neuron-Level Deviations. Neuron-level deviations affect the dynamics of the LIF neuron, particularly its firing threshold [43]. Changes in comparator behavior, bias conditions, circuit variability, or other hardware faults can be abstracted as a deviation in the firing condition of the spikes:
A negative threshold deviation increases neuronal excitability, whereas a positive deviation suppresses firing activity. Such changes modify the temporal sparsity and activation structure of the network and are therefore relevant for the connection between the model inversion attack and the effective hardware state.
2.3.3 Spike-Level Deviations. Spike-level deviations affect the presence or timing of discrete events transmitted between processing elements and include spike deletion, insertion, and temporal displacement [7, 14, 63]. These deviations modify the temporal information propagated through the network and can arise from reliability- or communication-level disturbances.
2.4 Model Inversion Attack in Spiking Neural Networks
Model Inversion (MI) attacks seek representative inputs or sensitive features associated with a target model output [11, 55]. Applying optimization-based MI to memristive SNNs introduces two challenges: spike generation is discrete and temporally dependent, while hardware mapping introduces variability that is not represented by the software SNN.
We denote the trained SNN parameters by , the hardware state by , and an optional hardware perturbation or sensitivity setting by . Throughout the paper, denotes the software SNN, the same SNN mapped to the memristive model under hardware state , and the mapped SNN under an additional perturbation .
SDMI combines surrogate gradients with Expectation over Transformation (EOT) to handle discrete spiking dynamics and average over stochastic hardware and spike realizations. Section 7 presents the complete inversion objective and optimization procedure.
3 Related Work
Prior work relevant to this paper spans three mostly separate research threads: (i) privacy attacks on neural networks, primarily developed for conventional NNs without explicitly accounting for the hardware substrate; (ii) fault injection and reliability studies, largely developed for ML accelerators and emerging computing hardware with a focus on integrity, robustness, and functional degradation; and (iii) emerging security analyses of SNNs and in-memory computing hardware, which consider temporal neural dynamics and hardware-dependent attack surfaces. We compare these threads along five dimensions: privacy analysis, hardware perturbation
modeling, temporal spiking dynamics, hardware-level execution, and their joint consideration. Their intersection remains comparatively unexplored, particularly how reconstruction changes when temporally encoded inference is mapped onto non-ideal hardware and exposed to reliability faults.
3.1 Privacy Attacks on Neural Networks
Privacy attacks on machine learning models have been extensively studied in conventional neural networks, with Model Inversion (MI) providing a mechanism for reconstructing sensitive information from trained models. Early work demonstrated that input features could be recovered by exploiting model outputs such as confidence scores and class probabilities [11]. Subsequent approaches improved the fidelity of reconstruction through gradient-based optimization and more expressive priors, enabling attacks in both white-box and black-box settings [52, 55, 66]. More recent work has advanced inversion capabilities using generative models and latent-space reconstruction, achieving higher reconstruction fidelity and improved scalability [47, 51]. Inversion-based attacks have also expanded beyond full input reconstruction to settings including attribute inference and leakage through model updates or unlearning mechanisms [18].
A related line of work studies membership inference attacks, which determine whether a sample was included in the training dataset [44, 48]. Unlike model inversion, these attacks focus on membership signals rather than reconstructing the underlying input [29]. Despite extensive studies, privacy attacks on neural networks largely omit the hardware substrate. In memristive SNNs, however, hardware variability and temporal spiking dynamics can alter the model behavior after hardware mapping, motivating an analysis of whether model-level privacy characterization remains representative after hardware mapping.
3.2 Fault Injection and Reliability in Hardware
Prior work on neural networks has shown that faults affecting model parameters or intermediate computations can compromise model integrity. For example, bit-flip attacks on weights can significantly alter model behavior with small numbers of discrete modifications [8, 16]. Fault-injection studies on neural accelerators have similarly investigated timing, voltage, and memory perturbations as adversarial mechanisms and as tools for evaluating robustness under non-ideal hardware behavior [17, 53].
More recent work has explored fault behavior and reliability in compute-in-memory (CIM) and memristive architectures, where device-level non-idealities, mixed-signal operation, and peripheral circuitry introduce additional sources of hardware deviation [22, 45, 54]. Studies have also analyzed fault resilience in neuromorphic and memristive systems, including device faults in spiking neural networks trained with biologically inspired rules such as spike-timing-dependent plasticity [24], as well as fault behavior in memristor-based logic-in-memory implementations and spiking neural networks [14, 36, 50].
This body of work establishes that deviations at synaptic, neuron, peripheral, and communication levels can materially change neural behavior. From a security perspective, fault injection provides an adversarial mechanism for intentionally inducing a subset of such deviations, thereby connecting reliability analysis with attacker manipulation without implying equivalent physical controllability across fault classes. However, these studies predominantly evaluate functional correctness, robustness, or integrity rather than whether different hardware states reshape susceptibility to information-extraction attacks. We use this reliability and fault literature as the basis for our privacy characterization.
3.3 Security of SNNs and Neuromorphic Systems
Security research on SNNs neuromorphic platforms has gained attention only recently, spanning hardware-level attacks, software-level threats, and emerging privacy concerns [49]. Prior studies have shown that spiking neural networks are vulnerable to adversarial examples adapted to spike-based encoding schemes, as well as to backdoor attacks embedded in temporal spike patterns [1, 35, 62]. These works demonstrate that SNNs are not inherently robust to adversarial manipulation despite their event-driven nature.
A separate line of work has begun to explore privacy risks in neuromorphic systems. Recent studies investigate whether neuromorphic architectures provide inherent privacy benefits and evaluate model inversion attacks in spiking settings [38, 40]. Prior SNN inversion methods address discrete spiking inputs through surrogate-gradient or distribution-based optimization, while recent black-box approaches study inversion through surrogate modeling. Neither considers whether memristive mapping and hardware-state variability reshape inversion leakage for the same trained SNN.
In parallel, hardware-oriented studies have analyzed side-channel leakage and fault-related vulnerabilities in neuromorphic and in-memory computing systems [15, 41, 54, 57]. These works show that device-level behavior and hardware dynamics can create observable hardware-dependent security effects, but do not systematically connect non-ideal hardware behavior to information-extraction attacks such as model inversion.
A related line of work studies privacy- and security-aware design in memristive and compute-in-memory hardware. Prior works examine adversarial robustness, device-variation tolerance, and secure CIM design [2, 25, 58], while others explore hardware-assisted privacy-preserving learning through memristive implementations of differential privacy [12, 13]. Protection mechanisms specific to neuromorphic systems, such as watermarking for SNNs, have also been proposed [39]. These approaches demonstrate that hardware characteristics can influence security and privacy properties, but they do not quantify how memristive non-idealities and hardware perturbations at the synaptic, neuron, and spike levels affect model-inversion leakage in SNNs.
As summarized in Table 1, most existing works consider information extraction, hardware perturbations, or temporal neuromorphic security separately, without jointly considering their intersection. Our work connects these dimensions by studying the reconstruction across software and memristive SNNs and under different hardware perturbations.
4 Threat Model
We assume that the adversary's goal is to extract information from a trained target SNN. The privacy attack considered is SDMI (Section 7), which reconstructs inputs representative of a target class by optimizing a candidate input toward a target model output [40]. Throughout the paper, reconstruction leakage refers to class-dependent information recoverable through model inversion; it does not imply exact recovery of an individual training record. We do not consider model accuracy degradation or compromise of model integrity as the adversary's objective [59].
4.1 Adversary Knowledge and Observability
We consider a white-box adversary with access to the trained SNN, including its architecture and trained parameters, and knowledge of the input encoding procedure. We intentionally adopt this setting to isolate hardware-dependent privacy effects from uncertainty introduced by SNN model extraction or surrogate mismatch. However, knowledge of the trained model does not imply direct physical knowledge of the effective analog hardware state. After mapping, inference depends on a hardware state that captures the conductance configuration and stochastic hardware effects represented in our evaluation. The adversary does not obtain direct readout of effective conductances, instantaneous device variability, internal membrane potentials , individual device states, or gradients from the deployed hardware.
For each evaluated hardware state, the evaluator instantiated the corresponding differentiable model to measure inversion susceptibility. This provides a comparative privacy characterization and does not assume that a deployed attacker can infer the instantaneous hardware state or reproduce the evaluated perturbation. SDMI optimizes the time-averaged output logits, while EOT averages over stochastic hardware and spike samples. The hardware state is therefore part of the target being characterized rather than an attacker-controlled input to SDMI.
Importantly, direct observation of the hardware state, on-device gradients, or precise fault control are not required to perform model inversion given knowledge of the trained SNN. Such capabilities could nevertheless strengthen an attacker by reducing the mismatch between the trained model and its physical realization, or by steering the hardware toward states with greater inversion leakage; we do not assume these capabilities. Our question is therefore whether the privacy characterization obtained from the trained model remains representative after mapping to a non-ideal memristive substrate.
4.2 Hardware States and Faults
The adversary controls the inversion procedure, not the occurrence of every evaluated hardware perturbation. We consider hardware deviations at synaptic, neuronal, and spike processing levels. As described in Section 2.3, these conditions include native hardware non-idealities, reliability faults, and controlled sensitivity probes; they are not assumed to be equally controllable by an adversary.
Here, reliability refers to deviations of the deployed memristive SNN from its intended hardware behavior due to device, circuit, peripheral, or communication effects. Native hardware non-idealities require no attacker intervention, while reliability faults may result
Table 1: Comparison with prior work on privacy attacks, hardware perturbations, and neuromorphic security.
| Prior Work | Target System | Privacy Analysis | Reliability | Temporal SNN | Hardware | Privacy and HW |
|---|---|---|---|---|---|---|
| ANN MI/MIA [11, 48] | ANN | Yes | No | No | No | No |
| Non-ideality-aware ML [23, 25] | ANN | No | Yes | No | Yes | No |
| DNN fault injection [16, 17] | ANN/DNN | No | Yes | No | Yes | No |
| FIA/SCA on CIM [45, 54] | ANN/CIM | No | Yes | No | Yes | No |
| SNN security [1, 62] | SNN | No | No | Yes | No | No |
| SNN privacy [31, 40] | SNN | Yes | No | Yes | No | No |
| Neuromorphic leakage [15, 41] | SNN/IMC | No | Yes | Yes | Yes | No |
| This Work | Memr. SNN | Yes | Yes | Yes | Yes | Yes |
from hardware failures and, depending on the implementation, may also arise from external disturbances. From a security perspective, fault injection provides a possible adversarial path to induce a subset of similar behavioral effects. Controlled sensitivity probes vary selected hardware parameters in simulation to isolate their influence on inversion susceptibility. Control in simulation does not imply that a physical adversary can reproduce the same location, magnitude, or repeatability on a fabricated device.
Under these assumptions, we do not claim a chip-specific physical fault-injection exploit. Instead, we characterize whether the model-inversion exposure of a trained model changes after memristive deployment and under different hardware states, including states associated with non-idealities, reliability failures, and hardware faults.
5 System Architecture
We describe the baseline SNN and its mapping to a memristive crossbar architecture. Together, these components define the software, memristive, and reliability fault settings evaluated in this work.
5.1 Network Topology
We evaluate compact feedforward convolutional spiking neural networks with Leaky Integrate-and-Fire (LIF) neurons. For the MNIST configuration used in the main analysis, the network contains two convolutional layers with 16 and 32 channels, respectively, followed by average pooling and a final linear readout. Dataset-specific architectural parameters are summarized in Appendix A. Inference is performed over a dataset-specific temporal window; the MNIST configuration uses . For static inputs, pixel intensities are converted into spike trains through Poisson rate encoding [10, 34]. Native event-based datasets are processed directly through their temporal event representations.
We use the same trained parameters throughout the comparison so that changes in reconstruction behavior can be attributed to hardware mapping and perturbations rather than to differences in training. No explicit privacy defenses are introduced. The selected topology is consistent with edge-oriented neuromorphic inference and crossbar-based implementations; our quantitative results are therefore specific to the evaluated architecture and hardware configuration.
5.2 Memristive Mapping
Synaptic parameters are represented and evaluated through the ReRAM model based on IBM AIHWKIT [26]. Signed synaptic weights are represented using differential conductance pairs , with conductance values restricted to S. The evaluated ReRAM model is parameterized by device-to-device variability with , cycle-to-cycle noise with magnitude 0.05, and time-dependent conductance drift. Drift follows the power-law model
where denotes the modeled time since programming, is the reference time, and is the drift coefficient. We use . The crossbar interface additionally uses 8-bit ADC/DAC precision. Table 2 summarizes the evaluated network and hardware configuration.
These parameters define a non-ideal memristive hardware model rather than a transistor-, layout-, or chip-specific reproduction of a fabricated accelerator.
5.3 Evaluation Settings
To separate software-level model-inversion behavior from hardware-dependent effects, we evaluate three settings. Software evaluates the trained model without memristive mapping or analog hardware non-idealities, while preserving the SNN dynamics and input encoding. Memristive maps the same trained parameters to the ReRAM model, including its native hardware non-idealities. Memristive and Reliability Fault additionally evaluates the mapped model under a reliability condition or controlled sensitivity-analysis perturbation .
Using the notation introduced in Section 2.4, these conditions correspond to , , and , respectively. This comparison separates the effects of memristive mapping from those introduced by additional hardware deviations.
6 Reliability Characterization and Sensitivity Analysis
Before evaluating the reconstruction leakage, we characterize how hardware non-idealities and reliability faults affect the functional behavior of the target memristive SNN. Following Section 2.3, we consider deviations at synaptic, neuron-threshold, and spike levels, spanning native hardware non-idealities and reliability faults. Figure 3 summarizes these abstraction levels, while the complete
Table 2: Memristive SNN architecture and evaluated hardware configuration.
| Component | Configuration |
|---|---|
| Network | Compact feedforward CSNN with convolutional layers and a linear readout |
| Neuron Model | Leaky Integrate-and-Fire (LIF), time-stepped inference with for MNIST |
| Weight Mapping Device | Differential ReRAM conductance pairs, 1–1000 SAnalog resistive memory with , C2C noise = 0.05, and drift |
| Interface | 8-bit ADC/DAC |
| Input Encoding | Poisson rate encoding for static inputs |
parameter sweeps are reported in Appendix Fig. 8. Their magnitudes are varied through controlled sweeps to characterize regimes from mild to substantial changes in predictive performance.
6.1 Synaptic-Level Deviations and Weight Sensitivity
We first consider conductance drift, bit errors, and weight noise. Conductance drift represents a native time-dependent non-ideality of the memristive substrate, whereas bit errors and weight noise model deviations in the effective weight representation.
For conductance drift, we vary the drift coefficient controlling the temporal evolution of the programmed conductance. In the evaluated range, the SNN remains relatively robust to low drift levels (), with only limited degradation in classification accuracy, as shown in Appendix Fig. 8. This behavior is consistent with the tolerance to moderate analog deviations reported for neural networks mapped to non-ideal hardware [23, 25].
We additionally evaluate discrete bit errors in the weight representation associated with the mapping or peripheral logic. A clear sensitivity transition emerges with increasing bit significance (Appendix Fig. 8): errors affecting the most significant bits (MSBs) produce substantially larger accuracy degradation than errors affecting the least significant bits (LSBs), consistent with the larger resulting change in the represented synaptic value [17]. Weight noise provides a complementary stochastic perturbation of the effective synaptic values. Their privacy implications are evaluated separately in Section 7.
6.2 Neuron-Threshold Sensitivity
We next evaluate deviations affecting the LIF firing threshold . Threshold deviations are particularly relevant to our privacy analysis because they modify spike activity without directly changing the trained weights. Threshold behavior can be influenced by circuit variability, bias conditions, and changes in the implementation of neurons. We characterize these effects through controlled threshold offsets and stochastic threshold noise.
The sensitivity analysis in Appendix Fig. 8 reveals a nonlinear relationship between the effective firing threshold and classification accuracy. Moderate reductions in do not immediately eliminate predictive functionality in our experiments. Lower thresholds increase neuronal excitability and can lead to higher firing rates and reduced spike sparsity, consistent with prior studies [14, 32]. Larger

Figure 3: Hardware non-idealities and reliability faults evaluated at synaptic, neuron, and spike levels. Controlled sensitivity sweeps do not imply equivalent physical controllability by an adversary.
Table 3: Hardware non-idealities and reliability faults considered in the sensitivity analysis.
| Level | Type | Effect |
|---|---|---|
| Synaptic | Drift | Gradual weight change |
| Synaptic | Bit flip | Discrete weight error |
| Synaptic | Weight noise | Induced error in weights |
| Neuron | Threshold offset | Static threshold shift |
| Neuron | Threshold noise | Stochastic threshold shift |
| Spike | Deletion | Missing spike events |
| Spike | Insertion | Spurious spike events |
| Spike | Timing shift | Spike time displacement |
deviations eventually produce substantial degradation as the firing dynamics move away from those for which the model was trained.
6.3 Spike Timing and Transmission Sensitivity
Finally, we consider spike deletion, insertion, and temporal displacement as behavioral models of missing, spurious, or mistimed events in the spike processing path.
Spike deletion is modeled using a Bernoulli probability . In the evaluated MNIST configuration, classification accuracy remains above 85% when 10% of spike events are randomly removed. The network exhibits stronger functional sensitivity as the temporal displacement (number of discrete SNN time steps by which spike events are shifted) increases. These trends are shown in Appendix Fig. 8. Unlike random deletion, temporal shifts modify the time at which events contribute to membrane integration and can therefore alter downstream temporal dynamics.
Importantly, functional sensitivity does not imply increased inversion susceptibility. Spike-level perturbations may substantially degrade predictive utility while producing little or no improvement in reconstruction similarity. We therefore evaluate utility degradation and reconstruction leakage as separate quantities in Section 7.
7 Spiking Domain Model Inversion (SDMI)
SDMI extends optimization-based model inversion to temporally encoded SNNs under stochastic memristive execution. We use SDMI as a fixed privacy characterization probe across the software SNN, the memristive SNN, and additional hardware perturbations. Importantly, hardware access is not required to perform inversion on the model; our goal is to determine whether that privacy characterization remains representative after memristive mapping.
7.1 From Static to Temporal Inversion
Model Inversion (MI) attacks aim to recover representative inputs or sensitive features associated with a target output of a trained model [55]. In optimization-based MI, an input is iteratively updated so that the model increasingly associates it with a target class .
Applying this approach to SNNs introduces two additional challenges. Inference unfolds over a temporal window , with responses determined by temporally evolving spike activity, and spike generation is non-differentiable. For static inputs, the candidate input is converted into a spike train through Poisson encoding.
SDMI uses surrogate-gradient estimation through the LIF dynamics [10, 34], together with a straight-through approximation that maps gradients from the sampled spike representation back to the continuous candidate input.
Using the notation introduced earlier, denotes the trained SNN parameters, the hardware state, and the evaluated reliability fault or sensitivity setting. For a target class , SDMI optimizes
where denotes the spike representation generated from the candidate input. encourages spatial coherence in reconstructed static inputs, while regularizes spike activity during optimization.
The same objective is applied to the three execution conditions defined in Section 5.3: , , and . Keeping the inversion procedure fixed allows changes in reconstruction behavior to be attributed to the execution condition rather than to changes in the attack formulation.
7.2 Expectation over Transformation
In addition to stochasticity from spike encoding, memristive inference introduces stochasticity from hardware effects. Optimizing against a single sampled hardware state can therefore produce gradients that depend strongly on that hardware state. SDMI uses Expectation over Transformation (EOT) to reduce this dependence [55].
At each optimization step, the gradient of the expected inversion loss with respect to the candidate input is estimated using Monte Carlo samples:
Here, denotes a sampled hardware state under the evaluated condition , while denotes the corresponding stochastic spike representation. The condition remains fixed across the EOT samples; when defines a stochastic perturbation, its random draw is included in .
Together with surrogate gradients and the straight-through approximation, EOT enables optimization through discrete spiking dynamics while averaging over stochastic spike and hardware samples. Moreover, it reduces dependence on any single sampled execution state rather than assuming knowledge of the instantaneous physical realization. The quantitative effect of EOT on reconstruction similarity, stability, and computational cost is evaluated in Section 8.6.
7.3 Reconstruction Metrics
The primary output of SDMI is a reconstructed input representative of a target class. We quantify reconstruction fidelity using Structural Similarity Index (SSIM) and Peak Signal-to-Noise Ratio (PSNR). For each target class, the reconstruction is compared with the nearest same-class test sample, selected by minimum MSE, as detailed in Section 8. These metrics characterize class-representative reconstruction fidelity rather than exact recovery of an individual training record.
The overall procedure is illustrated in Fig. 4. SDMI generates the candidate spike representation, evaluates the selected hardware condition, estimates the expected inversion loss through EOT, and updates the continuous candidate input using surrogate gradients and a straight-through approximation. The same procedure is applied across all three evaluation conditions.
8 Evaluation
This section evaluates how the execution conditions defined in Section 5.3 affect model utility and model-inversion leakage. We first compare the SNN and memristive SNNs to isolate the effect of hardware mapping, and then analyze how reliability faults reshape reconstruction behavior and its relationship with predictive utility. Experiments cover MNIST, Fashion-MNIST, AT&T Faces, and the event-based DVS128 Gesture dataset.
8.1 Experimental Setup and Metrics
All networks are trained using surrogate-gradient (SG) learning. The resulting learned parameters are then evaluated across the execution conditions defined in Section 5.3, using the same parameter set for the software and hardware-aware comparisons. Memristive execution uses the ReRAM configuration described in Section 5.2.
Unless otherwise stated, SNN architectures, LIF configurations, and temporal windows are dataset-specific and are summarized in Appendix A (Tables 8 and 9). Static inputs are converted to spike trains using Poisson rate encoding, whereas DVS128 Gesture is processed using its native event representation [10]. Inversion hyperparameters are kept fixed across execution conditions so that reconstruction differences are not introduced by changes in the SDMI optimization procedure. For reliability characterization, perturbation magnitudes are swept from mild deviations to regimes

Figure 4: Overview of SDMI. A candidate input is converted to its spiking representation and evaluated by the selected SNN model. EOT averages over stochastic spike and hardware samples, while surrogate gradients and the straight-through estimator propagate the inversion objective through the non-differentiable spiking dynamics. The same optimization procedure is applied to the software SNN, the corresponding memristive SNN, and the memristive SNN under additional hardware perturbations.
producing substantial functional degradation. We then select representative operating points to compare perturbation classes at similar utility levels where possible.
We report classification accuracy as the primary utility metric. Reconstruction fidelity is evaluated using Structural Similarity Index (SSIM) and Peak Signal-to-Noise Ratio (PSNR), where applicable. For each target class, SSIM and PSNR are computed against the nearest same-class test sample selected by MSE. These metrics therefore characterize class-representative reconstruction similarity rather than exact recovery of a training record. PSNR provides a complementary pixel-level distortion measure. Target confidence and inversion convergence are treated as auxiliary indicators and are analyzed separately from reconstruction fidelity. For semantically sensitive classes, class-representative reconstruction can nevertheless expose sensitive visual characteristics even without exact recovery of an individual training sample.
For reconstruction experiments, we report the mean and sample standard deviation across the evaluated target classes. Dataset, training, and hardware parameters are summarized in Tables 8 and 9.
8.2 SNN and Memristive Baselines
A central question is whether reconstruction fidelity measured on the software SNN remains representative when the same learned parameters are mapped to non-ideal memristive hardware. We therefore apply the same SDMI configuration to and while keeping the learned weights and neuron parameters, target class, initialization procedure, inversion budget, and regularization fixed.
The two execution conditions exhibit nearly identical predictive utility, with accuracies of 96.31% and 95.9% for digital and memristive execution, respectively. For a representative target digit, SDMI also produces similar reconstruction fidelity: SSIM 0.368 and PSNR 12.38 dB for the SNN, compared with SSIM 0.360 and PSNR 12.30 dB under the memristive neural network.
These results indicate that memristive mapping alone does not account for the larger leakage changes observed under the hardware conditions evaluated below. The following analysis therefore
uses memristive SNN as the reference when characterizing how additional hardware deviations affect the reconstruction fidelity.
8.3 Functional Sensitivity to Reliability Faults
The reliability characterization in Section 6 identifies heterogeneous functional responses across synaptic, neuron-threshold, and spike-level deviations. Conductance drift produces gradual changes in effective synaptic efficacy, while discrete bit errors exhibit stronger degradation at higher bit significance [17]. Neuron-threshold and spike-level perturbations likewise produce nonlinear changes in classification performance.
The complete sensitivity sweeps are reported in Appendix Fig. 8. We use these sweeps to select representative conditions spanning mild to substantial utility degradation, including conditions with comparable post-perturbation accuracy where possible. These operating regimes provide the basis for the privacy-utility comparisons below; functional degradation alone is not interpreted as evidence of increased or decreased data leakage.
8.4 Reconstruction Leakage Across Hardware States
We next evaluate how reliability affects SDMI reconstruction relative to the memristive baseline. As established in Section 8.2, the SNN and its memristive counterpart exhibit comparable baseline utility and reconstruction behavior.
Figure 5 provides representative reconstructions, while Fig. 6 summarizes reconstruction similarity across datasets and hardware conditions.
Under the memristive baseline, SDMI produces structured but imperfect reconstructions. For example, Fashion-MNIST yields an average SSIM of approximately 0.39 under the reported configuration. These absolute values should be interpreted as reconstruction similarity rather than exact training record recovery.
As summarized in Table 4, different hardware perturbations affect reconstruction differently. For MNIST, the memristive baseline yields SSIM 0.328. Conductance drift increases SSIM to 0.351, while the selected bit-error condition increases it to 0.406. In contrast, weight noise reduces SSIM to 0.211.

Figure 5: Representative SDMI reconstructions for target class 0 under the memristive baseline and selected hardware perturbations. Synaptic and neuron-threshold perturbations produce distinct changes in reconstruction structure relative to the memristive baseline.

Figure 6: Dataset-level comparison of SDMI reconstruction similarity (SSIM) across the evaluated memristive settings. For each dataset, we report the memristive baseline and representative minimum and maximum SSIM values across the evaluated perturbations.
The strongest increases occur for the evaluated neuron-threshold conditions: threshold shift increases SSIM from 0.328 to 0.498, while threshold noise increases it to 0.441. By contrast, spike deletion, insertion, and temporal displacement remain close to the memristive SSIM baseline despite substantial changes in classification accuracy. Functional sensitivity and reconstruction sensitivity are therefore not equivalent.
8.5 Reconstruction–Utility Relationship
We analyze classification accuracy and reconstruction similarity jointly to determine whether functional degradation provides a reliable indication of model-inversion susceptibility. Our results show that it does not: hardware perturbations with comparable post-perturbation accuracy can produce substantially different reconstruction outcomes.
The clearest example is the comparison between neuron-threshold shift and spike deletion as shown in Table 4. Both reduce classification accuracy to approximately 70.2%. However, threshold shift
Table 4: Impact of reliability on utility and SDMI reconstruction similarity. Accuracy changes (ΔAcc.) are reported in percentage points (pp), and ΔSSIM denotes the relative percentage change with respect to the memristive baseline.
| Level | Condition | Acc. (%) | ΔAcc. (pp) | SSIM | ΔSSIM (%) |
|---|---|---|---|---|---|
| System | Memristive | 95.9 | 0.0 | 0.328 ± 0.001 | 0.0 |
| Synaptic | Drift | 95.6 | -0.3 | 0.351 ± 0.002 | +7.0 |
| Synaptic | Bit error | 73.0 | -22.9 | 0.406 ± 0.003 | +23.8 |
| Synaptic | Weight noise | 78.9 | -17.0 | 0.211 ± 0.004 | -35.7 |
| Neuron | Threshold shift | 70.2 | -25.7 | 0.498 ± 0.004 | +51.8 |
| Neuron | Threshold noise | 81.5 | -14.4 | 0.441 ± 0.004 | +34.5 |
| Spike | Deletion | 70.2 | -25.7 | 0.328 ± 0.001 | 0.0 |
| Spike | Insertion | 72.8 | -23.1 | 0.328 ± 0.001 | 0.0 |
| Spike | Timing shift | 74.3 | -21.6 | 0.329 ± 0.001 | +0.3 |
increases SSIM from 0.328 to 0.498, whereas spike deletion leaves SSIM approximately unchanged at 0.328. Comparable utility degradation can therefore correspond to markedly different structural reconstruction leakage.
More broadly, the evaluated perturbations span three qualitatively different regimes. Selected neuron-level conditions increase reconstruction similarity while reducing accuracy; weight noise reduces both accuracy and reconstruction similarity; and spike-level perturbations substantially reduce accuracy while producing little change in SSIM. Neither the magnitude nor direction of the reconstruction change can therefore be inferred from classification accuracy alone. Accordingly, we do not assign a single scalar notion of reconstruction leakage to all metrics. SSIM and PSNR characterize reconstruction fidelity, and target confidence characterizes optimization toward the target output.
The comparison further highlights that perturbation class matters. Neuron-threshold deviations coincide with the largest SSIM increases, whereas spike-level perturbations primarily degrade functional performance without comparable reconstruction gains. Event-based DVS Gesture is more functionally sensitive to temporal displacement than the Poisson-encoded static datasets in our experiments; however, this high functional sensitivity does not by itself imply higher reconstruction fidelity. We therefore interpret these results as hardware-state-dependent behavior rather than as evidence that all perturbations increase model-inversion leakage.
8.6 Ablation Study: EOT and Regularization
We finally assess the contribution of EOT and the regularization components of SDMI. Table 5 compares the complete configuration with ablated variants. Removing EOT () decreases mean SSIM from 0.3231 to 0.2959 and increases its standard deviation from 0.0012 to 0.0103. EOT therefore improves structural reconstruction similarity and, more importantly, stabilizes optimization under hardware and spike stochasticity. PSNR is slightly higher for , so we do not interpret EOT as uniformly improving every reconstruction metric.
Removing TV increases the mean SSIM to 0.4014 but also increases its standard deviation substantially, from 0.0012 to 0.0703. TV therefore trades maximum mean structural similarity for considerably more consistent reconstruction behavior across evaluated target classes. Removing the sparsity regularizer has only a minor quantitative effect, suggesting that it acts as a secondary structural prior in this configuration. We additionally vary the number of EOT

(a)
(b)
Figure 7: Relationship between classification accuracy and SDMI reconstruction fidelity under the evaluated hardware perturbations: (a) absolute accuracy versus SSIM and (b) relative changes with respect to the memristive baseline. Comparable utility degradation can correspond to substantially different reconstruction behavior; marker size reflects the target confidence.
Table 5: Ablation study of SDMI components.
| Configuration | SSIM | PSNR (dB) | Confidence | Time (s) |
|---|---|---|---|---|
| Full SDMI | 456.26 | |||
| No EOT (K = 1) | 38.90 | |||
| No TV | 455.17 | |||
| No Sparsity | 455.90 |
Table 6: Sensitivity of SDMI to the number of EOT samples K.
| K | SSIM | Confidence | Time (s) |
|---|---|---|---|
| 1 | 39.05 | ||
| 4 | 152.27 | ||
| 8 | 304.53 | ||
| 12 | 455.15 | ||
| 20 | 758.36 |
samples K in Table 6. Increasing K monotonically improves mean SSIM over the evaluated range, while runtime grows approximately linearly, exposing a direct trade-off between Monte Carlo averaging and inversion cost.
9 Discussion
Reconstruction does not track model utility. Our results challenge the assumption that model-inversion leakage varies monotonically with model accuracy. In memristive SNNs, reconstruction leakage does not follow a monotonic relationship with inference accuracy. Instead, it depends on the interaction between temporal neural dynamics and the effective hardware execution state, indicating that model-inversion susceptibility should be assessed at the system level rather than inferred solely from model behavior. In particular, spike deletion substantially degrades classification accuracy while leaving SSIM approximately unchanged, whereas neuron-threshold perturbations can produce comparable utility degradation together with substantially higher reconstruction similarity. This behavior directly corresponds to the trade-off regions observed in Fig. 7.
Hardware deviations reshape inversion. A key observation is that selected hardware deviations can substantially reshape reconstruction leakage. This effect is most evident in neuron-level and selected synaptic perturbations, where changes in threshold dynamics or weight representations coincide with stronger reconstruction structure for the target class. Importantly, this behavior is not universal: weight noise reduces reconstruction similarity, while spike-level perturbations largely degrade utility without comparable SSIM gains. Reliability and fault-injection studies in neural accelerators and memristive systems have primarily focused on functional degradation rather than information exposure [17, 45, 50]. Multiple perturbation sources may also co-occur in practice, and understanding their combined effect on reconstruction leakage remains an important direction for future work.
Similar utility can hide different leakage. The comparison between spike deletion and threshold shift further illustrates this privacy-utility decoupling. Both reduce accuracy to approximately 70%, yet spike deletion remains close to the memristive SSIM baseline, whereas threshold shift increases SSIM by more than 50%. Conversely, weight noise reduces inversion fidelity in our evaluated setting, showing that hardware variability is not inherently privacy-degrading. The reduction observed under weight noise suggests that controlled noise injection could be explored as a privacy-enhancing mechanism.
Temporal dynamics amplify hardware sensitivity. The temporal dimension of spiking computation provides an additional mechanism through which hardware deviations can affect model behavior. Because inference is performed over multiple time steps, deviations can accumulate and propagate through layers by modifying firing activity, threshold crossings, and spike timing. Such hardware-induced changes are not captured by analyses that consider only the trained model. Previous studies on SNN robustness and fault tolerance similarly report sensitivity to neuron-, synapse-, and spike-level perturbations, although they do not study their consequences for model-inversion leakage [24]. Our results extend this perspective by showing that functional sensitivity and reconstruction sensitivity need not evolve together.
Hardware state matters for privacy assessment. More generally, evaluating only the model or post-deployment task accuracy may overlook changes in model-inversion leakage introduced by the hardware substrate. The behavior of a memristive model depends on device- and circuit-level characteristics such as conductance variability, drift, and peripheral precision, and different execution states may therefore exhibit different leakage profiles even at similar utility levels. Variations across devices, fabrication conditions, or operational states could plausibly contribute to such differences, although quantifying device-to-device privacy variation requires physical measurements beyond the scope of our evaluation [19, 43, 65]. For device and materials researchers, these results suggest that hardware variability may have implications beyond functional accuracy and reliability: device-level properties such as conductance variability and drift can also influence the privacy profile of the mapped model. This motivates considering privacy-related behavior alongside conventional device and system metrics when evaluating emerging neuromorphic hardware.
These observations motivate treating hardware state as an explicit dimension of privacy assessment in computation-in-memory and neuromorphic systems. A model characterized under one execution condition may exhibit a different leakage profile under another condition with distinct variability or reliability characteristics [15, 54]. This consideration is particularly relevant for edge-oriented neuromorphic systems, where inference increasingly occurs on specialized local hardware [6, 28]. Privacy analysis should therefore distinguish the model, its hardware-mapped implementation, and relevant reliability states rather than assuming that privacy properties measured on the software model remain invariant after deployment.
Limitations. Our study provides a simulation-based characterization of model-inversion susceptibility in compact memristive SNNs and does not constitute physical-chip validation or demonstrate a chip-specific fault-injection mechanism. The quantitative results are specific to the evaluated SNN architectures, datasets, modeled ReRAM configuration, and perturbation ranges. In addition, SSIM and PSNR quantify class-representative reconstruction fidelity and do not establish exact recovery of individual training records. Extending the analysis to larger and more diverse SNN architectures, multiple device technologies and hardware realizations, independent semantic leakage metrics, and measured device characteristics remains important future work.
More broadly, our results indicate that privacy analysis of memristive neuromorphic systems should not be restricted to the software-level model. This view aligns with emerging work on secure compute-in-memory architectures and broader efforts in machine-learning security to account for hardware and system effects [2, 30, 42, 58]. Extending this analysis to on-chip learning, larger neuromorphic architectures, and emerging memory technologies represents an important step toward a more complete understanding of privacy and security in neuromorphic systems.
10 Conclusion
This paper studies model-inversion leakage in memristive spiking neural networks under non-ideal memristive hardware behavior and reliability faults. Using Spiking Domain Model Inversion (SDMI), we characterize how reconstruction behavior changes across execution conditions and show that model utility and reconstruction leakage do not necessarily evolve together. In particular, selected threshold perturbations increase reconstruction similarity by up to 51.8% relative to the memristive baseline, whereas weight noise reduces it by 35.7%. Moreover, spike deletion can produce comparable accuracy degradation to threshold shift while leaving reconstruction similarity close to the baseline.
These results show that hardware deviations can reshape the model-inversion leakage profile of a deployed SNN rather than simply introducing uniform degradation or noise. Classification accuracy alone is therefore insufficient to characterize model-inversion exposure. More broadly, our findings motivate privacy evaluations that differentiate the model, its hardware-mapped implementation, and relevant reliability states. For memristive SNNs, privacy should therefore be assessed as a property of the deployed execution system rather than assumed to remain invariant from the software model.
References
[1] Gorka Abad, Oguzhan Ersoy, Stjepan Picek, and Aitor Urbieta. 2023. Sneaky spikes: Uncovering stealthy backdoor attacks in spiking neural networks with neuromorphic data. Network and Distributed System Security Symposium (NDSS) (2023).
[2] Yongtian Bi, Qi Xu, Hao Geng, Song Chen, and Yi Kang. 2023. AD2VNCS: Adversarial Defense and Device Variation-tolerance in Memristive Crossbar-based Neuromorphic Computing Systems. ACM Transactions on Design Automation of Electronic Systems 29, 1 (2023), 1–19.
[3] Stefano Brivio, Sabina Spiga, and Daniele Ielmini. 2022. HFO2-based resistive switching memory devices for neuromorphic computing. Neuromorphic Computing and Engineering 2, 4 (2022), 042001.
[4] Bertrand Cambou and Marius Orlowski. 2016. PUF designed with Resistive RAM and Ternary States. In Proceedings of the 11th Annual Cyber and Information Security Research Conference. 1–8.
[5] Pai-Yu Chen, Xiaochen Peng, and Shimeng Yu. 2017. NeuroSim+: An integrated device-to-algorithm framework for benchmarking synaptic devices and array architectures. In 2017 IEEE International electron devices meeting (IEDM). IEEE, 6–1.
[6] Sai Kiran Cherupally, Adnan Siraj Rakin, Shihui Yin, Mingoo Seok, Deliang Fan, and Jae-sun Seo. 2021. Leveraging noise and aggressive quantization of in-memory computing for robust dnn hardware against adversarial input and weight attacks. In 2021 58th ACM/IEEE Design Automation Conference (DAC). IEEE, 559–564.
[7] Alessio Colucci, Andreas Steininger, and Muhammad Shafique. 2022. enpheeph: A fault injection framework for spiking and compressed deep neural networks. In 2022 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS). IEEE, 5155–5162.
[8] Jianshuo Dong, Han Qiu, Yiming Li, Tianwei Zhang, Yuanjie Li, Zeqi Lai, Chao Zhang, and Shu-Tao Xia. 2023. One-bit flip is all you need: When bit-flip attack meets model training. In Proceedings of the IEEE/CVF International Conference on Computer Vision. 4688–4698.
[9] Sina Sayyah Ensan, Karthikeyan Nagarajan, Mohammad Nasim Imtiaz Khan, and Swaroop Ghosh. 2021. SCARE: Side channel attack on in-memory computing for reverse engineering. IEEE Transactions on Very Large Scale Integration (VLSI) Systems 29, 12 (2021), 2040–2051.
[10] Jason K Eshraghian, Max Ward, Emre O Nefci, Xinxin Wang, Gregor Lenz, Girish Dwivedi, Mohammed Bennamoun, Doo Seok Jeong, and Wei D Lu. 2023. Training spiking neural networks using lessons from deep learning. Proc. IEEE 111, 9 (2023), 1016–1054.
[11] Matt Fredrikson, Somesh Jha, and Thomas Ristenpart. 2015. Model inversion attacks that exploit confidence information and basic countermeasures. In Proceedings of the 22nd ACM SIGSAC conference on computer and communications security. 1322–1333.
[12] Jingyan Fu, Zhiheng Liao, Jianqing Liu, Scott C Smith, and Jinhui Wang. 2020. Memristor-based variation-enabled differentially private learning systems for edge computing in iot. IEEE Internet of Things Journal 8, 12 (2020), 9672–9682.
[13] Jingyan Fu, Zhiheng Liao, and Jinhui Wang. 2019. Memristor-based neuromorphic hardware improvement for privacy-preserving ANN. IEEE Transactions on Very Large Scale Integration (VLSI) Systems 27, 12 (2019), 2745–2754.
[14] Anil Bayram Gögebakan, Enrico Magliano, Alessio Carpegna, Annachiara Ruospo, Alessandro Savino, and Stefano Di Carlo. 2024. SpikingJET: Enhancing fault injection for fully and convolutional spiking neural networks. In 2024 IEEE 30th International Symposium on On-Line Testing and Robust System Design (IOLTS). IEEE, 1–7.
[15] Bhanprakash Goswami, Tamoghno Das, and Manan Suri. 2023. Experimental investigation of side-channel attacks on neuromorphic spiking neural networks. IEEE Embedded Systems Letters 16, 2 (2023), 231–234.
[16] Zhehzhi He, Adnan Siraj Rakin, Jingtao Li, Chaitali Chakraborti, and Deliang Fan. 2020. Defending and harnessing the bit-flip based adversarial weight attack. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 14095–14103.
[17] Sanghyun Hong, Pietro Frigo, Yigitcan Kaya, Cristiano Giuffrida, and Tudor Dumitras. 2019. Terminal brain damage: Exposing the graceless degradation in deep neural networks under hardware fault attacks. In 28th USENIX Security Symposium (USENIX Security 19). 497–514.
[18] Hongsheng Hu, Shuo Wang, Tian Dong, and Minhui Xue. 2024. Learn what you want to unlearn: Unlearning inversion attacks against machine unlearning. In 2024 IEEE Symposium on Security and Privacy (SP). IEEE, 3257–3275.
[19] Shih-Hsu Huang, Wei-Che Cheng, and Jin-Fu Li. 2023. Hardware trojans of Computing-In-memories: Issues and methods. In 2023 IEEE International Symposium on Defect and Fault Tolerance in VLSI and Nanotechnology Systems (DFT). IEEE, 1–6.
[20] Daniele Ielmini and Stefano Ambrogio. 2020. Emerging neuromorphic devices. Nanotechnology 31, 9 (2020), 092001.
[21] Daniele Ielmini and H-S Philip Wong. 2018. In-memory computing with resistive switching devices. Nature electronics 1, 6 (2018), 333–343.
[22] Pietro Inglese, Elena-Ioana Vatajelu, and Giorgio Di Natale. 2023. Side channel and fault analyses on memristor-based logic in-memory. IEEE Design & Test 41, 3 (2023), 29–35.
[23] Dovydas Jokas, Luis Muñoz-González, Emil Lupu, and Adnan Mehonic. 2025. Nonideality-aware training makes memristive networks more robust to adversarial attacks. APL Machine Learning 3, 1 (2025).
[24] Zalfa Jouni and Haralampos-G Stratigopoulos. 2025. STDP-Trained Spiking Neural Network Reliability Assessment Through Fault Injections. In 31st IEEE International Symposium on On-Line Testing and Robust System Design.
[25] Corey Lammie, Julian Büchel, Athanasios Vasilopoulos, Manuel Le Gallo, and Abu Sebastian. 2025. The inherent adversarial robustness of analog in-memory computing. Nature Communications 16, 1 (2025), 1756.
[26] Manuel Le Gallo, Corey Lammie, Julian Büchel, Fabio Carta, Omobayode Fagbo-hungbe, Charles Mackin, Hsinyu Tsai, Vijay Narayanan, Abu Sebastian, Kautoor El Maghraoui, et al. 2023. Using the IBM analog in-memory hardware accelerator kit for neural network training and inference. APL Machine Learning 1, 4 (2023).
[27] Jiaxin Li, Gorka Abad, Stjepan Picek, and Mauro Conti. 2025. Membership privacy evaluation in deep spiking neural networks. In European Symposium on Research in Computer Security. Springer, 207–227.
[28] Qi Liu, Jieming Yin, Wujie Wen, Chengmo Yang, and Shi Sha. 2023. {NeuroPots}: Realtime proactive defense against {Bit-Flip} attacks in neural networks. In 32nd USENIX Security Symposium (USENIX Security 23). 6347–6364.
[29] Yugeng Liu, Rui Wen, Xinlei He, Ahmed Salem, Zhikun Zhang, Michael Backes, Emiliano De Cristofaro, Mario Fritz, and Yang Zhang. 2022. [ML-Doctor]: Holistic risk assessment of inference attacks against machine learning models. In 31st USENIX Security Symposium (USENIX Security 22). 4525–4542.
[30] Henrique Teles Maia, Chang Xiao, Dingzeyu Li, Eitan Grinspun, and Changxi Zheng. 2022. Can one hear the shape of a neural network?: Snooping the GPU via Magnetic Side Channel. In USENIX Security Symposium. 4383–4400.
[31] Ayana Moshruba, Ihsen Alouani, and Maryam Parsa. 2025. Are neuromorphic architectures inherently privacy-preserving? An exploratory study. Proceedings on Privacy Enhancing Technologies (PoPETs) (2025).
[32] Karthikeyan Nagarajan, Junde Li, Sina Sayyah Ensan, Mohammad Nasim Imtiaz Khan, Sachidh Kannan, and Swaroop Ghosh. 2022. Analysis of power-oriented fault injection attacks on spiking neural networks. In 2022 Design, Automation & Test in Europe Conference & Exhibition (DATE). IEEE, 861–866.
[33] Najmeh Nazari, Kevin Immanuel Gubbi, Banafsheh Saber Latibari, Muh-tasim Alam Chowdhury, Chongzhou Fang, Avesta Sasan, Setareh Rafatirad, Houman Homayoun, and Soheil Salehi. 2024. Securing On-Chip Learning: Navigating Vulnerabilities and Potential Safeguards in Spiking Neural Network Architectures. In 2024 IEEE International Symposium on Circuits and Systems (ISCAS). IEEE, 1–5.
[34] Emre O Nefci, Hesham Mostafa, and Friedemann Zenke. 2019. Surrogate gradient learning in spiking neural networks. IEEE Signal Processing Magazine 36, 6 (2019), 51–63.
[35] Osamu Nomura, Yusuke Sakemi, Takeo Hosomi, and Takashi Morie. 2022. Robustness of spiking neural networks based on time-to-first-spike encoding against adversarial attacks. IEEE Transactions on Circuits and Systems II: Express Briefs 69, 9 (2022), 3640–3644.
[36] Md Oli-Uz-Zaman, Saleh Ahmad Khan, William Oswald, Zhiheng Liao, and Jinhui Wang. 2022. Stuck-at-fault immunity enhancement of memristor-based edge ai systems. IEEE Journal on Emerging and Selected Topics in Circuits and Systems 12, 4 (2022), 922–933.
[37] Huihui Peng, Lin Gan, and Xin Guo. 2024. Memristor-based spiking neural networks: cooperative development of neural network architecture/algorithms
and memristors. Chip 3, 2 (2024), 100093.
[38] Hamed Poursiami, Ihsen Alouani, and Maryam Parsa. 2024. Brainleaks: On the privacy-preserving properties of neuromorphic architectures against model inversion attacks. In 2024 International Conference on Machine Learning and Applications (ICMLA). IEEE, 705–712.
[39] Hamed Poursiami, Ihsen Alouani, and Maryam Parsa. 2024. Watermarking neuromorphic brains: Intellectual property protection in spiking neural networks. In 2024 International Conference on Neuromorphic Systems (ICONS). IEEE, 287–294.
[40] Hamed Poursiami, Ayana Moshruba, and Maryam Parsa. 2025. Do Spikes Protect Privacy? Investigating Black-Box Model Inversion Attacks in Spiking Neural Networks. IEEE International Conference on Neuromorphic Systems (ICONS) (2025).
[41] Matthias Probst, Manuel Brosch, and Georg Sigl. 2024. Side-channel analysis of integrate-and-fire neurons within spiking neural networks. IEEE Transactions on Circuits and Systems I: Regular Papers (2024).
[42] Arezoo Rajabi, Surudji Asokraj, Fengqing Jiang, Luyao Niu, Bhaskar Ramasubramanian, James Ritecy, and Radha Poovendran. 2023. MDTD: a multi-domain Trojan detector for deep neural networks. In Proceedings of the 2023 ACM SIGSAC Conference on Computer and Communications Security. 2232–2246.
[43] Spyridon Raptis, Paul Kling, Ioannis Kaskampas, Ihsen Alouani, and Haralampos-G Stratigopoulos. 2025. Input-triggered hardware trojan attack on spiking neural networks. IEEE International Symposium on Hardware-Oriented Security and Trust (HOST) (2025).
[44] Ahmed Salem, Yang Zhang, Mathias Humbert, Pascal Berrang, Mario Fritz, and Michael Backes. 2019. ML-Leaks: Model and Data Independent Membership Inference Attacks and Defenses on Machine Learning Models. In Network and Distributed System Security Symposium (NDSS).
[45] Brojogopal Sapui and Mehdi B Tahoori. 2024. Power Side-Channel Analysis and Mitigation for Neural Network Accelerators based on Memristive Crossbars. In 2024 29th Asia and South Pacific Design Automation Conference (ASP-DAC). IEEE, 612–617.
[46] James Seekings, Mahsa Ardakani, Peyton Chandarana, Arshia Eslami, Mohammadreza Mohammadi, and Ramtin Zand. 2025. Integrated algorithm and hardware design for hybrid neuromorphic systems. npj Unconventional Computing 2, 1 (2025), 20.
[47] Shanghao Shi, Ning Wang, Yang Xiao, Chaoyu Zhang, Yi Shi, Y Thomas Hou, and Wenjing Lou. 2023. Scale-mia: A scalable model inversion attack against secure federated learning via latent space reconstruction. Network and Distributed System Security Symposium (NDSS) (2023).
[48] Reza Shokri, Marco Stronati, Congzheng Song, and Vitaly Shmatikov. 2017. Membership inference attacks against machine learning models. In 2017 IEEE symposium on security and privacy (SP). IEEE, 3–18.
[49] Pablo Sorrentino, Stjepan Picek, Ihsen Alouani, Nikolaos Athanasios Anagnostopoulos, Francesco Regazzoni, Lejla Batina, Tamalika Banerjee, and Fatih Turkmen. 2026. Emerging Threats and Countermeasures in Neuromorphic Systems: A Survey. arXiv preprint arXiv:2601.16589 (2026). arXiv:2601.16589
[50] Felix Staudigl, Karl JX Sturm, Maximilian Bartel, Thorben Fetz, Dominik Sise-jkovic, Jan Moritz Joseph, Leticia Bolzani Pöhl, and Rainer Leupers. 2022. X-fault: Impact of faults on binary neural networks in memristor-crossbar arrays with logic-in-memory computation. In 2022 IEEE 4th International Conference on Artificial Intelligence Circuits and Systems (AICAS). IEEE, 174–177.
[51] Guanhong Tao, Qiuling Xu, Yingqi Liu, Guangyu Shen, Shengwei An, Jingwei Xu, Xiangyu Zhang, and Yuan Yao. 2022. MIRROR: Model Inversion for Deep LearningNetwork with High Fidelity.. In Network and Distributed System Security Symposium (NDSS).
[52] Dmitrii Usynin, Daniel Rueckert, and Georgios Kaissis. 2023. Beyond gradients: Exploiting adversarial priors in model inversion attacks. ACM Transactions on Privacy and Security 26, 3 (2023), 1–30.
[53] Antian Wang, Bingyin Zhao, Weihang Tan, and Yingjie Lao. 2023. NNTesting: Neural Network Fault Attacks Detection Using Gradient-Based Test Vector Generation. In 2023 60th ACM/IEEE Design Automation Conference (DAC). IEEE, 1–6.
[54] Jianfeng Wang, Huazhong Yang, Shuwen Deng, and Xueqing Li. 2024. Cimsat: Exploiting sat analysis to attack compute-in-memory architecture defenses. In Proceedings of the 2024 on ACM SIGSAC Conference on Computer and Communications Security. 3436–3450.
[55] Kuan-Chieh Wang, Yan Fu, Ke Li, Ashish Khisti, Richard Zemel, and Alireza Makhzani. 2021. Variational model inversion attacks. Advances in neural information processing systems 34 (2021), 9706–9719.
[56] Zhongrui Wang, Saumil Joshi, Sergey E Savel'ev, Hao Jiang, Rivu Midya, Peng Lin, Miao Hu, Ning Ge, John Paul Strachan, Zhiyong Li, et al. 2017. Memristors with diffusive dynamics as synaptic emulators for neuromorphic computing. Nature materials 16, 1 (2017), 101–108.
[57] Ziyu Wang, Fan-hsuan Meng, Yongmo Park, Jason K Eshraghian, and Wei D Lu. 2023. Side-channel attack analysis on in-memory computing architectures. IEEE Transactions on Emerging Topics in Computing 12, 1 (2023), 109–121.
[58] Ziyu Wang, Yuting Wu, Yongmo Park, and Wei D Lu. 2024. Safe, secure and trustworthy compute-in-memory accelerators. Nature Electronics 7, 12 (2024), 1086–1097.
[59] Rui Wen, Yiyong Liu, Michael Backes, and Yang Zhang. 2025. {SoK}: Data Reconstruction Attacks Against Machine Learning Models: Definition, Metrics, and Benchmark. In 34th USENIX Security Symposium (USENIX Security 25). 5601–5620.
[60] Kyung Seok Woo, Jaehyun Kim, Janguk Han, Woohyun Kim, Yoon Ho Jang, and Cheol Seong Hwang. 2022. Probabilistic computing using Cu0. 1Te0. 9/HFO2/Pt diffusive memristors. Nature Communications 13, 1 (2022), 5762.
[61] Yixin Xu, Yi Xiao, Zijian Zhao, Franz Müller, Alptekin Vardar, Xiao Gong, Sumitha George, Thomas Kämpfe, Vijaykrishnan Narayanan, and Kai Ni. 2023. Embedding security into ferroelectric FET array via in situ memory operation. Nature communications 14, 1 (2023), 8287.
[62] Srishti Yadav, Anshul Pundhir, Balasubramanian Raman, and Sanjeev Kumar. 2024. Unveiling Robustness of Spiking Neural Networks against Data Poisoning Attacks. In 2024 International Joint Conference on Neural Networks (IJCNN). IEEE, 1–8.
[63] Yi Yu, Qixin Zhang, Shuhan Ye, Xun Lin, Qianshan Wei, Kun Wang, Wenhan Yang, Dacheng Tao, and Jiang Xudong. 2026. Time is all it takes: Spike-retiming attacks on event-driven spiking neural networks. In International Conference on Learning Representations, Vol. 2026. 37613–37646.
[64] Guangsheng Zhang, Bo Liu, Huan Tian, Tianqing Zhu, Ming Ding, and Wanlei Zhou. 2024. How does a deep learning model architecture impact its privacy? a comprehensive study of privacy attacks on {CNNs} and transformers. In 33rd USENIX Security Symposium (USENIX Security 24). 6795–6812.
[65] Yang Zhao, Xing Hu, Shuangchen Li, Jing Ye, Lei Deng, Yu Ji, Jianyu Xu, Dong Wu, and Yuan Xie. 2019. Memory trojan attack on neural network accelerators. In 2019 Design, Automation & Test in Europe Conference & Exhibition (DATE). IEEE, 1415–1420.
[66] Ligeng Zhu, Zhijian Liu, and Song Han. 2019. Deep leakage from gradients. Advances in neural information processing systems 32 (2019).
A Experimental Settings
Table 7: Overview of the experimental evaluation protocol.
| Item | Setting |
|---|---|
| Datasets | MNIST, Fashion-MNIST, AT&T Faces, DVS128 Gesture |
| Encoding | Poisson (static), event-based (DVS) |
| Temporal window | (static), (DVS) |
| Training | Surrogate-gradient learning |
| Evaluation | Software, memristive, and reliability-fault conditions |
| Perturbations | Synaptic, neuron, and spike levels |
| Aggregation | Mean ± sample std. across target classes |
Table 8: Dataset-specific SNN configurations used in the evaluation.
| Dataset | Configuration |
|---|---|
| MNIST | 10 classes; Poisson; . Conv(1,16.5×5)–LIF-AvgPool; Conv(16,32,5×5)–LIF-AvgPool; FC(10). |
| Fashion-MNIST | 10 classes; Poisson; . Conv(1,16.5×5)–LIF-AvgPool; Conv(16,32,5×5)–LIF-AvgPool; FC(10). |
| AT&T Faces | 40 classes; Poisson; . Conv(1,32.5×5)–LIF-AvgPool; Conv(32,64,5×5)–LIF-AvgPool; Conv(64,128.3×3)–LIF-AvgPool; FC(40). |
| DVS128 Gesture | 11 classes; event-based; . Conv(2,32.5×5)–LIF-AvgPool; Conv(32,64,5×5)–LIF-AvgPool; FC(11). |
Adam is used for 1200 iterations with margin weight 1.0, firing-rate target 0.02, base rate 1.0, blur kernel 3, gradient clipping 1.0, and initialization with .
Table 9: Hyperparameters and hardware-aware configuration.
| Category | Parameter and Value |
|---|---|
| SNN (LIF) | LIF parameters: dataset/layer-specificReset potential (): 0.0Time steps (): dataset-specific () |
| IBM AIHWKIT | Device: ReRAMConductance range (): [1, 1000] SD2D variability (): 0.1Cycle-to-cycle noise: 0.05Drift coefficient (): 0.005ADC/DAC precision: 8-bit |
| SDMI Attack | Optimizer: AdamInitial learning rate (): 0.01EOT samples (): 12Iterations: 1200Regularization: two-stage schedule (Table 10) |
| Hardware | GPU: NVIDIA GeForce RTX 5070Precision: mixed FP16/FP32 |
Table 10: SDMI optimization stages and regularization schedule.
| Parameter | Stage 1 | Stage 2 |
|---|---|---|
| Learning rate | 0.01 | 0.003 |
| Start iteration | 0 | 250 |
| Sparsity weight | 0.5 | 8.0 |
| FR excess weight | 0.5 | 3.0 |
| FR weight | 0.5 | 6.0 |
| TV weight | 0.03 | 0.18 |
| Image weight | 0.05 | 0.15 |
| Blur weight | 0.015 | 0.20 |
| Mean-intensity weight | 0.8 | 1.2 |
| Border weight | 0.5 | 1.0 |
Temporal dynamics. Inference is performed over discrete time steps (), where information is represented through spike timing and firing activity. This temporal representation is central to our analysis because both inference and SDMI operate over temporally evolving spike responses rather than conventional static activations.
Hardware-aware inference. The trained SNNs are evaluated in software and after mapping to the IBM AIHWKIT analog in-memory computing model. The memristive model incorporates the hardware non-idealities specified in Table 9, including device-to-device variability, cycle-to-cycle noise, conductance drift, and finite-precision peripheral conversion. This provides a controlled hardware-aware simulation environment for studying how non-ideal analog behavior affects model behavior; it should not be interpreted as a chip-level reproduction of a specific fabricated accelerator.
Execution conditions. As defined in Section 5.3, we define three execution conditions throughout the evaluation: (i) software execution, (ii) memristive execution under the modeled hardware non-idealities, and (iii) memristive execution under additional reliability faults or sensitivity-analysis conditions. The trained model parameters and SDMI configuration are kept fixed when comparing these conditions.
Attack optimization. The SDMI attack operates in the temporal domain by optimizing candidate inputs over spike-based model responses. Surrogate gradients provide a differentiable approximation of the spike-generation function, while Expectation over Transformation (EOT) averages the inversion objective over stochastic input and hardware execution realizations.
Reconstruction metrics. Inputs are normalized to [0, 1]. For each target class, reconstruction metrics are computed against the nearest same-class test example among up to 200 candidates, selected by minimum MSE. SSIM is computed from full-image mean, variance, and covariance using and ; PSNR assumes a unit data range. Reported mean and sample standard deviation values aggregate results across target classes.
Comparison protocol. To preserve comparability across execution conditions, the learned model parameters and SDMI configuration are not returned after switching from software execution to the memristive or reliability-perturbed settings. The inversion budget, regularization schedule, initialization procedure, and target-class protocol therefore remain fixed, while only the evaluated hardware execution state changes. This design isolates hardware-dependent changes in reconstruction behavior from changes introduced by model retraining or attack-specific hyperparameter tuning.
Interpretation of the sensitivity sweeps. The sensitivity curves are intended to characterize how different classes of hardware deviations affect functional behavior over increasing perturbation magnitude. Because the parameters associated with synaptic, neuron, and spike-level deviations have different physical meanings and scales, equal numerical perturbation values are not interpreted as equivalent hardware severity. Instead, the sweeps are used to identify representative operating regimes and, where possible, conditions with comparable post-perturbation utility. The selected points are therefore characterization points rather than optimized attack parameters.
B Additional Perturbation Sensitivity Results
We provide additional classification-accuracy sensitivity curves for MNIST for all considered hardware and reliability faults as a function of perturbation magnitude in Fig. 8. Table 11 summarizes the representative operating points used in the privacy analysis. These sweeps characterize functional sensitivity and are used to identify the operating regimes analyzed in the main paper; they do not imply equivalent physical controllability of the corresponding perturbations.
Table 11: Representative perturbation settings used in the privacy analysis.
| Condition | Parameter | Selected value |
|---|---|---|
| Weight drift | Multiplicative deviation | 1 |
| Bit error | Bit position | 6 |
| Weight noise | Std. dev. | 0.56 |
| Threshold shift | Threshold scale | 10 |
| Threshold noise | Std. dev. | 0.07 |
| Spike deletion | Probability | 0.75 |
| Spike insertion | Probability | 0.21 |
| Timing shift | Displacement | 13 steps |

Figure 8: Accuracy sensitivity to perturbation magnitude for the evaluated hardware conditions. The sweeps characterize functional sensitivity and do not imply equivalent physical fault-injection precision.
C Ethical Considerations
This work studies privacy risks in neuromorphic hardware under hardware non-idealities and reliability faults. Although such analysis has dual-use implications, our goal is defensive: to identify hardware-dependent privacy leakage mechanisms and motivate more secure evaluation and hardware-software co-design practices.
All experiments are conducted in simulation using public benchmark datasets. The work does not involve human subjects, private user data, interaction with deployed systems, or physical fault injection on operational hardware. The presented results are intended to support hardware-aware privacy assessment rather than operational misuse.