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

DilateFormer:用于视觉识别的多尺度膨胀Transformer

DilateFormer: Multi-Scale Dilated Transformer for Visual Recognition

Sun Yat-Sen University(中山大学);Peng Cheng Laboratory(鹏城实验室)

Jiayu Jiao, Yu-Ming Tang, Kun-Yu Lin, Yipeng Gao, Jinhua Ma, Yaowei Wang, Wei-Shi Zheng

摘要:

作为一个事实上的解决方案,香草视觉Transformer(ViTs)被鼓励建模任意图像补丁之间的远程依赖关系,而全球关注的感受野导致二次计算成本。视觉Transformer的另一个分支利用了受CNN启发的局部注意力,它只对小社区中的补丁之间的相互作用进行建模。虽然这样的解决方案降低了计算成本,但它自然会受到小的关注感受野的影响,这可能会限制性能。在这项工作中,我们探索有效的视觉Transformer,追求一个更好的权衡之间的计算复杂性和大小的出席感受野。通过分析ViTs中全局注意力的补丁交互,我们观察到ViTs浅层中的两个关键属性,即局部性和稀疏性,表明ViTs浅层中全局依赖建模的冗余性。因此,我们提出了多尺度扩张注意力(MSDA)模型的滑动窗口内的局部和稀疏补丁的相互作用。采用金字塔结构,通过在低层堆叠MSDA块和在高层堆叠全局多头自注意块,构造了一个多尺度膨胀Transformer(DilateFormer)。我们的实验结果表明,我们的DilateFormer在各种视觉任务上都达到了最先进的性能。在ImageNet-1 K分类任务中,DilateFormer实现了与现有最先进模型相比低70%的FLOP。我们的DilateFormer-Base在ImageNet-1 K分类任务上实现了85.6%的top-1准确率,在COCO目标检测/实例分割任务上实现了53.5%的box mAP/46.1%的mask mAP,在ADE 20 K语义分割任务上实现了51.1%的MS mIoU。

英文摘要:

As a de facto solution, the vanilla Vision Transformers (ViTs) are encouraged to model long-range dependencies between arbitrary image patches while the global attended receptive field leads to quadratic computational cost. Another branch of Vision Transformers exploits local attention inspired by CNNs, which only models the interactions between patches in small neighborhoods. Although such a solution reduces the computational cost, it naturally suffers from small attended receptive fields, which may limit the performance. In this work, we explore effective Vision Transformers to pursue a preferable trade-off between the computational complexity and size of the attended receptive field. By analyzing the patch interaction of global attention in ViTs, we observe two key properties in the shallow layers, namely locality and sparsity, indicating the redundancy of global dependency modeling in shallow layers of ViTs. Accordingly, we propose Multi-Scale Dilated Attention (MSDA) to model local and sparse patch interaction within the sliding window. With a pyramid architecture, we construct a Multi-Scale Dilated Transformer (DilateFormer) by stacking MSDA blocks at low-level stages and global multi-head self-attention blocks at high-level stages. Our experiment results show that our DilateFormer achieves state-of-the-art performance on various vision tasks. On ImageNet-1K classification task, DilateFormer achieves comparable performance with 70% fewer FLOPs compared with existing state-of-the-art models. Our DilateFormer-Base achieves 85.6% top-1 accuracy on ImageNet-1K classification task, 53.5% box mAP/46.1% mask mAP on COCO object detection/instance segmentation task and 51.1% MS mIoU on ADE20K semantic segmentation task.

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

↑