Lune

ICLR2023顶会

Noise Is Not the Main Factor Behind the Gap Between Sgd and Adam on Transformers, But Sign Descent Might Be

Frederik Kunstner, Jacques Chen, Jonathan Wilder Lavington, Mark Schmidt

摘要

The success of the Adam optimizer on a wide array of architectures has made it the default in settings where stochastic gradient descent (SGD) performs poorly. However, our theoretical understanding of this discrepancy is lagging, preventing the development of significant improvements on either algorithm. Recent work advances the hypothesis that Adam and other heuristics like gradient clipping outperform SGD on language tasks because the distribution of the error induced by sampling has heavy tails. This suggests that Adam outperform SGD because it uses a more robust gradient estimate. We evaluate this hypothesis by varying the batch size, up to the entire dataset, to control for stochasticity. We present evidence that stochasticity and heavy-tailed noise are not major factors in the performance gap between SGD and Adam. Rather, Adam performs better as the batch size increases, while SGD is less effective at taking advantage of the reduction in noise. This raises the question as to why Adam outperforms SGD in the full-batch setting. Through further investigation of simpler variants of SGD, we find that the behavior of Adam with large batches is similar to sign descent with momentum.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 62 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Sophia: A Scalable Stochastic Second-order Optimizer for Language Model Pre-training 引用了 Why are Adaptive Methods Good for Attention Models?
  • Sophia: A Scalable Stochastic Second-order Optimizer for Language Model Pre-training 引用了 Symbolic Discovery of Optimization Algorithms
  • Sophia: A Scalable Stochastic Second-order Optimizer for Language Model Pre-training 引用了 Why Gradient Clipping Accelerates Training: A Theoretical Justification for Adaptivity
  • Heavy-Tailed Class Imbalance and Why Adam Outperforms Gradient Descent on Language Models 引用了 Why are Adaptive Methods Good for Attention Models?
  • Heavy-Tailed Class Imbalance and Why Adam Outperforms Gradient Descent on Language Models 引用了 Symbolic Discovery of Optimization Algorithms
  • Heavy-Tailed Class Imbalance and Why Adam Outperforms Gradient Descent on Language Models 引用了 Why Gradient Clipping Accelerates Training: A Theoretical Justification for Adaptivity
  • Why are Adaptive Methods Good for Attention Models? 引用了 Stochastic Optimization with Heavy-Tailed Noise via Accelerated Gradient Clipping
  • Why are Adaptive Methods Good for Attention Models? 引用了 Why Gradient Clipping Accelerates Training: A Theoretical Justification for Adaptivity
  • Stochastic Optimization with Heavy-Tailed Noise via Accelerated Gradient Clipping 引用了 Why Gradient Clipping Accelerates Training: A Theoretical Justification for Adaptivity
  • Convergence of Adam Under Relaxed Assumptions 引用了 Why are Adaptive Methods Good for Attention Models?
  • Convergence of Adam Under Relaxed Assumptions 引用了 Why Gradient Clipping Accelerates Training: A Theoretical Justification for Adaptivity
  • Convergence of Adam Under Relaxed Assumptions 引用了 Linear attention is (maybe) all you need (to understand Transformer optimization)
  • Linear attention is (maybe) all you need (to understand Transformer optimization) 引用了 Why are Adaptive Methods Good for Attention Models?
  • Linear attention is (maybe) all you need (to understand Transformer optimization) 引用了 Why Gradient Clipping Accelerates Training: A Theoretical Justification for Adaptivity
  • Why Transformers Need Adam: A Hessian Perspective 引用了 Why are Adaptive Methods Good for Attention Models?
  • Why Transformers Need Adam: A Hessian Perspective 引用了 Why Gradient Clipping Accelerates Training: A Theoretical Justification for Adaptivity
  • Why Transformers Need Adam: A Hessian Perspective 引用了 Convergence of Adam Under Relaxed Assumptions
  • Why Transformers Need Adam: A Hessian Perspective 引用了 Linear attention is (maybe) all you need (to understand Transformer optimization)
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper62

  1. Sophia: A Scalable Stochastic Second-order Optimizer for Language Model Pre-trainingHong Liu, Zhiyuan Li, David Leo Wright Hall, Percy Liang 等ICLR 2024 · 264 次引用
  2. Why Transformers Need Adam: A Hessian PerspectiveYushun Zhang, Congliang Chen, Tian Ding, Ziniu Li 等NeurIPS 2024 · 149 次引用
  3. Convergence of Adam Under Relaxed AssumptionsHaochuan Li, Alexander Rakhlin, Ali JadbabaieNeurIPS 2023 · 132 次引用
  4. Heavy-Tailed Class Imbalance and Why Adam Outperforms Gradient Descent on Language ModelsFrederik Kunstner, Alan Milligan, Robin Yadav, Mark Schmidt 等NeurIPS 2024 · 100 次引用
  5. Linear attention is (maybe) all you need (to understand Transformer optimization)Kwangjun Ahn, Xiang Cheng, Minhak Song, Chulhee Yun 等ICLR 2024 · 92 次引用

它引用的 Paper13

  1. Large Batch Optimization for Deep Learning: Training BERT in 76 minutesYang You, Jing Li, Sashank J. Reddi, Jonathan Hseu 等ICLR 2020 · 1,170 次引用
  2. Symbolic Discovery of Optimization AlgorithmsXiangning Chen, Chen Liang, Da Huang, Esteban Real 等NeurIPS 2023 · 734 次引用
  3. Why Gradient Clipping Accelerates Training: A Theoretical Justification for AdaptivityJingzhao Zhang, Tianxing He, Suvrit Sra, Ali JadbabaieICLR 2020 · 598 次引用
  4. Why are Adaptive Methods Good for Attention Models?Jingzhao Zhang, Sai Praneeth Karimireddy, Andreas Veit, Seungyeon Kim 等NeurIPS 2020 · 397 次引用
  5. Stochastic Optimization with Heavy-Tailed Noise via Accelerated Gradient ClippingEduard Gorbunov, Marina Danilova, Alexander V. GasnikovNeurIPS 2020 · 181 次引用

相关 Paper

  1. Clipping Improves Adam-Norm and AdaGrad-Norm when the Noise Is Heavy-TailedSavelii Chezhegov, Yaroslav Klyukin, Andrei Semenov, Aleksandr Beznosikov 等ICML 2025
  2. Multiplicative Noise and Heavy Tails in Stochastic OptimizationLiam Hodgkinson, Michael W. MahoneyICML 2021 · 90 次引用
  3. Adaptive Methods through the Lens of SDEs: Theoretical Insights on the Role of NoiseEnea Monzio Compagnoni, Tianlin Liu, Rustem Islamov, Frank Norbert Proske 等ICLR 2025
  4. Robustness to Unbounded Smoothness of Generalized SignSGDMichael Crawshaw, Mingrui Liu, Francesco Orabona, Wei Zhang 等NeurIPS 2022 · 111 次引用
  5. Scaling Laws for Gradient Descent and Sign Descent for Linear Bigram Models under Zipf's LawFrederik Kunstner, Francis BachNeurIPS 2025 · 21 次引用
黄昏的海面,两侧是细线勾勒的悬崖