TL;DR
VARA is a hardware-software co-design framework that drastically cuts the energy consumption of ReRAM-based in-memory computing accelerators by exploiting activation sparsity. By combining a voltage-aware training algorithm that drives low-magnitude activations to zero with a global reordering scheme that clusters these zeros together, VARA enables entire hardware crossbars to skip computation entirely, boosting system energy efficiency by 2.68× with negligible accuracy loss.
What Problem Does This Paper Address?
Resistive Random-Access Memory (ReRAM) crossbars are a highly promising architecture for accelerating deep neural networks (DNNs) via analog In-Memory Computing (IMC). By executing matrix-vector multiplications (MVM) directly within memory arrays, they bypass the traditional von Neumann "memory wall."
However, their energy consumption depends heavily on the analog currents flowing through the bitlines, which are determined by both weights and input activations. While previous work has heavily optimized weight distributions (e.g., pushing weights to high-resistance states), activation sparsity has been largely ignored. Crucially, even if a neural network has sparse activations, these zero values are typically scattered randomly across the input vector. Because a single non-zero input forces an entire ReRAM crossbar row to execute, scattered sparsity rarely translates into actual hardware power savings or computation skipping.
Methods
The authors propose VARA (Voltage-Aware ReRAM-Based Accelerator), an end-to-end pipeline spanning model training and hardware deployment:
- Voltage-Aware Training (VAT): To actively increase the number of zero activations, VAT introduces an adjustable threshold ($\theta$) into the network's activation functions (supporting both binarized Step functions and continuous ReLU functions). During training, it suppresses low-magnitude activations and drives them to zero, significantly increasing the Zero Activation Ratio (ZAR). To handle the non-differentiable nature of step functions during backpropagation, a Sigmoid-based straight-through estimator (STE) is utilized.
- Co-zero Activation Reordering (CAR): High element-wise sparsity isn't useful if zeros are scattered. CAR uses a greedy clustering algorithm to analyze the "co-zero affinity" between activation dimensions—identifying which inputs are frequently zero at the same time. It then reorders the activation matrix and applies the exact same permutation to the weight matrix rows to maintain mathematical equivalence. This consolidates scattered zeros into large, contiguous all-zero blocks.
During offline deployment, the crossbars that correspond to these newly formed all-zero blocks are completely pruned. At runtime, the system simply remaps the activation buffer read addresses according to the permutation indices, allowing the hardware to skip redundant crossbar computations entirely.
Datasets
The framework was evaluated using three representative networks (VGG11, ResNet18, ResNet34) across three standard image classification datasets:
- CIFAR10
- CIFAR100
- Tiny ImageNet
No new benchmarks or datasets were introduced in this work.
Key Insights and Ideas
- The Power of Zero Volts: In ReRAM accelerators, an activation of "0" maps directly to 0V on the wordline. This drops the dynamic power of that cell to zero and reduces the bitline current, which quadratically decreases the power consumption of downstream, energy-hungry Analog-to-Digital Converters (ADCs).
- Sparsity Alignment is Everything: Element-wise sparsity is a deceptive metric for hardware efficiency. If zeros are scattered, the hardware still runs at full power. CAR transforms unstructured algorithmic sparsity into structured hardware redundancy.
- Negligible Indexing Overhead: Instead of storing full activation matrices, the Index Unit (IU) in VARA only needs to store the permutation indices for each layer. This overhead accounts for less than 0.3% of the total system energy budget.
Key Results
- Energy Reduction: Compared to conventional baselines, VARA reduces total system energy consumption by an average of 60.12%.
- Energy Efficiency: It improves average system energy efficiency by 2.68×.
- Minimal Accuracy Impact: These massive energy savings come at a very low cost, with an average accuracy loss of only 0.71% across all evaluated configurations. Under the binarized VA-Step configuration, it even slightly improved accuracy (+0.28% on average) due to a regularization effect from suppressing low-magnitude noise.
- Outperforming the State-of-the-Art: VARA outperforms existing sparse accelerators like RapPIM by 15.3 percentage points in energy reduction while maintaining significantly higher model accuracy on complex datasets.
Limitations and Future Work
- Static Profiling Dependency: The CAR reordering scheme relies on profiling activation patterns offline. While it works exceptionally well for standard datasets, highly dynamic or out-of-distribution inputs at runtime might not align perfectly with the static permutation indices, potentially reducing the computation-skipping ratio.
- Architecture Scope: The paper evaluates VARA primarily on CNNs (VGG and ResNets). Extending this co-design methodology to handle the highly dynamic and sequence-length-dependent sparsity patterns found in Transformers (Attention mechanisms) remains an open and promising direction for future work.
Summary updated