动量Stiefel优化器及其在适当正交注意力和最优运输中的应用
Momentum Stiefel Optimizer, with Applications to Suitably-Orthogonal Attention, and Optimal Transport
摘要:
Stiefel流形上的优化问题,即,满足正交性约束的(不一定是正方形的)矩阵的最小化函数已经被广泛研究。然而,提出了一种新的方法的基础上,第一次,精心设计的连续和离散动态之间的相互作用。它导致了一个基于梯度的优化器,具有内在的附加动量。该方法精确地保持了流形结构,但不需要额外的操作来保持变化的(余)切空间中的动量,因此具有较低的计算成本和令人满意的精度。它的推广自适应学习率也证明。在实际任务中观察到显著的性能。例如,我们发现,当使用我们的优化器时,对从头开始训练的视觉Transformer [Dosovitskiy et al. 2022]的注意力头部设置正交约束可以显著提高其性能,并且每个头部最好在其自身内正交,但不一定与其他头部正交。该优化器还使投影鲁棒Wasserstein距离[Paty & Cuturi 2019; Lin et al. 2020]的有用概念对于高维度最优传输更加有效。
英文摘要:
The problem of optimization on Stiefel manifold, i.e., minimizing functions of (not necessarily square) matrices that satisfy orthogonality constraints, has been extensively studied. Yet, a new approach is proposed based on, for the first time, an interplay between thoughtfully designed continuous and discrete dynamics. It leads to a gradient-based optimizer with intrinsically added momentum. This method exactly preserves the manifold structure but does not require additional operation to keep momentum in the changing (co)tangent space, and thus has low computational cost and pleasant accuracy. Its generalization to adaptive learning rates is also demonstrated. Notable performances are observed in practical tasks. For instance, we found that placing orthogonal constraints on attention heads of trained-from-scratch Vision Transformer [Dosovitskiy et al. 2022] could markedly improve its performance, when our optimizer is used, and it is better that each head is made orthogonal within itself but not necessarily to other heads. This optimizer also makes the useful notion of Projection Robust Wasserstein Distance [Paty & Cuturi 2019; Lin et al. 2020] for high-dim. optimal transport even more effective.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。