Efficient and self-adaptive in-situ learning in multilayer memristor neural networks

Can Li, Daniel Belkin, Yunning Li, Peng Yan, Miao Hu, Ning Ge, Hao Jiang, Eric Montgomery, Peng Lin, Zhongrui Wang, Wenhao Song, John Paul Strachan, Mark Barnell, Qing Wu, R. Stanley Williams, J. Joshua Yang, Qiangfei XiaNature Communications 2018

Abstract

Memristors with tunable resistance states are emerging building blocks of artificial neural networks. However, in situ learning on a large-scale multiple-layer memristor network has yet to be demonstrated because of challenges in device property engineering and circuit integration. Here we monolithically integrate hafnium oxide-based memristors with a foundry-made transistor array into a multiple-layer neural network. We experimentally demonstrate in situ learning capability and achieve competitive classification accuracy on a standard machine learning dataset, which further confirms that the training algorithm allows the network to adapt to hardware imperfections. Our simulation using the experimental parameters suggests that a larger network would further increase the classification accuracy. The memristor neural network is a promising hardware platform for artificial intelligence with high speed-energy efficiency.

TL;DR

Researchers have successfully demonstrated a multilayer memristor neural network capable of "in-situ" learning—training directly on the hardware rather than just running pre-trained weights. By monolithically integrating hafnium oxide (HfO2) memristors with a standard CMOS transistor array, the team created a self-adaptive system that achieves 91.71% accuracy on MNIST digit recognition, even when 11% of the hardware components are defective.

The Challenge: In-Situ Learning vs. Hardware Imperfections

While deep learning has revolutionized AI, running these models on traditional Von Neumann architectures (CPUs/GPUs) is energy-intensive because data must constantly move between the processor and memory. Memristor "crossbars" offer a solution by performing "in-memory computing," where the memory devices themselves perform matrix-vector multiplication using physical laws like Ohm’s Law and Kirchhoff’s Law.

However, moving from theory to physical hardware is difficult. Real-world memristors suffer from "imperfections": device non-uniformity, resistance instability, and "stuck" devices that won't change state. Most previous demonstrations were limited to small arrays or "ex-situ" learning (where the network is trained on a computer and then weights are loaded onto the chip). This paper tackles the challenge of in-situ learning—training the network on the actual, imperfect hardware so the algorithm can "learn" to compensate for those very defects.

Hardware Integration and Linear Tuning

The authors developed a hybrid hardware-software system featuring a 128 × 64 array of Ta/HfO2/Pt memristors monolithically integrated onto a foundry-made CMOS transistor array. They utilized a "1T1R" (one transistor, one memristor) configuration to ensure precise control over individual devices.

Hierarchical view of the memristor-transistor array from wafer scale to atomic layers.

A key innovation is their "two-pulse" programming scheme. By using the series transistor to control the compliance current, they achieved highly linear and symmetric conductance tuning—a critical requirement for effective memristive training.

Conductance tuning characteristics showing linear and symmetric response across the 8k device array.

The system uses Stochastic Gradient Descent (SGD) for training. In this demonstration, the forward pass (inference) happens on the memristor hardware, while error calculation and backpropagation are handled in software. Each synaptic weight is represented by the difference between two memristors, allowing for both positive and negative weights.

Results: Robustness and Accuracy

The system was benchmarked using the MNIST dataset of handwritten digits. Because the hardware array was 128 x 64, the original 28x28 images were downsampled to 8x8 pixels. The network achieved 91.71% accuracy on the test set.

The most significant insight is the self-adaptive nature of in-situ learning. When the network is trained on the chip, it treats hardware defects (like the 11% of memristors found to be unresponsive) simply as part of the environment. The remaining functional memristors adjust their values to compensate. The paper shows that while ex-situ training accuracy plummets as defect rates rise, in-situ training remains robust even when 50% of devices are stuck.

Limitations and Future Work

While the inference and weight updates happened on hardware, the backpropagation was still performed in software. Future versions will require on-chip peripheral circuits to handle the full training loop. Additionally, scaling to larger arrays (like a proposed 1024 x 512 array) is necessary to handle higher-resolution data and overcome parasitic wire resistance, which remains a primary engineering challenge for scaling to "Deep Learning" sizes.

Summary updated

BibTeX
@inproceedings{li2018efficient,
  author = {Can Li and Daniel Belkin and Yunning Li and Peng Yan and Miao Hu and Ning Ge and Hao Jiang and Eric Montgomery and Peng Lin and Zhongrui Wang and Wenhao Song and John Paul Strachan and Mark Barnell and Qing Wu and R. Stanley Williams and J. Joshua Yang and Qiangfei Xia},
  title = {{Efficient and self-adaptive in-situ learning in multilayer memristor neural networks}},
  booktitle = {Nature Communications},
  year = {2018},
  doi = {10.1038/s41467-018-04484-2},
}
Figure