mlsanityData to 7 Oct 2026

Empirical Study on Optimizer Selection for Out-of-Distribution Generalization

arXiv 2211.08583 ↗First posted 15 Nov 2022cs.LG cs.AIcited by 3

Not on the map. Why?

Abstract (arXiv)

Modern deep learning systems do not generalize well when the test data distribution is slightly different to the training data distribution. While much promising work has been accomplished to address this fragility, a systematic study of the role of optimizers and their out-of-distribution generalization performance has not been undertaken. In this study, we examine the performance of popular first-order optimizers for different classes of distributional shift under empirical risk minimization and invariant risk minimization. We address this question for image and text classification using DomainBed, WILDS, and Backgrounds Challenge as testbeds for studying different types of shifts -- namely correlation and diversity shift. We search over a wide range of hyperparameters and examine classification accuracy (in-distribution and out-of-distribution) for over 20,000 models. We arrive at the following findings, which we expect to be helpful for practitioners: i) adaptive optimizers (e.g., Adam) perform worse than non-adaptive optimizers (e.g., SGD, momentum SGD) on out-of-distribution performance. In particular, even though there is no significant difference in in-distribution performance, we show a measurable difference in out-of-distribution performance. ii) in-distribution performance and out-of-distribution performance exhibit three types of behavior depending on the dataset -- linear returns, increasing returns, and diminishing returns. For example, in the training of natural language data using Adam, fine-tuning the performance of in-distribution performance does not significantly contribute to the out-of-distribution generalization performance.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 48 of its 78 references that are in the map. First posted on arXiv 15 Nov 2022.

Builds on

48 of 78 references.

References · 48

  1. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  3. 2013Intriguing properties of neural networkscited by 5,114
  4. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
  5. 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,857
  6. 2020Open Graph Benchmark: Datasets for Machine Learning on Graphscited by 2,148
  7. 2020Shortcut Learning in Deep Neural Networkscited by 1,928
  8. 2019Invariant Risk Minimizationcited by 1,832
  9. 2020Sharpness-Aware Minimization for Efficiently Improving Generalizationcited by 1,404
  10. 2020WILDS: A Benchmark of in-the-Wild Distribution Shiftscited by 1,366
  11. 2018Moment Matching for Multi-Source Domain Adaptationcited by 1,327
  12. 2016Deep CORAL: Correlation Alignment for Deep Domain Adaptationcited by 1,194
36 more
  1. 2018Averaging Weights Leads to Wider Optima and Better Generalizationcited by 1,194
  2. 2017Deep Hashing Network for Unsupervised Domain Adaptationcited by 1,181
  3. 2020In Search of Lost Domain Generalizationcited by 1,042
  4. 2017Deeper, Broader and Artier Domain Generalizationcited by 983
  5. 2019On the Convergence of Adam and Beyondcited by 834
  6. 2021Robust fine-tuning of zero-shot modelscited by 785
  7. 2018LEAF: A Benchmark for Federated Settingscited by 780
  8. 2019On the Variance of the Adaptive Learning Rate and Beyondcited by 763
  9. 2020Out-of-Distribution Generalization via Risk Extrapolation (REx)cited by 737
  10. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
  11. 2022Fine-Tuning can Distort Pretrained Features and Underperform Out-of-Distributioncited by 722
  12. 2018Recognition in Terra Incognitacited by 655
  13. 2021SWAD: Domain Generalization by Seeking Flat Minimacited by 431
  14. 2019Nuanced Metrics for Measuring Unintended Bias with Real Data for Text Classificationcited by 396
  15. 2020Noise or Signal: The Role of Image Backgrounds in Object Recognitioncited by 342
  16. 2017Functional Map of the Worldcited by 338
  17. 2015Domain Generalization for Object Recognition with Multi-task Autoencoderscited by 253
  18. 2017The Marginal Value of Adaptive Gradient Methods in Machine Learningcited by 248
  19. 2021Accuracy on the Line: On the Strong Correlation Between Out-of-Distribution and In-Distribution Generalizationcited by 248
  20. 2020Understanding the Failure Modes of Out-of-Distribution Generalizationcited by 146
  21. 2019MNIST-C: A Robustness Benchmark for Computer Visioncited by 137
  22. 2017Dissecting Adam: The Sign, Magnitude and Variance of Stochastic Gradientscited by 136
  23. 2020Descending through a Crowded Valley - Benchmarking Deep Learning Optimizerscited by 118
  24. 2019Which Algorithmic Choices Matter at Which Batch Sizes? Insights From a Noisy Quadratic Modelcited by 116
  25. 2019On Empirical Comparisons of Optimizers for Deep Learningcited by 99
  26. 2022Agreement-on-the-Line: Predicting the Performance of Neural Networks under Distribution Shiftcited by 94
  27. 2020The iWildCam 2020 Competition Datasetcited by 86
  28. 2020Tasks, stability, architecture, and compute: Training more effective learned optimizers, and using them to train themselvescited by 57
  29. 2022Assaying Out-Of-Distribution Generalization in Transfer Learningcited by 53
  30. 2021Understanding the Generalization of Adam in Learning Neural Networks with Proper Regularizationcited by 48
  31. 2022ID and OOD Performance Are Sometimes Inversely Correlated on Real-world Datasetscited by 44
  32. 2020Global Wheat Head Detection (GWHD) dataset: a large and diverse dataset of high resolution RGB labelled images to develop and benchmark wheat head detection methodscited by 42
  33. 2022Pareto Invariant Risk Minimization: Towards Mitigating the Optimization Dilemma in Out-of-Distribution Generalizationcited by 38
  34. 2019DeepOBS: A Deep Learning Optimizer Benchmark Suitecited by 37
  35. 2019Adaptive versus Standard Descent Methods and Robustness Against Adversarial Examplescited by 1
  36. 2020The Effect of Optimization Methods on the Robustness of Out-of-Distribution Detection Approachescited by 1

Built on by

Cited by year

Citing papers per year: 2023: 2; 2024: 1.

3 papers.