Skip to main content
QUICK REVIEW

[Paper Review] Characterizing the Deep Neural Networks Inference Performance of Mobile Applications

Samuel S. Ogden, Tian Guo|arXiv (Cornell University)|Sep 10, 2019
Advanced Neural Network ApplicationsComputer Science44 references20 citations
TL;DR

This paper proposes CNNSelect, a dynamic model selection algorithm that optimizes cloud-based deep neural network inference in mobile applications by choosing between pre-trained CNN models at runtime to balance accuracy and end-to-end latency under variable network conditions. It improves SLA adherence by 88.5% compared to greedy selection while maintaining comparable accuracy, especially under tight latency budgets.

ABSTRACT

Today's mobile applications are increasingly leveraging deep neural networks to provide novel features, such as image and speech recognitions. To use a pre-trained deep neural network, mobile developers can either host it in a cloud server, referred to as cloud-based inference, or ship it with their mobile application, referred to as on-device inference. In this work, we investigate the inference performance of these two common approaches on both mobile devices and public clouds, using popular convolutional neural networks. Our measurement study suggests the need for both on-device and cloud-based inferences for supporting mobile applications. In particular, newer mobile devices is able to run mobile-optimized CNN models in reasonable time. However, for older mobile devices or to use more complex CNN models, mobile applications should opt in for cloud-based inference. We further demonstrate that variable network conditions can lead to poor cloud-based inference end-to-end time. To support efficient cloud-based inference, we propose a CNN model selection algorithm called CNNSelect that dynamically selects the most appropriate CNN model for each inference request, and adapts its selection to match different SLAs and execution time budgets that are caused by variable mobile environments. The key idea of CNNSelect is to make inference speed and accuracy trade-offs at runtime using a set of CNN models. We demonstrated that CNNSelect smoothly improves inference accuracy while maintaining SLA attainment in 88.5% more cases than a greedy baseline.

Motivation & Objective

  • To characterize the performance trade-offs between on-device and cloud-based deep neural network inference in mobile applications.
  • To identify key performance factors affecting inference, including mobile hardware, network conditions, and model compression techniques.
  • To address the challenge of variable network conditions in cloud-based inference that degrade end-to-end latency and SLA compliance.
  • To design a runtime model selection algorithm that adapts to dynamic mobile environments, balancing inference accuracy and latency.
  • To evaluate the effectiveness of the proposed CNNSelect algorithm in improving SLA attainment and performance efficiency.

Proposed method

  • The authors conduct an empirical measurement study across multiple mobile devices and cloud servers, evaluating end-to-end inference time and resource consumption for various CNN models and frameworks (Caffe, TensorFlow).
  • They analyze the impact of mobile hardware, deep learning frameworks, model compression, and network conditions on both on-device and cloud-based inference performance.
  • CNNSelect uses a probabilistic model selection strategy that selects the most appropriate CNN model based on real-time network transfer time and SLA constraints.
  • The algorithm maintains a set of pre-trained, mobile-optimized CNN models with varying accuracy and inference speed trade-offs.
  • It dynamically selects models at runtime to minimize end-to-end latency while meeting accuracy and SLA requirements, adapting to changing network conditions.
  • The evaluation includes end-to-end testing and extensive simulations to validate CNNSelect’s performance across diverse mobile environments.

Experimental results

Research questions

  • RQ1What are the key performance factors affecting on-device and cloud-based DNN inference in mobile applications?
  • RQ2How do mobile hardware, network conditions, and model compression techniques impact inference latency and accuracy?
  • RQ3To what extent do variable network conditions degrade cloud-based inference performance and SLA compliance?
  • RQ4Can a dynamic model selection strategy improve SLA adherence while maintaining high inference accuracy under variable mobile conditions?
  • RQ5How does CNNSelect compare to greedy model selection in terms of SLA attainment and latency reduction?

Key findings

  • On-device inference is viable for newer mobile devices running mobile-optimized CNN models, but older devices or complex models require cloud-based inference.
  • Model startup latency in cloud inference can impose orders-of-magnitude overhead and must be carefully managed in server deployment.
  • Variable mobile network conditions significantly degrade end-to-end cloud inference latency, especially under high variability.
  • CNNSelect improves SLA attainment by 88.5% compared to a greedy baseline, particularly under tight latency budgets.
  • CNNSelect achieves up to 43% end-to-end latency reduction while maintaining comparable accuracy when the SLA budget exceeds 250ms.
  • The algorithm effectively balances accuracy and latency by adapting model selection to real-time network and SLA conditions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.