arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2209.07738cs.CVcs.AIcs.LG
收藏

DMFormer:缩小CNN和视觉Transformer之间的差距

DMFormer: Closing the Gap Between CNN and Vision Transformers

National University of Defense Technology(国防科技大学);Chinese Academy of Sciences(中国科学院)

Zimian Wei, Hengyue Pan, Lujun Li, Menglong Lu, Xin Niu, Peijie Dong, Dongsheng Li

摘要:

视觉Transformer在计算机视觉任务中表现出了出色的性能。由于它们的自注意力机制的计算成本昂贵,最近的工作尝试用卷积运算来代替视觉Transformer中的自注意力机制,这在内置感应偏置的情况下更有效。然而,这些努力要么忽略了多层次的功能或缺乏动态繁荣,导致次优性能。在本文中,我们提出了一个动态的多级注意力机制(DMA),它捕获不同的模式的输入图像的多个内核大小,并使输入自适应权重与门控机制。本文提出了一种基于DMA的高效骨干网DMFormer。DMFormer采用了视觉Transformer的整体架构,同时用我们提出的DMA取代了自注意力机制。在ImageNet-1 K和ADE 20 K数据集上的大量实验结果表明,DMFormer实现了最先进的性能,优于类似大小的视觉Transformer(ViT)和卷积神经网络(CNN)。

英文摘要:

Vision transformers have shown excellent performance in computer vision tasks. As the computation cost of their self-attention mechanism is expensive, recent works tried to replace the self-attention mechanism in vision transformers with convolutional operations, which is more efficient with built-in inductive bias. However, these efforts either ignore multi-level features or lack dynamic prosperity, leading to sub-optimal performance. In this paper, we propose a Dynamic Multi-level Attention mechanism (DMA), which captures different patterns of input images by multiple kernel sizes and enables input-adaptive weights with a gating mechanism. Based on DMA, we present an efficient backbone network named DMFormer. DMFormer adopts the overall architecture of vision transformers, while replacing the self-attention mechanism with our proposed DMA. Extensive experimental results on ImageNet-1K and ADE20K datasets demonstrated that DMFormer achieves state-of-the-art performance, which outperforms similar-sized vision transformers(ViTs) and convolutional neural networks (CNNs).

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

↑