SimViT:探索一个简单的带有滑动窗口的视觉Transformer
SimViT: Exploring a Simple Vision Transformer with sliding windows
摘要:
尽管视觉Transformer在许多视觉任务中作为骨干模型取得了优异的性能,但大多数视觉变换器都试图捕捉图像或窗口中所有标记的全局关系,这破坏了二维结构中斑块之间固有的空间和局部相关性。在本文中,我们介绍了一个简单的视觉Transformer命名为SimViT,将空间结构和局部信息的视觉Transformer。具体来说,我们引入多头中央自注意(MCSA),而不是传统的多头自注意捕捉高度本地关系。滑动窗口的引入有助于捕捉空间结构。同时,SimViT从不同层提取多尺度层次特征,用于密集预测任务。大量的实验表明,SimViT是有效和高效的通用骨干模型的各种图像处理任务。特别是,我们的SimViT-Micro只需要3.3M参数就可以在ImageNet-1 k数据集上达到71.1%的top-1准确率,这是目前最小尺寸的视觉Transformer模型。我们的代码将在https://github.com/ucasligang/SimViT上提供。
英文摘要:
Although vision Transformers have achieved excellent performance as backbone models in many vision tasks, most of them intend to capture global relations of all tokens in an image or a window, which disrupts the inherent spatial and local correlations between patches in 2D structure. In this paper, we introduce a simple vision Transformer named SimViT, to incorporate spatial structure and local information into the vision Transformers. Specifically, we introduce Multi-head Central Self-Attention(MCSA) instead of conventional Multi-head Self-Attention to capture highly local relations. The introduction of sliding windows facilitates the capture of spatial structure. Meanwhile, SimViT extracts multi-scale hierarchical features from different layers for dense prediction tasks. Extensive experiments show the SimViT is effective and efficient as a general-purpose backbone model for various image processing tasks. Especially, our SimViT-Micro only needs 3.3M parameters to achieve 71.1% top-1 accuracy on ImageNet-1k dataset, which is the smallest size vision Transformer model by now. Our code will be available in https://github.com/ucasligang/SimViT.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。