Abstract
Deep neural networks frequently require the careful tuning of model hyperparameters. Recent research has shown that automated early termination of underperformance runs can speed up hyper-parameter searches. However, these studies have used only learning curve for predicting the eventual model performance. In this study, we propose using weight features extracted from network weights at an early stage of the learning process as explanation variables for predicting the eventual model performance. We conduct experiments on hyper-parameter searches with various types of convolutional neural network architecture on three image datasets and apply the random forest method for predicting the eventual model performance. The results show that use of the weight features improves the predictive performance compared with use of the learning curve. In all three datasets, the most important feature for the prediction was related to weight changes in the last convolutional layers. Our findings demonstrate that using weight features can help construct prediction models with a smaller number of training samples and terminate underperformance runs at an earlier stage of the learning process of DNNs than the conventional use of learning curve, thus facilitating the speed-up of hyperparameter searches.
Introduction
Training state-of-the-art deep neural networks (DNNs) is a computationally intensive process, often requiring hundreds of trial runs to optimize hyperparameters such as learning rates, layer counts, and dropout ratios. While automated tools like Bayesian optimization assist in this search, they typically require training models to near-completion to evaluate their quality. Human experts often mitigate this by manually terminating "zombie" runs—models that show poor initial progress. Automated "early termination" strategies have traditionally relied on learning curves (accuracy or loss over time). However, these curves are often noisy and provide only a high-level view of the training process. This paper proposes that the internal state of the network—specifically its weights—contains richer information for predicting eventual success much earlier in the training cycle.
Methods: Extracting Weight Features
The core contribution of this work is the use of Weight Features (WF) extracted during the early "pre-run" stage of training (epoch $t$) to predict final performance (epoch $T$).
The extraction process involves several key steps:
- Statistical Summarization: To manage the high dimensionality of raw weights, the authors calculate 13 statistical summaries for each layer, including mean, variance, skewness, kurtosis, and entropy.
- Weight Dynamics: Rather than a static snapshot, the method focuses on weight changes ($\Delta w$) between early epochs. This captures the "velocity" of learning within the weight space.
- Predictive Modeling: A Random Forest regressor is trained to map these weight statistics to the final expected validation accuracy.
This approach was compared against the standard Learning Curve (LC) method, which utilizes the history of training and validation errors.
Experimental Setup and Results
The researchers evaluated the WF method on three image recognition benchmarks: MNIST, CIFAR-10, and ImageNet 2012 (using the AlexNet architecture).
Predictive Performance
The weight-based approach significantly outperformed traditional learning curves across all metrics:
- Accuracy Gains: WF reduced the Root Mean Square Error (RMSE) of performance predictions by 17–31% for MNIST and 21–33% for ImageNet.
- Temporal Efficiency: The WF model achieved predictive accuracy comparable to the LC model while observing 8 to 9 times fewer training epochs.
- Sample Efficiency: Building a reliable predictor required 58–76% fewer completed training runs when using weight features compared to learning curves.
Key Insights
A critical finding across all datasets was that the most important features for prediction were related to weight changes in the last convolutional layer. This suggests that the stability and evolution of high-level feature representations are the strongest indicators of whether a model will converge successfully. Furthermore, weight dynamics (changes) proved more predictive than raw weight values, indicating that the trajectory through the loss landscape is more informative than the current position.
Conclusion and Future Work
By "peeking under the hood" at the internal weights of a DNN, researchers can predict final model performance much earlier and more accurately than by observing external accuracy metrics alone. This method facilitates faster hyperparameter optimization by allowing for earlier termination of suboptimal runs.
Future research should explore the applicability of weight features to non-convolutional architectures, such as Transformers or Recurrent Neural Networks, where the "important layers" for prediction may differ. Additionally, integrating this predictive model into a fully automated, closed-loop Bayesian optimization framework could further quantify the real-world wall-clock time savings in large-scale model development.
Summary updated