Hyperparameter Transfer Laws for Non-Recurrent Multi-Path Neural Networks
Shenxi Wu, Haosong Zhang, Xingjian Ma, Shirui Bian, Yichi Zhang, Xi Chen, Wei Lin
TL;DR
The paper tackles the cost of hyperparameter tuning at scale by deriving a depth-aware transfer rule for non-recurrent, multi-path networks. It extends Maximal Update Parametrization to a network-wide Arithmetic-Mean μP budget and introduces the notion of effective depth, proving a universal depth decay for the learning rate, $\eta_\star \propto L^{-3/2}$, across CNNs, ResNets, and Transformers. The authors validate the law on CIFAR-10/100 and ImageNet subsets using automated LR searches, finding fitted slopes near $-1.5$ and demonstrating robust zero-shot transfer of LR across depths and widths. This work provides a practical, architecture-agnostic guideline for rescaling learning rates when altering depth, substantially reducing hyperparameter-tuning requirements in modern deep learning models.
Abstract
Deeper modern architectures are costly to train, making hyperparameter transfer preferable to expensive repeated tuning. Maximal Update Parametrization ($μ$P) helps explain why many hyperparameters transfer across width. Yet depth scaling is less understood for modern architectures, whose computation graphs contain multiple parallel paths and residual aggregation. To unify various non-recurrent multi-path neural networks such as CNNs, ResNets, and Transformers, we introduce a graph-based notion of effective depth. Under stabilizing initializations and a maximal-update criterion, we show that the optimal learning rate decays with effective depth following a universal -3/2 power law. Here, the maximal-update criterion maximizes the typical one-step representation change at initialization without causing instability, and effective depth is the minimal path length from input to output, counting layers and residual additions. Experiments across diverse architectures confirm the predicted slope and enable reliable zero-shot transfer of learning rates across depths and widths, turning depth scaling into a predictable hyperparameter-transfer problem.
