Summary
The paper analyzes the intricate relationship between optimal learning rate and batch size scaling for adaptive optimizers, such as Sign SGD and Adam. Building on prior analysis for SGD by McCandlish (2018), this work reveals a non-monotonic relationship between optimal learning rates and batch size. The optimal learning rate initially increases, reaches a peak, and then decreases, eventually saturating to a non-zero value, referred to as the surge phenomenon. These theoretical predictions are validated through experiments in both image classification and NLP tasks.
Strengths
* The paper provides new insights into the relationship between optimal learning rate and batch size for Adam optimizers. The drop in the optimal learning rate after the peak is new, to the best of my knowledge, and is relevant given that Adam is the default optimizer choice.
* Prior results suggesting a square root scaling for Adam are reproduced, further supporting the findings.
Weaknesses
* At times, the paper assumes that the reader is well-versed with the prior work of McCandlish (2018). For instance, lines 129-131. It would be helpful to reiterate prior results to motivate the analysis.
* The empirical results are not very convincing. If we only consider the experiments (for instance Figure 4), without any reference to theoretical results, the surge phenomenon does not seem appreciable. A finer learning rate search has to be performed to demonstrate the surge phenomenon clearly. In Figure 4(b), the optimal learning rate is oscillating around two points. It is unclear if this is due to the surge phenomenon or just random fluctuations. I would request the authors to help me understand their empirical results better.
* The theoretical results are derived for sign SGD, while it's known that Adam parameters beta1 and beta2 are crucial hyperparameters. It's unclear why the theoretical results can be generalized to Adam.
Questions
* What is the practical implication of the decrease in the optimal learning rate after the peak?
* Given that the peak shifts through training, can the authors propose guidelines for scaling the learning rate and batch size?
* What is the intuition behind the training speed and data efficiency relationship being the same as the SGD case?
* Why the ResNet model (Figure 3) is trained with random 10k samples at every epoch? This should affect the overall results. Also, why this experiment is performed with sign SGD only?
* If the results of Figure 2(b) and 2(c) are combined, then it should predict (1) a drop in the optimal learning rate, (2) saturation, (3) increase, and finally saturation. How does this result align with the main result (Figure 1)?
Limitations
* The theory is built on the quadratic approximation of the loss function. In the last few years, it has been established that modern neural networks are typically trained at large learning rates (Edge of Stability, see Refs. [1-2]), which cannot be captured using quadratic approximations of the loss [3].
* Gaussian distribution for gradients is assumed for the theoretical analysis, whereas it is known that the gradient distribution is not Gaussian, and this is precisely why Adam performs better than SGD in language modeling. It is unclear whether the results hold for such settings.
[1] Gradient descent on neural networks typically occurs at the edge of stability
Cohen et al. (2021)
arXiv:2103.00065
[2] Adaptive gradient methods at the edge of stability
Cohen et al. (2022)
arXiv:2207.14484
[3] Self-stabilization: The implicit bias of gradient descent at the edge of stability
Damian et al. (2022)
arXiv:2209.15594
[4] Linear attention is (maybe) all you need (to understand transformer optimization)
Ahn et al. (2022)
arXiv:2310.01082