Skip to Content
TechnologiesTechnologies
  • Article
  • Open Access

23 November 2026

33 Pages

Hardware-Aware Ternary Neural Networks with Accuracy Recovery on Two-State Silicon Nanowire Memristive Crossbars

,
,
,
and
1
Bio/CMOS Interfaces Laboratory, École Polytechnique Fédérale de Lausanne (EPFL), 2000 Neuchâtel, Switzerland
2
Department of Applied Science and Technology, Politecnico di Torino, Corso Duca degli Abruzzi 24, 10129 Turin, Italy
3
London Centre for Nanotechnology, University College London, London WC1H 0AH, UK
4
Department of Electronic and Electrical Engineering, University College London, London WC1E 7JE, UK

Abstract

Neuromorphic computing based on memristive crossbar arrays offers an energy-efficient approach to neural-network acceleration by integrating memory and computation within the same hardware substrate. However, many nonvolatile memristive devices provide only a limited number of stable conductance states, which constrains synaptic representation and may degrade inference accuracy. Here, we investigate a differential ternary encoding strategy for experimentally characterized silicon nanowire memristors with high- and low-resistance states, realizing three effective synaptic weights, { − 1 , 0 , + 1 } , using only two physical conductance states. The investigated ternary neural network achieves 93.78% accuracy on MNIST while retaining a compact differential crossbar implementation based exclusively on the two available device states. An experimentally informed CrossSim model is further used to evaluate the impact of programming variability, conductance drift, peripheral quantization, and interconnect parasitics. Programming variability reduces the inference accuracy only moderately to 92.56%, whereas peripheral quantization under the selected 6-bit DAC/4-bit ADC configuration causes the dominant degradation, reducing the accuracy to 81.14%. Device-aware training incorporating programming variability and finite-resolution DAC/ADC conversion increases the simulated accuracy from 81.14% to 93.68% for the evaluated hardware realization at the initial programming condition. Compared with the adopted 8-bit bit-sliced ANN implementation, the ternary mapping reduces the required crossbar arrays from 16 to 2 per layer, providing an eightfold reduction in logical array and device counts under the adopted mapping scheme. These results demonstrate the potential of hardware-aware ternary neural networks to recover inference accuracy under experimentally informed device and peripheral constraints, while retaining the two physical conductance states of the investigated silicon nanowire platform.

1. Introduction

The rapid development of artificial intelligence has led to a continuous increase in the computational and memory demands of artificial neural networks (ANNs). Despite the substantial arithmetic capability of modern processors, conventional computing systems remain constrained by the physical separation of processing and memory in the von Neumann architecture [1,2]. During neural-network inference, large numbers of synaptic weights and intermediate activations must be repeatedly transferred between memory and processing units, and the associated data-movement cost can become comparable to, or even exceed, that of the arithmetic operations themselves. This limitation, commonly referred to as the von Neumann bottleneck, has motivated the development of computing paradigms that bring memory and computation into closer physical proximity [3,4]. Neuromorphic computing and analog in-memory computing (AIMC) provide promising approaches in this direction by storing neural-network parameters within memory arrays and performing computation directly where the data reside [5,6,7]. Memristive crossbar architectures are particularly attractive for AIMC because they can perform matrix–vector multiplication (MVM), a fundamental operation in neural-network inference, through highly parallel analog computation [1,8,9]. In such architectures, input activations are represented by voltages applied along the crossbar rows, synaptic weights are encoded by memory-cell conductances, and the resulting column currents represent the corresponding weighted sums.
Beyond conventional matrix–vector multiplication, resistive crossbar circuits combined with suitable feedback circuitry have demonstrated more general linear-algebra operations. Sun et al. demonstrated single-step solutions of linear systems and eigenvector problems using cross-point resistive arrays [10], and subsequently extended this approach to regression and classification [11]. Related approaches have also been investigated for solving partial differential equations using memristive circuits [12]. More recently, Lin et al. examined memristive linear-algebra operations and their associated precision and device-level constraints [13].
Experimental demonstrations have further established the applicability of resistive-memory technologies to integrated neuromorphic networks, analog signal processing, mixed-precision computing, and hardware-based neural-network training [8,9,14,15]. More advanced implementations have explored three-dimensional memristor networks, convolutional neural-network accelerators, and integrated compute-in-memory chips [16,17,18]. The computational capability of these architectures, however, ultimately depends on how reliably the underlying memory devices can represent the synaptic states required by the neural network.
Memristive devices are promising candidates for implementing artificial synapses because their programmable and nonvolatile conductance enables neural-network parameters to be stored locally while directly participating in computation [19,20,21]. Although multilevel operation increases the information stored per cell, it imposes tighter requirements on programming precision, state separation, sensing accuracy, and long-term stability [22,23,24,25]. These constraints are particularly relevant for nonvolatile devices that provide only two well-separated and reproducible states. Such devices offer advantages in robustness and simplified programming, but their binary physical state space does not directly match the continuous or high-precision weight representation commonly used in neural networks. The silicon nanowire (SiNW) memristive device investigated in this work represents this class of hardware. Previous studies of the same silicon-nanowire platform have demonstrated its electrical functionality in sensing and memristive operation [26,27,28]. Electrical characterization reveals two reproducible resistance states, corresponding to a high-resistance state (HRS) and a low-resistance state (LRS), which can be exploited as nonvolatile physical states for synaptic implementation. This two-state constraint therefore raises a central design question: how can neural-network inference accuracy be improved while retaining the simplicity of a binary-state memristive hardware platform?
One approach to overcoming the limited state resolution of binary memristive devices is to preserve a high-precision neural representation and reconstruct multi-bit weights through spatial encoding. In bit-sliced implementations, each numerical weight is decomposed into multiple binary contributions, while signed values require separate positive and negative conductance paths [29,30,31,32]. Although this strategy can retain much of the accuracy of a higher-precision network, it increases the number of physical arrays, memory cells, routing resources, and peripheral circuits required for implementation. At the opposite extreme, binary neural networks (BNNs) constrain synaptic weights to { − 1 , + 1 } and therefore provide a direct low-precision representation for binary-state hardware [33,34].
However, restricting every synapse to only two active weight values reduces the available representation space and can introduce additional challenges for network optimization. The achievable accuracy of BNNs depends not only on their restricted weight representation but also on the training strategy, surrogate-gradient formulation, and optimization configuration.
Ternary neural networks (TNNs) provide an intermediate representation by extending the weight set to { − 1 , 0 , + 1 } [35,36,37,38]. Importantly, the additional zero state does not require a third physical conductance level. Instead, ternary weights can be realized through differential combinations of two-state devices, allowing positive, negative, and zero synaptic contributions to be represented while retaining a compact crossbar structure. This encoding increases the effective synaptic representation space without increasing the number of physical device states; its accuracy benefit depends on the network and training configuration.
While ternary encoding can improve the inference accuracy of neural networks implemented using two-state memristive devices, device- and system-level non-idealities can reduce the achievable accuracy gain in physical crossbar implementations. At the device level, programming variability, device-to-device and cycle-to-cycle variations, read fluctuations, and temporal conductance drift can perturb the conductance values assigned to the synaptic states [39,40]. At the system level, finite-resolution digital-to-analog converters (DACs) and analog-to-digital converters (ADCs), restricted operating ranges, and interconnect parasitics can further distort the computed outputs [41,42]. The relative importance of these effects depends strongly on the characteristics of the memory technology. In particular, the gigaohm-scale resistance of the SiNW devices considered here results in very small operating currents, which can suppress interconnect voltage drops and motivate careful design of the readout circuitry. Finite-resolution signal conversion introduces a separate constraint whose impact depends on the selected bit widths, operating ranges, and signal scaling. Consequently, evaluating the proposed ternary representation requires a hardware model that reflects the experimentally observed behavior of the SiNW devices rather than assuming ideal conductance states. This motivates an experimentally informed analysis of whether the accuracy advantage of the ternary representation can be preserved under realistic device and circuit constraints.
Previous studies have demonstrated different approaches to implementing ternary neural networks in memristive crossbars. Morell et al. [43] represented ternary weights using differential pairs of two-state memristors and incorporated conductance fluctuations into offline training to improve robustness. These earlier implementations establish that differential representation using paired binary-state memristors, including the realization of a zero weight through two high-resistance states, is an established mapping principle rather than a new encoding mechanism proposed in this work.
Youn et al. [44] experimentally demonstrated a differential ternary network using binary-switching memristors and a threshold learning algorithm that suppresses small weight-update events, reducing the programming burden while maintaining classification performance. Wang et al. [45] pursued a different physical implementation, using three resistance states together with reference-column circuitry to represent signed ternary weights, and verified their approach through circuit simulations and a MemTorch-based LeNet-5 implementation. These studies establish both the feasibility of memristive ternary representations and the importance of adapting learning to hardware characteristics. The present work builds on these foundations by investigating how experimentally characterized two-state SiNW devices, their measured conductance variability and short-term drift, and finite-resolution peripheral conversion jointly influence the accuracy–hardware trade-off and the effectiveness of device-aware training.
In this work, we investigate hardware-aware ternary neural networks for experimentally characterized two-state SiNW memristive crossbars, with particular emphasis on the effects of hardware non-idealities and the recovery of inference accuracy through device-aware training. Differential ternary encoding is adopted to remain compatible with the two measured resistance states, while the contribution centers on linking SiNW characterization to crossbar-level accuracy evaluation and subsequent accuracy recovery. Experimentally measured HRS and LRS characteristics, programming variability, and short-term conductance drift inform a CrossSim model, while ADC/DAC quantization and interconnect parasitics are evaluated to identify the dominant sources of inference degradation under the investigated conditions. Device-aware training then adapts the ternary network to the modeled hardware constraints without requiring additional physical conductance states. Binary and full-precision networks provide algorithmic references under the same topology, and comparison with the adopted 8-bit bit-sliced ANN mapping quantifies the associated array and device requirements. The resulting contribution is a device-specific assessment of how ternary representation and hardware-aware optimization can jointly preserve inference accuracy within the physical-state limitations of the investigated SiNW platform.

2. Experimental and Methods

2.1. Silicon Nanowire Memristive Device and Electrical Characterization

The silicon nanowire (SiNW) device investigated in this work is based on a back-to-back Schottky-contact configuration. As illustrated in Figure 1a, a p-type silicon nanowire bridges two silicon pillars contacted by nickel (Ni) electrodes. A native SiO2 layer is present at the Ni/Si interface. The device is fabricated on a silicon-on-insulator (SOI) substrate using a top-down process, with a nanowire diameter of approximately 90 nm. The SiNW channel is defined by electron-beam lithography followed by reactive-ion etching, and the Ni electrodes form the metal-semiconductor interfaces at the two ends of the nanowire. Further details of the fabrication process and device structure are reported in previous studies [27,28,46].
Figure 1. Structure and morphology of the silicon nanowire memristive device. (a) Schematic illustration of the device structure, showing a p-type silicon nanowire (SiNW) bridging two silicon pillars contacted by Ni electrodes, with a native SiO2 layer at the Ni/Si interface. (b) Top-view SEM image of the fabricated device. The inset shows a magnified SEM image acquired at a 40° tilt angle, highlighting the nanowire region between the two electrode structures.
Figure 1b shows a top-view scanning electron microscopy (SEM) image of the fabricated device, where the SiNW bridges the gap between the two electrode regions. The inset provides a magnified view acquired at a 40° tilt angle, allowing the nanowire morphology and its connection to the adjacent structures to be observed more clearly.
Electrical characterization was performed by applying voltage sweeps across the two-terminal SiNW devices while recording the corresponding current responses.
The dataset used to parameterize the programming-variability model comprised 50 complete current–voltage hysteresis sweeps between − 4 and + 4 V and back to − 4 V , recorded at voltage increments of 0.02 V . For each sweep, the higher- and lower-current branches at + 1 V were extracted to represent the ON and OFF conductance states, respectively.
Short-term conductance drift was characterized separately using three labeled SiNW devices (D1–D3), with five repeated ON/OFF recordings per device. Each recording contained 500 current measurements for each state over approximately 100 s. The initial ON/OFF currents were estimated from measurements within the first second and used to define the reference conductance states for the hardware model.

2.2. Neural-Network Architecture and Weight Quantization

To investigate the influence of synaptic weight representation, all neural-network configurations considered in this work employ the same fully connected architecture. A common network topology and data-processing procedure were maintained across the ANN, BNN, and TNN implementations, while the training procedures were adapted to the optimization requirements of each weight representation. The network consists of three linear layers with dimensions 784 → 256 → 128 → 10 and is trained and evaluated using the MNIST handwritten-digit dataset [47]. The 784-dimensional input corresponds to the flattened representation of a 28 × 28 grayscale image. Rectified linear unit (ReLU) activation functions are applied after the first and second linear layers, while the final layer directly produces the ten classification logits.
Three weight representations are considered. A full-precision artificial neural network (ANN) is used as the reference model, while binary and ternary neural networks constrain the synaptic weights to discrete values without modifying the network topology. Only the synaptic weights are quantized in the BNN and TNN models, whereas the bias parameters remain in full precision. The common training configuration and the model-specific weight representations are summarized in Table 1.
Table 1. Network architecture, training configuration, and model-specific weight representations used for the ANN, BNN, and TNN models.
For the full-precision ANN, all synaptic weights remain in floating-point representation during both forward and backward propagation. The trained ANN therefore serves as the reference model for evaluating the effect of low-state weight representations.
For the BNN, each layer maintains a latent full-precision trainable weight w, while the corresponding weight used during forward computation is restricted to the binary set { − 1 , + 1 } according to Equation (1):
w b = + 1 , w ≥ 0 , − 1 , w < 0 ,
where w b denotes the binary weight used during forward computation.
To control the magnitude of the binary layer outputs, the quantized weights are scaled according to
w ˜ b = γ N in w b , γ = 0.25 ,
where N in is the number of input features in the corresponding layer and γ is the fixed scaling coefficient. This scaling preserves the binary sign representation while controlling the magnitude of the effective weights used during forward computation.
The latent full-precision parameters are preserved during optimization and updated by the optimizer. Because the sign operation in Equation (1) is non-differentiable, a clipped straight-through estimator (STE) is adopted during backpropagation. Its surrogate derivative is defined in Equation (3):
g BNN ( w ) = 1 , | w | ≤ 1 , 0 , | w | > 1 .
The gradient with respect to the latent full-precision weight is therefore approximated as
∂ L ∂ w ≈ γ N in ∂ L ∂ w ˜ b g BNN ( w ) ,
where L denotes the training loss. According to Equation (4), gradients are propagated to the latent weights only within the interval [ − 1 , 1 ] .
To maintain the latent full-precision weights within the active region of the clipped STE, the weights are constrained to the interval [ − 1 , 1 ] after each optimizer update. The clipping operation is expressed as
w ← clip ( w , − 1 , 1 ) .
This constraint ensures that the latent weights remain within the region where the selected surrogate gradient is nonzero. Together with the layer-dependent binary weight scaling, the clipping operation supports stable gradient-based optimization of the BNN.
For the TNN, each latent full-precision weight w is quantized during the forward pass to the ternary set { − 1 , 0 , + 1 } according to Equation (6):
w t = + 1 , w > Δ , 0 , | w | ≤ Δ , − 1 , w < − Δ ,
where w t denotes the ternary weight and Δ is the ternarization threshold. In this work, Δ is fixed at 0.05. As in the binary model, the latent parameters remain in full precision during optimization, whereas only the quantized weights defined by Equation (6) participate in the forward computation.
Because the ternary quantization function in Equation (6) is non-differentiable, its exact derivative cannot be directly used for gradient-based optimization. Surrogate-gradient approximations are therefore employed during backpropagation. In general, the gradient with respect to the latent full-precision weight is approximated as
∂ L ∂ w ≈ ∂ L ∂ w t g ( w ) ,
where g ( w ) denotes the selected surrogate-gradient function. The surrogate formulations evaluated in this work and the corresponding parameter study are described in the following subsection.
All neural-network models are implemented in PyTorch (version 2.11.0) [48]. Numerical processing and data handling are performed in Python (version 3.12.13) using NumPy (version 2.4.4) and Pandas (version 3.0.2) [49,50]. The ANN, BNN, and TNN implementations share the same network architecture, data-processing procedure, and basic training hyperparameters. The quantized models employ representation-specific optimization procedures, including scaled binary weights and latent-weight clipping for the BNN and threshold-aware surrogate gradients for the TNN.

2.3. Surrogate-Gradient Training for the TNN

Because the ternary quantization defined in Equation (6) is non-differentiable, surrogate-gradient functions are required to enable gradient-based optimization of the latent full-precision weights. In this work, seven surrogate-gradient formulations were evaluated under identical network architecture and training conditions. The complete mathematical definitions, parameter ranges, and detailed comparison of these seven formulations are provided in Supplementary Section S1.
Based on this evaluation, the smooth threshold-window surrogate was selected for the subsequent TNN training. This formulation concentrates gradient propagation around the two ternary transition boundaries at w = ± Δ and is defined as
g STW ( w ) = max max 1 − | w − Δ | r , 0 , max 1 − | w + Δ | r , 0 ,
where r controls the width of the gradient-support region around each ternarization threshold. In this work, r = 0.7 is used for the subsequent TNN training.
The gradient with respect to the latent full-precision weight is approximated according to Equation (9):
∂ L ∂ w ≈ ∂ L ∂ w t g STW ( w ) ,
where L denotes the training loss. During the forward pass, the latent weights are quantized according to Equation (6), while Equation (9) is used during backpropagation to update the latent parameters.

2.4. Ternary Encoding and Crossbar Mapping

To evaluate the hardware implications of different neural weight representations, the trained networks are mapped onto crossbar arrays composed of two-state SiNW memristive devices. Two implementation strategies are considered, as illustrated in Figure 2. The ANN reference is mapped using an 8-bit quantized bit-sliced representation, as shown in Figure 2a, whereas the TNN directly exploits its discrete weight set { − 1 , 0 , + 1 } through a pair of positive and negative crossbar arrays, as shown in Figure 2b.
Figure 2. Neural-network mapping onto two-state silicon nanowire memristive crossbars. (a) Bit-sliced 8-bit ANN implementation. (b) Direct differential TNN implementation. (c) Ternary weight encoding using the LRS and HRS device states. Each logical ternary weight is represented by two memristive devices. In particular, the zero state is implemented using an HRS/HRS pair, whose conductance contributions cancel under ideal differential readout.
For the TNN, each ternary weight is represented by the differential conductance of two corresponding cells located in the positive and negative arrays, as illustrated in Figure 2c. Since the SiNW memristive device provides two experimentally accessible resistance states, namely the low-resistance state (LRS) and high-resistance state (HRS), the three ternary weight values are encoded through different combinations of these two states. The conductance assigned to the positive array is defined as
G i j + = G LRS , W t , i j = + 1 , G HRS , W t , i j = 0 or − 1 ,
while the conductance assigned to the negative array is
G i j − = G LRS , W t , i j = − 1 , G HRS , W t , i j = 0 or + 1 .
According to Equations (10) and (11), a positive ternary weight is represented by an LRS cell in the positive array and an HRS cell in the negative array. A negative weight uses the opposite configuration. For a zero weight, both corresponding cells are programmed to the HRS. The three effective synaptic states can therefore be expressed as
( + 1 , 0 , − 1 ) ⟷ ( G LRS , G HRS ) , ( G HRS , G HRS ) , ( G HRS , G LRS ) ,
where each ordered pair denotes the conductance states in the positive and negative arrays, respectively.
The effective synaptic contribution is determined by the differential conductance
Δ G i j = G i j + − G i j − .
Using the mappings defined in Equations (10) and (11), Equation (13) gives
Δ G i j = + ( G LRS − G HRS ) , W t , i j = + 1 , 0 , W t , i j = 0 , − ( G LRS − G HRS ) , W t , i j = − 1 .
Thus, the normalized differential conductance reproduces the ternary weight according to
W t , i j = G i j + − G i j − G LRS − G HRS .
Equation (15) shows that three effective synaptic weights can be obtained using only the two physical resistance states of the SiNW device. In particular, the zero state does not require an additional intermediate conductance level. Instead, it results from equal HRS conductances in the positive and negative arrays, whose contributions cancel under ideal differential readout.
For an input vector x , the crossbar computation of a ternary layer is expressed as
y = α G + x − G − x + b ,
where G + and G − are the positive and negative conductance matrices, respectively, b denotes the bias term, and α represents the scaling factor that converts the differential conductance response to the numerical weight scale used by the neural network.
In contrast, the ANN reference requires a higher-precision hardware representation. The trained ANN weights are quantized to 8-bit values and decomposed into binary bit planes. For an unsigned magnitude represented using N bits, the quantized value can be written as
q i j = ∑ k = 0 N − 1 2 k B i j , k + − B i j , k − ,
where B i j , k + and B i j , k − denote the positive and negative binary components of the kth bit plane. Each binary component is mapped to a separate two-state crossbar slice. Therefore, an N-bit signed representation requires N positive and N negative arrays for each weight matrix.
For the adopted 8-bit ANN representation, the number of physical crossbar arrays required per layer is consequently
N array , ANN = 2 N = 16 , N = 8 ,
whereas the ternary representation requires only
N array , TNN = 2 ,
corresponding to one positive and one negative array. Therefore, the TNN representation reduces the number of crossbar arrays required for each weight matrix from 16 in the adopted 8-bit ANN mapping to 2, while remaining compatible with the two physical resistance states provided by the SiNW memristive device.

2.5. Experimentally Informed Hardware Modeling

The neural-network mappings described in Section 2.4 were implemented using the CrossSim simulation framework [51]. CrossSim was used to reproduce the matrix–vector multiplication performed by the memristive crossbar and to incorporate experimentally derived device characteristics and system-level non-idealities.
For a fully connected layer, the input features were mapped along the crossbar rows and the output neurons along the columns. The accumulated current at column j is expressed as
I j = ∑ i = 1 N in V i G i j ,
where V i is the voltage corresponding to the input activation, G i j is the programmed cell conductance, and I j is the resulting column current. For the differential representation used for signed weights, the positive and negative crossbar outputs are combined according to
I j diff = I j + − I j − .
The experimentally characterized resistance range of the SiNW device was used to define the two physical memory states in CrossSim. The corresponding conductance limits were obtained from
G min = 1 R max , G max = 1 R min .
A maximum crossbar size of 1024 × 1024 was used for both ANN and TNN implementations. Since the weight matrices of all three fully connected layers were smaller than this limit, no additional partitioning was required due to crossbar dimensions.
The initial CrossSim simulations were performed under idealized device and peripheral conditions to verify the consistency between the digital network and its crossbar implementation. Programming variability, conductance drift, ADC/DAC quantization, and parasitic interconnect resistance were subsequently introduced to evaluate the influence of hardware non-idealities.
Programming variability was modeled using experimentally obtained deviations between the intended and programmed SiNW conductance states. The measured error distributions were incorporated directly into the CrossSim device model so that the programmed conductance of each synaptic element reflected the experimentally observed variability rather than an ideal deterministic state.
Temporal conductance drift was characterized from repeated time-dependent measurements of the programmed SiNW states. The measured currents were normalized to their initial values, and the resulting temporal behavior was used to construct the conductance-drift model employed in CrossSim. The detailed experimental characterization and the extracted drift behavior are presented in the Section 3.3.2.
System-level non-idealities were evaluated by introducing finite-resolution DAC and ADC models together with parasitic interconnect resistance. The DAC determines the discretization of the input signal applied to the crossbar, whereas the ADC quantizes the resulting crossbar output. Different converter resolutions and operating ranges were evaluated to determine their influence on inference accuracy. Parasitic row and column resistances were also included to assess voltage-drop effects within the crossbar.
The effects of these non-idealities were examined in dedicated analyses. Programming variability and finite-resolution DAC/ADC conversion were then combined in the hardware model used for device-aware training and the final evaluation at the initial programming condition. Conductance drift was evaluated separately as a time-dependent inference effect, and parasitic resistance was omitted from training after its negligible effect was established over the investigated range.

2.6. Device-Aware Training

To improve the robustness of the TNN against experimentally observed hardware non-idealities, device-aware training was performed by incorporating the SiNW-based hardware model into the training procedure. Instead of optimizing the network only under ideal ternary quantization, the forward computation was evaluated using the non-ideal crossbar representation described in Section 2.5. This allows the latent full-precision weights to adapt to the distortions introduced by the physical device and peripheral circuitry.
During the forward pass, the latent full-precision weights were first quantized to the ternary set according to Equation (6). The resulting ternary weights were then mapped to the SiNW crossbar representation defined in Section 2.4. Experimentally derived programming variability and finite-resolution DAC/ADC quantization were incorporated into the hardware-aware forward computation. The training was performed at the initial programming condition ( t = 0 ), while the influence of subsequent conductance drift and parasitic interconnect resistance was investigated separately.
In the customized CrossSim implementation, synchronizing the updated ternary weights with the analog cores reprogrammed the conductance matrices and resampled programming errors. Training therefore exposed the network to different programming-error realizations. The converter configuration was fixed at a 6-bit DAC and a 4-bit ADC, with a DAC input range of ± 32 and an ADC output range of ± 1 . These ranges represent dimensionless numerical bounds used by the CrossSim quantization models, rather than physical voltages or currents.
The backward pass retained the surrogate-gradient training strategy described in Section 2.3. In particular, the smooth threshold-window surrogate in Equation (8) with r = 0.7 was used to propagate gradients through the non-differentiable ternary quantization operation. The latent full-precision parameters were subsequently updated by the optimizer, while the ternary weights were regenerated from the updated latent weights during each forward pass.
ADC/DAC quantization and clipping were included in the hardware-aware forward computation, whereas backpropagation used approximate linear gradients for the analog matrix operations rather than a separate converter-specific gradient estimator.
The device-aware training procedure can therefore be summarized as
W → W t → H ( W t ) → L ,
where W denotes the latent full-precision weights, W t represents the ternary weights obtained from Equation (6), H ( · ) denotes the hardware-aware forward model, and L is the training loss. During backpropagation, the gradients with respect to the latent weights are approximated using the surrogate-gradient formulation defined in Equation (9).
Device-aware training retained the same network architecture, Adam optimizer, learning rate of 10 − 4 , and random seed of 42, while using a batch size of 64 and 26 training epochs. The resulting improvement in inference accuracy under hardware non-idealities is presented in the Section 3.5.

3. Results and Discussion

3.1. Accuracy Enhancement Through Ternary Weight Encoding

To assess the effect of low-state synaptic representations independently of network topology, the full-precision ANN, BNN, and TNN were evaluated using the same 784 → 256 → 128 → 10 architecture, dataset, and basic training hyperparameters, while employing representation-specific quantization and optimization procedures. The full-precision ANN achieved a test accuracy of 98% on MNIST, establishing the reference performance against which the quantized implementations were evaluated.
Restricting the synaptic weights to the binary set { − 1 , + 1 } resulted in a reduction in classification performance, with the BNN reaching a test accuracy of 80.45%.
This result reflects the constraints associated with binary weight representation, in which each synaptic connection is restricted to either a positive or negative contribution without an intermediate or inactive state. Although binary networks can achieve high classification accuracy with appropriate training strategies, their performance remains sensitive to weight quantization, gradient approximation, and optimization conditions.
The corresponding training evolution, including the loss characteristics and layer-wise weight behavior, is provided in Figure S2.
For the TNN, the non-differentiability of the ternary quantization function required the use of surrogate gradients during backpropagation. Seven surrogate-gradient formulations were evaluated under identical network architecture and optimization conditions. Their complete mathematical definitions, parameter sweeps, and detailed comparative results are provided in Supplementary Figures S3–S6. The comparison in Figure 3 shows that the choice of surrogate function influences both optimization stability and the organization of the latent full-precision weights prior to ternarization.
Figure 3. Comparison of MNIST test accuracy obtained using different surrogate-gradient formulations for the ternary neural network after 100 training epochs. (a) Test accuracy for the evaluated surrogate-gradient configurations, ranked from highest to lowest. (b) Best test accuracy achieved within each surrogate-gradient family, together with the baseline result. The dashed horizontal lines indicate the full-precision ANN reference accuracy of 98.0%. Detailed definitions and parameter sweeps are provided in the Supplementary Materials.
Among the evaluated formulations, the Smooth Threshold-Window surrogate with r = 0.7 was selected for the final TNN implementation.
Although the Scaled STE achieved a higher test accuracy (94.36%) than the Smooth Threshold-Window surrogate (93.78%) in the reported comparison, the latter was retained as the investigated threshold-aware training strategy because its gradient support is explicitly concentrated around the ternary transition boundaries. This choice reflects the mathematical formulation of the surrogate rather than a demonstrated advantage in peak classification accuracy.
The final TNN trained using this surrogate achieved a test accuracy of 93.78%, recovering most of the performance of the full-precision ANN despite restricting the forward weights to only three discrete states.
The comparative training behavior and final classification performance of the ANN, BNN, and TNN are summarized in Figure 4. As shown in Figure 4a, the full-precision ANN exhibits the lowest training loss, as expected from its unconstrained continuous parameter space. Both quantized models converge to higher loss values because their forward computations are restricted to discrete weight representations. The BNN operates with two discrete weight states, whereas the TNN introduces an additional zero-valued state, allowing individual synaptic contributions to be suppressed. These differences in weight representation, together with the corresponding surrogate-gradient optimization strategies, influence the convergence behavior and resulting classification performance of the two quantized models.
Figure 4. Comparison of the full-precision ANN, binary neural network (BNN), and ternary neural network (TNN). (a) Training-loss evolution. (b) Final MNIST test accuracy, with the full-precision ANN shown as the reference. (c) Layer-wise weight characteristics, including the average absolute weight magnitude of the ANN and the relative populations of the discrete weight states in the BNN and TNN.
The corresponding test accuracies are shown in Figure 4b. While the ANN achieves 98.00% classification accuracy, the BNN reaches 80.45%, and the TNN achieves 93.78%. The ternary representation therefore provides an improvement of 13.33 percentage points over the binary implementation under the investigated network architecture and training conditions.
The additional zero state increases the flexibility of the low-precision weight representation by allowing individual synapses to contribute positively, negatively, or remain effectively inactive. In contrast, binary encoding restricts each connection to either a positive or negative contribution. This additional representational flexibility, combined with the selected surrogate-gradient optimization strategy, enables the TNN to preserve a larger fraction of the full-precision ANN performance.
Nevertheless, the observed accuracy difference depends on the investigated architecture and training configurations and should not be interpreted as an intrinsic performance limit of binary neural networks.
The differences between the three representations are also evident from their learned weight distributions, as shown in Figure 4c. The ANN retains continuously distributed weights whose amplitudes can be adjusted throughout training. The BNN represents the weights using two discrete signs, with a fixed scaling factor applied within each layer. Consequently, individual synaptic connections retain positive or negative contributions but cannot independently represent zero-valued weights or continuous weight magnitudes. In the TNN, the learned representation is instead distributed among − 1 , 0, and + 1 , with a substantial fraction of weights assigned to the zero state. The resulting sparsity provides a mechanism for suppressing low-contribution connections while preserving the positive and negative synaptic contributions required for classification.
This behavior can be observed more directly from the spatial organization of the weight matrices in Figure 5. The ANN matrices exhibit continuously varying values, whereas the BNN matrices contain only the two binary states. The TNN matrices contain three clearly separated states, with the zero-valued weights forming sparse regions throughout the layers. These distributions show that the TNN retains a substantial population of zero-valued connections alongside positive and negative weights.
Figure 5. Layer-wise weight matrices for the ANN, BNN, and TNN. The ANN exhibits continuous-valued weights, the BNN is restricted to the two states − 1 and + 1 , and the TNN uses the three-state representation − 1 , 0, and + 1 . The zero state introduces sparsity while preserving positive and negative synaptic contributions.
Taken together, the TNN improves accuracy by 13.33 percentage points over the BNN and reduces the gap to the full-precision ANN from 17.55 to 4.22 percentage points under the investigated architecture and training configurations. The improvement reflects the combined effects of ternary representation and the selected optimization strategy and should not be interpreted as an intrinsic performance difference between binary and ternary networks.
The reported TNN accuracy reflects the investigated fixed-threshold ternary MLP and surrogate-gradient training configuration. More advanced ternary optimization strategies, including learned layer-wise scaling, normalization, and adaptive thresholds, may achieve higher accuracy and alter the resulting accuracy–hardware trade-off. Accordingly, the present comparison should not be interpreted as an optimal performance bound for ternary networks.
The subsequent hardware analysis examines how this ternary representation maps to the two-state SiNW platform.

3.2. Crossbar Implementation and Hardware Complexity

Following the algorithm-level comparison, the subsequent hardware analysis focused on the full-precision ANN reference and the TNN, which represent two distinct operating points in the trade-off between classification performance and hardware complexity.
The BNN was included as an algorithm-level low-precision reference to examine the influence of restricting synaptic weights to two discrete states. The hardware-level investigation instead concentrates on comparing the higher-precision bit-sliced ANN implementation with the differential ternary representation developed for the experimentally characterized two-state SiNW devices.
According to the mapping strategies described in Section 2.4, the ANN was implemented using an 8-bit bit-sliced differential representation, whereas the TNN was mapped directly using paired positive and negative crossbar arrays.
Before introducing device-level non-idealities, the fidelity of both mapping strategies was evaluated under ideal CrossSim conditions. The comparison between the original PyTorch models and their ideal crossbar implementations showed no measurable loss in classification accuracy. The ANN retained its 98% test accuracy, while the TNN preserved an accuracy of 93.78%. The corresponding confusion matrices and reconstructed weight representations are provided in Figures S7–S10. The unchanged test accuracies support the consistency of the adopted mappings at the classification level. The following analyses therefore use these ideal CrossSim results as baselines for quantifying the effects of the modeled hardware non-idealities.
The difference between the two implementations becomes more significant when the physical cost of representing their weights is considered. In the ANN, each 8-bit weight is decomposed into eight binary bit planes, and each bit plane is represented differentially using separate positive and negative conductance arrays. As a result, a single ANN layer requires 16 crossbar arrays. An example of this bit-sliced implementation for the third fully connected layer is shown in Figure 6. The corresponding bit-sliced mappings for the first and second fully connected layers are provided in Supplementary Figures S11 and S12, respectively.
Figure 6. Bit-sliced conductance mapping of the third ANN layer. Each 8-bit weight is decomposed into eight binary slices, with separate positive and negative conductance arrays used for differential representation of each bit plane.
The TNN, in contrast, maps its three logical weight states directly onto a differential pair of binary-state conductance arrays. Positive and negative ternary weights are represented through opposite LRS/HRS combinations, whereas zero-valued weights are implemented using HRS/HRS pairs, producing zero effective differential conductance under ideal conditions while retaining two physical devices per logical weight. The resulting implementation therefore requires only two crossbar arrays per layer, as illustrated in Figure 7.
Figure 7. Differential conductance mapping of the TNN layers. Positive and negative ternary weights are stored in separate crossbar arrays, while the effective weight matrix is obtained from their differential contribution.
This difference in representation produces a substantial reduction in crossbar-array and device requirements while preserving most of the classification performance of the full-precision model. As summarized in Figure 8, the ANN achieves 98% accuracy, whereas the TNN reaches 93.78%, corresponding to a reduction of only 4.22 percentage points. In return, the number of required crossbar arrays decreases by a factor of eight relative to the adopted 8-bit differential bit-sliced ANN mapping. Across the three fully connected layers, the 8-bit ANN requires 48 arrays in total, compared with only 6 arrays for the TNN.
Figure 8. Accuracy–hardware complexity comparison between the 8-bit ANN and TNN crossbar implementations. (a) Classification accuracy under ideal crossbar conditions. (b) Number of crossbar arrays required per layer. (c) Memristive-device requirements for individual layers and the complete network. (d) Estimated peripheral-circuit requirements under the adopted shared-peripheral architecture.
The reduction in array count is directly reflected in the number of memristive devices required to implement the network. The ANN requires approximately 3.76 million memristive cells, whereas the TNN requires approximately 4.70 × 10 5 cells. Thus, the ternary representation reduces the device count by approximately 87.5% relative to the 8-bit ANN implementation. This reduction arises because the TNN eliminates the repeated bit-sliced replicas needed to represent multi-bit weight magnitude while retaining only the positive, negative, and zero synaptic contributions required by the network.
For peripheral-resource accounting, the reported ADC estimates assume one nominal conversion resource per differential array pair, yielding 24 resources for the 8-bit ANN and 3 for the TNN across the three layers. These counts represent a simplified architectural sharing assumption; physical column multiplexing, conversion scheduling, and ADC circuit implementation are not explicitly modeled.
The reduced number of arrays may also lower the requirements for DAC channels, sensing circuits, multiplexing resources, and control logic, depending on the adopted peripheral-sharing architecture. However, the eightfold reduction reported here applies specifically to the logical crossbar-array and memristive-device counts under the adopted mapping assumptions and does not directly imply an equivalent reduction in total chip area or inference energy. The overall hardware area additionally depends on DAC/ADC implementation, sensing circuitry, interconnects, buffers, and control logic, while inference energy is influenced by device conductance, operating voltage, conversion frequency, data movement, and peripheral-circuit activity. For the investigated gigaohm-scale SiNW devices, the relatively small crossbar currents may reduce conductive losses but introduce additional requirements for sensitive readout circuitry. Consequently, quantitative area and energy comparisons require a specific circuit-level architecture and are beyond the scope of the present study.
These results highlight the central trade-off introduced by ternary weight encoding. The 8-bit ANN preserves the highest classification accuracy, but representing its multi-bit weights on binary-state SiNW devices requires extensive bit slicing and differential replication. Under the adopted mapping scheme, the TNN trades a 4.22-percentage-point accuracy difference for an eightfold reduction in logical array and device counts. Importantly, this reduction is achieved without any measurable mapping-induced accuracy loss under ideal CrossSim conditions. The ternary representation therefore provides a substantially more compact interface between the trained neural network and the binary-state SiNW hardware, while retaining classification performance close to that of the full-precision model.

3.3. Impact of SiNW Device Non-Idealities

The previous results correspond to the ideal CrossSim implementation, where all device-level and system-level non-idealities were disabled. To evaluate the practical feasibility of implementing the TNN using experimentally characterized silicon nanowire memristive devices, the extracted device characteristics were incorporated into the custom APM SiNW SBFET CrossSim model described in the Section 2.5. The impact of realistic hardware imperfections, including programming variability and conductance deviations, was subsequently evaluated during TNN inference.

3.3.1. Programming Variability

The influence of programming variability was evaluated using conductance statistics extracted directly from the experimentally characterized SiNW device. The measured resistance distributions yielded average values of R min = 1.41 × 10 9 Ω and R max = 4.43 × 10 9 Ω , corresponding to nominal conductance states of G LRS = 0.709 nS and G HRS = 0.225 nS at a read voltage of V read = 1 V . These experimentally determined states were used as the target conductance levels for the subsequent hardware-aware simulations.
The distributions used to construct the programming-variability model are summarized in Figure 9. The measured HRS and LRS populations are shown in Figure 9a, while repeated I–V sweeps used to quantify cycle-to-cycle variation are presented in Figure 9b. Conductance values extracted at V read = 1 V provide the actual programmed-state distributions shown in Figure 9c. The corresponding deviation of each programmed state from its nominal target value was then used to construct the programming-error statistics shown in Figure 9d–f.
Figure 9. Experimental characterization used to derive the programming-variability model of the SiNW device. (a) Measured HRS and LRS distributions together with the extracted nominal conductance states. (b) Fifty repeated current–voltage sweeps used to characterize cycle-to-cycle variability. (c) Conductance distributions extracted at V read = 1 V . (d) Relative programming-error distributions, including systematic mean offsets and stochastic variability around those means. (e) Absolute conductance-error distributions. (f) Conductance deviations referenced to the nominal target states. The extracted statistics were incorporated into the custom SiNW CrossSim device model.
Rather than assuming deterministic programming to the nominal HRS and LRS values, the experimentally derived error statistics were incorporated into the custom CrossSim device model. During inference, the conductance assigned to each programmed synaptic element was therefore perturbed according to the measured state-dependent variability. In this way, the simulated crossbar preserves the experimentally observed mismatch between the requested conductance state and the conductance actually realized by the device.
The implementation of the custom programming-error model was additionally checked against the reference silicon–oxide–nitride–oxide–silicon (SONOS) model available in CrossSim, as shown in Supplementary Figure S13. The agreement in the expected programming-error behavior confirmed that the experimentally derived SiNW variability could be introduced within the CrossSim framework without altering the underlying mapping procedure.
The effect of this variability on TNN inference is summarized in Figure 10. Under ideal CrossSim conditions, the TNN retained the same 93.78% accuracy obtained in the original digital implementation. For the reference programming-error realization (seed = 42), the accuracy decreased to 92.56%, corresponding to a reduction of 1.22 percentage points relative to the ideal CrossSim baseline.
Figure 10. Effect of experimentally derived programming variability on TNN inference. (a) Classification accuracy of the digital TNN, ideal CrossSim implementation, and programming-aware CrossSim model. (b) Layer-wise comparison of the ideal mapped weights, the effective weights after programming variability is applied, and the corresponding element-wise differences.
To assess the statistical sensitivity of this result to stochastic device programming, an additional Monte Carlo analysis was performed using 30 independently sampled programming-error realizations while retaining the same trained TNN weights and experimentally calibrated SiNW device model. ADC/DAC quantization, conductance drift, read noise, and parasitic resistance were disabled to isolate the influence of programming variability. The resulting mean classification accuracy was 92.80%, with a sample standard deviation of 0.20 percentage points, corresponding to an average accuracy reduction of 0.98 percentage points relative to the ideal CrossSim accuracy of 93.78%. The observed accuracies ranged from 92.40% to 93.16%, encompassing the original single-realization result of 92.56%. These findings indicate that the accuracy degradation associated with experimentally derived programming variability remains relatively limited across the investigated realizations. The corresponding accuracy distribution is presented in Supplementary Figure S14.
This relatively limited reduction indicates that the ternary implementation remains robust to the experimentally observed spread in the programmed SiNW conductance states. Although the effective conductance assigned to an individual synapse deviates from its nominal value, the network maintains most of its ideal inference performance. The result is consistent with the discrete nature of the ternary representation, for which the intended synaptic information is encoded primarily through the positive, negative, and inactive states rather than through finely resolved conductance amplitudes.
The corresponding weight perturbations are visualized in Figure 10b. In contrast to the ideal mapping case, the difference matrices are no longer identically zero, confirming that programming variability modifies the effective synaptic weights realized by the crossbar. These deviations accumulate across the network and account for the observed reduction in classification accuracy. Nevertheless, the decrease from 93.78% to 92.56% remains modest relative to the magnitude of the device-level variability, indicating that the differential ternary mapping is comparatively tolerant to the experimentally measured programming uncertainty of the SiNW platform.

3.3.2. Conductance Drift

The temporal evolution of the SiNW conductance states was characterized experimentally for both the ON and OFF states and subsequently incorporated into the hardware-aware device model. Distinct drift behaviors were observed for the two states, requiring separate analytical descriptions.
For the ON state, the measured current evolution is summarized in Supplementary Figure S15. The current exhibited a gradual and consistent time-dependent evolution across devices and measurement cycles, despite differences in the absolute current levels. To isolate the underlying temporal behavior, each current trace was normalized to its initial value. The normalized data were well described by a power-law dependence,
I ON ( t ) = I 0 1 + t t 0 a ,
where I 0 denotes the initial current, t 0 = 1 s is a normalization constant, and a is the drift exponent. Fitting the fifteen ON-state measurements yielded a mean exponent of
a mean = 0.0258
with a standard deviation of
σ a = 0.0029 .
The relatively narrow distribution of the fitted exponents indicates that, after normalization, the ON-state measurements exhibit a consistent temporal trend across the investigated devices and cycles.
The OFF state showed a qualitatively different temporal response. As illustrated in Figure S16, the normalized current initially decreased and was subsequently followed by a gradual recovery. A larger spread between individual measurements was also observed compared with the ON state. Because this non-monotonic behavior could not be adequately represented by a single power-law expression, a two-component exponential model was adopted:
I OFF ( t ) = I 0 1 + A 1 − e − t / τ 1 + B 1 − e − t / τ 2 ,
where A and B describe the amplitudes of the two temporal components and τ 1 and τ 2 are their corresponding time constants. Fitting the fifteen OFF-state measurements produced a distribution of parameter sets, reflecting the experimentally observed device-to-device and cycle-to-cycle variation. The mean fitted parameters were
A = − 0.429 , τ 1 = 16.5 s ,
and
B = 0.631 , τ 2 = 196.9 s .
The fitted models reproduced the measured temporal behavior with low error. The mean normalized root-mean-square error was approximately 1% for the ON state and approximately 2% for the OFF state, indicating that the selected analytical expressions provide an adequate representation of the experimentally observed short-term drift.
To preserve the statistical variability measured experimentally, the drift parameters were incorporated into the custom SiNW CrossSim model probabilistically rather than through a single deterministic trajectory. For the ON state, the exponent a was sampled from the experimentally fitted distribution. For the OFF state, one of the experimentally extracted parameter sets ( A , τ 1 , B , τ 2 ) was selected for each modeled realization. This implementation retains the measured variation among devices and cycles while reproducing the distinct temporal behavior of the two conductance states.
The resulting model is compared with the experimental measurements in Figure 11. For the ON state, the simulated trajectories closely follow the normalized experimental curves and reproduce the measured spread around the mean response. A similar agreement is obtained for the OFF state, where the model captures both the initial decrease and the subsequent recovery observed experimentally. These results confirm that the implemented CrossSim model reproduces the measured drift behavior within the investigated time interval.
Figure 11. Validation of the CrossSim drift model against experimental measurements. (a) ON-state comparison between the measured normalized current traces, randomly sampled model realizations, and the mean fitted response. (b) Corresponding comparison for the OFF state, including the experimentally observed initial decrease and subsequent recovery behavior.
The influence of conductance drift on TNN inference was subsequently evaluated over retention times ranging from t = 0 to 100 s . In contrast to programming variability, which perturbs the conductance state at the time of programming, drift continuously modifies the effective synaptic conductance as a function of elapsed time. The resulting classification accuracy is shown in Figure 12a.
Figure 12. Effect of experimentally derived conductance drift on TNN inference over the investigated 0–100 s interval. (a) Classification accuracy as a function of elapsed time after programming. Relative drift-induced weight variations are shown for (b) Layer 1, (c) Layer 2, and (d) Layer 3.
Within the investigated interval, the TNN accuracy remains confined to a relatively narrow range of approximately 92.6–93.4%. No monotonic decrease is observed in this particular simulated trajectory; instead, small fluctuations occur as the stochastic drift of individual conductance states alters the effective synaptic weights. Because these deviations can either increase or decrease individual weight errors relative to their nominal values, the aggregate network accuracy exhibits modest temporal variation rather than a uniform downward trend.
The corresponding layer-wise weight changes are shown in Figure 12b–d. Increasing elapsed time produces distributed modifications across all three network layers, confirming that the effective weight matrices evolve after programming. Nevertheless, these conductance changes remain sufficiently limited over the measured 0–100 s interval that the classification performance is largely preserved. Additional analyses of drift-induced conductance variations, conductance distributions, and layer-wise drift statistics for the positive and negative cores at different retention times are provided in Figures S17–S19.
Overall, the experimentally calibrated drift model introduces only modest variations in TNN performance over the measured short-term interval. The classification accuracy remains approximately within 92.6–93.4% despite the continuous evolution of the ON- and OFF-state conductances. These results indicate that the ternary crossbar implementation is relatively tolerant to the measured short-term conductance drift of the SiNW devices. The present analysis is limited to the experimentally investigated 0–100 s interval and does not imply device behavior at longer retention times.

3.4. Impact of Peripheral and Interconnect Non-Idealities

3.4.1. ADC/DAC Quantization

After establishing the programming-variability-aware TNN accuracy of 92.56%, the influence of peripheral quantization was examined by introducing finite-resolution DAC and ADC blocks into the CrossSim inference flow. In this analysis, both the converter resolution and the associated operating ranges were varied in order to determine a configuration that retains the highest inference accuracy among the evaluated converter configurations.
The QuantizerDAC and QuantizerADC models were employed to represent finite-resolution input and output conversion through numerical quantization and clipping. These models allow the effects of converter resolution and operating range to be investigated without assuming a specific physical converter circuit or its associated non-idealities.
The results of this study are summarized in Figure 13. A clear distinction is observed between the two evaluated DAC resolutions. As shown in Figure 13a, the 4-bit DAC configuration does not preserve satisfactory inference performance under any of the investigated operating conditions. Even for the best combination of ADC resolution and range, the achieved classification accuracy remains below 50%, indicating that the corresponding input quantization is too coarse to preserve the information required for reliable TNN inference.
Figure 13. ADC/DAC parameter sweep for the TNN implementation. (a) Classification accuracy obtained using a 4-bit DAC under different ADC resolutions, ADC ranges, and input ranges. (b) Corresponding results for a 6-bit DAC. (c) Comparison of the best-performing candidate configurations. (d) Accuracy degradation relative to the programming-error baseline. (e) Confusion-matrix comparison for the digital TNN, ideal CrossSim implementation, and the optimized ADC/DAC configuration.
In contrast, the 6-bit DAC results shown in Figure 13b demonstrate a substantial improvement across all tested settings. Under this higher DAC resolution, the effect of ADC resolution becomes more clearly distinguishable. Increasing the ADC resolution from 2 bits to 4 bits consistently improves classification accuracy, confirming that insufficient output quantization also contributes significantly to the loss of inference fidelity. On this basis, the 4-bit ADC was selected for the subsequent operating-range optimization.
The relative sensitivity to DAC and ADC resolution can be further illustrated using configurations with identical operating ranges. At a fixed 6-bit DAC resolution, an input range of ± 32 , and an ADC range of ± 1 , increasing the ADC resolution from 2 to 3 and 4 bits improved classification accuracy from 35.85% to 69.27% and 81.14%, respectively. Conversely, at a fixed 4-bit ADC resolution and the same operating ranges, increasing DAC resolution from 4 to 6 bits improved accuracy from 11.17% to 81.14%. These results demonstrate that both input and output quantization can substantially influence inference accuracy. However, because the DAC and ADC were jointly quantized in this parameter study, the observed differences reflect conditional resolution sensitivity rather than independently isolated accuracy penalties. The two effects also depend on the selected operating ranges, which govern the trade-off between quantization precision and signal clipping.
Once the DAC and ADC resolutions were fixed at 6 bits and 4 bits, respectively, the influence of the input range and ADC range was analyzed in greater detail. Three high-performing candidate configurations, all using an ADC range of ± 1 and differing only in the selected input range, were compared in Figure 13c. Among these candidates, the highest accuracy among the evaluated cases was obtained using a 6-bit DAC, a 4-bit ADC, an input range of ± 32 , and an ADC range of ± 1 . This configuration yielded a TNN classification accuracy of 81.14%.
The selected peripheral configuration therefore introduces a reduction in accuracy from 92.56% to 81.14%, corresponding to a degradation of 11.42 percentage points relative to the programming-error-only baseline, as summarized in Figure 13d. This loss is substantially larger than the degradation previously observed from programming variability alone, indicating that converter quantization constitutes the dominant source of performance degradation among the hardware non-idealities investigated in this work.
The confusion matrices in Figure 13e further illustrate the impact of peripheral quantization. Compared with both the digital TNN baseline and the ideal CrossSim implementation, the optimized ADC/DAC-limited configuration exhibits a clear increase in off-diagonal entries, demonstrating that quantization noise introduces additional classification errors across multiple digit classes. These results indicate that, although the ternary representation remains relatively robust to device-level programming variability, the discretization imposed by the peripheral interface has a much stronger effect on the effective analog computation.
Overall, the ADC/DAC analysis shows that converter resolution and operating range must be co-optimized to preserve acceptable inference accuracy in the SiNW-based TNN implementation. While the selected configuration of a 6-bit DAC, a 4-bit ADC, an input range of ± 32 , and an ADC range of ± 1 provides the best performance among the evaluated cases, it still imposes a substantial accuracy penalty. This outcome identifies ADC/DAC quantization as the principal accuracy-limiting factor within the set of peripheral and device non-idealities considered here.

3.4.2. Parasitic Resistance

The influence of parasitic interconnect resistance was evaluated using equal row and column segment resistances ( R p , row = R p , col ) of 0, 0.01, 0.1, 1, and 10 Ω , with a maximum configured crossbar size of 1024 × 1024 . The corresponding TNN classification accuracy is summarized in Figure S20. No measurable accuracy degradation was observed, and the inference performance remained essentially unchanged at approximately 92.56%.
This limited sensitivity can be attributed to the electrical characteristics of the SiNW devices, which operate at gigaohm-scale resistance and nanosiemens-scale conductance. The resulting crossbar currents are therefore sufficiently small that the voltage drops introduced by the investigated interconnect resistances remain negligible relative to the device voltage. Under these device and array conditions, parasitic-resistance-induced distortion does not appreciably modify the effective synaptic weights or the resulting network output. This behavior represents a useful characteristic of the present SiNW platform: because both programmed states remain in the gigaohm-scale resistance regime, interconnect–voltage–drop effects are strongly suppressed under the investigated array conditions.
Accordingly, interconnect voltage-drop effects were considered negligible within the investigated range, and parasitic resistance was set to R p = 0 in the subsequent simulations to avoid unnecessary computational overhead.

3.5. Accuracy Recovery Through Device-Aware Training

The preceding analyses identified the cumulative effect of the experimentally informed hardware non-idealities on the ternary crossbar implementation. As summarized in Figure 14, the digital TNN and its ideal CrossSim realization both achieved an accuracy of 93.78%, confirming that the proposed differential mapping preserves the algorithmic performance under ideal hardware conditions. When experimentally extracted programming variability was introduced, the accuracy decreased only slightly to 92.56%, indicating that the ternary representation is relatively robust to device-level conductance perturbations. In contrast, the inclusion of finite-resolution DAC/ADC conversion reduced the accuracy to 81.14%, establishing converter quantization as the dominant source of degradation in the present hardware configuration. The combined programming-variability and converter-quantization configuration yielded 81.14% accuracy at t = 0 . Parasitic resistance produced no measurable additional accuracy loss over the investigated range; conductance drift was assessed separately.
Figure 14. Cumulative impact of the investigated hardware non-idealities on TNN inference accuracy, including ideal crossbar mapping, experimentally extracted programming variability, optimized ADC/DAC quantization, and parasitic interconnect resistance. The dashed horizontal line indicates the digital TNN baseline accuracy of 93.78%.
To compensate for this loss, device-aware training was performed by incorporating the experimentally calibrated hardware model directly into the training loop. The hardware-aware forward computation includes programming variability and the selected 6-bit DAC/4-bit ADC configuration at the initial programming condition. The optimization thus adapts the latent weights to these modeled distortions; conductance drift and parasitic resistance are not included in the training loop.
The training and test-accuracy behavior of the device-aware TNN is shown in Figure S21, and the final recovery result is summarized in Figure 15. After device-aware optimization, the non-ideal hardware accuracy increased from 81.14% to 93.68%, corresponding to a recovery of 12.54 percentage points. The reported 93.68% corresponds to the final programmed hardware realization after optimization and is 0.10 percentage points below the digital TNN reference. It was not averaged over independent post-training reprogramming trials. The 30-realization Monte Carlo analysis in Section 3.3.1 concerns the original TNN with converter quantization disabled and does not establish the statistical performance of the device-aware model.
Figure 15. Accuracy recovery obtained through device-aware training of the SiNW-based TNN under experimentally informed hardware non-idealities. The final accuracy corresponds to one programmed realization at t = 0 with programming variability and 6-bit DAC/4-bit ADC quantization.
Further insight into this adaptation is provided by the weight distributions shown in Figure 16. For each network layer, the left column shows the latent full-precision weights optimized during training, the middle column shows the corresponding ternary weights obtained after quantization, and the right column shows the effective analog weights after mapping onto the SiNW hardware model. These three representations together illustrate how the network reorganizes its parameters in response to the hardware constraints.
Figure 16. Layer-wise weight distributions after device-aware training. The left column shows the latent full-precision weights, the middle column shows the corresponding ternary weights after quantization, and the right column shows the effective analog weights after mapping to the SiNW hardware model.
The latent-weight distributions reveal that the optimization process does not simply reproduce the original digitally trained solution. Instead, the full-precision shadow weights are reshaped so that, after ternarization, the resulting discrete weight states are better aligned with the non-ideal analog implementation. The ternary distributions retain the desired low-state structure of { − 1 , 0 , + 1 } , confirming that the recovery is achieved without increasing the number of logical synaptic states.
These results demonstrate substantial recovery of the accuracy lost to programming variability and converter quantization for the evaluated hardware realization. The recovery is achieved while retaining the ternary weight set and the same two-state differential mapping. This supports hardware-aware optimization as a compensation strategy within the modeled conditions.

3.6. Discussion, Limitations, and Outlook

The results demonstrate that ternary weight encoding provides a practical means of increasing the effective synaptic representation capability of a two-state SiNW memristive platform without introducing an additional physical conductance state. Compared with the adopted 8-bit differential bit-sliced ANN implementation, the TNN mapping reduces the number of required crossbar arrays from 16 to 2 per layer, while maintaining a test accuracy close to that of the full-precision reference. This trade-off arises because the ternary representation preserves positive, negative, and inactive synaptic contributions while avoiding the bit-sliced replication required for multi-bit weight storage.
The hardware analysis also reveals how the intrinsic electrical characteristics of the SiNW device influence system-level behavior. The relatively limited separation between the HRS and LRS states constrains the available conductance window, while the use of only two reproducible nonvolatile states limits the intrinsic weight resolution of an individual device. At the same time, the gigaohm-scale resistance of the SiNW devices results in very small crossbar currents.
This reduces interconnect voltage-drop effects under the investigated conditions. Separately, the numerical converter models show that quantization and clipping under the selected bit widths and operating ranges produce the largest accuracy loss among the modeled non-idealities. However, these small currents also introduce practical sensing challenges, including the potential influence of thermal, shot, and low-frequency ( 1 / f ) noise, as well as the trade-off between sensing precision and integration time. These readout-dependent effects are not explicitly modeled in the present simulations and require further circuit-level evaluation.
Beyond these modeled effects, the fixed-conductance MVM approximation does not capture the measured voltage-dependent I–V nonlinearity or explicitly account for sneak-path currents in selectorless arrays. Although the Schottky-contact structure may influence current rectification, evaluating these effects requires further device- and circuit-level analysis under specified array-bias and readout conditions.
Several limitations of the present study should be considered. First, although the device model is derived from experimentally measured SiNW characteristics, the neural-network inference is evaluated using an experimentally informed CrossSim framework rather than a fully integrated physical crossbar prototype. Second, the conductance-drift analysis is restricted to the experimentally investigated interval of 0–100 s and therefore does not establish long-term retention behavior. Third, the present evaluation is based on the MNIST dataset and a fully connected neural-network architecture, and the scalability of the proposed encoding strategy to larger and more complex networks remains to be investigated. Fourth, the final device-aware accuracy represents a single programmed realization, and its variation across independent post-training reprogramming trials remains unquantified. The network results also rely on a single training seed, while the exploratory surrogate and peripheral-parameter comparisons used test-set accuracy. Consequently, the reported operating points have not been independently validated through a separate model-selection procedure. Finally, the peripheral circuits are represented at the system level, and a complete circuit-level analysis of area, energy consumption, and conversion overhead is outside the scope of the present work. Therefore, the reported eightfold reduction should be interpreted as a reduction in logical array and memristive-device requirements under the adopted mapping scheme, rather than as a demonstrated eightfold improvement in total hardware area or inference energy. Furthermore, intermediate-precision quantized ANNs, including 2-, 3-, and 4-bit implementations, may provide alternative accuracy–hardware trade-offs. A systematic comparison against these representations under consistent hardware-mapping and optimization conditions remains an important direction for future work.
Despite these limitations, the proposed encoding principle is not inherently restricted to the SiNW platform. In principle, the same differential ternary representation can be applied to other nonvolatile memristive technologies that provide two reproducible and sufficiently distinguishable conductance states. For convolutional networks, the differential encoding can in principle be applied to kernel weights. However, array partitioning, kernel reuse, input buffering, and partial-sum accumulation must be specified before system-level hardware savings can be quantified. Future work will address these architectural requirements, independent post-training variability assessment, longer retention intervals, and circuit-level evaluation of energy, area, and peripheral overhead.

4. Conclusions

This work investigated hardware-aware ternary neural networks implemented using experimentally characterized two-state silicon nanowire memristive crossbars, focusing on hardware-induced accuracy degradation and its recovery through device-aware training. Measured conductance characteristics, programming variability, and short-term drift informed the CrossSim model, while numerical converter models and interconnect parasitics were evaluated to identify the principal accuracy limitations under the investigated conditions. The contribution lies in connecting the measured SiNW behavior to crossbar-level evaluation and hardware-aware optimization.
The digital TNN achieved 93.78% accuracy on MNIST, compared with 98% for the full-precision ANN. Under the adopted mapping scheme, the TNN required two logical crossbar arrays per layer instead of sixteen for the 8-bit bit-sliced ANN, yielding an eightfold reduction in array and device counts. Programming variability and the selected 6-bit DAC/4-bit ADC configuration reduced the simulated TNN accuracy to 81.14%. Device-aware training at the initial programming condition increased this accuracy to 93.68%, recovering 12.54 percentage points for the evaluated final hardware realization without adding physical conductance states.
These results support differential ternary encoding and hardware-aware optimization as a feasible approach for the investigated two-state SiNW platform. The final recovered accuracy represents a single programmed realization, and the drift analysis is limited to 0–100 s. Physical crossbar integration, independent post-training variability assessment, and broader network evaluation remain necessary to establish statistical robustness and system-level performance. The reported array and device savings do not constitute a measured reduction in total circuit area or inference energy.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/technologies14120783/s1, Section S1: Ternary Surrogate-Gradient Optimization; Figure S2: Training results of the binary neural network (BNN) on the MNIST dataset; Figure S3: TNN surrogate-gradient training comparison; Figure S4: Extended surrogate-gradient training comparison; Figure S5: Surrogate-gradient parameter sensitivity; Figure S6: Selected TNN surrogate-gradient candidates; Figure S7: Ideal CrossSim accuracy validation; Figure S8: Ideal CrossSim confusion matrices; Figure S9: ANN weight-mapping validation; Figure S10: TNN weight-mapping validation; Figure S11: Bit-sliced conductance mapping of FC1; Figure S12: Bit-sliced conductance mapping of FC2; Figure S13: Programming-error model validation; Figure S14: Statistical evaluation of programming-induced accuracy variability; Figure S15: ON-state conductance drift; Figure S16: OFF-state conductance drift; Figure S17: Conductance drift in FC1; Figure S18: Conductance drift in FC2; Figure S19: Conductance drift in FC3; Figure S20: Effect of parasitic resistance; Figure S21: Device-aware training.

Author Contributions

Conceptualization, A.P.M. and J.C.; methodology, J.C. and A.X.; software, A.P.M., J.C. and A.P.M.; validation, A.P.M. and J.C.; formal analysis, A.P.M. and J.C.; investigation, A.P.M. and J.C.; resources, S.C. and A.L.; data curation, A.P.M.; writing—original draft preparation, A.P.M. and J.C.; writing—review and editing, A.X., A.L. and S.C.; visualization, A.P.M.; supervision, A.L. and S.C.; project administration, S.C.; funding acquisition, S.C. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Swiss National Science Foundation through the SNSF project in-Memory Sensing and co-supported by the European project SENSOTERIC, with direct funding from the Swiss State Secretariat for Education, Research and Innovation (SEFRI).

Data Availability Statement

The experimental silicon nanowire device data, analysis and simulation scripts, and trained neural-network models supporting this study are available at https://github.com/APMaii/DeviceAware-Ternary-Crossbar, accessed on 9 November 2026. The customized CrossSim framework used in this work, including trainable ternary layers and custom device models, is available at https://github.com/APMaii/cross-sim-TNN, accessed on 9 November 2026.

Conflicts of Interest

The authors declare no conflicts of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.

References

  1. Ielmini, D.; Wong, H.S.P. In-memory computing with resistive switching devices. Nat. Electron. 2018, 1, 333–343. [Google Scholar] [CrossRef] [Scilit]
  2. Sebastian, A.; Le Gallo, M.; Khaddam-Aljameh, R.; Eleftheriou, E. Memory devices and applications for in-memory computing. Nat. Nanotechnol. 2020, 15, 529–544. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  3. Zou, X.; Xu, S.; Chen, X.; Yan, L.; Han, Y. Breaking the von Neumann bottleneck: Architecture-level processing-in-memory technology. Sci. China Inf. Sci. 2021, 64, 160404. [Google Scholar] [CrossRef] [Scilit]
  4. Goma, S. Beyond von Neumann: Fundamental limitations of current compute architectures for real-time image processing. In Proceedings of the Real-time Processing of Image, Depth, and Video Information 2025; SPIE: Bellingham, WA, USA, 2025; Volume 13526, pp. 34–41. [Google Scholar]
  5. Kudithipudi, D.; Schuman, C.; Vineyard, C.M.; Pandit, T.; Merkel, C.; Kubendran, R.; Aimone, J.B.; Orchard, G.; Mayr, C.; Benosman, R.; et al. Neuromorphic computing at scale. Nature 2025, 637, 801–812. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  6. Schuman, C.D.; Kulkarni, S.R.; Parsa, M.; Mitchell, J.P.; Date, P.; Kay, B. Opportunities for neuromorphic computing algorithms and applications. Nat. Comput. Sci. 2022, 2, 10–19. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  7. Verma, N.; Jia, H.; Valavi, H.; Tang, Y.; Ozatay, M.; Chen, L.Y.; Zhang, B.; Deaville, P. In-memory computing: Advances and prospects. IEEE Solid-State Circuits Mag. 2019, 11, 43–55. [Google Scholar] [CrossRef] [Scilit]
  8. Prezioso, M.; Merrikh-Bayat, F.; Hoskins, B.D.; Adam, G.C.; Likharev, K.K.; Strukov, D.B. Training and operation of an integrated neuromorphic network based on metal-oxide memristors. Nature 2015, 521, 61–64. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  9. Li, C.; Hu, M.; Li, Y.; Jiang, H.; Ge, N.; Montgomery, E.; Zhang, J.; Song, W.; Dávila, N.; Graves, C.E.; et al. Analogue signal and image processing with large memristor crossbars. Nat. Electron. 2018, 1, 52–59. [Google Scholar] [CrossRef] [Scilit]
  10. Sun, Z.; Pedretti, G.; Ambrosi, E.; Bricalli, A.; Wang, W.; Ielmini, D. Solving matrix equations in one step with cross-point resistive arrays. Proc. Natl. Acad. Sci. USA 2019, 116, 4123–4128. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  11. Sun, Z.; Pedretti, G.; Bricalli, A.; Ielmini, D. One-step regression and classification with cross-point resistive memory arrays. Sci. Adv. 2020, 6, eaay2378. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  12. Zidan, M.A.; Jeong, Y.; Lee, J.; Chen, B.; Huang, S.; Kushner, M.J.; Lu, W.D. A general memristor-based partial differential equation solver. Nat. Electron. 2018, 1, 411–420. [Google Scholar] [CrossRef] [Scilit]
  13. Lin, J.; Barrows, F.; Caravelli, F. Memristive linear algebra. Phys. Rev. Res. 2025, 7, 023241. [Google Scholar] [CrossRef] [Scilit]
  14. Le Gallo, M.; Sebastian, A.; Mathis, R.; Manica, M.; Giefers, H.; Tuma, T.; Bekas, C.; Curioni, A.; Eleftheriou, E. Mixed-precision in-memory computing. Nat. Electron. 2018, 1, 246–253. [Google Scholar] [CrossRef] [Scilit]
  15. Ambrogio, S.; Narayanan, P.; Tsai, H.; Shelby, R.M.; Boybat, I.; Di Nolfo, C.; Sidler, S.; Giordano, M.; Bodini, M.; Farinha, N.C.; et al. Equivalent-accuracy accelerated neural-network training using analogue memory. Nature 2018, 558, 60–67. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  16. Lin, P.; Li, C.; Wang, Z.; Li, Y.; Jiang, H.; Song, W.; Rao, M.; Zhuo, Y.; Upadhyay, N.K.; Barnell, M.; et al. Three-dimensional memristor circuits as complex neural networks. Nat. Electron. 2020, 3, 225–232. [Google Scholar] [CrossRef] [Scilit]
  17. Yao, P.; Wu, H.; Gao, B.; Tang, J.; Zhang, Q.; Zhang, W.; Yang, J.J.; Qian, H. Fully hardware-implemented memristor convolutional neural network. Nature 2020, 577, 641–646. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  18. Wan, W.; Kubendran, R.; Schaefer, C.; Eryilmaz, S.B.; Zhang, W.; Wu, D.; Deiss, S.; Raina, P.; Qian, H.; Gao, B.; et al. A compute-in-memory chip based on resistive random-access memory. Nature 2022, 608, 504–512. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  19. Song, M.K.; Kang, J.H.; Zhang, X.; Ji, W.; Ascoli, A.; Messaris, I.; Demirkol, A.S.; Dong, B.; Aggarwal, S.; Wan, W.; et al. Recent advances and future prospects for memristive materials, devices, and systems. ACS Nano 2023, 17, 11994–12039. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  20. Yang, J.J.; Strukov, D.B.; Stewart, D.R. Memristive devices for computing. Nat. Nanotechnol. 2013, 8, 13–24. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  21. Prodromakis, T.; Toumazou, C. A review on memristive devices and applications. In Proceedings of the 2010 17th IEEE International Conference on Electronics, Circuits and Systems; IEEE: Piscataway, NJ, USA, 2010; pp. 934–937. [Google Scholar]
  22. Zhang, Y.; Wang, Z.; Zhu, J.; Yang, Y.; Rao, M.; Song, W.; Zhuo, Y.; Zhang, X.; Cui, M.; Shen, L.; et al. Brain-inspired computing with memristors: Challenges in devices, circuits, and systems. Appl. Phys. Rev. 2020, 7, 011308. [Google Scholar] [CrossRef] [Scilit]
  23. Donahue, C.; Merkel, C.; Saleh, Q.; Dolgovs, L.; Ooi, Y.K.; Kudithipudi, D.; Wysocki, B. Design and analysis of neuromemristive echo state networks with limited-precision synapses. In Proceedings of the 2015 IEEE Symposium on Computational Intelligence for Security and Defense Applications (CISDA); IEEE: Piscataway, NJ, USA, 2015; pp. 1–6. [Google Scholar]
  24. Huang, W.; Xia, X.; Zhu, C.; Steichen, P.; Quan, W.; Mao, W.; Yang, J.; Chu, L.; Li, X. Memristive artificial synapses for neuromorphic computing. Nano-Micro Lett. 2021, 13, 85. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  25. Kim, S.G.; Han, J.S.; Kim, H.; Kim, S.Y.; Jang, H.W. Recent advances in memristive materials for artificial synapses. Adv. Mater. Technol. 2018, 3, 1800457. [Google Scholar] [CrossRef] [Scilit]
  26. Sacchetto, D.; Doucey, M.A.; De Micheli, G.; Leblebici, Y.; Carrara, S. New insight on bio-sensing by nano-fabricated memristors. BioNanoScience 2011, 1, 1–3. [Google Scholar] [CrossRef] [Scilit]
  27. Chen, J.; Meibody, A.P.; Carrara, S. A Neuromorphic Front-End based on Memristive Biosensors for Risk Pre-Screening by Pulse-Encoded Signals. IEEE Sens. J. 2026. [Google Scholar] [CrossRef] [Scilit]
  28. Bhardwaj, K.; Golparvar, A.; Chen, J.; Barbruni, G.L.; Carrara, S. New insights into the i/v hysteretic characteristics of memristive biosensors. IEEE Sens. Lett. 2023, 7, 1500904. [Google Scholar] [CrossRef] [Scilit]
  29. Zhang, Y.; Cui, M.; Shen, L.; Zeng, Z. Memristive quantized neural networks: A novel approach to accelerate deep learning on-chip. IEEE Trans. Cybern. 2019, 51, 1875–1887. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  30. Chang, S.E.; Li, Y.; Sun, M.; Shi, R.; So, H.K.H.; Qian, X.; Wang, Y.; Lin, X. Mix and match: A novel fpga-centric deep neural network quantization framework. In Proceedings of the 2021 IEEE International Symposium on High-Performance Computer Architecture (HPCA); IEEE: Piscataway, NJ, USA, 2021; pp. 208–220. [Google Scholar]
  31. Huang, W.; Qin, H.; Liu, Y.; Liang, J.; Zhang, Y.; Li, Y.; Liu, X. On-chip hardware-aware quantization for mixed precision neural networks. arXiv 2023, arXiv:2309.01945. [Google Scholar]
  32. Mohd, B.J.; Ahmad Yousef, K.M.; AlMajali, A.; Hayajneh, T. Quantization-based optimization algorithm for hardware implementation of convolution neural networks. Electronics 2024, 13, 1727. [Google Scholar] [CrossRef] [Scilit]
  33. Yuan, C.; Agaian, S.S. A comprehensive review of Binary Neural Network: C. Yuan, SS Agaian. Artif. Intell. Rev. 2023, 56, 12949–13013. [Google Scholar]
  34. Sayed, R.; Azmi, H.; Shawkey, H.; Khalil, A.H.; Refky, M. A systematic literature review on binary neural networks. IEEE Access 2023, 11, 27546–27578. [Google Scholar] [CrossRef] [Scilit]
  35. Alemdar, H.; Leroy, V.; Prost-Boucle, A.; Pétrot, F. Ternary neural networks for resource-efficient AI applications. In Proceedings of the 2017 International Joint Conference on Neural Networks (IJCNN); IEEE: Piscataway, NJ, USA, 2017; pp. 2547–2554. [Google Scholar]
  36. Mellempudi, N.; Kundu, A.; Mudigere, D.; Das, D.; Kaul, B.; Dubey, P. Ternary neural networks with fine-grained quantization. arXiv 2017, arXiv:1705.01462. [Google Scholar]
  37. Li, F.; Liu, B.; Wang, X.; Zhang, B.; Yan, J. Ternary weight networks. arXiv 2016, arXiv:1605.04711. [Google Scholar]
  38. Zhu, C.; Han, S.; Mao, H.; Dally, W.J. Trained ternary quantization. arXiv 2016, arXiv:1612.01064. [Google Scholar]
  39. Xiao, T.P.; Feinberg, B.; Bennett, C.H.; Prabhakar, V.; Saxena, P.; Agrawal, V.; Agarwal, S.; Marinella, M.J. On the accuracy of analog neural network inference accelerators. IEEE Circuits Syst. Mag. 2023, 22, 26–48. [Google Scholar] [CrossRef] [Scilit]
  40. Ly, D.R.; Grossi, A.; Fenouillet-Beranger, C.; Nowak, E.; Querlioz, D.; Vianello, E. Role of synaptic variability in resistive memory-based spiking neural networks with unsupervised learning. J. Phys. D Appl. Phys. 2018, 51, 444002. [Google Scholar] [CrossRef] [Scilit]
  41. Filippeschi, G.; Brazzini, M.; Mosquera, C.; Lanuzza, M.; Catania, A.; Strangio, S.; Iannaccone, G. Hardware-Aware Model Design and Training of Silicon-based Analog Neural Networks. IEEE J. Emerg. Sel. Top. Circuits Syst. 2026, 16, 752–762. [Google Scholar] [CrossRef] [Scilit]
  42. Zhao, X.; Wang, T.; Mao, B.; Cheng, R.; Wang, H.; Chang, S. Mems-GCN: An algorithm-circuit co-optimization approach for memristive graph convolutional networks. Neurocomputing 2026, 705, 134928. [Google Scholar] [CrossRef] [Scilit]
  43. Morell, A.; Machado, E.D.; Miranda, E.; Boquet, G.; Vicario, J.L. Ternary neural networks based on on/off memristors: Set-up and training. Electronics 2022, 11, 1526. [Google Scholar] [CrossRef] [Scilit]
  44. Youn, S.; Hwang, Y.; Kim, T.H.; Kim, S.; Hwang, H.; Park, J.; Kim, H. Threshold learning algorithm for memristive neural network with binary switching behavior. Neural Netw. 2024, 176, 106355. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  45. Wang, X.; Li, Z.; Li, X.L.; Li, H.; Liu, J.; Iu, H.H.; Kang, S.M. Ternary quantitative neural network implemented with tri-valued memristors. Cogn. Neurodyn. 2026, 20, 75. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  46. Chen, J.; Bhardwaj, K.; Carrara, S. Role of the oxide in memristive quasi-1D silicon nanowires. Nanoscale 2025, 17, 8660–8671. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  47. LeCun, Y.; Cortes, C.; Burges, C.J. MNIST Handwritten Digit Database. AT&T Labs, 2010. Available online: http://yann.lecun.com/exdb/mnist (accessed on 7 September 2026).
  48. Paszke, A.; Gross, S.; Massa, F.; Lerer, A.; Bradbury, J.; Chanan, G.; Killeen, T.; Lin, Z.; Gimelshein, N.; Antiga, L.; et al. PyTorch: An imperative style, high-performance deep learning library. In Advances in Neural Information Processing Systems 32; Curran Associates, Inc.: Red Hook, NY, USA, 2019; pp. 8024–8035. [Google Scholar]
  49. Harris, C.R.; Millman, K.J.; van der Walt, S.J.; Gommers, R.; Virtanen, P.; Cournapeau, D.; Wieser, E.; Taylor, J.; Berg, S.; Smith, N.J.; et al. Array programming with NumPy. Nature 2020, 585, 357–362. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  50. McKinney, W. Data Structures for Statistical Computing in Python. In Proceedings of the 9th Python in Science Conference; van der Walt, S., Millman, J., Eds.; SciPy: Austin, TX, USA, 2010; pp. 56–61. [Google Scholar] [CrossRef] [Scilit]
  51. Feinberg, B.; Xiao, T.P.; Brinker, C.J.; Bennett, C.H.; Marinella, M.J.; Agarwal, S. CrossSim: Accuracy Simulation of Analog In-Memory Computing. Available online: https://github.com/sandialabs/cross-sim (accessed on 7 September 2026).
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.