Tiny but Accurate: A Pruned, Quantized and Optimized Memristor Crossbar Framework for Ultra Efficient DNN Implementation

Xiaolong Ma, Geng Yuan, Sheng Lin, Caiwen Ding, Fuxun Yu, Tao Liu, Wujie Wen, Xiang Chen, Yanzhi Wang

This paper, titled "Tiny but Accurate: A Pruned, Quantized and Optimized Memristor Crossbar Framework for Ultra Efficient DNN Implementation," presents a co-design approach to squeeze massive Deep Neural Networks (DNNs) into tiny, energy-efficient memristor hardware.

TL;DR

The authors propose a unified framework that combines structured weight pruning and 8-bit quantization using the ADMM optimization algorithm, specifically tailored for memristor crossbar arrays. By introducing a novel "Network Purification" step to remove redundant hardware paths, they achieve up to 231x compression on MNIST and significant area/power reductions on ImageNet-scale models with negligible accuracy loss.

What Problem Does This Paper Address?

As DNNs grow in complexity, traditional CMOS-based hardware (like CPUs and GPUs) struggles with the "memory wall"—the energy and time wasted moving data between processors and memory. Memristor crossbars offer a solution by performing "in-memory computing." They can execute Matrix-Vector Multiplication (MVM)—the core operation of DNNs—in the analog domain with $O(1)$ time complexity.

However, memristors face two major hurdles:

  1. Hardware Constraints: They suffer from process variations, state drift, and limited precision (finite conductance states).
  2. Inefficient Pruning: Standard pruning algorithms often leave "zombie" weights—weights that aren't zeroed out but don't contribute to the final output because their data paths are effectively dead. This wastes physical crossbar space and power.

Methods

The authors developed a software-hardware co-optimization framework consisting of three main pillars:

  • ADMM-based Structured Pruning: They use the Alternating Direction Method of Multipliers (ADMM) to solve the non-convex optimization problem of pruning. Unlike "irregular" pruning (which removes random weights), they focus on structured pruning (removing entire filters or channels). This is crucial because it allows for the physical removal of rows and columns in the memristor crossbar.
  • P-RM (Network Purification & Unused Path Removal): The authors discovered that ADMM alone isn't optimal. They designed a post-processing algorithm that identifies "unused paths." For example, if a filter in Layer $i$ is pruned, the corresponding input channel in Layer $i+1$ becomes useless. P-RM identifies these dependencies and purifies the network further.
  • Distillation Quantization: To map weights to the limited discrete states of a memristor (8-bit representation), they use Knowledge Distillation. A high-accuracy "teacher" model guides the training of the "student" (the quantized memristor model) to ensure that reducing precision doesn't tank the accuracy.

Datasets

The framework was evaluated on standard benchmarks:

  • MNIST: Using the LeNet-5 architecture.
  • CIFAR-10: Using ConvNet, VGG-16, and ResNet-18.
  • ImageNet (ILSVRC-2012): Using AlexNet, ResNet-18, and ResNet-50.

Key Insights and Ideas

  • The "Unused Path" Discovery: The most significant "aha moment" is the realization that pruning a filter in one layer creates a "blank" feature map, which makes certain weights in the next layer redundant. Standard algorithms miss this hardware-level optimization.
  • Quantization as a Feature, Not a Bug: While quantization is usually seen as a sacrifice, the authors argue that 8-bit memristor weights actually help mitigate hardware imprecision (like state drift) by providing wider margins between conductance levels.
  • Structured is Mandatory: For memristors, irregular pruning is almost useless because you can't "shrink" a crossbar if only random cells are removed. Structured pruning is the only way to achieve actual area and power savings.

Key Results

The results demonstrate that you can have your cake and eat it too (high compression + high accuracy):

  • Massive Compression: On MNIST, they achieved a 231.82x prune ratio with only a 0.4% drop in accuracy.
  • ImageNet Performance: For ResNet-18 on ImageNet, they achieved a 3.33x prune ratio with 88.36% Top-5 accuracy (nearly identical to the original).
  • Hardware Savings: On CIFAR-10 (ResNet-18), the P-RM method reduced the total crossbar area from 0.235 $mm^2$ to 0.042 $mm^2$ and slashed power consumption from 3.359W to 0.585W compared to a non-purified pruned model.
  • Quantization Robustness: Moving from 32-bit software weights to 8-bit memristor weights resulted in almost zero additional accuracy loss across most models.

Limitations and Future Work

  • Simulation-Based: The hardware results (area/power) are derived from NVSim, a circuit-level simulator. While NVSim is a standard tool, physical validation on a fabricated memristor chip would be the next logical step to account for real-world noise.
  • Fixed Crossbar Size: The study assumes a fixed crossbar block size (e.g., 128x64). Future work could explore how varying the physical granularity of the crossbars impacts the efficiency of the P-RM algorithm.
  • Peripheral Circuitry: While the crossbar itself is efficient, the power consumption of ADCs (Analog-to-Digital Converters) remains a significant portion of the total power budget, a common bottleneck in analog computing that this paper acknowledges but doesn't fully solve.

Summary updated

BibTeX
@inproceedings{ma2020tiny,
  author = {Xiaolong Ma and Geng Yuan and Sheng Lin and Caiwen Ding and Fuxun Yu and Tao Liu and Wujie Wen and Xiang Chen and Yanzhi Wang},
  title = {{Tiny but Accurate: A Pruned, Quantized and Optimized Memristor Crossbar Framework for Ultra Efficient DNN Implementation}},
  booktitle = {ASP-DAC},
  year = {2020},
  doi = {10.1109/asp-dac47756.2020.9045658},
}
Figure