arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2211.16289cs.CV
收藏

用于视觉理解的轻量级结构感知注意力

Lightweight Structure-Aware Attention for Visual Understanding

Univ. Grenoble Alpes, Inria, CNRS, Grenoble INP, LJK(格拉诺布尔大学、法国国家科学研究中心、格拉诺布尔INP、LJK实验室)

Heeseung Kwon, Francisco M. Castro, Manuel J. Marin-Jimenez, Nicolas Guil, Karteek Alahari

AI总结:

本文提出轻量级结构感知注意力LiSA,通过学习相对位置嵌入编码的结构模式增强注意力核判别力,并以对数线性复杂度在ImageNet-1K及多个下游视觉任务上取得最先进结果。

摘要:

注意力算子因其可调核带来的灵活性,已被广泛用作视觉理解中的基本构件。然而,该算子存在固有局限:(1)注意力核的判别力不足,导致高度冗余;(2)计算和内存复杂度与序列长度呈二次方关系。本文提出一种新颖的注意力算子,称为轻量级结构感知注意力(LiSA),具有更好的表示能力,且复杂度为对数线性。我们的算子通过学习结构模式使注意力核更具判别力。这些结构模式通过利用一组相对位置嵌入(RPEs)作为乘性权重来编码,从而提升注意力核的表示能力。此外,对RPEs进行近似以获得对数线性复杂度。我们的实验和分析表明,所提出的算子优于自注意力及其他现有算子,在ImageNet-1K以及Kinetics-400上的视频动作识别、COCO上的目标检测与实例分割、ADE-20K上的语义分割等下游任务中取得了最先进的结果。

英文摘要:

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.

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

↑