Abstract
Supercomputing facilities often experience significant resource underutilization due to scheduling "holes"—idle nodes that cannot be filled by the primary job queue. BFTrainer is a resource management system that harvests these transient idle nodes to perform Deep Neural Network (DNN) training at near-zero cost. By leveraging the inherent malleability of DNN training and a Mixed Integer Linear Programming (MILP) optimizer, BFTrainer achieves up to 93% efficiency compared to dedicated resources. The system ensures zero impact on the primary scheduler, providing a seamless way to maximize supercomputer throughput.
Introduction
Traditional High-Performance Computing (HPC) schedulers, typically employing First-Come-First-Served (FCFS) policies, frequently encounter resource fragmentation. These "holes" occur when a large job is queued, leaving smaller sets of nodes idle. While backfilling helps, approximately 8.6% to 12.5% of nodes on systems like Summit and Theta remain idle. These fragments are often short-lived and unpredictable, making them unsuitable for rigid or moldable HPC applications that cannot easily change their resource count or incur high checkpointing costs.
Deep Neural Network (DNN) training presents an ideal "filler" workload. Due to data parallelism, DNN jobs are highly malleable; they can scale their resource count at runtime with minimal overhead. BFTrainer leverages this characteristic to turn idle fragments into productive compute time without interfering with the primary system scheduler.
Characterizing Idle Resources
To understand the potential of these idle fragments, the authors analyzed logs from the Summit, Theta, and Mira supercomputers. The analysis revealed that while many idle fragments are short—58% are under 10 minutes—they represent a significant aggregate compute capacity. On Summit alone, the available idle nodes were equivalent to a constant pool of 524 nodes over a two-month period.
The BFTrainer Framework
BFTrainer manages a pool of idle nodes for multiple DNN training jobs ("Trainers"). The core of the system is a Mixed Integer Linear Programming (MILP) optimizer that reallocates nodes whenever the pool changes.
Accounting for Rescaling Costs
A key innovation in BFTrainer is the explicit modeling of rescaling costs. Adding a node (scaling up) involves initializing data pipelines and cloning models, which takes time ($R_{up}$). Scaling down also incurs a smaller cost ($R_{dw}$). BFTrainer incorporates these costs into its MILP constraints to prevent "thrashing"—frequent scaling that yields no net training progress.
Optimization and Efficiency
The MILP solver optimizes for metrics such as total throughput or scaling efficiency. To handle the unknown duration of idle "holes," BFTrainer uses a forward-looking time parameter ($T^{fwd}$) to estimate node availability. This ensures that a job only scales up if the expected training gain outweighs the setup cost. Despite the NP-hard nature of MILP, the solver remains highly efficient, finding optimal solutions for up to 800 nodes and 30 jobs in under one second.
Evaluation and Results
The system was evaluated using scheduler logs from Summit, Theta, and Mira, alongside performance profiles of seven popular DNN models (e.g., ResNet18, DenseNet) on the ImageNet dataset.
- High Efficiency: The system achieved a resource utilization efficiency of up to 93% relative to dedicated nodes.
- Superiority over Heuristics: The MILP approach outperformed simple "equal distribution" heuristics by up to 32%.
- Fairness: By using scaling efficiency as an objective, BFTrainer ensures fair resource allocation even when models have vastly different compute intensities.
- Zero Impact: Because BFTrainer jobs are fully preemptable, they can be evicted immediately when the main scheduler requires the nodes, ensuring zero impact on primary HPC workloads.
Conclusion and Future Work
BFTrainer demonstrates that idle supercomputer fragments can be effectively harvested for DNN training with near-zero impact on primary workloads. Future work includes implementing topology-aware allocation to account for interconnect speeds and using machine learning to better predict the lifespan of idle fragments, further minimizing preemption costs. Expanding the scope to other iterative, malleable scientific simulations is also a promising direction.
Summary updated