Stochastic Sparse Learning with Momentum Adaptation for Imprecise Memristor Networks

Yaoyuan Wang, Shuang Wu, Ziyang Zhang, Lei Tian, Luping ShiarXiv 2019

Stochastic Sparse Learning with Momentum Adaptation for Imprecise Memristor Networks

Introduction

Neuromorphic computing aims to emulate the brain's efficiency by performing computations where data is stored. Memristors are a leading candidate for this "in-memory computing" paradigm because they can physically represent synaptic weights through their conductance state. By arranging memristors in crossbar arrays, researchers can perform massive Multiply-Accumulate (MAC) operations—the backbone of neural networks—directly in hardware with minimal energy overhead.

Mapping a multi-layer neural network onto a memristor crossbar array for in-memory computing.

However, transitioning from theoretical models to physical hardware reveals significant hurdles. Real-world memristors are "imprecise" devices, exhibiting behaviors that deviate sharply from the ideal linear components assumed in software-based deep learning.

The Challenge of Hardware Imprecision

Training neural networks directly on-chip (on-device learning) is often thwarted by the inherent physical limitations of memristive materials. As shown in Figure 3, these "non-ideal" traits include:

  • Device-to-Device (D2D) Variation: Manufacturing tolerances mean that no two memristors have identical conductance ranges or update characteristics.
  • Pulse-to-Pulse (P2P) Variation: Stochasticity in filament formation means the same voltage pulse can result in different conductance changes at different times.
  • Non-linearity and Asymmetry: The relationship between the number of pulses and conductance change is rarely linear, and "potentiation" (increasing weight) often follows a different curve than "depression" (decreasing weight).
  • Limited Precision: Weights cannot be adjusted continuously; they change in discrete, often noisy steps.
Non-ideal characteristics of memristor devices, including non-linearity, asymmetry, and device-to-device (D2D) variations.

These factors typically lead to training instability, where the network fails to converge or reaches a plateau at unacceptably low accuracy.

The SSM Solution: Stochastic Sparse Learning with Momentum

To address these challenges, this paper proposes the Stochastic Sparse Learning with Momentum Adaptation (SSM) scheme. SSM is designed to be hardware-friendly, avoiding the need for expensive "read-before-write" operations while maintaining high performance. The scheme rests on four primary pillars:

  1. Network Re-initialization: Before training begins, a series of pulses is used to "reset" the devices into a narrower, more predictable conductance distribution. This mitigates the impact of D2D variation at the start of learning.
  2. Momentum-based SGD (m-SGD): In software, momentum helps accelerate training. In memristor hardware, it serves a more critical role as a low-pass filter. By averaging gradients over time, the system ignores the high-frequency noise of individual P2P variations, focusing on the underlying trend of the weight update.
  3. Stochastic Rounding and Sparsity: Instead of updating every weight in every iteration, SSM uses a Bernoulli-based stochastic rounding method. This results in sparse updates, where often less than 1% of the weights are modified per step. This sparsity significantly reduces the total number of programming pulses required, saving energy and extending device lifetime.
  4. Update Compensation: This optional module stabilizes weights as they approach their physical boundaries (saturation), preventing the "vanishing gradient" effect caused by hardware limits.

Key Results and Insights

The researchers evaluated SSM using a Multilayer Perceptron (MLP) on the MNIST dataset and a Convolutional Neural Network (CNN) on the Fashion-MNIST dataset. The results demonstrate a dramatic improvement over standard training methods:

  • Accuracy: For the MLP, accuracy improved from a baseline of 26.12% (standard training on imprecise hardware) to 90.07%. The CNN achieved 92.38% accuracy, comparable to software-only baselines.
  • Efficiency: The stochastic rounding approach reduced the number of programming pulses by up to 90% for the MLP. Furthermore, the networks reached peak accuracy 3x faster than standard methods.
  • Robustness: Ablation studies revealed that while P2P variation is surprisingly well-tolerated by neural networks, D2D variation and pulse precision are the most critical factors for success. SSM proved robust even when D2D variation was doubled compared to current state-of-the-art devices.

Conclusion

The SSM scheme demonstrates that hardware imprecision does not have to be a deal-breaker for neuromorphic computing. By embracing sparsity and using momentum as a noise filter, it is possible to achieve high-accuracy, energy-efficient learning on imperfect memristor networks. This work paves the way for the next generation of "brain-like" edge devices capable of learning and adapting in real-time with minimal power consumption.

Summary updated

BibTeX
@misc{wang2019stochastic,
  author = {Yaoyuan Wang and Shuang Wu and Ziyang Zhang and Lei Tian and Luping Shi},
  title = {{Stochastic Sparse Learning with Momentum Adaptation for Imprecise Memristor Networks}},
  year = {2019},
  eprint = {1906.02393},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1906.02393},
}
Figure