Skip to main content
QUICK REVIEW

[Paper Review] Computational Performance Predictions for Deep Neural Network Training: A Runtime-Based Approach

Geoffrey X. Yu, Yubo Gao|arXiv (Cornell University)|Jan 31, 2021
Advanced Neural Network ApplicationsComputer Science29 references5 citations
TL;DR

This paper proposes a runtime-based approach to predict deep neural network (DNN) training performance across different GPUs using a single reference GPU. By scaling single-iteration execution times via wave scaling or pre-trained multilayer perceptrons, the method enables accurate, low-cost performance predictions for models like ResNet-50 and Transformers across six GPU architectures, implemented in the open-source Surfer library for PyTorch.

ABSTRACT

Deep learning researchers and practitioners usually leverage GPUs to help train their deep neural networks (DNNs) faster. However, choosing which GPU to use is challenging both because (i) there are many options, and (ii) users grapple with competing concerns: maximizing compute performance while minimizing costs. In this work, we present a new practical technique to help users make informed and cost-efficient GPU selections: make performance predictions using the help of a GPU that the user already has. Our technique exploits the observation that, because DNN training consists of repetitive compute steps, predicting the execution time of a single iteration is usually enough to characterize the performance of an entire training process. We make predictions by scaling the execution time of each operation in a training iteration from one GPU to another using either (i) wave scaling, a technique based on a GPU's execution model, or (ii) pre-trained multilayer perceptrons. We implement our technique into a Python library called Surfer and find that it makes accurate iteration execution time predictions on ResNet-50, Inception v3, the Transformer, GNMT, and DCGAN across six different GPU architectures. Surfer currently supports PyTorch, is easy to use, and requires only a few lines of code.

Motivation & Objective

  • To address the challenge of selecting optimal GPUs for DNN training amidst competing goals of performance and cost.
  • To reduce the need for extensive benchmarking by enabling accurate performance predictions using only a single reference GPU.
  • To develop a practical, easy-to-use tool that supports popular deep learning frameworks like PyTorch.
  • To provide a scalable solution applicable across diverse DNN architectures and GPU hardware.

Proposed method

  • Leverage the repetitive nature of DNN training by predicting full training performance based on a single iteration's execution time.
  • Apply wave scaling, a technique grounded in GPU execution models, to extrapolate performance from a reference GPU to target GPUs.
  • Train multilayer perceptrons on measured execution times to learn cross-GPU performance scaling patterns.
  • Integrate the prediction pipeline into a Python library called Surfer, supporting PyTorch models with minimal code changes.
  • Use measured runtime data from a single GPU to calibrate predictions for other architectures without requiring full training runs.
  • Support both theoretical (wave scaling) and learned (MLP) approaches to accommodate varying levels of hardware model availability.

Experimental results

Research questions

  • RQ1Can a single GPU's iteration runtime be reliably scaled to predict training performance on other GPU architectures?
  • RQ2How accurately can wave scaling and learned models predict cross-GPU performance for diverse DNNs?
  • RQ3To what extent does the proposed method reduce the need for full benchmarking across multiple GPUs?
  • RQ4How generalizable are the predictions across different DNN architectures such as ResNet-50, Transformers, and GANs?
  • RQ5How does the method perform in practice when integrated into a real deep learning workflow?

Key findings

  • The proposed method achieves high accuracy in predicting DNN training performance across six different GPU architectures.
  • Surfer enables accurate predictions using only a few lines of code and a single reference GPU.
  • Wave scaling and pre-trained MLPs both yield reliable performance predictions, with the latter offering adaptability across diverse hardware.
  • The method successfully predicts execution times for ResNet-50, Inception v3, Transformers, GNMT, and DCGAN.
  • The approach significantly reduces the need for time-consuming full training benchmarks, enabling cost-efficient GPU selection.
  • The Surfer library is effective and practical for real-world use in PyTorch-based deep learning workflows.

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.