Adam[Kingma & Ba, 2015]是深度学习中事实上的优化器,但其理论理解仍有限。先前分析显示Adam倾向于与ℓ∞几何对齐的解,但这些结果仅限于全批量模式。在本工作中,我们研究了增量Adam(每步使用一个样本)在逻辑回归上线性可分离数据的隐式偏置,并证明其偏置可以偏离全批量行为。作为极端例子,我们构造了数据集,证明增量Adam可以证明性地收敛到ℓ2-最大边际分类器,与全批量Adam的ℓ∞-最大边际偏置形成对比。对于一般数据集,我们通过β2→1极限的代理算法来表征其偏置。该代理算法最大化数据自适应的马哈拉尼规范边际,其关联的协方差矩阵由数据依赖的对偶固定点公式确定。我们进一步展示了具体的数据集,其中该偏置减少到标准ℓ2-和ℓ∞-最大边际分类器。作为对比,我们证明Signum[Bernstein et al., 2018]对于任何批量大小都收敛到ℓ∞-最大边际分类器。总体而言,我们的结果表明Adam的隐式偏置严重依赖于批量方案和数据集,而Signum保持不变。
英文摘要:
Adam [Kingma & Ba, 2015] is the de facto optimizer in deep learning, yet its theoretical understanding remains limited. Prior analyses show that Adam favors solutions aligned with $\ell_\infty$-geometry, but these results are restricted to the full-batch regime. In this work, we study the implicit bias of incremental Adam (using one sample per step) for logistic regression on linearly separable data, and show that its bias can deviate from the full-batch behavior. As an extreme example, we construct datasets on which incremental Adam provably converges to the $\ell_2$-max-margin classifier, in contrast to the $\ell_\infty$-max-margin bias of full-batch Adam. For general datasets, we characterize its bias using a proxy algorithm for the $β_2 \to 1$ limit. This proxy maximizes a data-adaptive Mahalanobis-norm margin, whose associated covariance matrix is determined by a data-dependent dual fixed-point formulation. We further present concrete datasets where this bias reduces to the standard $\ell_2$- and $\ell_\infty$-max-margin classifiers. As a counterpoint, we prove that Signum [Bernstein et al., 2018] converges to the $\ell_\infty$-max-margin classifier for any batch size. Overall, our results highlight that the implicit bias of Adam crucially depends on both the batching scheme and the dataset, while Signum remains invariant.
Adaptive Batch Size Schedules for Distributed Training of Language Models with Data and Model Parallelism
Perelman School of Medicine, University of Pennsylvania(宾夕法尼亚大学佩雷尔曼医学院);The University of Chicago Booth School of Business(芝加哥大学布斯商学院);Northwestern University(西北大学);University of Southern California Marshall School of Business(南加州大学马歇尔商学院)
Stein-Rule Shrinkage for Stochastic Gradient Estimation in High Dimensions
Department of Statistics Faculty of Mathematical Sciences(统计学系数学科学学院);Division of Computer Science Department of Applied Mathematics Faculty of Mathematical Sciences(计算机科学系应用数学系数学科学学院)