Summary
This paper argues that heavy-tailed class imbalances in natural language datasets, which follow because some words are much more frequent than others, causes (or significantly underlies) the performance gap typically observed between Adam and SGD. To make this argument, the authors
1. reproduce the performance gap by training different language models on some standard datasets, like WikiText-103 and PTB;
2. empirically demonstrate that the gap between Adam and SGD can also be reproduced in vision tasks, in which it’s normally absent, by training common vision models on artificially created image datasets with heavy-tailed class imbalances;
3. introduce a simple linear model trained on synthetic uniform data, whose class frequencies follow a power law, and again reproduce the performance gap;
4. rule out batch noise as the reason underlying the performance gap, by demonstrating that the latter remains even when they train their models with full (i.e. deterministic) gradient descent; and
5. demonstrate that the performance gap can be reduced by upweighting the loss of low-frequency classes.
Having done these experimental investigations, the authors then attempt to provide some understanding and intuition as to why these class imbalances affect SGD. The authors study a collection of simplified models and training problem and argue that the class imbalance leads to correlations between gradients, Hessians and class probabilities, which appear to help Adam during training.
Strengths
- This paper studies an important problem in modern machine learning, viz. the performance gap of common training algorithms, specially when dealing with language models.
- The problem and hypothesis are very clearly stated.
- The paper is very well written and structured. Indeed, the authors first present their empirical evidence and only later attempt to provide some intuitive understanding of the phenomenon under investigation.
- As summarised above, the paper provides significant empirical evidence that supports their main hypothesis, namely that heavy-tailed class imbalances in the training datasets cause the performance gap between Adam and SGD.
- The paper also provides some theoreticall understanding as to why the performance gaps actually takes place.
In sum, this paper is very sound, tackles a relevant problem and, in my view, represents an important contribution to the machine learning community.
Weaknesses
The main weaknesses or limitations of the paper pertain to the simplified models and assumptions in the theoretical investigations. However, the authors explicitly acknowledge and discuss them.
Although the paper is very well written and structured, the following suggestions might improve readability:
- The authors could explicitly mention that they reproduce the performance gap between Adam and SGD in language tasks, for different datasets and models. This information is hidden in Appendix A and could escape the casual reader.
- Some captions in the figures are misleading. The authors perform experiments both with SGD and full GD and the way these are labelled, or referred to, in some captions is confusing. For example, the caption in figure 2 refers to SGD while the figure contains results for GD. Similarly the caption in figure 1 refers to GD but the figure contains results for SGD.
- Perhaps section 2.2 could be moved inside section 3?
Typos: lines 152, 160 and 225.
Questions
1. Do you know why SGD eventually finds the minimum in the imbalanced MNIST case but does not in the imbalanced ImageNet?
Limitations
Yes, they authors addressed the limitations of their study.