paper-with-me

Papers

Heavy-Tailed Class Imbalance and Why Adam Outperforms Gradient Descent on Language Models

2024-02-29 · Frederik Kunstner, Robin Yadav, Alan Milligan, Mark Schmidt, Alberto Bietti

Adam has been shown to outperform gradient descent on large language models by a larger margin than on other tasks, but it is unclear why. We show that a key factor in this performance gap is the heavy-tailed class imbalance found in language tasks. When trained with gradient descent, the loss of infrequent words decreases more slowly than the loss of frequent ones. This leads to a slow decrease on the average loss as most samples come from infrequent words. On the other hand, Adam and sign-based methods are less sensitive to this problem. To establish that this behavior is caused by class imbalance, we show empirically that it can be reproduced across architectures and data types, on language transformers, vision CNNs, and linear models. On a linear model with cross-entropy loss, we show that class imbalance leads to imbalanced, correlated gradients and Hessians that have been hypothesized to benefit Adam. We also prove that, in continuous time, gradient descent converges slowly on low-frequency classes while sign descent does not.

📄 PDF Abstract BibTeX arXiv:2402.19449

Code (0)

등록된 구현이 없습니다.

Tasks

Language Modelling

Methods 이 논문이 사용한 방법론

Adam 설명 없음

Similar Papers 제목 키워드 기반

Muon Outperforms Adam in Tail-End Associative Memory Learning

2025-09-30 · Shuche Wang, Fengzhuo Zhang, Jiaxiang Li, Cunxiao Du 외 arxiv

The Muon optimizer is consistently faster than Adam in training Large Language Models (LLMs), yet the mechanism underlying its success remains unclear. This paper demystifies this mechanism through the lens of associativ…

Provable Benefit of Sign Descent: A Minimal Model Under Heavy-Tailed Class Imbalance

2025-11-30 · Robin Yadav, Shuo Xie, Tianhao Wang, Zhiyuan Li arxiv

Adaptive optimization methods (such as Adam) play a major role in LLM pretraining, significantly outperforming Gradient Descent (GD). Recent studies have proposed new smoothness assumptions on the loss function to explai…

Language Modelling

Why ADAM Beats SGD for Attention Models

2019-09-25 · Jingzhao Zhang, Sai Praneeth Karimireddy, Andreas Veit, Seungyeon Kim 외

While stochastic gradient descent (SGD) is still the de facto algorithm in deep learning, adaptive methods like Adam have been observed to outperform SGD across important tasks, such as attention models. The settings und…

Clipping Improves Adam-Norm and AdaGrad-Norm when the Noise Is Heavy-Tailed

2024-06-06 · Savelii Chezhegov, Yaroslav Klyukin, Andrei Semenov, Aleksandr Beznosikov 외

Methods with adaptive stepsizes, such as AdaGrad and Adam, are essential for training modern Deep Learning models, especially Large Language Models. Typically, the noise in the stochastic gradients is heavy-tailed for th…

Stochastic Optimization

Open Problem: Is AdamW Effective Under Heavy-Tailed Noise?

2026-06-22 · Dingzhi Yu, Hongyi Tao, Yuanyu Wan, Luo Luo 외 arxiv

AdamW is the de facto optimizer for training large language models (LLMs), yet the theory behind it still lives mostly in finite-variance regimes. This is increasingly unsatisfying, as empirical evidence indicates that s…