Mobiprox: Supporting Dynamic Approximate Computing on Mobiles

Matevz Fabjancic, Octavian Machidon, Hashim Sharif, Yifan Zhao, Sasa Misailovic, Veljko Pejovic · DOI

Abstract

Mobiprox is a framework designed to enable dynamic approximate computing for deep learning models on mobile devices. Unlike static model compression, Mobiprox allows models to adjust their computational intensity at runtime based on environmental factors like battery level or input difficulty. By utilizing software-level approximation "knobs" such as convolution perforation and filter sampling, Mobiprox achieves up to 15% system-wide energy savings on real-world mobile hardware with minimal impact on inference accuracy.

Introduction

Deep Learning (DL) has become a staple of mobile applications, powering everything from voice assistants to activity trackers. However, these models are resource-hungry, often draining batteries and causing latency. Standard solutions like model compression (quantization or pruning) are typically "static"—once a model is compressed, its accuracy and resource usage are fixed. This is inefficient because mobile environments are dynamic: a keyword spotter needs high precision in a noisy street but can get away with much less in a quiet room. Mobiprox addresses this by enabling dynamic runtime adaptation on real-world mobile hardware.

Methods

Mobiprox bridges the gap between high-level model design and low-level mobile execution through a three-stage pipeline:

  1. Approximation Knobs: The framework implements software-level techniques including Convolution Perforation (skipping specific rows or columns), Filter Sampling (using a subset of filter components), and Half-Precision (FP16) Quantization.
  2. The Profiling Pipeline: Mobiprox identifies a "Pareto front" of configurations on a server and then uses a custom Android-based profiler to measure actual speedup and accuracy loss on the target device.
  3. Runtime Adaptation: Strategies include State-driven adaptation (switching based on activity stability) and Confidence-driven adaptation (using softmax confidence to identify "easy" inputs).

Technically, Mobiprox extends the HPVM (Heterogeneous Parallel Virtual Machine) compiler and introduces a novel OpenCL-based tensor runtime for Android, allowing it to bypass the limitations of standard frameworks like TensorFlow Lite.

The Mobiprox framework architecture, illustrating the workflow from the development machine to the target Android device.

Evaluation and Key Insights

The framework was evaluated using CIFAR-10, Human Activity Recognition (HAR) datasets, and Google Speech Commands. A critical finding was the "Server Gap": speedups measured on a server (using CUDA) are often double what is actually achievable on a mobile device (using OpenCL). This discrepancy highlights the necessity of on-device profiling for accurate mobile optimization.

Comparison of approximation tuning on a server versus a mobile device, demonstrating the significant performance gap between environments.

Key Results

  • Energy and Speed: Mobiprox achieved up to 15% system-wide energy savings and a 1.25x speedup on commodity smartphones like the Samsung Galaxy S21.
  • Accuracy: In HAR tasks, energy savings resulted in only a 2% accuracy drop. In keyword recognition, Mobiprox maintained baseline accuracy while saving 15% energy.
  • Practicality: The tuning process for a new model completes in under an hour, making it suitable for standard development cycles without requiring expensive retraining.

Conclusion

Mobiprox demonstrates that context-aware, dynamic approximation is a viable and effective strategy for mobile DL. While currently focused on CNNs, future work aims to optimize the OpenCL runtime further and expand support to other architectures like Transformers. The framework proves that on-device profiling is non-negotiable for achieving real-world performance gains.

Summary updated

BibTeX
@article{fabjancic2024mobiprox,
  author = {Matevz Fabjancic and Octavian Machidon and Hashim Sharif and Yifan Zhao and Sasa Misailovic and Veljko Pejovic},
  title = {{Mobiprox: Supporting Dynamic Approximate Computing on Mobiles}},
  journal = {IEEE Internet of Things Journal},
  year = {2024},
  doi = {10.1109/jiot.2024.3365957},
}
Figure