[Paper Review] Adaptive Selection of Deep Learning Models on Embedded Systems
This paper proposes an adaptive, machine learning-driven runtime model selection framework for embedded systems that dynamically chooses the optimal deep neural network (DNN) based on input characteristics and accuracy requirements. By training a predictive model off-line to select from a suite of pre-trained DNNs, the approach achieves 7.52% higher top-1 accuracy and 1.8× faster inference than the best single DNN model on the ImageNet dataset using a Jetson TX2 platform.
The recent ground-breaking advances in deep learning networks ( DNNs ) make them attractive for embedded systems. However, it can take a long time for DNNs to make an inference on resource-limited embedded devices. Offloading the computation into the cloud is often infeasible due to privacy concerns, high latency, or the lack of connectivity. As such, there is a critical need to find a way to effectively execute the DNN models locally on the devices. This paper presents an adaptive scheme to determine which DNN model to use for a given input, by considering the desired accuracy and inference time. Our approach employs machine learning to develop a predictive model to quickly select a pre-trained DNN to use for a given input and the optimization constraint. We achieve this by first training off-line a predictive model, and then use the learnt model to select a DNN model to use for new, unseen inputs. We apply our approach to the image classification task and evaluate it on a Jetson TX2 embedded deep learning platform using the ImageNet ILSVRC 2012 validation dataset. We consider a range of influential DNN models. Experimental results show that our approach achieves a 7.52% improvement in inference accuracy, and a 1.8x reduction in inference time over the most-capable single DNN model.
Motivation & Objective
- Address the challenge of high inference latency and resource consumption when running deep learning models on resource-constrained embedded devices.
- Overcome limitations of model compression and cloud offloading due to accuracy loss, privacy concerns, and network dependency.
- Enable dynamic, input-aware selection of pre-trained DNN models to balance accuracy and inference speed at runtime.
- Develop an automated, learnable heuristic for model selection that adapts to varying input complexity and user-defined precision constraints.
Proposed method
- Train a predictive machine learning model off-line using features extracted from input data (e.g., image complexity, texture, resolution) and corresponding DNN inference performance metrics.
- Use a set of pre-trained, diverse DNN models (e.g., MobileNet, ResNet, DenseNet) with varying accuracy and speed trade-offs as candidates for selection.
- Automatically tune and select input features that best predict the optimal DNN model for a given input and precision constraint.
- At runtime, infer the best DNN model for a new input by feeding its features into the trained predictor, minimizing latency while meeting accuracy targets.
- Leverage ensemble-like behavior by combining multiple models’ strengths through intelligent selection rather than running all models.
- Optimize for real-world embedded deployment by minimizing the overhead of model selection and ensuring compatibility with platforms like NVIDIA Jetson TX2.
Experimental results
Research questions
- RQ1Can a learned predictor effectively select the best DNN model for a given input to minimize inference time while maintaining required accuracy?
- RQ2How does adaptive model selection compare to using a single, most-accurate DNN model in terms of accuracy and inference speed on embedded hardware?
- RQ3To what extent can input-specific features predict the optimal DNN model for a given workload and precision constraint?
- RQ4Can the proposed approach be generalized across diverse DNN architectures and input data distributions without retraining?
- RQ5What is the performance gain in accuracy and speed when using adaptive selection versus static model deployment on embedded platforms?
Key findings
- The proposed adaptive model selection approach achieves a 7.52% improvement in top-1 accuracy compared to the most accurate single DNN model on the ImageNet ILSVRC 2012 validation set.
- The method reduces average inference time by 1.8× compared to the best-performing single DNN model, significantly improving real-time performance.
- The learned predictor achieves high accuracy in selecting the optimal DNN model based on input features, demonstrating robustness across diverse image inputs.
- The approach effectively balances the trade-off between model accuracy and inference speed, outperforming static model deployment in both metrics.
- The framework is portable across different precision requirements and can be applied to any set of pre-trained DNNs with varying speed-accuracy trade-offs.
- The runtime model selection overhead is minimal, making the approach practical for real-time embedded applications with strict latency and power constraints.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.