arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2108.13002cs.CV
收藏

网络结构之战:CNN、Transformer和MLP的实证研究

A Battle of Network Structures: An Empirical Study of CNN, Transformer, and MLP

Microsoft Research Asia(微软亚洲研究院)

Yucheng Zhao, Guangting Wang, Chuanxin Tang, Chong Luo, Wenjun Zeng, Zheng-Jun Zha

摘要:

卷积神经网络(CNN)是计算机视觉的主要深度神经网络(DNN)架构。最近,Transformer和基于多层感知器(MLP)的模型,如视觉Transformer和MLP-Mixer,开始引领新的趋势,因为它们在ImageNet分类任务中显示出了有希望的结果。在本文中,我们对这些DNN结构进行了实证研究,并试图了解它们各自的优缺点。为了确保公平的比较,我们首先开发了一个统一的框架SPACH,该框架采用独立的空间和信道处理模块。SPACH框架下的实验表明,所有结构都可以在适度规模下实现竞争性能。然而,当网络规模扩大时,它们表现出独特的行为。基于我们的研究结果,我们提出了两个混合模型使用卷积和Transformer模块。所得到的Hybrid-MS-S+模型在63 M参数和12.3G FLOPS的情况下实现了83.9%的top-1精度。它已经与SOTA模型具有复杂的设计。代码和模型可在https://github.com/microsoft/SPACH上公开获取。

英文摘要:

Convolutional neural networks (CNN) are the dominant deep neural network (DNN) architecture for computer vision. Recently, Transformer and multi-layer perceptron (MLP)-based models, such as Vision Transformer and MLP-Mixer, started to lead new trends as they showed promising results in the ImageNet classification task. In this paper, we conduct empirical studies on these DNN structures and try to understand their respective pros and cons. To ensure a fair comparison, we first develop a unified framework called SPACH which adopts separate modules for spatial and channel processing. Our experiments under the SPACH framework reveal that all structures can achieve competitive performance at a moderate scale. However, they demonstrate distinctive behaviors when the network size scales up. Based on our findings, we propose two hybrid models using convolution and Transformer modules. The resulting Hybrid-MS-S+ model achieves 83.9% top-1 accuracy with 63M parameters and 12.3G FLOPS. It is already on par with the SOTA models with sophisticated designs. The code and models are publicly available at https://github.com/microsoft/SPACH.

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

↑