arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.06741cs.LGcs.CL
收藏

为什么自注意力在序列间问题中是自然的?对称性透视

Why self-attention is Natural for Sequence-to-Sequence Problems? A Perspective from Symmetries

Stanford University(斯坦福大学)

Chao Ma, Lexing Ying

摘要:

在本文中,我们表明,类似于自注意力的结构是很自然的,从对称性的角度来学习许多序列到序列的问题。受语言处理应用程序的启发,我们研究了seq 2seq函数与知识的正交等方差,这些函数具有两个输入-输入序列和“知识”-并输出另一个序列。知识由与输入序列相同的嵌入空间中的一组向量组成,包含用于处理输入序列的语言的信息。我们发现,在嵌入空间的正交等方差是自然的seq 2seq函数的知识,在这样的等方差的功能必须采取的形式接近的自注意力。这表明,类似于自注意力的网络结构是代表许多seq 2seq问题的目标函数的正确结构。如果考虑“有限信息原理”,或者输入序列的元素具有置换等方差,则可以进一步细化表示。

英文摘要:

In this paper, we show that structures similar to self-attention are natural to learn many sequence-to-sequence problems from the perspective of symmetry. Inspired by language processing applications, we study the orthogonal equivariance of seq2seq functions with knowledge, which are functions taking two inputs -- an input sequence and a ``knowledge'' -- and outputting another sequence. The knowledge consists of a set of vectors in the same embedding space as the input sequence, containing the information of the language used to process the input sequence. We show that orthogonal equivariance in the embedding space is natural for seq2seq functions with knowledge, and under such equivariance the function must take the form close to the self-attention. This shows that network structures similar to self-attention are the right structures to represent the target function of many seq2seq problems. The representation can be further refined if a ``finite information principle'' is considered, or a permutation equivariance holds for the elements of the input sequence.

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

↑