The generalization of machine learning models has a complex dependence on the data, model and learning algorithm. We study train and test performance, as well as the generalization gap given by the mean of their difference over different data set samples to understand their ``typical" behavior. We derive an expression for the gap as a function of the covariance between the model parameter distribution and the train loss, and another expression for the average test performance, showing test generalization only depends on data-averaged parameter distribution and the data-averaged loss. We show that for a large class of model parameter distributions a modified generalization gap is always non-negative. By specializing further to parameter distributions produced by stochastic gradient descent (SGD), along with a few approximations and modeling considerations, we are able to predict some aspects about how the generalization gap and model train and test performance vary as a function of SGD noise. We evaluate these predictions empirically on the Cifar10 classification task based on a ResNet architecture.
Revisiting SGD with Increasingly Weighted Averaging: Optimization and Generalization Perspectives
The University of Iowa(爱荷华大学)
随机梯度下降(SGD)已经在文献中从不同角度进行了广泛的研究,并且通常用于解决许多大数据机器学习问题。然而,将所有迭代解组合成单个解的平均技术仍然未被探索。虽然一些越来越加权平均计划已被认为在文献中,现有的工作大多限于强凸的目标函数和优化误差的收敛性。对于{\bf非强凸目标,包括非凸问题},这些平均方案如何影响{\it优化误差和泛化误差}(测试误差的两个同等重要的分量)的收敛性仍然不清楚。本文从优化误差和泛化误差两个方面综合分析了凸、强凸和非凸目标函数上的递增加权平均算法,{ \it fill the gap}.特别是,我们分析了一个家庭的日益加权平均,在迭代$t$的解决方案的权重是成比例的$t^α$($α> 0$)。我们展示了$α$如何影响优化误差和泛化误差,并展示了由$α$引起的权衡。实验已经证明了这种权衡和多项式增加加权平均的有效性,与其他平均方案相比,适用于包括深度学习在内的各种问题。
Averaging Weights Leads to Wider Optima and Better Generalization
Cornell University(康奈尔大学);Higher School of Economics(高等经济学院);Samsung-HSE Laboratory(三星-高等经济学院实验室);Samsung AI Center in Moscow(莫斯科三星人工智能中心);Lomonosov Moscow State University(莫斯科国立大学(罗蒙诺索夫莫斯科国立大学))
School of Mathematics and Statistics, Huazhong University of Science and Technology(华中科技大学数学与统计学院);School of Computer and Data Science, Nanyang Technological University(南洋理工大学计算机与数据科学学院);School of Cyber Science & Technology, Shenzhen Campus of Sun Yat-sen University(中山大学深圳校区网络空间科学与技术学院);RIKEN Center for Advanced Intelligence Project(理化学研究所先进智能项目中心);Faculty of Engineering, the University of Sydney(悉尼大学工程学院)
Hierarchical Weight Averaging for Deep Neural Networks
The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳));Pengcheng Laboratory(鹏城实验室);Institute of High Performance Computing, Agency for Science, Technology and Research(新加坡科技研究局高性能计算研究所)
SeWA: Selective Weight Average via Probabilistic Masking
Huazhong University of Science and Technology(华中科技大学);Shanghai Jiao Tong University(上海交通大学);RIKEN Center for Advanced Intelligence Project(理化学研究所先进智能项目中心);Baidu Inc.(百度公司);Sun Yat-sen University(中山大学);Nanyang Technological University(南洋理工大学)
FedEMA: Federated Exponential Moving Averaging with Negative Entropy Regularizer in Autonomous Driving
Department of Electrical and Electronic Engineering, The University of Hong Kong(香港大学电子与电气工程系);Department of Computer Science and Engineering, Southern University of Science and Technology(南方科技大学计算机科学与工程系);Shenzhen International Center For Industrial And Applied Mathematics, Shenzhen Research Institute of Big Data(深圳国际工业与应用数学中心、深圳大数据研究 institute);Shenzhen Institutes of Advanced Technology, Chinese Academy of Sciences(中国科学院深圳先进技术研究所)
WASH: Train your Ensemble with Communication-Efficient Weight Shuffling, then Average
ISIR - Sorbonne Université(ISIR - 索邦大学);Mila(米拉研究所);Concordia University(康考迪亚大学);École de technologie supérieure(高等技术学院);Center for Computational Mathematics(计算数学中心);Flatiron Institute(弗拉特iron研究所)