Abstract
Compute-in-Memory (CIM) using Resistive Random Access Memory (RRAM) offers a high-efficiency paradigm for Vector-Matrix Multiplication (VMM) in neural network acceleration. However, the random nature of unstructured sparsity in neural networks often conflicts with the rigid structural requirements of RRAM crossbars. This paper presents a bit-level weight reordering strategy that leverages column similarity to unlock the benefits of fine-grained sparsity. By clustering identical bit-segments into hardware Operation Units (OUs), the design eliminates redundant storage and computation. Evaluation across multiple benchmarks shows a 61.24% performance boost and up to 2.52× energy savings over state-of-the-art designs without requiring model retraining.
Introduction
Resistive Random Access Memory (RRAM) crossbars are highly effective for performing VMM operations by utilizing Kirchhoff’s laws. Despite their potential, these accelerators struggle with unstructured sparsity. In a standard RRAM crossbar, skipping a single zero value is difficult; efficiency gains typically only occur when an entire row or column is zero. Because most neural network pruning results in scattered, random zeros, traditional CIM architectures fail to exploit this sparsity effectively. Previous solutions often necessitated expensive hardware-aware retraining or were limited to coarse-grained structural sparsity. This research addresses the challenge of exploiting fine-grained, random sparsity through a novel mapping and reordering optimization.
Proposed Methodology
The proposed strategy optimizes weight mapping through three primary techniques:
1. Two’s Complement Storage
Traditional RRAM mapping often uses a "positive-negative split," requiring two RRAM cells per weight bit. By adopting a two’s complement format, the researchers reduce crossbar resource requirements by 50%. This format also simplifies the arithmetic logic, allowing the sign bit to be handled via a straightforward shift-and-subtract operation.
2. Bit-Level Similarity Reordering
The core innovation lies in identifying identical bit patterns across different columns, even when those columns are not entirely zero. Using a Hamming Distance-based algorithm, the system reorders the rows of the weight matrix to "cluster" identical bit-segments into the same hardware Operation Units (OUs).
As shown in the figure above, focusing on reordering at the OU level (small sub-regions of the crossbar) significantly increases the probability of finding identical patterns. When two columns within an OU are identical, the accelerator computes the result once and reuses it, effectively treating similarity as a form of exploitable sparsity.
3. Weight Splitting Policy
To mitigate the indexing overhead associated with moving bits, the weights are decomposed into binary bits (from MSB to LSB). Different bit-positions are stored in separate crossbars, ensuring that all bits within a single crossbar can be shifted by the same value, which drastically simplifies the hardware control logic.
Key Insights and Results
A fundamental observation of this work is that sparsity is pervasive at the bit-level. Even in a dense model with 0% weight sparsity, approximately 50% of the individual bits are zeros. As the overall weight sparsity of a model increases through pruning, this "zero bit ratio" rises even further.
Experimental Performance
The strategy was evaluated using a custom simulator based on NeuroSIM across benchmarks including LeNet5, AlexNet, VGG16, GoogleNet, and ResNet18. Key findings include:
- Performance: The reordering strategy achieved an average 61.24% performance improvement over RePIM, the previous state-of-the-art.
- Energy Efficiency: The design delivered 1.51× to 2.52× energy savings, with gains scaling alongside the sparsity ratio.
- Robustness: Unlike methods that require extreme sparsity (e.g., >80%) to be effective, this strategy provides significant benefits even at low-to-moderate sparsity levels by exploiting bit-similarity.
- Overhead: The bit-splitting policy successfully reduced indexing overhead by 10%–31% compared to prior methods.
Conclusion and Future Work
This bit-level reordering strategy provides a purely mapping-based optimization that preserves model accuracy perfectly while significantly enhancing RRAM accelerator efficiency. While highly effective for static, pre-trained weights, future work is needed to adapt the reordering algorithms for dynamic updates in models like Transformers. Additionally, integrating this weight-centric approach with input sparsity techniques could yield further efficiency gains in real-time inference scenarios.
Summary updated