Hyperparameter Transfer Across Developer Adjustments

Danny Stoll, Jörg K. H. Franke, Diane Wagner, Simon Selg, Frank Hutter

TL;DR

Machine learning development is inherently iterative, yet developers typically restart hyperparameter optimization (HPO) from scratch after every minor code change. This paper introduces Hyperparameter Transfer Across Adjustments (HT-AA), a framework that reuses data from previous HPO runs to accelerate subsequent searches by up to 2.6x, significantly reducing computational overhead and environmental impact.

The Iterative Developer's Dilemma

In modern ML workflows, a developer rarely settles on a model architecture in one go. They might start with a baseline neural network, tune the learning rate, and then decide to add a new layer, change an optimizer, or adjust the weight decay range.

Currently, the standard practice is to discard all previous HPO data and start a new search for every iteration. This "ignorance tax" is computationally expensive and wasteful. While "Transfer Learning" focuses on moving knowledge between different tasks, "Transfer across development steps"—moving knowledge between versions of the same task—has been largely overlooked.

Conceptual overview of automated knowledge transfer between algorithm iterations compared to the current manual restart approach.

The primary technical hurdle is that developer adjustments often alter the search space. Adding a hyperparameter creates a dimension where old data has no values, while changing ranges can render previous optimal points irrelevant or out-of-bounds.

The HT-AA Framework

The authors formalize the problem of transferring knowledge across these search space modifications. They categorize adjustments into three main types: adding/removing hyperparameters, changing hyperparameter ranges, and changing the underlying algorithm itself.

Three common types of search space adjustments handled by the HT-AA framework.

To address these, the paper evaluates four strategies built on the Tree-Structured Parzen Estimator (TPE):

  1. only-optimize-new: Fixes "old" hyperparameters to their previous best values, tuning only new additions.
  2. drop-unimportant: Uses fANOVA to identify and tune only the most impactful hyperparameters from previous runs.
  3. best-first: A "warm-start" strategy that evaluates the previous best configuration first before proceeding with standard HPO.
  4. Transfer TPE (T2PE): A sophisticated approach that fits a TPE model on projected results from previous runs, handling heterogeneous changes through a specialized sampling strategy.

Benchmarking and Results

The researchers developed eight novel benchmarks (FCN, NAS, XGBoost, and SVM) to simulate real-world developer adjustments. These benchmarks use surrogate models to ensure reproducibility.

Key Findings:

  • Significant Speedups: The best-first and T2PE strategies reached target performance 1.2x to 2.6x faster than starting from scratch.
  • The Power of Simplicity: Surprisingly, the best-first strategy proved remarkably effective, providing a massive initial boost with minimal risk.
  • Synergy: Combining best-first with T2PE often yielded the best overall performance, particularly when the previous HPO run had a substantial budget.
  • The Risk of Pruning: Strategies like drop-unimportant often underperformed, suggesting that hyperparameters deemed "unimportant" in one version may become critical after an adjustment.

Conclusion

HT-AA demonstrates that we can stop "restarting from zero." By treating HPO as a continuous process rather than a series of isolated events, developers can drastically reduce the time and energy required to refine their models. Future work aims to extend this into Continuous Knowledge Transfer, maintaining a persistent memory across the entire lifecycle of a machine learning project.

Based on: "Hyperparameter Transfer Across Developer Adjustments" (2020).

Summary updated

BibTeX
@misc{stoll2020hyperparameter,
  author = {Danny Stoll and Jörg K. H. Franke and Diane Wagner and Simon Selg and Frank Hutter},
  title = {{Hyperparameter Transfer Across Developer Adjustments}},
  year = {2020},
  eprint = {2010.13117},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.13117},
}
Figure