SME: ReRAM-based Sparse-Multiplication-Engine to Squeeze-Out Bit Sparsity of Neural Network

Fangxin Liu, Wenbo Zhao, Zhezhi He, Zongwu Wang, Yilong Zhao, Tao Yang, Jingnai Feng, Xiaoyao Liang, Li Jiang

Introduction

Deep Learning accelerators increasingly leverage Resistive Random-Access Memory (ReRAM) crossbars to perform Vector-Matrix Multiplications (VMM) directly in memory. While these architectures offer high efficiency, they face a significant "structural coupling" challenge: weights are physically mapped to specific cells in a grid. This rigid structure makes it difficult to exploit sparsity; removing a single zero-cell often breaks the mathematical alignment of the matrix unless entire rows or columns are pruned. Existing fine-grained pruning methods typically require complex, power-hungry indexing logic. Furthermore, the inherent sparsity within the binary representation of individual weights—bit-level sparsity—remains largely unexploited by current hardware.

The SME Framework

The Sparse-Multiplication-Engine (SME) is a hardware-software co-design that decouples weights from rigid crossbar structures to exploit bit-level sparsity. The framework operates in three primary stages:

  1. Modified Quantization: SME adapts Additive Powers-of-Two (APT) quantization to concentrate '1' bits into consecutive regions of a defined size ($S$). This orchestration makes bit-level sparsity more predictable and easier to manage in hardware.
  2. Inter-crossbar Bit-slicing: Rather than storing multi-bit weights in a single location, SME slices the bits across different crossbars. For instance, Most Significant Bits (MSBs) of a layer are mapped to one set of crossbars, while Least Significant Bits (LSBs) are mapped to another. This aggregation isolates sparse bit positions into specific crossbars.
  3. Bit-wise Squeeze-out: This core mechanism identifies mostly empty crossbars and "squeezes" the remaining non-zero bits into subsequent crossbars. To maintain mathematical correctness without expensive index tables, SME uses a hardware trick: delaying the input signal by specific clock cycles to compensate for the shifted bit positions.
The three stages of the SME framework: modified quantization, inter-crossbar bit-slicing, and the bit-wise squeeze-out scheme.

Key Insights: Bit-Level Sparsity

A critical observation driving this work is that in quantized networks, MSBs are significantly sparser than LSBs. By slicing bits across crossbars, SME can effectively isolate and eliminate these sparse MSB regions.

Distribution of non-zero bits across weight bit positions (MSB to LSB) for various models, showing higher sparsity in MSBs.

SME is "training-free" and orthogonal to traditional pruning. It can be applied after standard pruning to further compress the remaining weights. The parameter $S$ allows designers to tune the trade-off between hardware compression and model accuracy.

Experimental Results

The researchers evaluated SME using standard ImageNet benchmarks with models including ResNet-18, ResNet-50, MobileNet-v2, and GoogleNet.

  • Area and Energy Efficiency: SME reduces crossbar requirements by up to 8.7× for ResNet-50 and 2.1× for MobileNet-v2 compared to state-of-the-art methods. On average, it improves energy efficiency by 2.3× and area efficiency by 6.1× over previous designs like PIM-Prune.
  • Accuracy: These efficiency gains are achieved with a negligible accuracy drop of $\le 0.3\%$ on ImageNet.
  • Synergy with Pruning: When combined with PIM-Prune, SME reached a 91.23% sparsity rate on ResNet-50, significantly outperforming SmartExchange (58.6%).

Conclusion and Future Work

SME demonstrates that decoupling weight bits from physical crossbar locations through bit-slicing and temporal shifting can unlock massive hardware efficiency. While the "squeeze-out" mechanism introduces a small amount of temporal latency, the spatial gains in area and energy are substantial. Future work may explore adapting this bit-slicing approach for other emerging non-volatile memory technologies and more complex quantization schemes.

Summary updated

BibTeX
@inproceedings{liu2021sme,
  author = {Fangxin Liu and Wenbo Zhao and Zhezhi He and Zongwu Wang and Yilong Zhao and Tao Yang and Jingnai Feng and Xiaoyao Liang and Li Jiang},
  title = {{SME: ReRAM-based Sparse-Multiplication-Engine to Squeeze-Out Bit Sparsity of Neural Network}},
  booktitle = {ICCD},
  year = {2021},
  url = {https://openreview.net/forum?id=NFOQ03_oPO},
}
Figure