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

将Adam推广到流形以高效训练Transformer

Generalizing Adam to Manifolds for Efficiently Training Transformers

Max-Planck-Institut für Plasmaphysik(马克斯·普朗克等离子物理研究所);Technische Universität München(慕尼黑技术大学)

Benedikt Brantner

AI总结:

本文提出一种利用齐性空间全局切空间表示将Adam优化器推广到流形的方法,无需投影步骤,并在Transformer和辛自编码器训练中验证其优于现有方法。

摘要:

神经网络成功的主要原因之一是涌现出一系列新的、非常成功的优化器,其中最重要的可能是Adam优化器。它被广泛用于训练神经网络,但众所周知难以解释。由于缺乏清晰的物理直觉,Adam难以推广到流形上。已有一些尝试直接应用Adam算法的部分到流形或寻找其底层结构,但完整的推广仍然难以实现。在这项工作中,提出了一种新方法,利用与神经网络优化相关的流形(如Stiefel流形、辛Stiefel流形和Grassmann流形)的特殊结构:所有这些流形都是齐性空间,因此允许全局切空间表示。这是一个公共向量空间,通常称为Lie子空间,使得Adam优化器(以及其他优化器)中所有步骤的推广成为可能。因此,可以在没有投影步骤的情况下将Adam优化器扩展到流形,这在以前是不可能的。随后,将所得算法应用于训练Transformer和一个辛自编码器,其中正交性约束被强制执行到机器精度,并且我们确凿地证明了所提出的优化器相对于现有方法的优势。

英文摘要:

One of the primary reasons behind the success of neural networks has been the emergence of an array of new, highly-successful optimizers, perhaps most importantly the Adam optimizer. It is widely used for training neural networks, yet notoriously hard to interpret. Lacking a clear physical intuition, Adam is difficult to generalize to manifolds. Some attempts have been made to directly apply parts of the Adam algorithm to manifolds or to find an underlying structure, but a full generalization has remained elusive. In this work a new approach is presented that leverages the special structure of the manifolds which are relevant for optimization of neural networks, such as the Stiefel manifold, the symplectic Stiefel manifold and the Grassmann manifold: all of these are homogeneous spaces and as such admit a global tangent space representation. This is a common vector space, often called the Lie subspace, that makes the generalization of all steps in the Adam optimizer (as well as other optimizers) possible. It is thus possible to extend the Adam optimizer to manifolds without a projection step, something that was not possible before. The resulting algorithm is then applied to train transformers and a symplectic autoencoder for which orthogonality constraints are enforced up to machine precision and we conclusively demonstrate the advantage of the proposed optimizer over existing methods.

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

↑