- Rating
- 5
- Clarity
- 3
- Confidence
- 4
- Originality
- 2
- Quality
- 4
- Significance
- 3
Read review
Summary
The paper revisits the gap between SGD and Adam by carrying out a careful numerical comparison between the two methods on a large set of experiments. In particular, the goal is to understand if there are "necessary" properties of the dataset/architecture/task for the existence of the Adam-SGD gap. The paper concludes that none of the hypotheses previously conjectured in the literature necessarily explain the Adam/SGD gap. On the other hand, the authors find out that in most of the proposed experiments there is a crossover batch size below which SGD works better than Adam.
Strengths and weaknesses
Strengths:
The numerical comparison is thorough and it enhance our understanding of the differences between two widely used optimization methods. Moreover, it summarizes under a unique hat the contribution of many previous works in the field.
Figure 1 very compactly deliver the insightful message of crossover batch size.
Table 2 proposes an interesting interpolation between "old" and "new" convolutional neural networks and at the same time shows how SGD gets progressively worst performances than Adam.
Weakness:
The paper is mostly compilatory.
Questions
-
The authors should provide an estimate of the total computational time needed to run the experiments in the paper.
-
It is not clear whether HG38-char really counts as a dataset without class imbalance. Despite the small number of classes, the top left column of Figure 3 looks a lot like a sparse version of the top central or the top right column of Figure 3. While the experiment on the regression task suggests that the gap may also arise for different tasks, this does not represent a balanced classification task in which SGD performs worst than Adam. Is the ConvNeXt experiment from Table 2 suited for covering this case? If so, the authors should mention this in Section 4.2, otherwise they should provide another example.
-
Does the paragraph "Early training phase" aim to deliver the following message? "In the over-parameterization setting, SGD may just be slower than Adam, while in the under-parameterization setting SGD may never catch up with Adam". If so, the message could be stated more clearly.
-
paragraph "Embedding, normalization, and head layers". It makes a lot of sense that modern architecture design contributes to the Adam–SGD gap, as most of these were developed at the time in which Adam was the most widely used optimizer. It may be worth pointing out that this is a hint of a "positive reinforcement" bias that "keeps pushing Adam, while leaves SGD behind".
-
The authors left unspecified the following acronyms (and possibly more): VAEs, EMA, LM, WSD.
-
r 188 (caption of Figure 2): "at B"-> "batch size B"
-
r 268: what is ImageNet12K? it is the only times it appears, is this maybe ImageNet1K or ImageNet21K?
Limitations
-
Two exception to the crossover batch size seems to be HG38 with a transformer-based architecture, for which Adam works always better than SGD, and I21K with a non-transformers-based architecture. The authors should mention these two exceptions.
-
The proposed experiments do not corner the preconditioning effect of Adam in comparison to the lack of preconditioning of SGD. In fact, one of the main differences between Adam and SGD is that the first one is adaptive and the second one is not. While it is clear (or at least easier to understand) why adaptive methods are superior to non-adaptive ones, the more interesting question is why does the preconditioning effect of Adam works so well. To understand this, one should not compare Adam with SGD, but Adam with e.g., Adagrad-norm or Normalized GD. A step in this direction is the use of clipping, which does apply a normalization to the direction when its norm is above a certain threshold. While one does not expect this to be addressed in the rebuttal phase, the authors should mention this limitation in the concluding remarks.
Paper formatting concerns
Nothing to report.
Final justification
All my concerns were addressed by the authors, and I appreciate the effort that went into the rebuttal. I am maintaining my score. It is also worth mentioning that the thorough experiments required significant compute (20k A100 hours), an effort that underscores the value of this study.
We are happy to read that our work enhances the understanding of Adam and SGD, delivers the insightful message of crossover batch size, and ending with an interesting interpolation between "old" and "new" convolutional networks in which the advantage shifts from SGD to Adam. Thank you. We address your questions next.
Crossover exceptions. While increasing the batch size consistently shifts the advantage towards Adam across all the setups, there is not always a crossover, as also noted by the reviewer. After the submission, we developed new results to explain this observation, finding that:
We will revise the phrasing "across all settings" to reconcile with these new results.
Class Imbalance. We understand the concern "if HG38-char dataset really counts as a dataset without class imbalance". The minority class represents unsequenced nucleotides "N", indicating that the groundtruth should be one of ATGC class. We demonstrate that in practice including "N" or not has little to no effect. Remapping each "N" to a random nucleotide removes the minority class and leaves the final loss and the gap unchanged, from Δ∗=−0.127 to Δ∗=−0.124 (same sweep as in Figure 3). This remapping can be interpreted as a random mutation, while keeping the "N" can be seen as a [MASK] token. The ConvNeXt experiment from Table 2 trains on I21K which is also not balanced.
Preconditioning. We agree with this limitation and will state it in the concluding remarks. We note that our new theoretical characterization can address the comparison the reviewer proposes: the two proxies NSGD and SignSGD (both normalized) have nonzero gap between their bounds which is also batch-size dependent. On the clipping, we already use global gradient norm clipping to 1 applied for all the setups (see §3).
GPU Time. We estimate that running all the experiments require approximately 20k A100 hours, including the new rebuttal results.
Minors.
Thanks again for your support and the constructive comments.