MalleTrain: Deep Neural Network Training on Unfillable Supercomputer Nodes

Xiaolong Ma, Feng Yan, Lei Yang, Ian T. Foster, Michael E. Papka, Zhengchun Liu, Rajkumar Kettimuthu · DOI

Abstract

First-come first-serve scheduling can result in substantial (up to 10%) transiently idle nodes on supercomputers. Recognizing that such unfilled nodes are well-suited for deep neural network (DNN) training due to their flexible nature, prior work proposed re-scaling DNN tasks to fit schedule gaps as a mixed-integer linear programming (MILP) problem. Here, we introduce MalleTrain, the first practical implementation of this approach. MalleTrain generalizes the concept by supporting DNN applications where model information is unknown before runtime. Key to this innovation is a lightweight online job profiling advisor (JPA) that collects critical scalability information in real time. Our experimental evaluation on a supercomputer GPU cluster demonstrates that MalleTrain improves training throughput by up to 22.3% without requiring manual scalability data from users.

Introduction

Supercomputers represent massive capital investments, yet they rarely reach 100% utilization. Even with sophisticated schedulers, roughly 10% of nodes often sit idle because the next job in the queue is too large to fit into the remaining "fragmented" free slots—known as "unfillable" nodes. While DNN training is naturally parallel and could theoretically expand to fill these gaps, practical implementation is hindered by coordination complexity and the "information gap": the need for precise scalability data to optimize resource allocation.

Illustration of fragmented idle gaps in supercomputer node scheduling and the dynamic node pool used by MalleTrain to scavenge resources.

MalleTrain Architecture and Methods

MalleTrain introduces a holistic architecture to manage these scavenged resources. Its core components include a Scavenger that monitors the main batch scheduler (e.g., Slurm or PBS) to "adopt" idle nodes and a Resource Allocator that employs MILP to determine optimal node-to-job mappings.

The MalleTrain system architecture, featuring the Scavenger, Job Profiling Advisor (JPA), and Resource Allocator components.

A standout innovation is the Job Profiling Advisor (JPA). Instead of requiring manual performance data, JPA profiles jobs at runtime using an "inverse-order" strategy. It scales a job to its maximum requested node count immediately, then scales down incrementally. This approach leverages the observation that scale-up operations have significantly higher overhead than scale-down operations, allowing for rapid collection of scalability curves with minimal disruption to the training process.

Experimental Evaluation

The system was evaluated using scheduler traces from the Summit and Polaris supercomputers and tested on a 32-node cluster equipped with 128 NVIDIA A100 GPUs. Workloads included NASBench101 and various standard DNN models for hyperparameter optimization (HPO) tasks.

Key findings include:

  • Asymmetric Scaling Costs: Experimental data confirmed that scaling up is significantly more time-consuming than scaling down, justifying the JPA's inverse-order strategy.
  • Topology Resilience: On modern high-speed interconnects like HPE Slingshot 11, the physical distribution of fragmented nodes was found to have a negligible impact on training speed, confirming the viability of scavenging scattered resources.

Results and Conclusion

MalleTrain achieved up to a 22.3% improvement in training throughput over FreeTrain, the previous state-of-the-art. The system successfully harnessed transient nodes idle for as little as 60 seconds. By automating the profiling process, MalleTrain moves from a theoretical optimization to a practical tool that requires zero extra effort from researchers. Future work will address potential I/O bottlenecks in real-world scenarios with massive datasets and explore applications in cloud-based spot instance management.

Summary updated

Abstract

First-come first-serve scheduling can result in substantial (up to 10%) of transiently idle nodes on supercomputers. Recognizing that such unfilled nodes are well-suited for deep neural network (DNN) training, due to the flexible nature of DNN training tasks, Liu et al. proposed that the re-scaling DNN training tasks to fit gaps in schedules be formulated as a mixed-integer linear programming (MILP) problem, and demonstrated via simulation the potential benefits of the approach. Here, we introduce MalleTrain, a system that provides the first practical implementation of this approach and that furthermore generalizes it by allowing it use even for DNN training applications for which model information is unknown before runtime. Key to this latter innovation is the use of a lightweight online job profiling advisor (JPA) to collect critical scalability information for DNN jobs -- information that it then employs to optimize resource allocations dynamically, in real time. We describe the MalleTrain architecture and present the results of a detailed experimental evaluation on a supercomputer GPU cluster and several representative DNN training workloads, including neural architecture search and hyperparameter optimization. Our results not only confirm the practical feasibility of leveraging idle supercomputer nodes for DNN training but improve significantly on prior results, improving training throughput by up to 22.3\% without requiring users to provide job scalability information.
BibTeX
@inproceedings{ma2024malletrain,
  author = {Xiaolong Ma and Feng Yan and Lei Yang and Ian T. Foster and Michael E. Papka and Zhengchun Liu and Rajkumar Kettimuthu},
  title = {{MalleTrain: Deep Neural Network Training on Unfillable Supercomputer Nodes}},
  booktitle = {ICPE},
  year = {2024},
  doi = {10.1145/3629526.3645035},
}
Figure