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.
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.
To address these, the paper evaluates four strategies built on the Tree-Structured Parzen Estimator (TPE):
- only-optimize-new: Fixes "old" hyperparameters to their previous best values, tuning only new additions.
- drop-unimportant: Uses fANOVA to identify and tune only the most impactful hyperparameters from previous runs.
- best-first: A "warm-start" strategy that evaluates the previous best configuration first before proceeding with standard HPO.
- 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-firstandT2PEstrategies reached target performance 1.2x to 2.6x faster than starting from scratch. - The Power of Simplicity: Surprisingly, the
best-firststrategy proved remarkably effective, providing a massive initial boost with minimal risk. - Synergy: Combining
best-firstwithT2PEoften yielded the best overall performance, particularly when the previous HPO run had a substantial budget. - The Risk of Pruning: Strategies like
drop-unimportantoften 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