Strassen注意力、分裂VC维与Transformer中的组合性
Strassen Attention, Split VC Dimension and Compositionality in Transformers
AI总结:
本研究证明单层softmax Transformer在三个高级推理任务上的理论局限性,并提出Strassen注意力机制以亚立方复杂度解决这些任务,实验显示其显著优于标准注意力。
摘要:
我们提出了首个方法来展示具有任意多精度位(甚至无限精度)的单层softmax Transformer的理论局限性。我们针对三个需要高级推理的任务确立了这些局限性。第一个任务,Match 3(Sanford等人,2023),要求查看输入序列中所有可能的token三元组。第二个和第三个任务分别涉及基于组合性的推理:函数组合(Peng等人,2024)和二元关系组合。我们正式证明了单层softmax Transformer无法解决这些任务中的任何一个。为了克服这些局限性,我们引入了Strassen注意力,并证明配备了该机制的单层Transformer原则上可以解决所有这些任务。重要的是,我们表明它享有亚立方运行时间复杂度,使其比先前提出的类似机制(如高阶注意力(Sanford等人,2023))更具可扩展性。为了补充我们的理论发现,我们实验研究了Strassen注意力,并将其与标准注意力(Vaswani等人,2017)、高阶注意力(Sanford等人,2023)和三角注意力(Bergen等人,2021)进行了比较。我们的结果有助于厘清所有这些注意力机制,突出它们的优势和局限性。特别是,Strassen注意力在所有任务上显著优于标准注意力。总之,理解理论局限性可以指导研究朝着可扩展的注意力机制发展,以提高Transformer的推理能力。
英文摘要:
We propose the first method to show theoretical limitations for one-layer softmax transformers with arbitrarily many precision bits (even infinite). We establish those limitations for three tasks that require advanced reasoning. The first task, Match 3 (Sanford et al., 2023), requires looking at all possible token triplets in an input sequence. The second and third tasks address compositionality-based reasoning: function composition (Peng et al., 2024) and binary relations composition, respectively. We formally prove the inability of one-layer softmax Transformers to solve any of these tasks. To overcome these limitations, we introduce Strassen attention and prove that, equipped with this mechanism, a one-layer transformer can in principle solve all these tasks. Importantly, we show that it enjoys sub-cubic running-time complexity, making it more scalable than similar previously proposed mechanisms, such as higher-order attention (Sanford et al., 2023). To complement our theoretical findings, we experimentally studied Strassen attention and compared it against standard (Vaswani et al, 2017), higher-order attention (Sanford et al., 2023), and triangular attention (Bergen et al. 2021). Our results help to disentangle all these attention mechanisms, highlighting their strengths and limitations. In particular, Strassen attention outperforms standard attention significantly on all the tasks. Altogether, understanding the theoretical limitations can guide research towards scalable attention mechanisms that improve the reasoning abilities of Transformers.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。