mlsanityData to 13 Oct 2026

Judging Adam: Studying the Performance of Optimization Methods on ML4SE Tasks

arXiv 2303.03540 ↗First posted 6 Mar 2023cs.SE cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Solving a problem with a deep learning model requires researchers to optimize the loss function with a certain optimization method. The research community has developed more than a hundred different optimizers, yet there is scarce data on optimizer performance in various tasks. In particular, none of the benchmarks test the performance of optimizers on source code-related problems. However, existing benchmark data indicates that certain optimizers may be more efficient for particular domains. In this work, we test the performance of various optimizers on deep learning models for source code and find that the choice of an optimizer can have a significant impact on the model quality, with up to two-fold score differences between some of the relatively well-performing optimizers. We also find that RAdam optimizer (and its modification with the Lookahead envelope) is the best optimizer that almost always performs well on the tasks we consider. Our findings show a need for a more extensive study of the optimizers in code-related tasks, and indicate that the ML4SE community should consider using RAdam instead of Adam as the default optimizer for code-related deep learning tasks.

Key facts. No citing papers in the map yet (data through 13 Oct 2026). Builds on 28 of its 45 references that are in the map. First posted on arXiv 6 Mar 2023.

Builds on

28 of 45 references.

References · 28

  1. 2014Adam: A Method for Stochastic Optimizationcited by 37,093
  2. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,304
  3. 2018Adafactor: Adaptive Learning Rates with Sublinear Memory Costcited by 900
  4. 2019On the Variance of the Adaptive Learning Rate and Beyondcited by 769
  5. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 743
  6. 2019Large Batch Optimization for Deep Learning: Training BERT in 76 minutescited by 673
  7. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
  8. 2019Lookahead Optimizer: k steps forward, 1 step backcited by 335
  9. 2015Improved Semantic Representations From Tree-Structured Long Short-Term Memory Networkscited by 305
  10. 2020AdaBelief Optimizer: Adapting Stepsizes by the Belief in Observed Gradientscited by 283
  11. 2017Learning to Represent Programs with Graphscited by 220
  12. 2019Adaptive Gradient Methods with Dynamic Bound of Learning Ratecited by 183
16 more
  1. 2018code2seq: Generating Sequences from Structured Representations of Codecited by 179
  2. 2020A Transformer-based Approach for Source Code Summarizationcited by 132
  3. 2017Improving Generalization Performance by Switching from Adam to SGDcited by 124
  4. 2020Descending through a Crowded Valley - Benchmarking Deep Learning Optimizerscited by 118
  5. 2019On Empirical Comparisons of Optimizers for Deep Learningcited by 101
  6. 2017Abstract Syntax Networks for Code Generation and Semantic Parsingcited by 92
  7. 2018TRANX: A Transition-based Neural Abstract Syntax Parser for Semantic Parsing and Code Generationcited by 88
  8. 2020Improved Code Summarization via a Graph Neural Networkcited by 79
  9. 2021Language-Agnostic Representation Learning of Source Code from Structure and Contextcited by 63
  10. 2018Structured Neural Summarizationcited by 54
  11. 2019DeepOBS: A Deep Learning Optimizer Benchmark Suitecited by 37
  12. 2018A Grammar-Based Structural CNN Decoder for Code Generationcited by 29
  13. 2019diffGrad: An Optimization Method for Convolutional Neural Networkscited by 29
  14. 2020Using a thousand optimization tasks to learn hyperparameter search strategiescited by 29
  15. 2020Learning Semantic Program Embeddings with Graph Interval Neural Networkcited by 20
  16. 2022Learning to Recommend Method Names with Global Contextcited by 6

Built on by

Not cited yet.