arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2211.08583cs.LGcs.AI
收藏

面向分布外泛化的优化器选择实证研究

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

Mila - Quebec AI Institute(米拉-魁北克人工智能研究所);Université de Montréal(蒙特利尔大学);University of Tsukuba(筑波大学);Tokyo Institute of Technology(东京工业大学);Denso IT Laboratory Inc.(电装信息技术实验室有限公司)

Hiroki Naganuma, Kartik Ahuja, Shiro Takagi, Tetsuya Motokawa, Rio Yokota, Kohta Ishikawa, Ikuro Sato, Ioannis Mitliagkas

AI总结:

本文在 DomainBed、WILDS 和 Backgrounds Challenge 上比较一阶优化器,基于两万余个模型发现 Adam 等自适应优化器的 OOD 性能通常逊于 SGD。

摘要:

现代深度学习系统在测试数据分布与训练数据分布略有不同时泛化能力不佳。尽管已有许多有前景的工作致力于解决这种脆弱性,但尚未有研究系统考察优化器的作用及其分布外泛化性能。本研究在经验风险最小化和不变风险最小化框架下,检验常用一阶优化器在不同类别分布偏移下的性能。我们以 DomainBed、WILDS 和 Backgrounds Challenge 作为试验平台,针对图像和文本分类研究不同类型的偏移,即相关性偏移和多样性偏移。我们在广泛的超参数范围内进行搜索,并检查了超过 20,000 个模型的分类准确率(分布内和分布外)。我们得到以下有望为实践者提供帮助的发现:i)自适应优化器(如 Adam)在分布外性能上不如非自适应优化器(如 SGD、momentum SGD)。特别是,尽管分布内性能没有显著差异,我们仍证明分布外性能存在可测量的差异。ii)分布内性能与分布外性能根据数据集表现出三种行为类型:线性收益、递增收益和递减收益。例如,在使用 Adam 训练自然语言数据时,微调分布内性能并不会显著促进分布外泛化性能。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑