Instruct: Identify the main and secondary category of Arxiv papers based on the titles and abstracts
Query: Sinkformers: Transformers with Doubly Stochastic Attention   Attention based models such as Transformers involve pairwise interactions
between data points, modeled with a learnable attention matrix. Importantly,
this attention matrix is normalized with the SoftMax operator, which makes it
row-wise stochastic. In this paper, we propose instead to use Sinkhorn's
algorithm to make attention matrices doubly stochastic. We call the resulting
model a Sinkformer. We show that the row-wise stochastic attention matrices in
classical Transformers get close to doubly stochastic matrices as the number of
epochs increases, justifying the use of Sinkhorn normalization as an
informative prior. On the theoretical side, we show that, unlike the SoftMax
operation, this normalization makes it possible to understand the iterations of
self-attention modules as a discretized gradient-flow for the Wasserstein
metric. We also show in the infinite number of samples limit that, when
rescaling both attention matrices and depth, Sinkformers operate a heat
diffusion. On the experimental side, we show that Sinkformers enhance model
accuracy in vision and natural language processing tasks. In particular, on 3D
shapes classification, Sinkformers lead to a significant improvement.

28
The categories of this paper are: alg-geom
23
The categories of this paper are: solv-int
19
The categories of this paper are: eess
24
The categories of this paper are: dg-ga
32
The categories of this paper are: atom-ph
8
The categories of this paper are: hep-ex
21
The categories of this paper are: adap-org
30
The categories of this paper are: q-alg
7
The categories of this paper are: hep-th
25
The categories of this paper are: patt-sol
4
The categories of this paper are: cond-mat
14
The categories of this paper are: math-ph
29
The categories of this paper are: funct-an
0
The categories of this paper are: hep-ph
13
The categories of this paper are: quant-ph
20
The categories of this paper are: acc-phys