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

序列与圆:探索斑块之间的关系

Sequence and Circle: Exploring the Relationship Between Patches

Frankfurt Institute for Advanced Studies(法兰克福高等研究院);Xidian FIAS Joint Research Center(西电-法兰克福高等研究院联合研究中心)

Zhengyang Yu, Jochen Triesch

摘要:

视觉Transformer(ViT)在各种视觉任务中取得了最先进的成果。它利用可学习的位置嵌入(PE)机制来编码每个图像块的位置。然而,目前还不清楚这种可学习的PE是否真的有必要以及它的好处是什么。本文探讨了两种不同的方式编码的位置,利用先验知识,他们的空间布局的个别补丁。一种称为序列关系嵌入(SRE),另一种称为循环关系嵌入(CRE)。其中,SRE认为所有的补丁是有序的,相邻的补丁具有相同的间隔距离。CRE将中心块视为圆心,并基于四邻域原则测量其余块与圆心的距离。具有不同半径的多个同心圆组合不同的贴片。最后,我们在三个经典的ViT上实现了这两个关系,并在四个流行的数据集上进行了测试。实验表明,SRE和CRE可以取代PE,以减少随机可学习的参数,而达到相同的性能。将SRE或CRE与PE结合使用比仅使用PE获得更好的性能。

英文摘要:

The vision transformer (ViT) has achieved state-of-the-art results in various vision tasks. It utilizes a learnable position embedding (PE) mechanism to encode the location of each image patch. However, it is presently unclear if this learnable PE is really necessary and what its benefits are. This paper explores two alternative ways of encoding the location of individual patches that exploit prior knowledge about their spatial arrangement. One is called the sequence relationship embedding (SRE), and the other is called the circle relationship embedding (CRE). Among them, the SRE considers all patches to be in order, and adjacent patches have the same interval distance. The CRE considers the central patch as the center of the circle and measures the distance of the remaining patches from the center based on the four neighborhoods principle. Multiple concentric circles with different radii combine different patches. Finally, we implemented these two relations on three classic ViTs and tested them on four popular datasets. Experiments show that SRE and CRE can replace PE to reduce the random learnable parameters while achieving the same performance. Combining SRE or CRE with PE gets better performance than only using PE.

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

↑