arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2305.04722cs.CV
收藏

理解视觉Transformer的高斯注意力偏差:基于有效感受野的视角

Understanding Gaussian Attention Bias of Vision Transformers Using Effective Receptive Fields

POSTECH(浦项科技大学)

Bum Jun Kim, Hyeyeon Choi, Hyeonah Jang, Sang Woo Kim

AI总结:

本文通过有效感受野分析揭示ViT位置嵌入需特定模式才能理解补丁顺序,提出显式高斯注意力偏差引导训练,提升图像分类、检测与分割性能。

摘要:

视觉Transformer(ViTs)将图像建模为一系列分割的补丁序列,在多种视觉任务中展现出显著性能。由于分割补丁破坏了图像结构,为了反映补丁的顺序,ViTs利用一个显式组件——位置嵌入。然而,我们声称使用位置嵌入并不能简单地保证ViT的顺序感知能力。为支持这一论断,我们利用有效感受野分析ViTs的实际行为。我们证明,在训练过程中,ViT从被训练成特定模式的位置嵌入中获取对补丁顺序的理解。基于此观察,我们提出显式添加一个高斯注意力偏差,引导位置嵌入从训练开始就具有相应的模式。我们在多个图像分类、目标检测和语义分割实验中评估了高斯注意力偏差对ViTs性能的影响。结果表明,所提方法不仅促进ViTs理解图像,而且在包括ImageNet、COCO 2017和ADE20K在内的各种数据集上提升了其性能。

英文摘要:

Vision transformers (ViTs) that model an image as a sequence of partitioned patches have shown notable performance in diverse vision tasks. Because partitioning patches eliminates the image structure, to reflect the order of patches, ViTs utilize an explicit component called positional embedding. However, we claim that the use of positional embedding does not simply guarantee the order-awareness of ViT. To support this claim, we analyze the actual behavior of ViTs using an effective receptive field. We demonstrate that during training, ViT acquires an understanding of patch order from the positional embedding that is trained to be a specific pattern. Based on this observation, we propose explicitly adding a Gaussian attention bias that guides the positional embedding to have the corresponding pattern from the beginning of training. We evaluated the influence of Gaussian attention bias on the performance of ViTs in several image classification, object detection, and semantic segmentation experiments. The results showed that proposed method not only facilitates ViTs to understand images but also boosts their performance on various datasets, including ImageNet, COCO 2017, and ADE20K.

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

↑