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

Locally Enhanced Self-Attention:将自我注意力和卷积结合为局部和上下文术语

Locally Enhanced Self-Attention: Combining Self-Attention and Convolution as Local and Context Terms

Johns Hopkins University(约翰斯·霍普金斯大学)

Chenglin Yang, Siyuan Qiao, Adam Kortylewski, Alan Yuille

摘要:

自注意在计算机视觉模型中已经变得普遍。受全连接条件随机场(CRF)的启发,我们将自我注意力分解为局部和上下文项。它们对应于CRF中的一元和二元项,并通过具有投影矩阵的注意力机制来实现。我们观察到,一元项只对输出做出很小的贡献,同时,仅依赖于一元项的标准CNN在各种任务上都取得了很好的性能。因此,我们提出了局部增强自注意(LESA),它通过将其与卷积结合来增强一元项,并利用融合模块来动态耦合一元和二进制操作。在我们的实验中,我们用LESA替换了自我注意模块。ImageNet和COCO上的结果显示,LESA在图像识别、目标检测和实例分割任务中优于卷积和自我注意基线。该代码是公开的。

英文摘要:

Self-Attention has become prevalent in computer vision models. Inspired by fully connected Conditional Random Fields (CRFs), we decompose self-attention into local and context terms. They correspond to the unary and binary terms in CRF and are implemented by attention mechanisms with projection matrices. We observe that the unary terms only make small contributions to the outputs, and meanwhile standard CNNs that rely solely on the unary terms achieve great performances on a variety of tasks. Therefore, we propose Locally Enhanced Self-Attention (LESA), which enhances the unary term by incorporating it with convolutions, and utilizes a fusion module to dynamically couple the unary and binary operations. In our experiments, we replace the self-attention modules with LESA. The results on ImageNet and COCO show the superiority of LESA over convolution and self-attention baselines for the tasks of image recognition, object detection, and instance segmentation. The code is made publicly available.

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

↑