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

扫视和凝视视觉Transformer

Glance-and-Gaze Vision Transformer

The Johns Hopkins University(约翰斯·霍普金斯大学);Shanghai Jiaotong University(上海交通大学)

Qihang Yu, Yingda Xia, Yutong Bai, Yongyi Lu, Alan Yuille, Wei Shen

摘要:

最近,出现了一系列视觉Transformer,由于Transformers具有强大的建模远程依赖关系的能力,它们比传统的卷积神经网络具有更紧凑的模型大小,表现出更优越的性能。然而,视觉Transformer的优势也是有代价的:自注意,Transformer的核心部分,具有输入序列长度的二次复杂度。这导致随着序列长度的增加,计算和存储器成本急剧增加,从而在将Transformers应用于需要基于高分辨率特征图的密集预测的视觉任务时引入困难。在本文中,我们提出了一个新的视觉Transformer,命名为扫视和凝视Transformer(GG-Transformer),以解决上述问题。它的动机是人类在识别自然场景中的对象时的扫视和凝视行为,具有有效建模远程依赖性和本地上下文的能力。在GG-Transformer中,Glance和Gaze行为由两个并行分支实现:Glance分支通过对输入的自适应扩张分区执行自关注来实现,这导致线性复杂度,同时仍然享有全局感受野; Gaze分支由简单的深度卷积层实现,该卷积层将局部图像上下文补偿到由Glance机制获得的特征。我们经验证明,我们的方法实现了一贯优于以前的国家的最先进的Transformers的各种视觉任务和基准的性能。代码和模型将在https://github.com/yucornetto/GG-Transformer上提供。

英文摘要:

Recently, there emerges a series of vision Transformers, which show superior performance with a more compact model size than conventional convolutional neural networks, thanks to the strong ability of Transformers to model long-range dependencies. However, the advantages of vision Transformers also come with a price: Self-attention, the core part of Transformer, has a quadratic complexity to the input sequence length. This leads to a dramatic increase of computation and memory cost with the increase of sequence length, thus introducing difficulties when applying Transformers to the vision tasks that require dense predictions based on high-resolution feature maps. In this paper, we propose a new vision Transformer, named Glance-and-Gaze Transformer (GG-Transformer), to address the aforementioned issues. It is motivated by the Glance and Gaze behavior of human beings when recognizing objects in natural scenes, with the ability to efficiently model both long-range dependencies and local context. In GG-Transformer, the Glance and Gaze behavior is realized by two parallel branches: The Glance branch is achieved by performing self-attention on the adaptively-dilated partitions of the input, which leads to a linear complexity while still enjoying a global receptive field; The Gaze branch is implemented by a simple depth-wise convolutional layer, which compensates local image context to the features obtained by the Glance mechanism. We empirically demonstrate our method achieves consistently superior performance over previous state-of-the-art Transformers on various vision tasks and benchmarks. The codes and models will be made available at https://github.com/yucornetto/GG-Transformer.

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

↑