NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Revisiting the Adam–SGD Gap Beyond Single Factors

Chenxiang Zhang, Rustem Islamov, Enea Monzio Compagnoni, Jun Pang, Aurelien Lucchi, Antonio Orvieto

NeurIPS page · OpenReview · alphaXiv · Open on the map

Category: Optimization & Federated Learning › Hyperparameter Scaling and Optimizer Theory · Type: empirical study · Keywords: Adam optimizer, SGD, optimizer gap, empirical study, batch size crossover

Summary

This work conducts a large-scale empirical study to investigate the Adam-SGD performance gap, revealing that interactions between data and architecture-not single factors-drive the gap and identifying a crossover batch size where the advantage shifts.

Explained to a 5-year-old

Computers need to learn how to do tasks, and researchers use two main helpers to teach them: Adam and SGD. Adam often makes learning faster, but sometimes SGD works just as well or better. To understand why, scientists looked at many different problems: pictures, words, genetic data, and network data. They found that the difference comes from how the data and the model interact, not just one thing. They also noticed a point where the better tool switches from SGD to Adam as we give more examples at once.

Explained to a 5-year-old, longer

Computers need to learn how to do tasks, and researchers use two main helpers to teach them: Adam and SGD. Adam often makes learning faster, but sometimes SGD works just as well or better. To understand why, scientists looked at many different problems: pictures, words, genetic data, and network data. They tried many different computer models, both old and new. They changed things like the words used, the way the model works, and the math functions inside. They found that the advantage of Adam can disappear when the words are very uneven, can flip when the model uses a special attention trick, and can grow when they use a different math function. Instead of one single reason, the difference comes from how the data and the model interact. They also noticed a pattern: as they give the model more examples at once, the better tool eventually switches from SGD to Adam. This helps explain why earlier studies sometimes disagreed. The study gives clear advice for picking the right tool for each problem. It shows that there is no one-size-fits-all answer, but a smarter way to decide based on the data and model.

For a technical reader

The paper investigates why the Adam optimizer often outperforms SGD and when it does not, by conducting a systematic empirical study across vision, language, genomics, and graph tasks. It shows that no single factor (such as data distribution or architecture) consistently explains the performance gap; instead, interactions between data properties and model design drive the results. The authors identify a crossover batch size where the relative advantage shifts from SGD to Adam as batch size increases, reconciling previous contradictory findings and providing practical guidance for optimizer selection.

Problem

Understanding why Adam often outperforms SGD and when it does not remains unclear, as prior work has examined individual factors in isolation. This paper seeks to determine the relative importance of these factors and identify consistent patterns governing the Adam-SGD gap.

Method

The authors perform a controlled empirical study across vision, language, genomics, and graph tasks, using modern and classical architectures and varied training setups to examine how data properties and architectural choices interact to affect the Adam-SGD gap.

Results

The study finds that the Adam-SGD gap arises from interactions between data and architecture, with the advantage of Adam disappearing under heavy-tailed vocabularies, reversing in softmax-attention models, and growing with GeLU nonlinearities, and that a crossover batch size consistently marks the shift from SGD to Adam advantage.

Contributions

It provides a comprehensive empirical analysis across diverse tasks and architectures, demonstrating that no single factor explains the gap and identifying a universal crossover batch size phenomenon. This clarifies existing contradictory results and offers practical guidance for optimizer selection.

Practical relevance

The findings provide practical guidance for choosing between Adam and SGD across different data and model settings, helping practitioners optimize training efficiency.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction