Abstract
Resistive Random Access Memory (ReRAM) crossbars offer a high-performance path for Processing-In-Memory (PIM) architectures, yet they are hampered by the energy-intensive nature of Analog-to-Digital Converters (ADCs). ADCs often consume over 60% of the total power in such systems. This paper introduces Twin Range Quantization (TRQ), an algorithm-hardware co-design that leverages the skewed distribution of neural network activations to reduce ADC power by 1.6× to 2.3×. By modifying the digital control logic of Successive Approximation Register (SAR) ADCs to include "Early Bird" and "Early Stopping" mechanisms, TRQ provides a hardware-friendly, post-training quantization solution that maintains high accuracy without requiring model retraining.
Introduction
Resistive Random Access Memory (ReRAM) crossbars are at the forefront of "Processing-In-Memory" (PIM) technology, enabling massive parallel matrix-vector multiplications (MVMs) directly within the memory array. While this approach significantly reduces data movement, it introduces a new bottleneck: the Analog-to-Digital Converter (ADC). In typical ReRAM accelerators, ADCs are responsible for over 60% of total power consumption. High-resolution ADCs are particularly problematic due to their exponential increase in area and energy costs.
This paper proposes Twin Range Quantization (TRQ), a co-design strategy that optimizes ADC operations by exploiting the statistical properties of neural network activations. Unlike existing methods that require complex analog circuit redesign or tedious model retraining, TRQ focuses on modifying the digital control logic of standard Successive Approximation Register (SAR) ADCs.
Twin Range Quantization (TRQ)
The core insight behind TRQ is that neural network activations in ReRAM crossbars are not uniformly distributed. Instead, they are highly skewed, with the vast majority of values clustered near zero. Standard uniform quantization treats all values equally, wasting energy on high-precision conversions for rare outliers or unnecessary steps for common small values.
TRQ divides the analog output into two distinct ranges:
- R1 (Narrow/Dense): This range covers the majority of activations (small values).
- R2 (Wide/Sparse): This range covers the rare, larger "outlier" values.
A hardware-friendly coding scheme is employed where the Most Significant Bit (MSB) serves as a flag to indicate which range the value belongs to. This allows the system to adapt its precision and conversion speed based on the data range.
Hardware-Friendly Implementation
The TRQ algorithm is implemented by modifying the digital logic of a SAR ADC. This approach is advantageous because it leaves the analog components—the most difficult parts to manufacture—untouched.
Two key mechanisms are introduced:
- Early Bird: The ADC first checks if the input falls within the "sweet spot" of R1. If it does, the conversion process terminates early, saving significant energy.
- Early Stopping: For values in R2 that are less sensitive to precision, the ADC can stop the conversion process after a few steps, further reducing power consumption.
A layer-by-layer parameter-searching algorithm is used to find the optimal boundaries for R1 and R2 for a specific pre-trained model, ensuring maximum energy savings with minimal accuracy loss.
Evaluation and Results
The researchers evaluated TRQ across several standard benchmarks, including CIFAR-10 (ResNet-20), ImageNet (ResNet-18, SqueezeNet1.1), and MNIST (LeNet-5).
Key findings include:
- Significant Power Savings: TRQ reduced ADC power consumption by 1.6× to 2.3× compared to baseline architectures like ISAAC.
- Energy Efficiency: Total ADC energy consumption was lowered to 42%–62% of the baseline.
- Superior Accuracy: TRQ maintains high accuracy even at low bit-widths. For ResNet-20 on CIFAR-10, TRQ achieved 91.09% accuracy with a 4-bit maximum resolution, a feat that would require at least 7 bits using standard uniform quantization.
Conclusion
Twin Range Quantization offers a practical, hardware-efficient solution to the ADC power bottleneck in ReRAM accelerators. By focusing on digital logic modifications and exploiting activation distributions, it provides a post-training quantization path that is compatible with existing manufacturing processes and other optimization techniques like pruning. Future work will look into dynamic threshold adjustments and physical silicon validation.
Summary updated