Skip to main content
QUICK REVIEW

[Paper Review] Smart at what cost? Characterising Mobile Deep Neural Networks in the wild

Mário Almeida, Stefanos Laskaridis|arXiv (Cornell University)|Sep 28, 2021
Green IT and SustainabilityEngineering46 references5 citations
TL;DR

This paper presents gaugeNN, a tool for automating the extraction, benchmarking, and analysis of deep neural networks (DNNs) in real-world Android apps. It characterizes over 16,000 popular Google Play apps, revealing a significant gap between state-of-the-art DNN research and actual mobile deployments, with most models underutilizing hardware accelerators and relying on CPU inference despite energy and latency costs.

ABSTRACT

With smartphones' omnipresence in people's pockets, Machine Learning (ML) on mobile is gaining traction as devices become more powerful. With applications ranging from visual filters to voice assistants, intelligence on mobile comes in many forms and facets. However, Deep Neural Network (DNN) inference remains a compute intensive workload, with devices struggling to support intelligence at the cost of responsiveness.On the one hand, there is significant research on reducing model runtime requirements and supporting deployment on embedded devices. On the other hand, the strive to maximise the accuracy of a task is supported by deeper and wider neural networks, making mobile deployment of state-of-the-art DNNs a moving target. In this paper, we perform the first holistic study of DNN usage in the wild in an attempt to track deployed models and match how these run on widely deployed devices. To this end, we analyse over 16k of the most popular apps in the Google Play Store to characterise their DNN usage and performance across devices of different capabilities, both across tiers and generations. Simultaneously, we measure the models' energy footprint, as a core cost dimension of any mobile deployment. To streamline the process, we have developed gaugeNN, a tool that automates the deployment, measurement and analysis of DNNs on devices, with support for different frameworks and platforms. Results from our experience study paint the landscape of deep learning deployments on smartphones and indicate their popularity across app developers. Furthermore, our study shows the gap between bespoke techniques and real-world deployments and the need for optimised deployment of deep learning models in a highly dynamic and heterogeneous ecosystem.

Motivation & Objective

  • To understand the current state of DNN deployment in real-world mobile applications across diverse Android devices.
  • To identify the disconnect between cutting-edge DNN research and actual model deployment practices in popular apps.
  • To measure the runtime performance, latency, and energy consumption of deployed DNNs across heterogeneous mobile hardware.
  • To evaluate the use of model optimization techniques, hardware accelerators, and cloud offloading in production mobile apps.
  • To provide practical guidelines for developers and framework designers to improve the efficiency and portability of mobile DNNs.

Proposed method

  • Developed gaugeNN, an automated toolchain for extracting, analyzing, and benchmarking DNN models from installed Android apps across multiple frameworks and platforms.
  • Performed static and dynamic analysis on 16,000+ popular Google Play Store apps, with two snapshots taken 12 months apart to track trends.
  • Measured inference latency and energy consumption across a diverse set of devices spanning multiple tiers and generations.
  • Classified DNN models by architecture, layer operations, quantization, pruning, and use of hardware accelerators (e.g., NPUs, DSPs).
  • Analyzed offloading patterns to cloud-based APIs and evaluated the trade-offs in quality of experience, privacy, and cost.
  • Evaluated the availability and adoption of optimization toolkits (e.g., NNAPI, TFLite) and their impact on model efficiency.

Experimental results

Research questions

  • RQ1To what extent do real-world mobile apps deploy state-of-the-art DNN architectures and optimization techniques?
  • RQ2How do DNN inference performance and energy consumption vary across different device tiers and generations?
  • RQ3What is the prevalence of hardware accelerator usage (e.g., NPUs, DSPs) versus CPU-only inference in deployed models?
  • RQ4How common is cloud offloading for DNN inference, and what are its trade-offs in terms of latency, privacy, and cost?
  • RQ5What is the trajectory of DNN adoption in mobile apps over the past year, and how do model characteristics evolve?

Key findings

  • Over 80% of deployed DNNs in popular apps run on CPU-only, despite the availability of dedicated accelerators like NPUs and DSPs.
  • Only 12% of models leverage hardware-specific accelerators, indicating a significant underutilization of mobile SoC capabilities.
  • Cloud offloading is used in 22% of apps, providing consistent performance across devices but at the cost of privacy and network dependency.
  • Energy consumption is a growing concern, with DNNs contributing significantly to battery drain, especially in resource-constrained devices.
  • Model co-habitation—running multiple DNNs in parallel—is increasingly common, posing new challenges for system-level resource management.
  • There is a notable gap between research advancements (e.g., efficient architectures, quantization) and real-world deployment, with most apps using older or less optimized models.

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.