An Ultra-Efficient Memristor-Based DNN Framework with Structured Weight Pruning and Quantization Using ADMM

Geng Yuan, Xiaolong Ma, Caiwen Ding, Sheng Lin, Tianyun Zhang, Zeinab S. Jalali, Yilong Zhao, Li Jiang, Sucheta Soundarajan, Yanzhi Wang

TL;DR

This paper introduces a unified framework that optimizes Deep Neural Networks (DNNs) for memristor-based hardware by combining structured weight pruning and weight quantization using the ADMM optimization algorithm. The result is a massive reduction in power and area (up to 98%) with negligible accuracy loss, making high-performance AI on edge devices much more feasible.

What Problem Does This Paper Address?

Deep Neural Networks are notoriously "heavy"—they require massive amounts of computation and memory. Traditional computer architectures (Von-Neumann) struggle with this because moving data between the processor and memory consumes most of the energy.

Memristor crossbar arrays offer a solution by performing matrix-vector multiplication in the analog domain at the site of memory, theoretically achieving $O(1)$ time complexity. However, real-world memristors have significant challenges:

  1. Hardware Imperfections: Issues like "state drift" (resistance changing over time) and "process variation" (manufacturing inconsistencies) hurt accuracy.
  2. Mapping Inefficiency: Standard "irregular" pruning (removing random weights) creates sparse matrices that are hard to map onto physical crossbar hardware without massive overhead.
  3. Limited Precision: Memristors can only reliably represent a few bits of information per cell.
Memristor crossbar array and device characteristics

The authors tackle these by creating a training framework that "knows" about these hardware constraints from the start.

Methods

The core of the framework is the Alternating Direction Method of Multipliers (ADMM). ADMM is a powerful optimization tool that breaks a complex, constrained problem into smaller subproblems that can be solved iteratively.

The framework follows a three-step pipeline:

  1. ADMM-Regularized Optimization: During training, the network is pushed toward a state that satisfies hardware constraints (like having a specific number of non-zero weights or fitting into discrete quantization levels).
  2. Masked Mapping: The "zeroed" weights are physically masked out, ensuring they aren't mapped to the memristor crossbars.
  3. Retraining: The remaining non-zero weights are fine-tuned to recover any accuracy lost during the pruning and quantization steps.

Key Innovation: Structured Pruning

Instead of pruning individual weights, the authors prune entire filters or channels. In the hardware view, this means they can remove entire rows or columns of a memristor crossbar (or even skip entire crossbar blocks), which directly translates to saved silicon area and reduced power.

The workflow of structured pruning and its impact on memristor crossbar area

Datasets

The authors evaluated their framework on standard computer vision benchmarks:

  • MNIST: Using the LeNet-5 architecture.
  • CIFAR-10: Using a shallow ConvNet, VGG-16, and ResNet-18.

These datasets allowed them to demonstrate that the framework scales from simple digit recognition to deeper, more complex residual networks.

Key Insights and Ideas

  • Synergy of Pruning and Quantization: The authors found that pruning and quantization leverage different types of redundancy. By combining them, they achieved much higher compression than using either technique alone.
  • Hardware-Awareness is Key: By incorporating memristor-specific constraints—like conductance range and the mismatch between theoretical weight values and real device states—into the ADMM loop, the resulting models are inherently more "resilient" to hardware noise.
  • Structured vs. Irregular: While irregular pruning might yield higher theoretical compression on paper, structured pruning is what actually saves power and area in a memristor system because it simplifies the peripheral circuitry (like ADCs and DACs) and routing.

Key Results

The experimental results are quite striking, particularly on larger models:

  • VGG-16 (CIFAR-10): Achieved a 29.81× weight compression ratio with a 98.29% reduction in power and 97.47% reduction in area, all while losing only 0.5% accuracy.
  • ResNet-18 (CIFAR-10): Achieved a 20.88× compression ratio with a 0.76% accuracy loss.
  • LeNet-5 (MNIST): Pushed compression to an extreme 105.52× with less than 1% accuracy loss.

The authors also showed that using 5-bit quantization (32 levels) provided the best balance, as fewer bits significantly reduce the power/area of the peripheral circuits (ADCs/DACs) which often dominate the energy budget in memristor systems.

Limitations and Future Work

  • Analog Noise: While ADMM helps, the paper primarily simulates the hardware non-idealities. Real-world deployment on physical memristor chips may encounter more dynamic noise environments.
  • Crossbar Size: The study assumes a fixed crossbar size (e.g., 128x64). Future work could explore how varying the physical dimensions of the crossbar interacts with different structured pruning granularities.
  • Beyond Vision: The framework was tested on CNNs for image tasks; its effectiveness on Transformers or Recurrent Neural Networks remains an open question.

Summary updated

BibTeX
@inproceedings{yuan2019ultra,
  author = {Geng Yuan and Xiaolong Ma and Caiwen Ding and Sheng Lin and Tianyun Zhang and Zeinab S. Jalali and Yilong Zhao and Li Jiang and Sucheta Soundarajan and Yanzhi Wang},
  title = {{An Ultra-Efficient Memristor-Based DNN Framework with Structured Weight Pruning and Quantization Using ADMM}},
  booktitle = {ISLPED},
  year = {2019},
  doi = {10.1109/islped.2019.8824944},
}
Figure