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

S $^2$ - MLP:用于视觉的空间移位MLP架构

S$^2$-MLP: Spatial-Shift MLP Architecture for Vision

Baidu Research(百度研究院)

Tan Yu, Xu Li, Yunfeng Cai, Mingming Sun, Ping Li

摘要:

最近,视觉Transformer(ViT)及其后续工作放弃了卷积,并利用自注意力操作,获得了与CNN相当甚至更高的准确性。最近,MLP混合器放弃了卷积和自注意操作,提出了一种只包含MLP层的架构。为了实现跨贴片通信,在信道混合MLP的基础上,设计了一个附加的令牌混合MLP。它在训练超大规模数据集时取得了令人鼓舞的结果。但在中等规模的数据集(如ImageNet 1 K和ImageNet 21 K)上训练时,它无法实现与CNN和ViT同行一样出色的性能。MLP混合器性能的下降促使我们重新思考令牌混合MLP。我们发现,令牌混合MLP是一个变种的dependency卷积与全球接收领域和空间特定的配置。但是,全局接收场和空间特定性使得令牌混合MLP容易过拟合。在本文中,我们提出了一种新的纯MLP架构,空间移位MLP(S $^2$ -MLP)。与MLP混合器不同,我们的S $^2$ -MLP只包含通道混合MLP。我们利用空间位移操作进行补丁之间的通信。它有一个局部接收场,并且是空间不可知的。它是无参数的,计算效率高。在ImageNet-1 K数据集上训练时,所提出的S $^2$ -MLP获得了比MLP-Mixer更高的识别准确率。同时,S $^2$ -MLP在ImageNet-1 K数据集上实现了与ViT一样出色的性能,具有相当简单的架构和更少的FLOP和参数。

英文摘要:

Recently, visual Transformer (ViT) and its following works abandon the convolution and exploit the self-attention operation, attaining a comparable or even higher accuracy than CNNs. More recently, MLP-Mixer abandons both the convolution and the self-attention operation, proposing an architecture containing only MLP layers. To achieve cross-patch communications, it devises an additional token-mixing MLP besides the channel-mixing MLP. It achieves promising results when training on an extremely large-scale dataset. But it cannot achieve as outstanding performance as its CNN and ViT counterparts when training on medium-scale datasets such as ImageNet1K and ImageNet21K. The performance drop of MLP-Mixer motivates us to rethink the token-mixing MLP. We discover that the token-mixing MLP is a variant of the depthwise convolution with a global reception field and spatial-specific configuration. But the global reception field and the spatial-specific property make token-mixing MLP prone to over-fitting. In this paper, we propose a novel pure MLP architecture, spatial-shift MLP (S$^2$-MLP). Different from MLP-Mixer, our S$^2$-MLP only contains channel-mixing MLP. We utilize a spatial-shift operation for communications between patches. It has a local reception field and is spatial-agnostic. It is parameter-free and efficient for computation. The proposed S$^2$-MLP attains higher recognition accuracy than MLP-Mixer when training on ImageNet-1K dataset. Meanwhile, S$^2$-MLP accomplishes as excellent performance as ViT on ImageNet-1K dataset with considerably simpler architecture and fewer FLOPs and parameters.

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

↑