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

退化Swin以赢:基于普通窗口的无需复杂操作的Transformer

Degenerate Swin to Win: Plain Window-based Transformer without Sophisticated Operations

Baidu Research(百度研究院)

Tan Yu, Ping Li

摘要:

Transformers在自然语言处理方面的巨大成就促使计算机视觉领域的研究人员构建视觉Transformer。与卷积神经网络(CNN)相比,视觉Transformer具有更大的感受野,能够表征长程依赖性。然而,视觉Transformer的大感受野伴随着巨大的计算成本。为了提高效率,出现了基于窗口的视觉Transformer。他们将一幅图像裁剪成几个局部窗口,自我注意力在每个窗口内进行。为了找回全局接收场,基于窗口的视觉Transformer投入了大量精力,通过开发几种复杂的操作来实现跨窗口通信。在这项工作中,我们检查Swin Transformer的关键设计元素的必要性,移动窗口分区。我们发现,一个简单的dependency卷积是足以实现有效的跨窗口通信。具体而言,由于存在去卷积,Swin Transformer中的移位窗口配置不能导致额外的性能改进。因此,我们通过丢弃复杂的移位窗口分区,将Swin Transformer退化为普通的基于窗口(Win)的Transformer。所提出的Win Transformer在概念上比Swin Transformer更简单,更易于实现。与此同时,我们的Win Transformer在多个计算机视觉任务(包括图像识别、语义分割和目标检测)上始终实现优于Swin Transformer的性能。

英文摘要:

The formidable accomplishment of Transformers in natural language processing has motivated the researchers in the computer vision community to build Vision Transformers. Compared with the Convolution Neural Networks (CNN), a Vision Transformer has a larger receptive field which is capable of characterizing the long-range dependencies. Nevertheless, the large receptive field of Vision Transformer is accompanied by the huge computational cost. To boost efficiency, the window-based Vision Transformers emerge. They crop an image into several local windows, and the self-attention is conducted within each window. To bring back the global receptive field, window-based Vision Transformers have devoted a lot of efforts to achieving cross-window communications by developing several sophisticated operations. In this work, we check the necessity of the key design element of Swin Transformer, the shifted window partitioning. We discover that a simple depthwise convolution is sufficient for achieving effective cross-window communications. Specifically, with the existence of the depthwise convolution, the shifted window configuration in Swin Transformer cannot lead to an additional performance improvement. Thus, we degenerate the Swin Transformer to a plain Window-based (Win) Transformer by discarding sophisticated shifted window partitioning. The proposed Win Transformer is conceptually simpler and easier for implementation than Swin Transformer. Meanwhile, our Win Transformer achieves consistently superior performance than Swin Transformer on multiple computer vision tasks, including image recognition, semantic segmentation, and object detection.

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

↑