Abstract
The task of hyper-parameter optimization (HPO) is burdened with heavy computational costs due to the intractability of optimizing both a model's weights and its hyper-parameters simultaneously. In this work, we introduce a new class of HPO method and explore how the low-rank factorization of the convolutional weights of intermediate layers of a convolutional neural network can be used to define an analytical response surface for optimizing hyper-parameters, using only training data. We quantify how this surface behaves as a surrogate to model performance and can be solved using a trust-region search algorithm, which we call autoHyper. The algorithm outperforms state-of-the-art such as Bayesian Optimization and generalizes across model, optimizer, and dataset selection.
Introduction
Hyperparameter optimization (HPO) remains a significant bottleneck in deep learning. Selecting optimal learning rates, weight decays, and architectural parameters typically requires a "dual-optimization" process: training model weights to evaluate a specific hyperparameter set. Traditional black-box methods like Random Search or Bayesian Optimization are computationally expensive, often requiring full training cycles and labeled validation sets. This work introduces autoHyper, an analytical approach that leverages the internal structure of neural network weights to optimize hyperparameters efficiently using only training data.
Methodology: Stable Rank and Weight Decomposition
The core of autoHyper is the use of Stable Rank as a proxy for model performance. This metric is derived from the low-rank factorization of convolutional weight tensors.
- Weight Decomposition: The 4D weight tensors of CNN layers are treated as 2D matrices. Using Variational Bayesian Matrix Factorization (VBMF), these weights are decomposed into a "signal" component (learned structure) and a "noise" component (randomness).
- The $Z(\lambda)$ Metric: A global stable rank metric, $Z(\lambda)$, is defined to track the proportion of layers that have failed to develop meaningful low-rank structure. A high $Z(\lambda)$ indicates a "random" network, while a low value suggests the network is learning structured mappings.
- autoHyper Algorithm: This trust-region search algorithm trials configurations for only 5 epochs. It calculates $Z(\lambda)$ and adjusts hyperparameters (typically by a factor of 1.5) to find the "inception of the plateau"—the point where weight structure stabilization begins.
Key Insights and Experimental Results
The fundamental insight is that the internal geometry of a network's weights serves as a reliable surrogate for generalization accuracy. Unlike validation accuracy, which can be slow to improve, the stable rank metric provides a clear signal within just 5 epochs.
Experimental validation across CIFAR-10/100, TinyImageNet, and ImageNet using architectures like ResNet and DenseNet yielded significant results:
- Performance Gains: On ImageNet, autoHyper-tuned ResNet34 achieved a 4.93% improvement in top-1 accuracy over standard baselines.
- Efficiency and Robustness: In 2D HPO (learning rate and weight decay), autoHyper outperformed Bayesian Optimization in 9 out of 12 experiments. On TinyImageNet, optimization was completed in just 4 hours (65 total epochs).
Conclusion
autoHyper demonstrates that the internal weight structure of a CNN can effectively guide hyperparameter selection without the need for validation data or exhaustive training. While future work will address scaling to higher-dimensional hyperparameter spaces and sensitivity in certain architectures, autoHyper represents a major step toward fully automated and efficient model tuning.
Summary updated