Skip to main content
QUICK REVIEW

[Paper Review] Transfer Learning for Performance Modeling of Deep Neural Network Systems

Shahriar Iqbal, Lars Kotthoff|arXiv (Cornell University)|Apr 4, 2019
EEG and Brain-Computer InterfacesNeuroscience5 citations
TL;DR

This paper proposes guided sampling (GS) transfer learning to efficiently build performance models for deep neural network (DNN) systems in new environments by reusing knowledge from pre-trained models. GS outperforms direct model transfer, linear/non-linear model shift by 19.76–23.47% in prediction accuracy using only 2.44% of the configuration space, enabling fast, accurate performance modeling with minimal retraining.

ABSTRACT

Modern deep neural network (DNN) systems are highly configurable with large a number of options that significantly affect their non-functional behavior, for example inference time and energy consumption. Performance models allow to understand and predict the effects of such configuration options on system behavior, but are costly to build because of large configuration spaces. Performance models from one environment cannot be transferred directly to another; usually models are rebuilt from scratch for different environments, for example different hardware. Recently, transfer learning methods have been applied to reuse knowledge from performance models trained in one environment in another. In this paper, we perform an empirical study to understand the effectiveness of different transfer learning strategies for building performance models of DNN systems. Our results show that transferring information on the most influential configuration options and their interactions is an effective way of reducing the cost to build performance models in new environments.

Motivation & Objective

  • To address the high cost of building performance models for DNN systems in new environments due to large configuration spaces.
  • To investigate whether transfer learning can reduce the effort required to build accurate performance models when environments change (e.g., hardware, workloads).
  • To evaluate and compare multiple transfer learning strategies—guided sampling, direct model transfer, linear/non-linear model shift—for DNN performance modeling.
  • To identify the most effective transfer strategy for predicting inference time and energy consumption in DNN systems.

Proposed method

  • Empirically evaluate four transfer learning strategies: guided sampling (GS), direct model transfer (DM), linear model shift (LMS), and non-linear model shift (NMLS) on 16 DNN system environments.
  • Use regression trees (RT) and neural networks (NN) to induce performance models from experimental data across 16 environments (2 hardware platforms, 2 models, 4 image sizes).
  • Apply step-wise regression with forward selection and backward elimination to identify influential configuration options and interactions (CPU status, frequency; GPU frequency; memory controller frequency).
  • Use a small, representative sample (2.44% of config space) to train transfer models, focusing on high-impact configuration interactions to reduce evaluation cost.
  • Measure performance using mean absolute percentage error (Err), with GS guiding sampling toward the most impactful configuration terms.
  • Select the Jetson TX2 with InceptionV3 and 600×600 images as the source environment, transferring to 15 target environments.

Experimental results

Research questions

  • RQ1How effective is guided sampling (GS) transfer learning compared to direct model transfer (DM), linear model shift (LMS), and non-linear model shift (NMLS) in predicting DNN system performance in new environments?
  • RQ2What is the reduction in prediction error when using GS versus other transfer learning methods for inference time and energy consumption?
  • RQ3How much of the configuration space is needed to achieve comparable accuracy to a full model built from scratch?
  • RQ4Does transfer learning effectiveness vary between hardware changes and workload changes (e.g., image size)?
  • RQ5Can transfer learning reduce the computational cost of building performance models while maintaining high accuracy?

Key findings

  • Guided sampling (GS) outperforms all other transfer learning methods, reducing prediction error by 19.76% for inference time and 8.33% for energy consumption using regression trees (RT).
  • For neural networks (NN), GS reduces error by 23.47% for inference time and 12.70% for energy consumption compared to the next best method (NMLS).
  • GS achieves performance model accuracy comparable to models built from scratch using only 2.44% of the full configuration space (≈2.48 hours of computation).
  • The error reduction from GS is substantial: 28.09% lower than DM and 23.47% lower than NMLS for inference time using neural networks.
  • For energy consumption, GS reduces error by 42.85% compared to DM and 12.70% compared to NMLS using neural networks.
  • Even with only 0.15% of the original training effort, GS achieves significantly better accuracy than reusing the original model (DM) without adaptation.

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.