TL;DR
This paper introduces an ADC/DAC-free analog acceleration technique for Deep Neural Networks (DNNs) by performing computations in the frequency domain using Walsh-Hadamard Transforms (WHT). This approach significantly boosts energy efficiency (up to 5311 TOPS/W) by leveraging analog physics and a novel early termination strategy, making DNN deployment on resource-constrained edge devices more feasible.
What Problem Does This Paper Address?
Deploying increasingly complex Deep Neural Networks (DNNs) on edge devices (like smartphones or IoT sensors) is crucial for real-time data processing and reduced latency. However, edge devices have limited computing power and energy budgets. While model compression techniques like pruning help, they often struggle to maintain accuracy or don't translate well to hardware. Frequency-domain transformations, particularly WHT, offer a promising avenue for model compression by converting computationally intensive convolutions into simpler element-wise multiplications. However, these transformations can paradoxically increase the number of multiply-accumulate (MAC) operations, negating their benefits. This paper tackles this challenge by proposing an energy-efficient analog hardware architecture that performs these frequency-domain computations without the need for costly Analog-to-Digital (ADC) and Digital-to-Analog (DAC) converters.
Methods
The core of the proposed method lies in an analog crossbar architecture that implements frequency-domain transformations. Key techniques include:
- Frequency-Domain Tensor Transformation: Instead of operating on raw input tensors, the network's tensors are transformed into the frequency domain using the Walsh-Hadamard Transform (WHT). This allows convolutions to be approximated by element-wise multiplications.
- Analog Compute-in-Memory (CiM): The computations are performed directly within memory cells (using NMOS transistors) to minimize data movement, a major energy bottleneck. This leverages analog physics (like Kirchhoff's law) for operations.
- ADC/DAC-Free Operation: A novel training methodology is employed. The system is trained to operate with extreme quantization (effectively 1-bit processing for the transformed MAC outputs) and uses bitplane-wise processing of input vectors. This bypasses the need for ADCs and DACs, which are typically power-hungry and limit scalability.
- Blockwise Walsh-Hadamard Transform (BWHT): To handle input dimensions that are not powers of two, a BWHT approach is used, which partitions the transform matrix into blocks, reducing excessive zero-padding.
- Predictive Early Termination: To further reduce computation, an early termination strategy is implemented. This strategy leverages the sparsity introduced by the soft-thresholding activation function. If the intermediate sum (PSUM) falls within a certain range ([-T, T]), the computation for that output element can be terminated early, saving significant cycles and energy.
- Modified Loss Function: A custom loss function is introduced to encourage output sparsity and drive the thresholding parameter (T) towards extreme values (-1 or 1), thereby maximizing early termination opportunities.
Datasets
The paper evaluates its approach using the CIFAR-10 dataset for training and evaluating DNN models like ResNet20 and MobileNetV2.
Key Insights and Ideas
- Frequency Domain + Analog CiM = Energy Efficiency: The synergy between frequency-domain processing (simplifying operations) and analog CiM (reducing data movement) is a powerful combination for energy efficiency.
- ADC/DAC-Free is Achievable and Beneficial: Eliminating ADCs/DACs is not just about saving power; it simplifies the hardware design and improves scalability, especially when combined with clever training strategies.
- Sparsity is a Feature, Not a Bug: The soft-thresholding activation naturally creates sparsity in the frequency domain, which can be actively exploited for significant computational savings through early termination.
- Algorithmic Non-ideality Tolerance (ANT): The WHT-based frequency domain processing exhibits a surprising tolerance to noise and process variations, allowing for simpler analog circuit designs without substantial accuracy loss.
Key Results
- Energy Efficiency: The proposed approach achieves an energy efficiency of 1602 TOPS/W without early termination and 5311 TOPS/W with early termination at a supply voltage of 0.8V on a 16x16 crossbar.
- Accuracy: The accuracy achieved is comparable to the baseline models, with only a minor drop (e.g., 3-4% lower than floating-point baseline when considering 1-bit product-sum quantization).
- Model Compression: The frequency-domain approach, particularly using BWHT, can achieve significant model compression (e.g., 55.6% reduction in parameters for ResNet20 with only ~3% accuracy loss).
- Reduced Computation Cycles: The early termination strategy reduces the average number of processing cycles for an 8-bit input from 8 to approximately 1.34.
Limitations and Future Work
- Input Quantization Impact: While the system achieves good accuracy with 1-bit product-sum quantization, the paper notes that accuracy converges to a similar level across various input quantization levels, but it is still 3-4% lower than the floating-point baseline.
- Scalability of Larger Crossbars: While the 16x16 crossbar shows good scalability, larger crossbars (like 32x32) become more vulnerable to process variability and require voltage boosting for comparable performance.
- Future Work: The paper suggests further exploration of optimizing thresholding parameters and exploring different frequency transforms. The potential for better energy efficiency and easier mapping of diverse DNN layers with smaller crossbars is also highlighted.
Summary updated