Instruct: Identify the main and secondary category of Arxiv papers based on the titles and abstracts
Query: KVT: k-NN Attention for Boosting Vision Transformers   Convolutional Neural Networks (CNNs) have dominated computer vision for
years, due to its ability in capturing locality and translation invariance.
Recently, many vision transformer architectures have been proposed and they
show promising performance. A key component in vision transformers is the
fully-connected self-attention which is more powerful than CNNs in modelling
long range dependencies. However, since the current dense self-attention uses
all image patches (tokens) to compute attention matrix, it may neglect locality
of images patches and involve noisy tokens (e.g., clutter background and
occlusion), leading to a slow training process and potential degradation of
performance. To address these problems, we propose the $k$-NN attention for
boosting vision transformers. Specifically, instead of involving all the tokens
for attention matrix calculation, we only select the top-$k$ similar tokens
from the keys for each query to compute the attention map. The proposed $k$-NN
attention naturally inherits the local bias of CNNs without introducing
convolutional operations, as nearby tokens tend to be more similar than others.
In addition, the $k$-NN attention allows for the exploration of long range
correlation and at the same time filters out irrelevant tokens by choosing the
most similar tokens from the entire image. Despite its simplicity, we verify,
both theoretically and empirically, that $k$-NN attention is powerful in
speeding up training and distilling noise from input tokens. Extensive
experiments are conducted by using 11 different vision transformer
architectures to verify that the proposed $k$-NN attention can work with any
existing transformer architectures to improve its prediction performance.

2
The categories of this paper are: math
20
The categories of this paper are: acc-phys
8
The categories of this paper are: hep-ex
12
The categories of this paper are: nucl-th
27
The categories of this paper are: comp-gas
11
The categories of this paper are: hep-lat
19
The categories of this paper are: eess
24
The categories of this paper are: dg-ga
37
The categories of this paper are: supr-con
21
The categories of this paper are: adap-org
34
The categories of this paper are: chem-ph
7
The categories of this paper are: hep-th
4
The categories of this paper are: cond-mat
16
The categories of this paper are: stat
23
The categories of this paper are: solv-int
5
The categories of this paper are: gr-qc