A SOT-MRAM-based Processing-In-Memory Engine for Highly Compressed DNN Implementation

Geng Yuan, Xiaolong Ma, Sheng Lin, Zhengang Li, Caiwen DingarXiv 2019

Introduction

Deep Neural Networks (DNNs) have revolutionized artificial intelligence but at a significant cost: they are notoriously power-hungry and memory-intensive. Traditional Von-Neumann architectures suffer from a "computing wall," where the energy spent moving data between memory and the processor far exceeds the energy used for actual computation. Processing-In-Memory (PIM) using Spin-Orbit Torque Magnetic Random-Access Memory (SOT-MRAM) offers a compelling solution due to its non-volatility, high density, and near-zero standby power.

The SOT-MRAM Challenge

Despite its potential, SOT-MRAM faces two primary hurdles in DNN acceleration:

  1. Write Latency and Energy: Writing data to SOT-MRAM is relatively slow and energy-expensive compared to reading.
  2. Bit-width Sensitivity: SOT-MRAM PIM engines are most efficient with low bit-width data. However, extreme quantization (like binarization) often significantly degrades model accuracy.

To address these issues, this research proposes a hardware-software co-design framework that integrates ADMM-based model compression with a specialized SOT-MRAM PIM engine.

Hardware-Software Co-Design Framework

The core of the proposal is a unified framework that performs structured weight pruning and quantization simultaneously during the training phase using the Alternating Direction Method of Multipliers (ADMM). This mathematical approach reformulates pruning and quantization constraints as an optimization problem, allowing the model to be projected onto hardware-friendly constraints iteratively.

Bit-wise Convolution

The SOT-MRAM engine performs Multiply-Accumulate (MAC) operations through bit-parallel logic. As shown in the bit-wise convolution process, the framework decomposes weights and inputs into bit-planes, performing operations using bit-parallel AND, bit-count, and bit-shift logic.

Bit-wise convolution implementation in the SOT-MRAM PIM engine.

Hardware Implementation and Pruning Strategies

The synergy between software compression and hardware architecture is critical. The framework employs three types of structured pruning:

  • Filter-wise pruning: Removing entire filters.
  • Channel-wise pruning: Removing entire input channels.
  • Kernel-wise pruning: Removing specific $n \times n$ kernels within a layer.

In the PIM architecture, filter and channel pruning allow for the physical removal of entire Processing Elements (PEs) or sub-arrays, directly reducing area and power consumption. Kernel-wise pruning provides additional flexibility; while it may not allow for physical removal, it enables the engine to skip computations via a Look-Up Table (LUT), enhancing throughput.

SOT-MRAM PIM architecture and structured pruning strategies.

Key Results

The framework was evaluated on standard benchmarks including MNIST, CIFAR-10, and ImageNet. Key findings include:

  • High Compression Ratios: The system achieved an 81.3× compression on MNIST (LeNet-5) and 59.8× on CIFAR-10 (ResNet-18) with negligible accuracy loss.
  • ImageNet Success: On the complex ImageNet dataset, the framework achieved 5.2× compression for AlexNet and 3.0× for ResNet-18.
  • Efficiency Gains: Channel pruning was identified as the most effective contributor to power and area savings because it eliminates entire peripheral circuits within the PIM array.

Conclusion

By combining ADMM-based optimization with a specialized SOT-MRAM architecture, this research demonstrates that it is possible to overcome the inherent limitations of non-volatile memory for AI tasks. The co-design approach ensures that the compressed model is not just smaller in theory, but physically more efficient when mapped to hardware, paving the way for high-performance, low-power edge AI devices.

Summary updated

BibTeX
@misc{yuan2019sot,
  author = {Geng Yuan and Xiaolong Ma and Sheng Lin and Zhengang Li and Caiwen Ding},
  title = {{A SOT-MRAM-based Processing-In-Memory Engine for Highly Compressed DNN Implementation}},
  year = {2019},
  eprint = {1912.05416},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1912.05416},
}
Figure