Abstract
In this work, we introduce a control variate approximation technique for low error approximate Deep Neural Network (DNN) accelerators. The control variate technique is used in Monte Carlo methods to achieve variance reduction. Our approach significantly decreases the induced error due to approximate multiplications in DNN inference, without requiring time-exhaustive retraining compared to state-of-the-art. Leveraging our control variate method, we use highly approximated multipliers to generate power-optimized DNN accelerators. Our experimental evaluation on six DNNs, for Cifar-10 and Cifar-100 datasets, demonstrates that, compared to the accurate design, our control variate approximation achieves same performance and 24% power reduction for a merely 0.16% accuracy loss.
Introduction
Deep Learning inference is computationally intensive, primarily due to the millions of Multiply-Accumulate (MAC) operations required. While approximate computing offers a path to significant power savings by simplifying hardware, it typically introduces errors that degrade model accuracy. Conventional mitigation involves retraining the model to adapt to the hardware's error profile—a process that is often computationally prohibitive or impossible for proprietary models. This paper proposes a hardware-level error compensation mechanism using control variates that works for pre-trained models without retraining.
Methodology
The core of the proposed approach is the application of Control Variates, a statistical variance-reduction technique. The researchers utilize "perforated" multipliers, which truncate the $m$ least significant partial products to save power. The error in these multipliers is mathematically modeled as the product of the weight ($W$) and the truncated portion of the input activation ($x$).
To implement this, the standard systolic MAC array is modified. Standard MAC units are replaced with MAC* units that use approximate multipliers and accumulate truncated inputs. A specialized MAC+ column is added to the end of the array to calculate a correction term $V$ using the mean weight of a filter, effectively nullifying the average error across a convolution operation.
Weight Distribution Analysis
A key insight driving this method is the observation of weight distributions within DNN filters. Empirical analysis shows that weights in a specific filter are highly concentrated around a mean value. This concentration allows the use of the mean weight ($E[W]$) as a stable constant for the control variate correction, making the approximation viable for "black-box" models where retraining is not an option.
Experimental Evaluation and Results
The technique was evaluated using CIFAR-10 and CIFAR-100 datasets across six architectures: GoogLeNet, ResNet44, ResNet56, ShuffleNet, VGG13, and VGG16.
Key results include:
- Power vs. Accuracy: For a perforation level of $m=1$, the system achieved a 24% power reduction with only a 0.16% average accuracy loss across all tested models.
- Error Correction Performance: Compared to using the same approximate multipliers without the control variate, the proposed method improved accuracy by up to 21% on average.
- Efficiency vs. State-of-the-Art: The technique outperformed existing retraining-free approximate accelerators, delivering more than 3.8x higher energy reduction while maintaining comparable or better accuracy.
- Scalability: The hardware overhead of the "MAC+" units becomes negligible as the systolic array grows larger (e.g., in a 64x64 array, the overhead is less than 0.5% of total area/power).
Conclusion
By shifting from logic-based approximation to functional approximation with mathematical error modeling, this work enables power-efficient DNN inference without the need for retraining. The method relies on weights being known a priori to calculate the constant $C$, which is standard for inference. Future work may extend this statistical approach to other DNN components or combine it with pruning and quantization for even greater gains.
Summary updated