Abstract
When training deep learning models, the performance depends largely on the selected hyperparameters. However, hyperparameter optimization (HPO) is often one of the most expensive parts of model design. Classical HPO methods treat this as a black-box optimization problem. However, gray-box HPO methods, which incorporate more information about the setup, have emerged as a promising direction for more efficient optimization. For example, using intermediate loss evaluations to terminate bad selections. In this work, we propose an HPO method for neural networks using logged checkpoints of the trained weights to guide future hyperparameter selections. Our method, Forecasting Model Search (FMS), embeds weights into a Gaussian process deep kernel surrogate model, using a permutation-invariant graph metanetwork to be data-efficient with the logged network weights. To facilitate reproducibility and further research, we open-source our code at https://github.com/NVlabs/forecasting-model-search.
Introduction
Hyperparameter optimization (HPO) is a critical yet computationally intensive stage in the deep learning pipeline. Traditional "black-box" methods evaluate configurations only after training is complete, while "gray-box" or multi-fidelity methods—such as Hyperband or DyHPO—improve efficiency by monitoring intermediate scalar metrics like loss or accuracy.
However, these scalar metrics often fail to capture the full state of a model's optimization progress. A single loss value cannot distinguish between a model that is stuck in a poor local minimum and one that is on the verge of a breakthrough. This paper introduces Forecasting Model Search (FMS), a method that leverages the high-dimensional information contained within model checkpoints—specifically the weights—to predict future performance and guide the search process more effectively.
Methodology
FMS extends the state-of-the-art DyHPO framework, which typically uses Gaussian Processes (GP) to featurize hyperparameters and learning curves. FMS introduces a third input: the model weights ($W$).
Permutation-Invariant Graph Metanetwork (PIGMN)
The primary challenge in using weights for HPO is their high dimensionality and sensitivity to neuron permutations. To address this, FMS employs a Permutation-Invariant Graph Metanetwork (PIGMN):
- Graph Representation: The neural network being optimized is treated as a graph where nodes represent layers and edges represent the weights connecting them.
- Invariance: Since swapping neurons in a hidden layer does not change a model's output, the PIGMN uses graph convolutional layers to ensure that the extracted features are invariant to such permutations.
- Deep Kernel GP: These extracted weight features are integrated into a Deep Kernel Gaussian Process. This allows the surrogate model to calculate similarity between training runs based on their internal states rather than just their external configurations.
Experimental Setup
The authors evaluated FMS using two comprehensive benchmarks:
- Simple CNN Hub: A dataset of 30,000 CNN configurations with varying architectures and initializations.
- Pretrained Model Hub: A new, diverse benchmark featuring ResNets, Vision Transformers (ViTs), standard CNNs, and Deep Sets. These models were pretrained on ImageNet and fine-tuned on CIFAR-10 and SVHN.
By utilizing these hubs, the researchers could simulate HPO runs by querying pre-computed results, allowing for rigorous comparison against baseline methods.
Key Insights and Results
Weights as a Richer Signal
The core finding of the study is that model weights serve as a superior "fingerprint" for training progress compared to loss curves. FMS-GMN (the version utilizing the graph metanetwork) achieved a Kendall’s $\tau$ of 0.91–0.92 in ranking configurations, significantly outperforming the ~0.77 achieved by standard DyHPO.
Architecture Agnosticism and Generalization
Because FMS views models through the lens of a graph, it is inherently architecture-agnostic. It can effectively compare disparate architectures, such as a ResNet and a ViT, within the same search space. Furthermore, FMS demonstrates strong "transfer learning" capabilities. A surrogate model trained on HPO metadata from one dataset can generalize to new tasks, significantly mitigating the "cold start" problem in optimization.
Convergence Efficiency
In evaluations of "regret" (the gap between the current best found model and the global optimum), FMS reached high-quality solutions with a substantially lower compute budget than Random Search or standard multi-fidelity Bayesian Optimization.
Limitations and Future Work
While FMS offers significant gains in optimization efficiency, it introduces new overheads. Storing and featurizing large checkpoints increases I/O and computational costs for the HPO surrogate itself. While this is often offset by the reduction in total training time, it remains a factor for large-scale deployments.
Future research directions include scaling FMS to Large Language Models (LLMs) through weight "sketching" or sampling techniques, as well as incorporating textual context (such as code snippets or documentation) into the surrogate model to provide even deeper insights into the optimization landscape.
Summary updated