PipeTune: Pipeline Parallelism of Hyper and System Parameters Tuning for Deep Learning Clusters

Isabelly Rocha, Nathaniel Morris, Lydia Y. Chen, Pascal Felber, Robert Birke, Valerio Schiavoni

Introduction

Training state-of-the-art Deep Neural Networks (DNNs) is an increasingly resource-intensive endeavor. Achieving peak model performance typically requires extensive tuning of hyperparameters (HPs), such as learning rates and batch sizes. However, the efficiency of this process is heavily influenced by system parameters (SPs)—the underlying hardware resource allocations like CPU core counts and memory limits.

Historically, these two domains have been treated in isolation. Researchers either tune HPs on fixed hardware or manually configure systems for specific workloads. A "brute force" approach that attempts to optimize both simultaneously faces an exponential explosion in the configuration space, leading to prohibitive costs and time requirements. PipeTune addresses this critical bottleneck by introducing a framework that treats system tuning as a first-class citizen, optimized in parallel with hyperparameter search.

Comparison of PipeTune with existing deep learning tuning and training systems.

The PipeTune Framework

PipeTune operates as a middleware layer, bridging the gap between training frameworks (e.g., BigDL) and hyperparameter optimization (HPO) libraries (e.g., Ray Tune). Its primary innovation is a three-phased, pipelined approach designed to minimize the overhead of system tuning.

1. Profiling Phase

During the initial epochs of a training job, PipeTune monitors low-level hardware performance counters. These include metrics such as cache misses, branch instructions, and CPU cycles. This data is used to construct a unique "fingerprint" of the specific workload.

Hardware event profiling across training epochs used to create workload fingerprints.

2. Ground Truth Phase

The generated fingerprint is compared against a database of historical training runs using k-means clustering. If a match is found—indicating a similar workload has been encountered before—PipeTune can immediately apply the previously discovered optimal system configuration, bypassing the need for further exploration.

3. Probing Phase

In cases where the workload is novel, PipeTune enters a probing mode. It executes a rapid grid search of various system configurations across subsequent training epochs. Because DNN training is iterative, PipeTune can "hot-swap" resource allocations on-the-fly between epochs. This "pipelined parallelism" ensures that system optimization occurs while the model is already progressing through its hyperparameter trials, effectively amortizing the cost of tuning.

Experimental Evaluation

The authors evaluated PipeTune across a diverse set of workloads to demonstrate its versatility:

  • Type-I (Model Consistency): LeNet5 trained on MNIST and Fashion-MNIST datasets.
  • Type-II (Data Consistency): CNN and LSTM models trained on the News20 text dataset.
  • Type-III (General Iterative Workloads): Non-DNN benchmarks from the Rodinia Suite (e.g., Jacobi, BFS) to test the framework's broader applicability.

Key Insights

  • System Parameters as Hidden Hyperparameters: The study demonstrates that SPs significantly impact the cost-accuracy trade-off and should be optimized in tandem with HPs.
  • Privacy-Preserving Profiling: Utilizing low-level hardware events allows PipeTune to identify similar workloads without requiring access to proprietary model architectures or raw data, which is crucial for shared or multi-tenant clusters.
  • Epoch-Level Optimization: By treating the epoch as the fundamental unit of optimization, PipeTune avoids the need to restart jobs when changing system settings, significantly reducing idle time.

Results and Impact

When compared to industry-standard baselines like Ray Tune, PipeTune achieved substantial improvements in both speed and efficiency:

  • Performance: Up to a 1.7x speedup in total training time.
  • Tuning Efficiency: A 22.6% reduction in total tuning time.
  • Sustainability: A 29% reduction in energy consumption, achieved by identifying resource configurations that avoid synchronization overheads (e.g., preventing over-allocation of CPU cores).
  • Accuracy Preservation: PipeTune maintains model accuracy levels comparable to traditional tuning methods, ensuring that efficiency gains do not come at the cost of performance.

Conclusion and Future Work

PipeTune represents a significant step forward in making DNN training more accessible and sustainable. By automating the complex interplay between hyperparameter and system tuning, it reduces the expertise and resources required for high-performance machine learning. Future work aims to extend this logic to GPU-based clusters, integrating GPU-specific hardware counters and resource management metrics to further broaden the framework's impact.

Summary updated

BibTeX
@inproceedings{rocha2020pipetune,
  author = {Isabelly Rocha and Nathaniel Morris and Lydia Y. Chen and Pascal Felber and Robert Birke and Valerio Schiavoni},
  title = {{PipeTune: Pipeline Parallelism of Hyper and System Parameters Tuning for Deep Learning Clusters}},
  booktitle = {Middleware},
  year = {2020},
  doi = {10.1145/3423211.3425692},
}
Figure