Principled Architecture-aware Scaling of Hyperparameters
Wuyang Chen, Junru Wu, Zhangyang Wang, Boris Hanin
TL;DR
This work addresses how hyperparameters should adapt to neural architecture, challenging the common practice of architecture-agnostic tuning. It develops topology-aware initialization and muP-based learning-rate scaling for DAG networks, deriving that the optimal learning rate scales with the graph’s path structure as $\eta^* \simeq c (\sum_{p=1}^P L_p^3)^{-1/2}$ and that initialization should satisfy $C^{(\ell',\ell)}=\frac{2}{d_{\text{in}}^{(\ell')}}$ to preserve information flow. The framework extends to CNNs via a kernel-size factor, yielding $\eta^* \simeq c (\sum_{p=1}^P L_p^3)^{-1/2} q^{-1}$, and demonstrates its effectiveness across MLPs, CNNs, and NAS benchmarks. Empirically, the authors show that architecture-aware scaling can significantly improve accuracies and even rewrite network rankings in NAS benchmarks, underscoring the need to revisit AutoML comparisons with these training-principle adjustments. Overall, the work highlights that principled, architecture-aware hyperparameters can enhance training stability and fairness in architecture evaluation, with practical implications for NAS and beyond.
Abstract
Training a high-quality deep neural network requires choosing suitable hyperparameters, which is a non-trivial and expensive process. Current works try to automatically optimize or design principles of hyperparameters, such that they can generalize to diverse unseen scenarios. However, most designs or optimization methods are agnostic to the choice of network structures, and thus largely ignore the impact of neural architectures on hyperparameters. In this work, we precisely characterize the dependence of initializations and maximal learning rates on the network architecture, which includes the network depth, width, convolutional kernel size, and connectivity patterns. By pursuing every parameter to be maximally updated with the same mean squared change in pre-activations, we can generalize our initialization and learning rates across MLPs (multi-layer perception) and CNNs (convolutional neural network) with sophisticated graph topologies. We verify our principles with comprehensive experiments. More importantly, our strategy further sheds light on advancing current benchmarks for architecture design. A fair comparison of AutoML algorithms requires accurate network rankings. However, we demonstrate that network rankings can be easily changed by better training networks in benchmarks with our architecture-aware learning rates and initialization.
