arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2409.20325cs.LGmath.OC
收藏

旧优化器,新范数:一部选集

Old Optimizer, New Norm: An Anthology

MIT CSAIL(麻省理工学院计算机科学与人工智能实验室)

Jeremy Bernstein, Laker Newhouse

AI总结:

本文重新解释Adam、Shampoo和Prodigy,指出关闭指数移动平均后它们均是特定范数下的一阶最速下降,并提出按张量角色分配算子范数的优化器设计空间。

摘要:

深度学习优化器的提出通常结合了凸优化理论和近似二阶理论。我们选取三种此类方法——Adam、Shampoo和Prodigy——并论证,每种方法反而都可以被理解为完全不依赖凸性假设的一阶方法。事实上,在关闭指数移动平均之后,每种方法都等价于在某一特定范数下的最速下降。通过推广这一观察,我们绘制了训练算法的一个全新设计空间。应当根据不同张量在网络中所承担的角色,为其分配不同的算子范数。例如,尽管线性层和嵌入层可能具有相同的权重空间$\mathbb{R}^{m\times n}$,但这些层承担不同的角色,因此应被赋予不同的范数。我们希望,这种谨慎地为神经架构赋予度量的想法,能够带来更稳定、可扩展且确实更快的训练。

英文摘要:

Deep learning optimizers are often motivated through a mix of convex and approximate second-order theory. We select three such methods -- Adam, Shampoo and Prodigy -- and argue that each method can instead be understood as a squarely first-order method without convexity assumptions. In fact, after switching off exponential moving averages, each method is equivalent to steepest descent under a particular norm. By generalizing this observation, we chart a new design space for training algorithms. Different operator norms should be assigned to different tensors based on the role that the tensor plays within the network. For example, while linear and embedding layers may have the same weight space of $\mathbb{R}^{m\times n}$, these layers play different roles and should be assigned different norms. We hope that this idea of carefully metrizing the neural architecture might lead to more stable, scalable and indeed faster training.

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

↑