arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.14180cs.LG
收藏

线性Transformer是通用的上下文内学习者

Linear Transformers are Versatile In-Context Learners

Google Research(谷歌研究院);Google(谷歌公司);Duke University(杜克大学)

Max Vladymyrov, Johannes von Oswald, Mark Sandler, Rong Ge

AI总结:

该研究证明线性Transformer每层可执行带预条件的梯度下降变体,且能在含噪数据场景下自发发现结合动量与自适应重缩放的高效优化算法,展现出发现复杂优化策略的惊人能力。

摘要:

近期研究表明,Transformer尤其是线性注意力模型,在前向推理阶段会对上下文中提供的数据隐式执行类梯度下降算法。然而,它们处理更复杂问题的能力仍未被探索。本文中,我们证明线性Transformer的每一层都为一个隐式线性回归问题维护一个权重向量,且可被解释为执行一种带预条件的梯度下降变体。我们还研究了线性Transformer在训练数据被不同程度噪声破坏的挑战性场景下的应用。值得注意的是,我们证明针对该问题,线性Transformer能发现一种精妙且高效的优化算法,性能超越或持平于许多合理的基线方法。我们分析了该算法,表明它是一种结合了动量和基于噪声水平的自适应重缩放的全新方法。我们的发现显示,即便是线性Transformer也具备发现复杂优化策略的惊人能力。

英文摘要:

Recent research has demonstrated that transformers, particularly linear attention models, implicitly execute gradient-descent-like algorithms on data provided in-context during their forward inference step. However, their capability in handling more complex problems remains unexplored. In this paper, we prove that each layer of a linear transformer maintains a weight vector for an implicit linear regression problem and can be interpreted as performing a variant of preconditioned gradient descent. We also investigate the use of linear transformers in a challenging scenario where the training data is corrupted with different levels of noise. Remarkably, we demonstrate that for this problem linear transformers discover an intricate and highly effective optimization algorithm, surpassing or matching in performance many reasonable baselines. We analyze this algorithm and show that it is a novel approach incorporating momentum and adaptive rescaling based on noise levels. Our findings show that even linear transformers possess the surprising ability to discover sophisticated optimization strategies.

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

↑