SnaPEA: Predictive Early Activation for Reducing Computation in Deep Convolutional Neural Networks

By Vahideh Akhlaghi, Amir Yazdanbakhsh, K. Samadi, Rajesh K. Gupta, Hadi Esmaeilzadeh. 2018

168 citations recorded by the source corpus.

Deep Convolutional Neural Networks (CNNs) perform billions of operations for classifying a single input. To reduce these computations, this paper offers a solution that leverages a combination of runtime information and the algorithmic structure of CNNs. Specifically, in numerous modern CNNs, the outputs of compute-heavy convolution operations are fed to activation units that output zero if their input is negative. By exploiting this unique algorithmic property, we propose a predictive early activation technique, dubbed SnaPEA. This technique cuts the computation of convolution operations short if it determines that the output will be negative. SnaPEA can operate in two distinct modes, exact and predictive. In the exact mode, with no loss in classification accuracy, SnaPEA statically re-orders the weights based on their signs and periodically performs a single-bit sign check on the partial sum. Once the partial sum drops below zero, the rest of computations can simply be ignored, since the output value will be zero in any case. In the predictive mode, which trades the classification accuracy for larger savings, SnaPEA speculatively cuts the computation short even earlier than the exact mode. To control the accuracy, we develop a multi-variable optimization algorithm that thresholds the degree of speculation. As such, the proposed algorithm exposes a knob to gracefully navigate the trade-offs between the classification accuracy and computation reduction. Compared to a state-of-the-art CNN accelerator, SnaPEA in the exact mode, yields, on average, 28% speedup and 16% energy reduction in various modern CNNs without affecting their classification accuracy. With 3% loss in classification accuracy, on average, 67.8% of the convolutional layers can operate in the predictive mode. The average speedup and energy saving of these layers are 2.02x and 1.89x, respectively. The benefits grow to a maximum of 3.59x speedup and 3.14x energy reduction. Compared to static pruning approaches, which are complimentary to the dynamic approach of SnaPEA, our proposed technique offers up to 63% speedup and 49% energy reduction across the convolution layers with no loss in classification accuracy.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Electrical and Electronic Engineering, Efficiency & Compression

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Carole-Jean Wu
  2. Quoc V. Le
  3. Song Han
  4. Kurt Keutzer
  5. Hai Helen Li
  6. Yuan Xie
  7. Alexander M. Rush
  8. Guoqi Li

In Computer Vision and Pattern Recognition

  1. Song Han
  2. Luc Van Gool
  3. Quoc V. Le
  4. Dacheng Tao
  5. Carole-Jean Wu
  6. Yi Yang
  7. Trevor Darrell
  8. Xiaogang Wang

In Electrical and Electronic Engineering

  1. Song Han
  2. Carole-Jean Wu
  3. Udit Gupta
  4. David M. Brooks
  5. Gu-Yeon Wei
  6. Tushar Krishna
  7. Guoqi Li
  8. Hyoukjun Kwon

In Efficiency & Compression

  1. Carole-Jean Wu
  2. Song Han
  3. Hai Helen Li
  4. Yiran Chen
  5. Alexander M. Rush
  6. Yuan Xie
  7. Guoqi Li
  8. Luping P. Shi

Citations in the corpus