An Experimental Analysis of the Power Consumption of Convolutional Neural Networks for Keyword Spotting

Raphael Tang, Weijie Wang, Zhucheng Tu, Jimmy Lin

Abstract

Keyword spotting (KWS) is a critical component for always-on voice interfaces in battery-constrained edge devices. While researchers often rely on proxy metrics like parameter count or multiply operations to estimate efficiency, actual energy consumption is rarely measured. This paper presents an experimental analysis of various CNN-based KWS models on a Raspberry Pi. We find that the number of multiply operations is a significantly stronger predictor of energy consumption than parameter count, and we identify a nearly linear "accuracy tax" where higher performance directly correlates with increased power draw.

Introduction

Keyword spotting—the technology enabling "wake-word" detection—must run locally on-device to ensure privacy and minimize latency. For battery-powered hardware, the "model footprint" is a primary design constraint. Traditionally, two proxies have been used to estimate this footprint: Parameter Count (memory usage) and Multiply Operations (computational complexity). However, theoretical compactness does not always guarantee hardware efficiency due to factors like memory access patterns and cache utilization. This study aims to ground-truth these proxies through physical power measurements on commodity edge hardware.

Experimental Methodology

The researchers evaluated a family of Convolutional Neural Network (CNN) architectures originally proposed by Google, using the Honk open-source PyTorch implementation. For deployment, models were exported via ONNX to Caffe2, utilizing NEON instructions for ARM optimization.

The target hardware was a Raspberry Pi 3 Model B. Power consumption was measured using a Watts Up Pro meter, capturing real-time draw at 1 Hz. By subtracting the device's idle power, the authors calculated the energy consumed per query (mJ) and peak power (W). The models were trained and tested on Google’s Speech Commands Dataset, a 12-label classification task involving 65,000 one-second utterances.

Analysis of Efficiency Proxies

A core finding of the study is that not all proxies are created equal. The number of multiply operations proved to be an excellent predictor of energy usage ($R^2 = 0.9641$). In contrast, parameter count was a much weaker predictor ($R^2 = 0.7498$), as models with small memory footprints can still be computationally intensive if they perform many operations on reused weights.

Figure 2: Energy and latency per query show a strong linear correlation with the number of multiply operations.

Furthermore, latency and energy consumption are highly correlated ($R^2 = 0.8863$), suggesting that for KWS tasks on this hardware, optimizing for speed is effectively synonymous with optimizing for battery life.

The Accuracy-Energy Trade-off

The experimental results reveal a strikingly linear relationship between a model's classification accuracy and its energy consumption ($R^2 = 0.8919$). This "accuracy tax" implies that within this family of CNNs, performance gains come at a nearly proportional cost in Joules.

Figure 4: The relationship between energy consumption per query and classification accuracy is strikingly linear.

For instance, the high-performance tpool2 model achieved 91.97% accuracy but consumed 384 mJ per query. Conversely, the ultra-lightweight one-fstride4 model consumed only 28 mJ but at a significant accuracy cost, dropping to 70.28%.

Conclusion and Future Work

This analysis confirms that while theoretical proxies are useful, they do not tell the whole story. Specifically, multiply operations are a far more reliable indicator of battery drain than parameter count. However, hardware-level bottlenecks still exist; models with similar multiply counts can vary by up to 25% in energy consumption due to architectural differences.

Future research should expand this analysis to recurrent neural networks (RNNs) and specialized hardware like DSPs or NPUs. For practitioners, these results suggest that while proxies are excellent for rapid iteration, final evaluations of "low-power" models should ideally involve direct hardware power measurements.

Summary updated

BibTeX
@inproceedings{tang2018experimental,
  author = {Raphael Tang and Weijie Wang and Zhucheng Tu and Jimmy Lin},
  title = {{An Experimental Analysis of the Power Consumption of Convolutional Neural Networks for Keyword Spotting}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2018},
  url = {https://openreview.net/forum?id=fePPWPPTyKp},
}
Figure