优化算法中记忆如何隐式地修改损失
How Memory in Optimization Algorithms Implicitly Modifies the Loss
AI总结:
本文提出了一种识别无记忆优化算法的方法,揭示了记忆如何隐式地反正则化优化动态,并解释了Lion相较于AdamW的泛化性能优势。
摘要:
在现代深度学习中使用的优化方法中,每个更新都依赖于先前迭代的历史,通常称为记忆,并且这种依赖性随着迭代次数增加而迅速衰减。例如,动量梯度下降通过指数加权平均过去的梯度来实现指数衰减的记忆。我们介绍了一种通用技术,用于识别一种无记忆算法,该算法近似于具有记忆的优化算法。该技术是通过将更新中的所有先前迭代替换为当前迭代,并添加一个源于记忆的修正项(也与当前迭代相关)。这个修正项可以被解释为对损失的扰动,其性质可以说明记忆如何隐式地(反)正则化优化动态。作为我们理论的应用,我们发现Lion没有像AdamW那样的由记忆引起的隐式反正则化,这为最近记录的Lion更好的泛化性能提供了理论解释。
英文摘要:
In modern optimization methods used in deep learning, each update depends on the history of previous iterations, often referred to as memory, and this dependence decays fast as the iterates go further into the past. For example, gradient descent with momentum has exponentially decaying memory through exponentially averaged past gradients. We introduce a general technique for identifying a memoryless algorithm that approximates an optimization algorithm with memory. It is obtained by replacing all past iterates in the update by the current one, and then adding a correction term arising from memory (also a function of the current iterate). This correction term can be interpreted as a perturbation of the loss, and the nature of this perturbation can inform how memory implicitly (anti-)regularizes the optimization dynamics. As an application of our theory, we find that Lion does not have the kind of implicit anti-regularization induced by memory that AdamW does, providing a theory-based explanation for Lion's better generalization performance recently documented.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。