Micromachines (Jul 2022)

Using Algorithmic Transformations and Sensitivity Analysis to Unleash Approximations in CNNs at the Edge

  • Flavio Ponzina,
  • Giovanni Ansaloni,
  • Miguel Peón-Quirós,
  • David Atienza

DOI
https://doi.org/10.3390/mi13071143
Journal volume & issue
Vol. 13, no. 7
p. 1143

Abstract

Read online

Previous studies have demonstrated that, up to a certain degree, Convolutional Neural Networks (CNNs) can tolerate arithmetic approximations. Nonetheless, perturbations must be applied judiciously, to constrain their impact on accuracy. This is a challenging task, since the implementation of inexact operators is often decided at design time, when the application and its robustness profile are unknown, posing the risk of over-constraining or over-provisioning the hardware. Bridging this gap, we propose a two-phase strategy. Our framework first optimizes the target CNN model, reducing the bitwidth of weights and activations and enhancing error resiliency, so that inexact operations can be performed as frequently as possible. Then, it selectively assigns CNN layers to exact or inexact hardware based on a sensitivity metric. Our results show that, within a 5% accuracy degradation, our methodology, including a highly inexact multiplier design, can reduce the cost of MAC operations in CNN inference up to 83.6% compared to state-of-the-art optimized exact implementations.

Keywords