TL;DR
Tuning the hyperparameters of the ubiquitous Adam optimizer is essential for peak performance but notoriously expensive. This paper introduces Adam-PFN, a specialized surrogate model for Freeze-thaw Bayesian Optimization trained on real learning curves, alongside a novel data augmentation technique called CDF-augment. This combination accelerates hyperparameter optimization significantly, achieving optimal tuning results up to 5x faster than generic state-of-the-art methods.
What Problem Does This Paper Address?
Hyperparameter Optimization (HPO) is a major bottleneck in deep learning. Standard Bayesian Optimization (BO) requires training a model completely to evaluate a single hyperparameter configuration. Freeze-thaw BO (FT-BO) offers a more agile alternative: it trains configurations incrementally (e.g., epoch by epoch), "freezing" poorly performing runs and "thawing" promising ones based on early learning curves.
However, current state-of-the-art FT-BO frameworks (like ifBO) rely on generic surrogate models trained on purely synthetic data. These models lack any domain-specific prior knowledge about how actual optimizers behave. Because the Adam optimizer is the default choice for most deep learning pipelines, the authors ask a compelling question: Can we build a better, faster HPO loop by specializing the surrogate model specifically for Adam?
Methods
The authors propose Adam-PFN, a drop-in replacement surrogate model for the ifBO framework.
- Prior-Data Networks (PFNs): Adam-PFN leverages a transformer-based architecture capable of performing Bayesian learning curve extrapolation in a single forward pass. Instead of training on synthetic mathematical functions, it is meta-trained on real learning curves generated by the Adam optimizer.
- CDF-augment: To prevent the transformer from overfitting to the training tasks, the authors introduce a novel data augmentation technique. It passes learning curves through the cumulative distribution function (CDF) of a Beta distribution: $$y' = F_{Beta}(y; \mu, \kappa)$$ This non-linearly transforms "task hardness" (making a task look artificially easier or harder) while strictly preserving the relative ranking of different hyperparameter configurations.
Datasets
- TaskSet: A massive dataset containing 1,162 diverse learning tasks (including RNNs, CNNs, and MLPs). The authors used 878 of these tasks exclusively to extract real learning curves for training. A separate set of 12 NLP text classification tasks was held out for evaluation. Each task contains learning curves for 1,000 randomly sampled Adam hyperparameter configurations.
- PyTorch Examples: To test out-of-distribution (OOD) generalization, the authors evaluated their model on real-world tasks from the public PyTorch examples repository, including Language Translation (Transformers), Word Language Models (LSTMs), and Sequence Predictors.
Key Insights and Ideas
- Specialization Beats Generalization: Training a surrogate model on how Adam actually behaves in the real world yields massive efficiency gains over trying to build a one-size-fits-all surrogate for all possible HPO problems.
- Rank Preservation is Crucial: The success of CDF-augment stems from its ability to alter the absolute values of a learning curve without scrambling the underlying order of which hyperparameter setup is better.
- Hyperparameter Augmentation Hurts: Surprisingly, trying to augment the hyperparameter space itself (e.g., shifting learning rates or beta values during meta-training) degraded performance. The transformer generalized best when only the learning curve space was varied.
Key Results
- Superior Extrapolation: Adam-PFN (CDF) significantly outperformed generic baselines like FT-PFN, DPL, and DyHPO in both Log-Likelihood (LL) and Mean Squared Error (MSE) when predicting future curve trajectories.
- 5x Speedup in HPO: On the TaskSet evaluation tasks, Adam-PFN (CDF) achieved the same low normalized regret at epoch 150 that the previous state-of-the-art method (FT-PFN) required roughly 750 epochs to reach.
- Strong OOD Generalization: When tested on completely unseen PyTorch example tasks, Adam-PFN (CDF) was the top-performing algorithm early in the optimization budget, proving that its learned priors transfer well to wild, real-world scenarios.
Limitations and Future Work
- Fixed Search Space: Adam-PFN is currently bound to a fixed search space with a pre-defined number of hyperparameters. Handling custom or dynamic sets of hyperparameters remains an open challenge.
- Hybrid Strategies: On out-of-distribution tasks, generic models eventually catch up to Adam-PFN as the training budget grows large. The authors suggest that a hybrid "warm-start" approach—starting the HPO process with Adam-PFN and later switching to a generic surrogate like FT-PFN—might be optimal.
Summary updated