[Paper Review] A Runtime-Based Computational Performance Predictor for Deep Neural Network Training
This paper presents Habitat, a runtime-based performance predictor that enables accurate cross-GPU inference of DNN training iteration times using a single measurement on a reference GPU. By applying wave scaling and pre-trained multilayer perceptrons, it achieves an average prediction error of 11.8% across diverse models and GPU architectures, helping users make cost-efficient GPU selection decisions without requiring prior access to target hardware.
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 with 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 Habitat and find that it makes accurate iteration execution time predictions (with an average error of 11.8%) on ResNet-50, Inception v3, the Transformer, GNMT, and DCGAN across six different GPU architectures. Habitat supports PyTorch, is easy to use, and is open source.
Motivation & Objective
- To address the challenge of selecting cost-efficient GPUs for DNN training when users lack access to target hardware.
- To reduce reliance on incomplete or outdated benchmarks that cover only a limited set of models and GPUs.
- To enable accurate performance predictions for custom DNNs on new or unavailable GPU architectures.
- To support practical decision-making in scenarios like cloud GPU procurement, on-premise cluster scheduling, and hardware procurement.
Proposed method
- The method leverages the repetitive nature of DNN training to predict full training iteration times based on a single measurement on a reference GPU.
- It uses wave scaling—a technique derived from GPU execution models—to extrapolate operation-level execution times from a source GPU to a target GPU.
- It employs pre-trained multilayer perceptrons (MLPs) to model and predict execution time scaling across different GPU architectures.
- The system integrates with PyTorch and operates as a lightweight Python library, enabling easy instrumentation of DNN training workflows.
- It measures the execution time of individual operations in a single training iteration on a reference GPU and scales these times to estimate performance on other GPUs.
- The approach combines analytical scaling (wave scaling) and data-driven modeling (MLPs) to improve prediction accuracy across diverse DNNs and hardware.
Experimental results
Research questions
- RQ1Can a single runtime measurement on one GPU accurately predict the execution time of a DNN training iteration on a different GPU?
- RQ2How does wave scaling compare to data-driven models (e.g., MLPs) in predicting cross-GPU performance for DNN training?
- RQ3To what extent can this approach reduce the need for direct benchmarking on target hardware in GPU selection workflows?
- RQ4Does the method generalize across diverse DNN architectures such as ResNet-50, Inception v3, Transformers, GNMT, and DCGAN?
- RQ5Can the predictor guide cost-efficient GPU selection in real-world scenarios like cloud procurement or cluster scheduling?
Key findings
- Habitat achieves an average prediction error of 11.8% across five diverse DNN models—ResNet-50, Inception v3, the Transformer, GNMT, and DCGAN—on six different GPU architectures.
- The method successfully predicts that optimizing for cost-efficiency would lead to selecting a different GPU for GNMT, demonstrating practical utility in hardware selection.
- For DCGAN training, Habitat correctly predicts that the V100 offers no significant performance advantage over the consumer-grade 2080Ti, challenging assumptions about high-end GPU necessity.
- Wave scaling and MLP-based prediction both contribute to the overall accuracy, with the hybrid approach outperforming either method in isolation.
- The system enables accurate performance estimation without requiring direct access to target GPUs, reducing the barrier to informed hardware procurement and scheduling decisions.
- Habitat is open-sourced and integrated with PyTorch, making it accessible and practical for researchers and practitioners to use in real-world 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 NubintThis review was generated by AI from the original paper. Please check the paper before citing it.