Lightweight Structure-Aware Attention for Visual Understanding

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Kwon, Heeseung, Castro, Francisco M., Marin-Jimenez, Manuel J., Guil, Nicolas, Alahari, Karteek
Format: Preprint
Veröffentlicht: 2022
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866916822701309952
author Kwon, Heeseung
Castro, Francisco M.
Marin-Jimenez, Manuel J.
Guil, Nicolas
Alahari, Karteek
author_facet Kwon, Heeseung
Castro, Francisco M.
Marin-Jimenez, Manuel J.
Guil, Nicolas
Alahari, Karteek
contents Attention operator has been widely used as a basic brick in visual understanding since it provides some flexibility through its adjustable kernels. However, this operator suffers from inherent limitations: (1) the attention kernel is not discriminative enough, resulting in high redundancy, and (2) the complexity in computation and memory is quadratic in the sequence length. In this paper, we propose a novel attention operator, called Lightweight Structure-aware Attention (LiSA), which has a better representation power with log-linear complexity. Our operator transforms the attention kernels to be more discriminative by learning structural patterns. These structural patterns are encoded by exploiting a set of relative position embeddings (RPEs) as multiplicative weights, thereby improving the representation power of the attention kernels. Additionally, the RPEs are approximated to obtain log-linear complexity. Our experiments and analyses demonstrate that the proposed operator outperforms self-attention and other existing operators, achieving state-of-the-art results on ImageNet-1K and other downstream tasks such as video action recognition on Kinetics-400, object detection \& instance segmentation on COCO, and semantic segmentation on ADE-20K.
format Preprint
id arxiv_https___arxiv_org_abs_2211_16289
institution arXiv
publishDate 2022
record_format arxiv
spellingShingle Lightweight Structure-Aware Attention for Visual Understanding
Kwon, Heeseung
Castro, Francisco M.
Marin-Jimenez, Manuel J.
Guil, Nicolas
Alahari, Karteek
Computer Vision and Pattern Recognition
Attention operator has been widely used as a basic brick in visual understanding since it provides some flexibility through its adjustable kernels. However, this operator suffers from inherent limitations: (1) the attention kernel is not discriminative enough, resulting in high redundancy, and (2) the complexity in computation and memory is quadratic in the sequence length. In this paper, we propose a novel attention operator, called Lightweight Structure-aware Attention (LiSA), which has a better representation power with log-linear complexity. Our operator transforms the attention kernels to be more discriminative by learning structural patterns. These structural patterns are encoded by exploiting a set of relative position embeddings (RPEs) as multiplicative weights, thereby improving the representation power of the attention kernels. Additionally, the RPEs are approximated to obtain log-linear complexity. Our experiments and analyses demonstrate that the proposed operator outperforms self-attention and other existing operators, achieving state-of-the-art results on ImageNet-1K and other downstream tasks such as video action recognition on Kinetics-400, object detection \& instance segmentation on COCO, and semantic segmentation on ADE-20K.
title Lightweight Structure-Aware Attention for Visual Understanding
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2211.16289