arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.07583cs.LGmath.OC
收藏

MoMo:用于自适应学习率的动量模型

MoMo: Momentum Models for Adaptive Learning Rates

Technical University of Munich(慕尼黑工业大学);Flatiron Institute(弗拉蒂伦研究所);Meta AI

Fabian Schaipp, Ruben Ohana, Michael Eickenberg, Aaron Defazio, Robert M. Gower

AI总结:

本文提出MoMo及其扩展MoMo-Adam,通过构建损失函数模型实现自适应学习率,减少调优成本,在多种任务中显著提升超参数鲁棒性并保持理论收敛性。

摘要:

在现代机器学习架构上训练新任务需要广泛的学习率调优,这带来了高昂的计算成本。我们开发了新的Polyak型自适应学习率,可应用于任何动量方法之上,且需要较少的调优即可表现良好。我们首先开发了MoMo,一种基于动量模型的自适应学习率,用于SGD-M(带动量的随机梯度下降)。MoMo利用每次迭代中采样的损失和梯度的动量估计来构建损失函数模型。该模型通过截断利用任何已知的损失函数下界,例如大多数损失的下界为零。然后在每次迭代中近似最小化该模型以计算下一步。我们展示了如何将MoMo与任何基于动量的方法结合,并通过开发MoMo-Adam来展示这一点,即带有我们新的基于模型的自适应学习率的Adam。我们证明MoMo在具有插值的凸问题中达到O(1/√K)的收敛率,除了最优值外无需了解任何问题特定的量。此外,对于下界未知的损失,我们开发了实时下界估计,并将其纳入我们的模型中。我们表明,在MNIST、CIFAR和Imagenet上训练图像分类器、在Criteo上训练推荐系统、在翻译任务IWSLT14上训练transformer模型以及训练扩散模型方面,MoMo和MoMo-Adam在超参数调优的鲁棒性上优于SGD-M和Adam。

英文摘要:

Training a modern machine learning architecture on a new task requires extensive learning-rate tuning, which comes at a high computational cost. Here we develop new Polyak-type adaptive learning rates that can be used on top of any momentum method, and require less tuning to perform well. We first develop MoMo, a Momentum Model based adaptive learning rate for SGD-M (stochastic gradient descent with momentum). MoMo uses momentum estimates of the losses and gradients sampled at each iteration to build a model of the loss function. Our model makes use of any known lower bound of the loss function by using truncation, e.g. most losses are lower-bounded by zero. The model is then approximately minimized at each iteration to compute the next step. We show how MoMo can be used in combination with any momentum-based method, and showcase this by developing MoMo-Adam, which is Adam with our new model-based adaptive learning rate. We show that MoMo attains a $\mathcal{O}(1/\sqrt{K})$ convergence rate for convex problems with interpolation, needing knowledge of no problem-specific quantities other than the optimal value. Additionally, for losses with unknown lower bounds, we develop on-the-fly estimates of a lower bound, that are incorporated in our model. We show that MoMo and MoMo-Adam improve over SGD-M and Adam in terms of robustness to hyperparameter tuning for training image classifiers on MNIST, CIFAR, and Imagenet, for recommender systems on Criteo, for a transformer model on the translation task IWSLT14, and for a diffusion model.

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

↑