Abstract
A resistive memory device-based computing architecture is one of the promising platforms for energy-efficient Deep Neural Network (DNN) training accelerators. The key technical challenge in realizing such accelerators is to accumulate the gradient information without a bias. Unlike the digital numbers in software which can be assigned and accessed with desired accuracy, numbers stored in resistive memory devices can only be manipulated following the physics of the device, which can significantly limit the training performance. Therefore, additional techniques and algorithm-level remedies are required to achieve the best possible performance in resistive memory device-based accelerators. In this paper, we analyze asymmetric conductance modulation characteristics in RRAM by Soft-bound synapse model and present an in-depth analysis on the relationship between device characteristics and DNN model accuracy using a 3-layer DNN trained on the MNIST dataset. We show that the imbalance between up and down update leads to a poor network performance. We introduce a concept of symmetry point and propose a zero-shifting technique which can compensate imbalance by programming the reference device and changing the zero value point of the weight. By using this zero-shifting method, we show that network performance dramatically improves for imbalanced synapse devices.
Introduction
Conventional computing architectures face the "von Neumann bottleneck," where the energy cost of moving data between memory and processing units limits performance. Resistive cross-point arrays, utilizing RRAM or memristors, offer a path toward "In-Memory Computing." These arrays can execute massive vector-matrix multiplications—the fundamental operation of deep learning—directly in the analog domain, promising significant energy efficiency gains.
However, physical RRAM devices exhibit non-ideal behaviors, most notably asymmetric conductance updates. When tuning weights, the rate of increase (potentiation) often differs from the rate of decrease (depression). In standard software training, updates are assumed to be perfectly symmetric. On hardware, this imbalance causes weights to drift, severely degrading training accuracy.
Methodology
The researchers propose a two-part solution involving a new device model and a hardware-level calibration technique.
The Soft-Bound Model and Symmetry Point
To accurately capture device behavior, the authors utilize a "Soft-Bound" model where conductance updates saturate as they approach physical limits.
A critical discovery is the Symmetry Point ($w_{sym}$): the conductance level where the magnitude of an "up" pulse matches a "down" pulse.
Zero-Shifting Technique
Instead of attempting to manufacture perfectly linear hardware, the "zero-shifting" technique adjusts the software interpretation of hardware values. By shifting the weight range so that the neural network's logical "zero" corresponds to the device's physical symmetry point, the impact of asymmetric drift is minimized.
Hardware Implementation
The implementation utilizes two cross-point arrays: a Weight Matrix and a Reference Matrix.
- Calibration: The symmetry point of each device is identified by applying alternating pulses until conductance converges.
- Referencing: These symmetry values are copied to the Reference Matrix.
- Operation: The effective weight is calculated as the difference between the Weight and Reference arrays, centering the distribution at the logical zero.
The approach was validated using the MNIST dataset, a standard benchmark for handwritten digit recognition.
Key Insights
- Drift as a Bias: Under random updates typical of early training, RRAM devices naturally gravitate toward their symmetry point. If this point is not aligned with zero, a non-zero bias develops, hindering learning.
- Inherent Regularization: When the symmetry point is correctly aligned with zero, the natural drift acts as a form of weight decay regularization, potentially aiding generalization.
- Activation Function Sensitivity: The choice of activation function significantly impacts hardware robustness. Sigmoid functions, which only output positive values, are more vulnerable to one-sided weight drift than zero-centered Tanh functions.
Results
On the MNIST task, an ideal linear model achieved a 2.08% error rate. Raw RRAM hardware without compensation often failed to converge or resulted in high error rates due to imbalance. Applying the zero-shifting technique restored performance, achieving an error rate of 3.18%, closely approaching the ideal baseline. Furthermore, the technique proved robust against 30% device-to-device and cycle-to-cycle variations.
Conclusion
While zero-shifting effectively restores accuracy for fully-connected networks, future work is needed to assess its impact on Convolutional Neural Networks (CNNs), which may exhibit different sensitivities. Additionally, optimizing weight mapping per layer and reducing the hardware overhead of the dual-matrix approach remain key areas for development in scaling analog AI accelerators.
Summary updated