Interactive Multi-Head Self-Attention with Linear Complexity

Hankyul Kang, Ming-Hsuan Yang, Jongbin Ryu
2/27/2024
cs.CV

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{kang2024interactive,
  title  = {Interactive Multi-Head Self-Attention with Linear Complexity},
  author = {Hankyul Kang and Ming-Hsuan Yang and Jongbin Ryu},
  year   = {2024},
  eprint = {2402.17507},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.17507v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.17507.svg)](https://codeofpaper.com/paper/2402.17507)

Discussion