TL;DR
This paper introduces an adaptive runtime scheme that uses a lightweight machine learning "premodel" to select the optimal Deep Neural Network (DNN) for a specific input on embedded devices. By matching image complexity to model capability at runtime, the system achieves higher accuracy and lower latency than using any single fixed model.
What Problem Does This Paper Address?
Deep learning on the edge is a difficult balancing act. High-accuracy models are often too slow for resource-constrained embedded systems, while fast, compressed models frequently sacrifice too much precision. Furthermore, offloading computation to the cloud is often a non-starter due to privacy concerns, high latency, or unreliable connectivity.
The authors observe that "one size does not fit all." As shown in Figure 1, a simple, fast model might be perfectly adequate for a clear, well-lit image, whereas a cluttered or low-contrast scene requires a much more sophisticated (and computationally expensive) model to achieve the same accuracy. The challenge is determining—quickly and locally—which model to use for a given input to minimize time without failing the task.

Methods
The core of the proposed solution is a hierarchical premodel that acts as a traffic controller for incoming data.
- The Premodel Architecture: The system uses a sequence of k-Nearest Neighbor (KNN) classifiers. When an image arrives, the premodel predicts whether the fastest available DNN can handle it. If not, it passes the features to the next level to check the next most capable model, and so on.
- Feature Engineering: To keep the overhead low, the authors initially considered 30 image features (e.g., edge histograms, brightness, hue, aspect ratio). Using Pearson correlation and a greedy search, they pruned this down to 7 essential features that characterize image difficulty without redundant computation.
- Model Selection Algorithm: Instead of just picking the "best" individual models, the authors developed an iterative algorithm to select a suite of DNNs that complement each other. They specifically choose models that succeed on the specific subsets of data where the current pool fails.
- Runtime Execution: At runtime, the system extracts the 7 features, runs the KNN sequence (which takes <1ms), and then executes only the selected DNN.
Datasets
The authors evaluated their approach using the ImageNet ILSVRC 2012 validation dataset, which contains 50,000 images covering a wide range of objects and complexities. They used this dataset to profile 14 different pre-trained CNN architectures from the TensorFlow-Slim library, including various versions of MobileNet, ResNet, and Inception.
Key Insights and Ideas
- Input-Dependent Optimality: The "best" model is a moving target. It changes not only based on the image content but also on the user's requirements (e.g., whether they need Top-1 or Top-5 accuracy).
- KNN vs. CNN for Selection: While one might expect a CNN to be a good predictor for other CNNs, the authors found that a simple KNN was superior for the premodel. Because the KNN levels share the same underlying data, distance calculations from the first level can be reused for subsequent levels, keeping selection overhead nearly constant regardless of the hierarchy depth.
- The "Oracle" Gap: The system achieves over 96% of the performance of a theoretical "Oracle" (a perfect, zero-cost predictor). This suggests that lightweight, hand-crafted image features are surprisingly effective proxies for determining DNN "difficulty."
Key Results
The system was evaluated on an NVIDIA Jetson TX2 platform, yielding impressive gains over the most capable single model in their set (ResNet_v2_152):
- Accuracy: Achieved a 7.52% improvement in inference accuracy.
- Latency: Delivered a 1.8x reduction in inference time.
- Energy: Reduced energy consumption by more than 2x compared to high-end models like Inception and ResNet.
- Reliability: The premodel correctly identified the optimum model for 95.6% of the test cases.
Limitations and Future Work
- Feature Extraction Overhead: Although the selection logic is fast, the feature extraction itself (written in Python for the prototype) accounts for roughly 20% of the total execution time. The authors suggest that porting this to a more efficient language or utilizing parallelism could further reduce latency.
- Storage Constraints: Storing multiple pre-trained models requires significant disk space. The authors propose that future work could involve using compressed models that share weights to minimize the storage footprint.
- Domain Expansion: The current feature set is specific to image classification. Adapting this approach to other domains, such as Natural Language Processing (NLP), would require identifying a new set of lightweight input features (e.g., text embeddings).
Summary updated