AdaOper: Energy-efficient and Responsive Concurrent DNN Inference on Mobile Devices

Zheng Lin, Bin Guo, Sicong Liu, Wentao Zhou, Yasan Ding, Yu Zhang, Zhiwen Yu

Abstract

Deep neural network (DNN) has driven extensive applications in mobile technology. However, for long-running mobile apps like voice assistants or video applications on smartphones, energy efficiency is critical for battery-powered devices. The rise of heterogeneous processors in mobile devices today has introduced new challenges for optimizing energy efficiency. Our key insight is that partitioning computations across different processors for parallelism and speedup doesn't necessarily correlate with energy consumption optimization and may even increase it. To address this, we present AdaOper, an energy-efficient concurrent DNN inference system. It optimizes energy efficiency on mobile heterogeneous processors while maintaining responsiveness. AdaOper includes a runtime energy profiler that dynamically adjusts operator partitioning to optimize energy efficiency based on dynamic device conditions. We conduct preliminary experiments, which show that AdaOper reduces energy consumption by 16.88% compared to the existing concurrent method while ensuring real-time performance.

Introduction

Modern mobile applications, ranging from real-time video filters to sophisticated voice assistants, rely heavily on Deep Neural Networks (DNNs). To meet the computational demands of these models, mobile System-on-Chips (SoCs) have evolved into heterogeneous architectures featuring CPUs, GPUs, and NPUs.

While the standard approach to improving performance is "concurrency"—splitting workloads across these processors to run in parallel—this strategy often ignores the energy cost. The authors of AdaOper identify a "Parallelism Paradox": maximizing hardware utilization for speed can actually be counter-productive for battery life. The overhead of moving data between processors and managing parallel tasks can drain energy faster than sequential execution on a single processor. Furthermore, mobile environments are highly dynamic; factors like thermal throttling and background workloads make static energy models inaccurate.

The AdaOper System

AdaOper is designed to optimize energy efficiency on mobile heterogeneous processors while maintaining high responsiveness. The system consists of two primary components: a runtime energy profiler and an energy-aware operator partitioner.

Runtime Energy Profiler

To account for both hardware characteristics and dynamic system states, AdaOper employs a two-tier machine learning approach for energy prediction:

  1. Gradient Boosting Decision Trees (GBDT): This model handles offline modeling of hardware-specific factors, such as memory bandwidth and processor frequency.
  2. Gated Recurrent Unit (GRU): This neural network component runs during execution to "fine-tune" energy predictions in real-time. By incorporating sensor data and current system workloads, the GRU allows AdaOper to adapt to environmental changes that static formulas would miss.

Energy-Aware Operator Partitioning

Unlike systems that split models at a coarse level (e.g., half the model on the CPU and half on the GPU), AdaOper operates at the operator level. This fine-grained control allows the system to decide the optimal processor for each individual mathematical building block of the DNN.

To find the most efficient distribution, AdaOper utilizes a Dynamic Programming (DP) algorithm. To ensure the optimization process itself does not introduce significant latency, the researchers implemented an iterative, memory-light version of the DP that focuses only on the most relevant execution states.

Evaluation and Results

The researchers evaluated AdaOper on a Xiaomi 9 smartphone (Snapdragon 855 SoC) using the YOLO v2 object detection model, a standard benchmark for real-time mobile vision. AdaOper was compared against state-of-the-art frameworks, including CoDL (a concurrent execution framework) and MACE (Mobile AI Compute Engine).

Key findings include:

  • Energy Efficiency: In high-workload scenarios, AdaOper improved energy efficiency by 16.88% compared to CoDL.
  • Responsiveness: Despite its focus on energy, AdaOper also reduced latency by 12.97% under high workloads, demonstrating that energy-aware partitioning can also streamline execution.
  • Scalability: The system maintained significant performance gains across both moderate and high workload settings, proving its adaptability to varying levels of system stress.

Conclusion and Future Work

AdaOper demonstrates that intelligent, operator-level partitioning can significantly extend the battery life of mobile devices running intensive DNN tasks without sacrificing responsiveness. While the current research focuses on CPU-GPU co-execution on the Snapdragon 855, future work will explore broader hardware variety, including dedicated NPUs and newer SoC architectures. Additionally, testing the framework on more complex models like Transformers or Large Language Models (LLMs) will further validate its utility for the next generation of mobile AI applications.

Summary updated

BibTeX
@inproceedings{lin2024adaoper,
  author = {Zheng Lin and Bin Guo and Sicong Liu and Wentao Zhou and Yasan Ding and Yu Zhang and Zhiwen Yu},
  title = {{AdaOper: Energy-efficient and Responsive Concurrent DNN Inference on Mobile Devices}},
  booktitle = {AdaAIoTSys@MobiSys},
  year = {2024},
  url = {https://openreview.net/forum?id=XGpjrrKqP7},
}
Figure