arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2402.17507cs.CV
收藏

具有线性复杂度的交互式多头自注意力

Interactive Multi-Head Self-Attention with Linear Complexity

Ajou University(亚洲大学);Google(谷歌);University of California at Merced(加州大学默塞德分校)

Hankyul Kang, Ming-Hsuan Yang, Jongbin Ryu

AI总结:

本文提出一种通过分解注意力操作实现线性复杂度的跨头交互式多头自注意力方法,有效增强信息流动,并在实验中优于现有高效注意力方法和最先进骨干模型。

摘要:

我们提出了一种通过分解实现多头自注意力的高效交互方法。对于现有的使用多头自注意力的方法,每个头的注意力操作是独立计算的。然而,我们表明注意力矩阵跨头之间的交互增强了注意力操作的信息流。考虑到每个头的注意力矩阵可以视为网络的特征,在它们之间建立连接以更好地捕获交互是有益的。然而,直接捕获跨头之间交互的方法在计算上是不可行的,因为复杂度会随着注意力矩阵的高维度而大幅增长。在这项工作中,我们提出了一种有效的方法,将注意力操作分解为无查询和无键分量。这将使注意力矩阵的规模更易于管理,特别是对于跨头交互而言。大量实验结果表明,所提出的跨头交互方法在性能上优于现有的高效注意力方法和最先进的骨干模型。

英文摘要:

We propose an efficient interactive method for multi-head self-attention via decomposition. For existing methods using multi-head self-attention, the attention operation of each head is computed independently. However, we show that the interactions between cross-heads of the attention matrix enhance the information flow of the attention operation. Considering that the attention matrix of each head can be seen as a feature of networks, it is beneficial to establish connectivity between them to capture interactions better. However, a straightforward approach to capture the interactions between the cross-heads is computationally prohibitive as the complexity grows substantially with the high dimension of an attention matrix. In this work, we propose an effective method to decompose the attention operation into query- and key-less components. This will result in a more manageable size for the attention matrix, specifically for the cross-head interactions. Expensive experimental results show that the proposed cross-head interaction approach performs favorably against existing efficient attention methods and state-of-the-art backbone models.

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

↑