arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2201.01410cs.CVcs.LG

面向视觉任务的基于合成器的高效自注意力

Synthesizer Based Efficient Self-Attention for Vision Tasks

Information Engineering University(信息工程大学);East China Normal University(华东师范大学);Fujian Institute of Research on the Structure of Matter, Chinese Academy of Sciences(中国科学院福建物质结构研究所)

Guangyang Zhu, Jianfeng Zhang, Yuanzhi Feng, Hai Lan

AI总结:

本文提出合成张量变换(STT)自注意力模块,通过张量变换直接处理图像张量特征,避免点积乘法和维度对齐带来的计算冗余与结构破坏,在图像分类和图像描述任务上取得竞争性性能。

摘要:

自注意力模块在捕捉长程关系方面表现出卓越的能力,同时在图像分类和图像描述等视觉任务上提升了性能。然而,自注意力模块高度依赖查询-键-值特征之间的点积乘法和维度对齐,这导致了两个问题:(1)点积乘法带来大量且冗余的计算。(2)由于视觉特征图通常表现为多维张量,重塑张量特征的尺度以适应维度对齐可能会破坏张量特征图的内部结构。为了解决这些问题,本文提出了一种自注意力即插即用模块及其变体,称为合成张量变换(STT),用于直接处理图像张量特征。基础STT不计算查询-键-值之间的点积乘法,而是由张量变换组成,从视觉信息中学习合成注意力权重。STT系列的有效性在图像分类和图像描述任务上得到了验证。实验表明,与上述视觉任务中的自注意力相比,所提出的STT在保持鲁棒性的同时取得了具有竞争力的性能。

英文摘要:

Self-attention module shows outstanding competence in capturing long-range relationships while enhancing performance on vision tasks, such as image classification and image captioning. However, the self-attention module highly relies on the dot product multiplication and dimension alignment among query-key-value features, which cause two problems: (1) The dot product multiplication results in exhaustive and redundant computation. (2) Due to the visual feature map often appearing as a multi-dimensional tensor, reshaping the scale of the tensor feature to adapt to the dimension alignment might destroy the internal structure of the tensor feature map. To address these problems, this paper proposes a self-attention plug-in module with its variants, namely, Synthesizing Tensor Transformations (STT), for directly processing image tensor features. Without computing the dot-product multiplication among query-key-value, the basic STT is composed of the tensor transformation to learn the synthetic attention weight from visual information. The effectiveness of STT series is validated on the image classification and image caption. Experiments show that the proposed STT achieves competitive performance while keeping robustness compared to self-attention in the aforementioned vision tasks.

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

↑