Energy-Efficient DNN Inference on Approximate Accelerators Through Formal Property Exploration

Ourania Spantidi, Georgios Zervakis, Iraklis Anagnostopoulos, Jörg Henkel

Abstract

Deploying Deep Neural Networks (DNNs) on edge devices requires a delicate balance between computational performance and energy consumption. While approximate computing offers a path toward energy efficiency by trading mathematical precision for power savings, existing methods often suffer from coarse granularity and a reliance on "average accuracy" metrics that mask catastrophic failures in specific data batches. This paper introduces a novel framework that leverages Parametric Signal Temporal Logic (PSTL) to automate the mapping of DNN weights to approximate hardware. By defining strict formal error boundaries, the framework achieves up to 2x greater energy savings than state-of-the-art methods while ensuring reliability in safety-critical applications.

Introduction

As DNNs become ubiquitous in edge applications—from autonomous drones to mobile health monitoring—the demand for energy-efficient hardware has never been higher. Approximate computing has emerged as a leading strategy to reduce the power footprint of Multiply-Accumulate (MAC) units, the primary energy consumers in DNN inference. However, traditional approximation techniques often treat entire layers as monolithic blocks, leading to significant accuracy drops. Furthermore, these techniques typically optimize for mean accuracy, ignoring the variance in performance that can lead to localized, unacceptable errors.

The "Average Accuracy" Trap

A central contribution of this research is the critique of "average accuracy" as a sufficient metric for approximate hardware. The authors demonstrate that a model exhibiting a seemingly safe 1% average accuracy drop across a dataset can actually experience a catastrophic 16% drop on specific data batches. In safety-critical environments, such as autonomous driving or medical diagnostics, these outlier failures represent a significant risk.

Existing methods like Layer-Wise Robustness Mapping (LVRM) often fail to capture these temporal or batch-specific fluctuations. By treating accuracy as a "signal" over time, this research identifies and mitigates these performance dips, providing a more robust guarantee of reliability.

Formal Property Exploration with PSTL

To address the limitations of current methods, the framework utilizes Signal Temporal Logic (STL) and its parametric variant (PSTL). This allows engineers to move beyond simple accuracy targets and instead define complex, human-readable logical queries. For example, a designer can specify: "Ensure 80% of data batches have less than a 3% accuracy drop, and no single batch ever exceeds a 15% drop."

These formal properties are then used to guide the optimization process. The framework employs an "Expected Robustness Guided Monte Carlo" (ERGMC) algorithm. This stochastic optimizer treats the accuracy of data batches as a signal and iteratively adjusts hardware configurations until the PSTL requirements are met while maximizing energy efficiency.

Fine-Grained Weight Mapping

Unlike previous "blunt instrument" approaches that approximate entire layers, this framework introduces fine-grained weight mapping. By analyzing the distribution of weights within each layer, the system maps specific ranges—typically those clustered around the median—to different hardware modes:

  • M0 (Exact): High precision for critical weights.
  • M1 (Light Approximation): A balance of efficiency and precision.
  • M2 (Aggressive Approximation): Maximum energy savings for less sensitive weight ranges.

This granular approach allows for better resource utilization. The authors found that a balanced mix of light and aggressive approximation across many layers is significantly more efficient than aggressively approximating just a few layers while leaving others exact.

Experimental Results and Scalability

The framework was evaluated across a diverse set of benchmarks, including CIFAR-10, CIFAR-100, GTSRB, and a large-scale evaluation on ImageNet. The testing spanned multiple architectures, including ResNet (20, 32, 44, 56), MobileNetv2, InceptionV3, and VGG16.

Key findings include:

  • Energy Gains: The framework surpassed state-of-the-art mapping methods (such as ALWANN) by more than 2x in energy savings at the MAC unit level.
  • Reliability: While older methods frequently violated batch-level accuracy constraints, the PSTL-based approach successfully maintained performance within the defined "safety" boundaries.
  • Efficiency: Because the method works on pre-trained, 8-bit quantized models, it requires no expensive retraining, making it highly practical for real-world deployment.
  • Scalability: The search algorithm remained computationally manageable even for massive models like NasNet and VGG16, where other fine-grained search methods often struggle.

Conclusion and Future Directions

By bridging the gap between formal logic and hardware approximation, this research provides a path toward DNN accelerators that are both highly efficient and demonstrably reliable. While the current implementation introduces a minor hardware overhead (less than 3% area) for control logic, the energy benefits far outweigh the costs.

Future work will explore dynamic runtime adaptation, allowing hardware to adjust its approximation levels on-the-fly based on input complexity. Additionally, the authors plan to investigate the framework's effectiveness under more aggressive quantization levels, such as 4-bit or 2-bit representations, to further push the boundaries of edge AI efficiency.

Summary updated

Abstract

Deep neural networks (DNNs) are being heavily utilized in modern applications, putting energy-constraint devices to the test. To bypass high energy consumption issues, approximate computing has been employed in DNN accelerators to balance out the accuracy-energy reduction trade-off. However, the approximation-induced accuracy loss can be very high and drastically degrade the performance of the DNN. Therefore, there is a need for a fine-grain mechanism that would assign specific DNN operations to approximation to maintain acceptable DNN accuracy, while achieving low energy consumption. We present an automated framework for weight-to-approximation mapping through formal property exploration for approximate DNN accelerators. At the MAC unit level, our experimental evaluation surpassed already energy-efficient mappings by more than <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"> <tex-math notation="LaTeX">$\times 2$ </tex-math></inline-formula> in terms of energy gains, while supporting a fine-grain control over the introduced approximation.
BibTeX
@article{spantidi2022energy,
  author = {Ourania Spantidi and Georgios Zervakis and Iraklis Anagnostopoulos and Jörg Henkel},
  title = {{Energy-Efficient DNN Inference on Approximate Accelerators Through Formal Property Exploration}},
  journal = {IEEE Trans. Comput. Aided Des. Integr. Circuits Syst.},
  year = {2022},
  url = {https://openreview.net/forum?id=JrmHnx87Zih},
}
Figure