Skip to main content
QUICK REVIEW

[Paper Review] Performance Prediction for Convolutional Neural Networks in Edge Devices

Halima Bouzidi, Hamza Ouarnoughi|arXiv (Cornell University)|Oct 21, 2020
Advanced Neural Network ApplicationsComputer Science16 references5 citations
TL;DR

This paper evaluates five machine learning models—OLS, MLP, SVR, Random Forest, and XGBoost—for predicting inference execution time of Convolutional Neural Networks (CNNs) on edge GPU platforms. XGBoost achieves the best trade-off, with under 14.73% average prediction error even on unseen architectures, outperforming others in accuracy, training efficiency, and inference latency.

ABSTRACT

Running Convolutional Neural Network (CNN) based applications on edge devices near the source of data can meet the latency and privacy challenges. However due to their reduced computing resources and their energy constraints, these edge devices can hardly satisfy CNN needs in processing and data storage. For these platforms, choosing the CNN with the best trade-off between accuracy and execution time while respecting Hardware constraints is crucial. In this paper, we present and compare five (5) of the widely used Machine Learning based methods for execution time prediction of CNNs on two (2) edge GPU platforms. For these 5 methods, we also explore the time needed for their training and tuning their corresponding hyperparameters. Finally, we compare times to run the prediction models on different platforms. The utilization of these methods will highly facilitate design space exploration by providing quickly the best CNN on a target edge GPU. Experimental results show that eXtreme Gradient Boosting (XGBoost) provides a less than 14.73% average prediction error even for unexplored and unseen CNN models' architectures. Random Forest (RF) depicts comparable accuracy but needs more effort and time to be trained. The other 3 approaches (OLS, MLP and SVR) are less accurate for CNN performances estimation.

Motivation & Objective

  • To enable rapid design space exploration for CNNs on resource-constrained edge devices by predicting inference execution time early in the design process.
  • To identify the most accurate, efficient, and scalable machine learning model for CNN performance prediction on edge GPU platforms.
  • To evaluate the trade-offs between prediction accuracy, model training time, hyperparameter tuning cost, and inference latency across multiple ML models.
  • To assess the generalizability of the prediction models across different edge GPU platforms (NVIDIA AGX and TX2).

Proposed method

  • Extracted 20 CNN architecture features (e.g., depth, width, kernel size, FLOPs, parameter count) as input for performance prediction.
  • Trained five regression models: Ordinary Least Squares (OLS), Multi-Layer Perceptrons (MLP), Support Vector Regression (SVR), Random Forest (RF), and eXtreme Gradient Boosting (XGBoost).
  • Used grid search for hyperparameter tuning on both NVIDIA AGX and TX2 edge GPUs, with training data collected from profiling 100+ CNNs.
  • Measured and compared model performance across three evaluation spaces: NIS (new, unseen structures), NCV (new, validated), and NCA (new, augmented) CNNs.
  • Evaluated prediction latency of each model on AGX, TX2, and a CPU workstation to assess real-time usability in design exploration.
  • Reported results using Mean Absolute Percentage Error (MAPE) to quantify prediction accuracy and compared across models and platforms.

Experimental results

Research questions

  • RQ1Which machine learning model provides the most accurate inference time prediction for CNNs on edge GPUs across unseen architectures?
  • RQ2How do the training time, hyperparameter tuning cost, and inference latency of the five models compare in practice?
  • RQ3Does the prediction accuracy of the models degrade significantly when generalizing to new, untrained CNN architectures?
  • RQ4How transferable are the trained models across different edge GPU platforms (e.g., AGX vs. TX2) without retraining?
  • RQ5Can the models be efficiently used in real-time design space exploration for CNN deployment on edge devices?

Key findings

  • XGBoost achieved the lowest average prediction error of less than 14.73% across all test sets, including on unexplored and unseen CNN architectures (NCA space).
  • Random Forest (RF) provided comparable accuracy to XGBoost but required significantly more time and effort to train and tune, making it less practical for rapid design exploration.
  • OLS showed the highest MAPE values due to its inability to model complex, non-linear relationships between CNN features and execution time.
  • SVR and MLP were less accurate than XGBoost and RF, with SVR showing high variance in MAPE and sensitivity to kernel type and C hyperparameter values.
  • XGBoost demonstrated the best overall trade-off between prediction accuracy (92% for NIS and NCV), model tuning complexity, and inference latency, outperforming all other models in speed.
  • The prediction models showed similar performance on both NVIDIA AGX and TX2 platforms, indicating strong cross-platform generalization potential.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.