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

混合与转移:在视觉MLP中利用全球和本地的相似性

Mixing and Shifting: Exploiting Global and Local Dependencies in Vision MLPs

The University of Texas at Austin(得克萨斯大学奥斯汀分校);Microsoft Azure AI(微软Azure人工智能)

Huangjie Zheng, Pengcheng He, Weizhu Chen, Mingyuan Zhou

摘要:

令牌混合多层感知器(MLP)模型在计算机视觉任务中表现出具有竞争力的性能,具有简单的架构和相对较小的计算成本。他们在保持计算效率方面的成功主要归功于避免使用通常计算量很大的自我注意力,但这是以不能在全局和局部混合令牌为代价的。在本文中,利用全局和局部的依赖性没有自我注意,我们提出了混合移位MLP(MS-MLP),这使得用于混合的局部感受野的大小相对于空间移位量的增加。除了传统的混合和移位技术,MS-MLP从细粒度到粗粒度级别混合相邻和遥远的令牌,然后通过移位操作收集它们。这直接有助于全局和本地令牌之间的交互。由于实现简单,MS-MLP在多个视觉基准测试中获得了具有竞争力的性能。例如,具有8500万个参数的MS-MLP在ImageNet-1 K上实现了83.8%的top-1分类准确率。此外,通过将MS-MLP与最先进的视觉Transformer(如Swin Transformer)相结合,我们展示了MS-MLP在三个不同的模型尺度上实现了进一步的改进,例如,在ImageNet-1 K分类中,Swin-B的分类效率提高了0.5%。该代码可从以下网址获取:https://github.com/JegZheng/MS-MLP。

英文摘要:

Token-mixing multi-layer perceptron (MLP) models have shown competitive performance in computer vision tasks with a simple architecture and relatively small computational cost. Their success in maintaining computation efficiency is mainly attributed to avoiding the use of self-attention that is often computationally heavy, yet this is at the expense of not being able to mix tokens both globally and locally. In this paper, to exploit both global and local dependencies without self-attention, we present Mix-Shift-MLP (MS-MLP) which makes the size of the local receptive field used for mixing increase with respect to the amount of spatial shifting. In addition to conventional mixing and shifting techniques, MS-MLP mixes both neighboring and distant tokens from fine- to coarse-grained levels and then gathers them via a shifting operation. This directly contributes to the interactions between global and local tokens. Being simple to implement, MS-MLP achieves competitive performance in multiple vision benchmarks. For example, an MS-MLP with 85 million parameters achieves 83.8% top-1 classification accuracy on ImageNet-1K. Moreover, by combining MS-MLP with state-of-the-art Vision Transformers such as the Swin Transformer, we show MS-MLP achieves further improvements on three different model scales, e.g., by 0.5% on ImageNet-1K classification with Swin-B. The code is available at: https://github.com/JegZheng/MS-MLP.

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

↑