NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

High Area/Energy Efficiency RRAM CNN Accelerator with Kernel-Reordering Weight Mapping Scheme Based on Pattern Pruning

Songming Yu, Yongpan Liu, Lu Zhang, Jingyu Wang, Jinshan Yue, Zhuqing Yuan, Xueqing Li, Huazhong YangarXiv 2020

Abstract

Resistive Random Access Memory (RRAM) is a leading candidate for Processing-in-Memory (PIM) architectures due to its ability to perform matrix-vector multiplications directly within memory arrays. However, the high coupling of RRAM crossbars makes it difficult to exploit the sparsity inherent in deep neural networks without significant hardware overhead or accuracy loss. This paper presents a kernel-reordering weight mapping scheme based on pattern pruning. By grouping kernels with identical sparsity patterns and compressing them into dense blocks, the proposed accelerator achieves significant gains in area and energy efficiency. Evaluations on VGG16 benchmarks show up to 5.2x better area utilization and 2.15x energy efficiency improvements with negligible impact on accuracy.

Introduction

Deep Convolutional Neural Networks (CNNs) are the backbone of modern AI but demand immense computational and memory resources. RRAM-based PIM architectures offer a solution by executing computations where data resides, drastically reducing data movement. A persistent challenge, however, is the "sparsity problem." While many weights in a trained CNN are zero, the rigid structure of RRAM crossbars typically requires mapping these zeros, wasting valuable area and power.

Existing pruning techniques often fall into two extremes: fine-grained pruning, which preserves accuracy but creates irregular hardware mapping, and structured pruning, which is hardware-friendly but often degrades model performance. This research proposes a "middle ground" through pattern pruning and a specialized mapping strategy that exploits hardware constraints as an advantage.

Methodology: Pattern-Pruned Mapping

The proposed workflow transforms a pretrained model into a hardware-optimized format through a multi-stage process designed to maximize crossbar utilization.

Workflow of the proposed weight mapping process.
  1. Pattern Pruning: Kernels are constrained to a predefined set of boolean masks (patterns). For 3x3 kernels, instead of hundreds of possible configurations, each layer is limited to a small library of representative patterns.
  2. Kernel Reordering: To maximize hardware utilization, kernels are reordered so that those sharing the same pattern are grouped together.
  3. Weight Compression & Mapping: Since grouped kernels share non-zero positions, the zero-elements are removed, and the remaining weights are packed tightly into the RRAM crossbar.

Figure 5 illustrates how these steps—unrolling patterns to vectors, reordering by channel index, and compressing—result in a dense, efficient mapping on the RRAM array.

Detailed visualization of kernel patterns, reordering, and compression.

Hardware Architecture

To support this mapping scheme, the accelerator incorporates two critical units:

  • Input Preprocessing Unit: This unit selects only the input activations required by the compressed kernel patterns. It also features an all-zero detection module to skip computations when input data is zero, exploiting activation sparsity to save energy in real-time.
  • Output Indexing Unit: Because kernels were reordered during the mapping phase, this unit reshuffles the output feature maps back into their original logical order, ensuring compatibility with subsequent layers.

Experimental Results

The architecture was evaluated using VGG16 on CIFAR-10, CIFAR-100, and ImageNet (ILSVRC2012) datasets. The results demonstrate massive gains over traditional naive mapping methods:

  • Efficiency Gains: The scheme achieved 4.16x to 5.20x improvements in crossbar area utilization. Energy efficiency increased by 1.98x to 2.15x, primarily due to the reduction in active Analog-to-Digital Converters (ADCs) and Digital-to-Analog Converters (DACs).
  • Performance: Inference speed improved by 1.15x to 1.35x.
  • Accuracy: The impact on model intelligence was minimal. For CIFAR-10, the top-1 accuracy drop was a mere 0.09%.

Discussion and Limitations

While the proposed scheme offers substantial efficiency gains, it introduces some overhead. The system must store an index map for the reordered kernels, which accounts for approximately 12.2% of the model size for CIFAR-10. Additionally, as datasets grow in complexity (e.g., ImageNet), the resulting kernel structures become more irregular, slightly reducing mapping efficiency compared to simpler tasks. Future work aims to implement these designs at the Register-Transfer Level (RTL) to further validate the power savings of the control logic.

Conclusion

By combining the flexibility of pattern pruning with a hardware-aware kernel reordering scheme, this work effectively bridges the gap between neural network sparsity and the structural constraints of RRAM crossbars. The resulting accelerator significantly enhances area and energy efficiency, paving the way for more powerful AI deployment on resource-constrained edge devices.

Summary updated

BibTeX
@misc{yu2020high,
  author = {Songming Yu and Yongpan Liu and Lu Zhang and Jingyu Wang and Jinshan Yue and Zhuqing Yuan and Xueqing Li and Huazhong Yang},
  title = {{High Area/Energy Efficiency RRAM CNN Accelerator with Kernel-Reordering Weight Mapping Scheme Based on Pattern Pruning}},
  year = {2020},
  eprint = {2010.06156},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.06156},
}
Figure