Beyond a Single Explanation of the Adam--SGD Gap
Abstract
Existing explanations for the performance gap between Adam and SGD span data, architecture, and optimization properties. Yet these factors are often studied in isolation, leaving their relative importance unclear. In this work, we revisit these explanations through a rigorous empirical study across vision, language, genomics, and graph tasks, spanning Transformer and classical architectures under a modern training recipe. Our results suggest that no single existing factor can consistently explain the Adam–SGD gap. For instance, the Adam advantage can (1) persist under a uniform vocabulary distribution yet nearly disappear under a heavy-tailed one; (2) reverse in favor of SGD in softmax-attention models; and (3) become larger under soft architectural modifications, e.g., when ReLU is replaced by a GeLU nonlinearity. These results suggest that the gap arises from nontrivial data and architecture interactions, rather than from a single common factor. Yet, we observe a recurring pattern across most settings: a \emph{crossover batch size} at which the relative advantage shifts from SGD to Adam as the batch size scales. The empirical trends are captured by our theoretical model, which also predicts the crossover. Our perspective connects previously proposed explanations and provides practical optimization insights across domains.