Publications

Prediction of the Resource Consumption of Distributed Deep Learning Systems

ACM SIGMETRICS 2022. / Proc. ACM Meas. Anal. Comput. Syst. 6, 2, Article 29 (June 2022), Acceptance rate 10.7% (13/122, winter submission), Virtual, Association for Computing Machinery, New York, NY, USA, 25 pages. doi: 10.1145/3530895

Gyeongsik Yang, Changyong Shin, Jeunghwan Lee, Yeonho Yoo, Chuck Yoo

Publisher page

Abstract

The prediction of the resource consumption for the distributed training of deep learning models is of paramount importance, as it can inform a priori users how long their training would take and also enable users to manage the cost of training. Yet, no such prediction is available for users because the resource consumption itself varies significantly according to "settings" such as GPU types and also by "workloads" like deep learning models. Previous studies have aimed to derive or model such a prediction, but they fall short of accommodating the various combinations of settings and workloads together. This study presents Driple that designs graph neural networks to predict the resource consumption of diverse workloads. Driple also designs transfer learning to extend the graph neural networks to adapt to differences in settings. The evaluation results show that Driple can effectively predict a wide range of workloads and settings. At the same time, Driple can efficiently reduce the time required to tailor the prediction for different settings by up to 7.3×.

Paper summary

Predict resource use for both the model and the machine

Driple estimates how distributed training will use GPUs, memory and the network before a full run.

Training time and cost depend on more than the model. Changing GPU types, worker counts or network links can change the pattern of compute and communication. Driple builds a predictor that can account for both the workload and the system it runs on.

Learn from the training graph and adapt to new hardware

A graph neural network takes the workload’s computational graph rather than the model name. It predicts 12 measurements: burst length, idle length and burst intensity for GPU use, GPU memory use, and network transmit and receive throughput. Transfer learning adapts the predictor when the system setting changes.

Adapt the predictor with less time

Across the workload and system settings tested, the study reports that transfer learning cuts the time required to tailor the predictor to a different setting by up to 7.3×. This is the time to adapt the predictor, not a speedup to the distributed training run itself.

Key takeaways

  1. Model the workload and its execution setting separately. The graph represents the computation, while adaptation accounts for changes to the system.
  2. Predict resource activity, not just elapsed time. Burst and idle periods show when a job needs the GPU or network.