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

RepMLP:将卷积重新参数化为全连通层用于图像识别

RepMLP: Re-parameterizing Convolutions into Fully-connected Layers for Image Recognition

Tsinghua University(清华大学);MEGVII Technology(旷视科技);Aberystwyth University(阿伯里斯特威斯大学)

Xiaohan Ding, Chunlong Xia, Xiangyu Zhang, Xiaojie Chu, Jungong Han, Guiguang Ding

摘要:

我们提出了RepMLP,一个多层感知器风格的神经网络构建块的图像识别,这是由一系列的全连接(FC)层。与卷积层相比,FC层更有效,更擅长建模长距离依赖关系和位置模式,但在捕获局部结构方面较差,因此通常不太适合图像识别。我们提出了一种结构重新参数化技术,增加了本地的前到FC,使其强大的图像识别。具体来说,我们在训练期间在RepMLP内部构建卷积层,并将它们合并到FC中进行推理。在CIFAR上,一个简单的纯MLP模型显示出非常接近CNN的性能。通过在传统的CNN中插入RepMLP,我们在ImageNet上将ResNets的准确率提高了1.8%,在人脸识别上提高了2.9%,在Cityscapes上提高了2.3%的mIoU。我们有趣的发现强调了将FC的全局表示能力和位置感知与卷积的局部先验相结合可以提高神经网络的性能,在具有平移不变性的任务上具有更快的速度(例如,语义分割)和具有对准图像和位置图案的那些(例如,面部识别)。代码和模型可在https://github.com/DingXiaoH/RepMLP上获得。

英文摘要:

We propose RepMLP, a multi-layer-perceptron-style neural network building block for image recognition, which is composed of a series of fully-connected (FC) layers. Compared to convolutional layers, FC layers are more efficient, better at modeling the long-range dependencies and positional patterns, but worse at capturing the local structures, hence usually less favored for image recognition. We propose a structural re-parameterization technique that adds local prior into an FC to make it powerful for image recognition. Specifically, we construct convolutional layers inside a RepMLP during training and merge them into the FC for inference. On CIFAR, a simple pure-MLP model shows performance very close to CNN. By inserting RepMLP in traditional CNN, we improve ResNets by 1.8% accuracy on ImageNet, 2.9% for face recognition, and 2.3% mIoU on Cityscapes with lower FLOPs. Our intriguing findings highlight that combining the global representational capacity and positional perception of FC with the local prior of convolution can improve the performance of neural network with faster speed on both the tasks with translation invariance (e.g., semantic segmentation) and those with aligned images and positional patterns (e.g., face recognition). The code and models are available at https://github.com/DingXiaoH/RepMLP.

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

↑