This paper, presented at ACM MobiSys '24, introduces AdaOper, a system designed to make deep learning on your phone faster and, more importantly, much friendlier to your battery.
TL;DR
AdaOper is an energy-efficient framework for running deep neural networks (DNNs) on mobile devices by intelligently splitting tasks between different processors (like the CPU and GPU). By using a hybrid machine learning approach to predict energy costs in real-time and a fast dynamic programming algorithm for task partitioning, it reduces energy consumption by up to 16.88% compared to state-of-the-art methods.
What Problem Does This Paper Address?
Modern mobile applications—from voice assistants to real-time video filters—rely heavily on Deep Neural Networks (DNNs). To handle these intensive tasks, mobile chips now feature heterogeneous architectures, including CPUs, GPUs, and NPUs.
The standard approach to speeding up these tasks is "concurrency": splitting the workload across these different processors to run them in parallel. However, the authors identify a critical gap: faster doesn't always mean more efficient. Sometimes, the energy cost of moving data between processors or the overhead of managing parallel tasks actually drains the battery faster than running the task on a single processor would.
Furthermore, predicting energy use is difficult because mobile environments are dynamic. Background apps, thermal throttling, and varying processor frequencies make "offline" energy models (pre-calculated formulas) inaccurate in the real world.
Methods
AdaOper consists of two primary components designed to tackle these challenges:
- Runtime Energy Profiler: Instead of relying on a static formula, AdaOper uses a two-tier ML approach.
- GBDT (Gradient Boosting Decision Trees): Used for offline modeling of hardware-specific factors like memory bandwidth and processor frequency.
- GRU (Gated Recurrent Unit): A type of neural network that runs during execution to "fine-tune" energy predictions based on real-time sensor data and current system workloads.
- Energy-Aware Operator Partitioning: Once the system knows the energy "cost" of different operations, it needs to decide how to split the DNN. AdaOper treats this as an optimization problem. It uses a Dynamic Programming (DP) algorithm to find the best way to distribute "operators" (the individual building blocks of a neural network) across processors. To ensure this doesn't slow down the phone, they optimized the DP to be iterative and memory-light, focusing only on the most relevant states.
Datasets
The authors evaluated AdaOper using the YOLO v2 (You Only Look Once) object detection model, a common benchmark for real-time mobile vision tasks. The experiments were conducted on a Xiaomi 9 smartphone equipped with a Snapdragon 855 SoC.
Key Insights and Ideas
- The Parallelism Paradox: The "aha moment" here is that maximizing hardware utilization can actually be counter-productive for battery life. AdaOper explicitly seeks the "sweet spot" where latency and energy consumption are balanced.
- Granularity is Key: Many systems split models at a coarse level (e.g., "half on CPU, half on GPU"). AdaOper works at the operator level, allowing for much finer control over where specific mathematical operations are executed.
- Adaptability over Static Rules: By using a GRU to adjust predictions at runtime, the system can react to the phone getting hot or other apps starting in the background—factors that static models completely miss.
Key Results
The researchers compared AdaOper against CoDL (a state-of-the-art concurrent execution framework) and MACE (Mobile AI Compute Engine).
- Energy Efficiency: Under high workload conditions, AdaOper improved energy efficiency by 16.88% compared to CoDL.
- Latency Reduction: Despite focusing on energy, the system also improved responsiveness, reducing latency by 12.97% in high-workload scenarios.
- Workload Scaling: The system showed significant gains in both "moderate" and "high" workload settings, proving it can adapt to different levels of system stress.
Limitations and Future Work
As this is a short (2-page) paper, there are a few areas for further exploration:
- Hardware Variety: The results are currently demonstrated on a single SoC (Snapdragon 855). Testing on newer chips with dedicated NPUs (Neural Processing Units) would be a logical next step.
- Model Diversity: While YOLO v2 is a great benchmark, testing on Transformers or Large Language Models (LLMs) optimized for mobile would show how the system handles more complex data dependencies.
- NPU Integration: While the paper mentions NPUs, the primary experimental focus was on CPU-GPU co-execution. Fully integrating the NPU into the dynamic partitioning logic remains a promising direction.
Summary updated