The generalization performance of deep neural networks with regard to the optimization algorithm is one of the major concerns in machine learning. This performance can be affected by various factors. In this paper, we theoretically prove that the Lipschitz constant of a loss function is an important factor to diminish the generalization error of the output model obtained by Adam or AdamW. The results can be used as a guideline for choosing the loss function when the optimization algorithm is Adam or AdamW. In addition, to evaluate the theoretical bound in a practical setting, we choose the human age estimation problem in computer vision. For assessing the generalization better, the training and test datasets are drawn from different distributions. Our experimental evaluation shows that the loss function with lower Lipschitz constant and maximum value improves the generalization of the model trained by Adam or AdamW.
翻译:摘要:机器学习中深度神经网络的泛化性能与优化算法相关性是主要关注点之一。这种性能受到各种因素的影响。本文从理论上证明了损失函数的Lipschitz常数是减小Adam或AdamW优化器获得输出模型的泛化误差的重要因素之一。该结果可用作选择损失函数的指南,当优化算法为Adam或AdamW时。此外,为了在实际设置中评估理论界限,我们选择了计算机视觉中的人脸年龄估计问题。为了更好地评估泛化,培训和测试数据集来自不同的分布。我们的实验评估显示,Lipschitz常数较低且最大值的损失函数可以提高由Adam或AdamW训练的模型的泛化能力。