Abstract
Radical progress in the field of deep learning (DL) has led to unprecedented accuracy in diverse inference tasks. As such, deploying DL models across mobile platforms is vital to enable the development and broad availability of the next-generation intelligent apps. Nevertheless, the wide and optimised deployment of DL models is currently hindered by the vast system heterogeneity of mobile devices, the varying computational cost of different DL models and the variability of performance needs across DL applications. This paper proposes OODIn, a framework for the optimised deployment of DL apps across heterogeneous mobile devices. OODIn comprises a novel DL-specific software architecture together with an analytical framework for modelling DL applications that: (1) counteract the variability in device resources and DL models by means of a highly parametrised multi-layer design; and (2) perform a principled optimisation of both model- and system-level parameters through a multi-objective formulation, designed for DL inference apps, in order to adapt the deployment to the user-specified performance requirements and device capabilities. Quantitative evaluation shows that the proposed framework consistently outperforms status-quo designs across heterogeneous devices and delivers up to 4.3x and 3.5x performance gain over highly optimised platform- and model-aware designs respectively, while effectively adapting execution to dynamic changes in resource availability.
Introduction
Deploying Deep Learning (DL) models on mobile devices is currently a fragmented challenge. Developers face a "triple threat" of variability: hardware heterogeneity (ranging from low-end chips to high-end NPUs), model diversity (varying computational footprints for different tasks), and dynamic environments (thermal throttling and background task interference). Current solutions often optimize for specific flagship devices or models, leaving mid-to-low-end devices with suboptimal performance. OODIn addresses these challenges by providing a framework that automatically selects the optimal model version and hardware settings for any specific device.
The OODIn Framework
OODIn (Optimised On-Device Inference) bridges the gap between DL models and mobile hardware through a two-stage approach.
Offline Component
Before deployment, OODIn generates multiple model variants (e.g., using different quantization levels like INT8 or FP16) and profiles them on the target device. It explores various "knobs," such as CPU thread counts, processor choice (CPU, GPU, or NPU), and inference frequency. Using Multi-Objective Optimization (MOO), it identifies Pareto-optimal configurations that balance accuracy, latency, and power based on user goals.
Online Component
The "brain" of the deployed application is the Runtime Manager. It monitors device state (CPU load, temperature) in real-time. If it detects resource contention or thermal throttling, it proactively reconfigures the system—switching compute engines or model variants—to maintain a consistent user experience. This is supported by a layered software architecture that abstracts mobile APIs while allowing fine-grained hardware control.
Evaluation and Results
The framework was evaluated using industry-standard benchmarks, including ImageNet ILSVRC 2012 for classification and MS COCO/PASCAL VOC 2012 for semantic segmentation. Tested models included MobileNetV2, ResNetV2 101, InceptionV3, and EfficientNet-Lite.
Key results include:
- Significant Speedups: OODIn outperformed status-quo designs by up to 4.3× and highly optimized model-aware designs by up to 3.5×.
- Dynamic Adaptation: In thermal stress tests, OODIn detected throttling within ~1 second and successfully migrated workloads across engines (NNAPI → GPU → CPU) to prevent app failure.
- Resource Efficiency: When background tasks were present, OODIn reduced latency by up to 2.7× compared to static configurations by dynamically switching to less-congested processors.
Conclusion and Future Work
OODIn demonstrates that peak mobile DL performance requires a cross-section of both platform-aware and model-aware optimization. While currently focused on post-training quantization and computer vision, future work will explore more aggressive transformations like pruning and extend the framework to handle audio and NLP tasks. Additionally, reducing the overhead of on-device profiling through analytical modeling remains a key area for scaling the framework to the vast ecosystem of mobile devices.
Summary updated