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.
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.
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