Horizontally Fused Training Array: An Effective Hardware Utilization Squeezer for Training Novel Deep Learning Models

Shang Wang, Peiming Yang, Yuxuan Zheng, Xin Li, Gennady Pekhimenko
2/3/2021
24 citations
cs.LG

Official code: UofT-EcoSystem/hfta (32 stars, Python, MIT, PyTorch, last commit 2024-05-15).

Abstract

Driven by the tremendous effort in researching novel deep learning (DL) algorithms, the training cost of developing new models increases staggeringly in recent years. We analyze GPU cluster usage statistics from a top research institute for more insights into the hardware efficiency achieved by typical DL training jobs.

Show full abstract

Our study reveals that single-accelerator training jobs can dominate the cluster-wide resource consumption when launched repetitively (e.g., for hyper-parameter tuning) while severely under-utilizing the hardware. Fortunately, we observe that such workloads have the following unique characteristics: (i) the models among jobs often have the same types of operators with the same shapes, and (ii) the inter-model horizontal fusion of such operators is mathematically equivalent to other already well-optimized operators. Thus, to help DL researchers and practitioners effectively improve the hardware utilization of their novel DL training workloads, we propose Horizontally Fused Training Array (HFTA). HFTA is a new DL framework extension library that horizontally fuses the models from different repetitive jobs deeply down to operators and then trains them simultaneously on a shared accelerator. To show the generality of our solution, we apply HFTA to six DL models training on state-of-the-art accelerators (GPUs and TPUs). Our results indicate that HFTA is highly effective in improving hardware utilization and achieves up to $15.1 \times$ higher training throughput vs. the standard practice of running each job on a separate accelerator.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

Boost hardware utilization for ML training workloads via Inter-model Horizontal Fusion

3211Python, ShellDec 14, 20202 years agoMIT
deep-learninggpuhardware-utilizationmachine-learningneural-network+2 more

Similar Papers

Cite this paper

@article{wang2021horizontally,
  title  = {Horizontally Fused Training Array: An Effective Hardware Utilization Squeezer for Training Novel Deep Learning Models},
  author = {Shang Wang and Peiming Yang and Yuxuan Zheng and Xin Li and Gennady Pekhimenko},
  year   = {2021},
  eprint = {2102.02344},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2102.02344}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2102.02344.svg)](https://codeofpaper.com/paper/2102.02344)

Discussion