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

Abstract

Deep learning researchers frequently perform repetitive training tasks, such as hyperparameter tuning and architecture search, which often under-utilize modern hardware like GPUs and TPUs. We present the Horizontally Fused Training Array (HFTA), a library that boosts training efficiency by fusing multiple repetitive training jobs into a single massive job. By merging models at the operator level, HFTA eliminates hardware under-utilization and achieves up to 15.1x higher throughput compared to standard serial training practices.

Introduction

Modern deep learning (DL) accelerators, including NVIDIA GPUs and Google TPUs, are designed for massive parallel workloads. However, individual training jobs often fail to saturate the available compute power of Streaming Multiprocessors and Tensor Cores. Analysis of real-world cluster usage reveals that repetitive, single-accelerator jobs consume nearly half of all resources while exhibiting poor hardware utilization. While hardware-level sharing solutions like NVIDIA’s Multi-Process Service (MPS) or Multi-Instance GPU (MIG) exist, they often incur high runtime overheads and memory duplication.

HFTA addresses this by introducing "inter-model horizontal operator fusion." Instead of running N separate processes, HFTA merges models at the operator level, converting many small, inefficient kernels into fewer, larger, and more efficient ones.

Methodology

The core of HFTA is the transformation of standard neural network operators into fused counterparts. For instance, multiple 2D convolutions from distinct training jobs are fused into a single "Grouped Convolution." This operation is mathematically equivalent but significantly more optimized for modern DL frameworks.

Figure 1: Conceptual diagram of HFTA fusing multiple training jobs into a single pipeline with fused operators like HFTA Conv2d and HFTA ReLU.

The HFTA library includes a suite of 17 PyTorch operators (e.g., BatchNorm, Linear) capable of handling multiple models simultaneously, along with fused optimizers and learning rate schedulers. Implementation is designed to be minimally invasive, allowing researchers to swap standard PyTorch modules for HFTA-enabled ones with minimal code changes.

Figure 2: Code snippet demonstrating how standard PyTorch nn modules are replaced with HFTA-fused operators using the get_hfta_op_for utility.

Experimental Evaluation

HFTA was evaluated across diverse models and datasets, including PointNet (ShapeNet), DCGAN (LSUN), ResNet-18 (CIFAR-10), and BERT-Medium (WikiText-2).

Key Results

  • Throughput Gains: HFTA achieved 2.42x to 11.50x higher throughput on GPUs and up to 15.13x on TPUs compared to serial training.
  • Efficiency: It outperformed NVIDIA’s MPS and MIG by up to 4.72x and 4.88x, respectively.
  • Memory Optimization: By running in a single process, HFTA avoids CUDA context duplication, allowing up to 7.57x more models to fit on a single device (e.g., in DCGAN).
  • Cost and Convergence: Total GPU hour costs for hyperparameter tuning were reduced by up to 5.10x, while maintaining exact mathematical equivalence and convergence behavior.

Discussion and Conclusion

HFTA acts as a "hardware utilization squeezer," significantly reducing the overhead of kernel launches and memory format conversions. Its hardware-agnostic nature allows it to scale across NVIDIA V100, A100, and Google TPUs.

However, its effectiveness is tied to the tuning algorithm; it is highly compatible with parallel-friendly methods like Random Search but less so with sequential methods like Hyperband. Future work will focus on expanding the operator library and adapting tuning algorithms to better leverage horizontal fusion.

Summary updated

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. 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.
BibTeX
@misc{wang2021horizontally,
  author = {Shang Wang and Peiming Yang and Yuxuan Zheng and Xin Li and Gennady Pekhimenko},
  title = {{Horizontally Fused Training Array: An Effective Hardware Utilization Squeezer for Training Novel Deep Learning Models}},
  year = {2021},
  eprint = {2102.02344},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2102.02344},
}
Figure