Introduction
Hyperparameter tuning—balancing learning rate ($\eta$), weight decay ($\lambda$), batch size ($B$), and momentum ($\mu$)—is traditionally a tedious, "black box" process. While heuristics like the linear scaling rule provide some guidance, they often fail to account for the complex interplay between weight decay and dataset size ($N$). This paper investigates the training dynamics of scale-invariant neural networks—those utilizing normalization layers like Batch Normalization (BN) or Layer Normalization (LN)—to derive a unified mathematical framework for hyperparameter optimization.
The Scale-Invariance Property
Modern deep networks are largely scale-invariant; because of normalization layers, multiplying the weights by a constant factor does not change the network's output. In such architectures, weight decay does not merely regularize capacity; it actively controls the effective learning rate. By pulling weight magnitudes toward the origin, weight decay increases the relative impact of each gradient update on the weight vector's direction.
Methods and the Tuning Factor
To model these dynamics, the authors utilized Stochastic Differential Equations (SDE) to approximate the trajectory of Stochastic Gradient Descent (SGD). By rescaling the time variable to account for the number of iterations per epoch ($N/B$), they identified a critical metric: the Angular Update per Epoch ($\Delta \theta$). This metric measures the change in the direction of the weight vector over a full pass of the data.
From their SDE analysis, the researchers derived a unified tuning factor: $$\Phi = \frac{N\eta\lambda}{B(1-\mu)}$$
This formula suggests that the angular update is proportional to this specific combination of hyperparameters. Consequently, if one parameter (like batch size $B$) is changed, the others can be adjusted to keep $\Phi$ constant, maintaining optimal training dynamics.
Key Insights: The "Aha!" Moment
The central discovery of this work is that well-tuned models consistently exhibit a similar angular update trajectory across epochs, regardless of the specific hyperparameter values used. When plotting the angular updates of various successful models, the curves overlap almost perfectly after an initial transient phase. In contrast, poorly tuned models exhibit wildly divergent trajectories.
Empirical Validation and Data-Efficiency
The researchers validated the tuning factor across CIFAR-10, CIFAR-100, and Tiny ImageNet. A standout result was the demonstration of Data-Efficient Tuning on ImageNet using an EfficientNet-B0 architecture. By finding the optimal tuning factor on a small subset of the data (just 80,000 samples, or ~1/16th of the full dataset), the authors were able to mathematically predict the optimal weight decay for the full 1.28-million-sample training run. Experimental results on the full dataset confirmed the prediction, with peak accuracy occurring almost exactly at the calculated value.
Conclusion and Future Work
This research provides a theoretical foundation for why certain hyperparameter scaling rules work and offers a path toward more automated hyperparameter optimization (AutoML). By leveraging small-scale proxy tasks and the $\Phi$ tuning factor, researchers can significantly reduce the computational cost of training large-scale models. Future work may extend these insights to architectures without normalization layers or explore the limits of the SDE approximation at extremely high learning rates.
Summary updated