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