RepMLPNet: Hierarchical Vision MLP with Re-parameterized Locality

Xiaohan Ding, Honghao Chen, Xiangyu Zhang, Jungong Han, Guiguang Ding
12/21/2021
cs.CVcs.AIcs.LG

Official code: DingXiaoH/RepMLP (306 stars, MIT, last commit 2023-02-10).

Abstract

Compared to convolutional layers, fully-connected (FC) layers are better at modeling the long-range dependencies but worse at capturing the local patterns, hence usually less favored for image recognition. In this paper, we propose a methodology, Locality Injection, to incorporate local priors into an FC layer via merging the trained parameters of a parallel conv kernel into the FC kernel. Locality Injection can be viewed as a novel Structural Re-parameterization method since it equivalently converts the structures via transforming the parameters. Based on that, we propose a multi-layer-perceptron (MLP) block named RepMLP Block, which uses three FC layers to extract features, and a novel architecture named RepMLPNet. The hierarchical design distinguishes RepMLPNet from the other concurrently proposed vision MLPs. As it produces feature maps of different levels, it qualifies as a backbone model for downstream tasks like semantic segmentation. Our results reveal that 1) Locality Injection is a general methodology for MLP models; 2) RepMLPNet has favorable accuracy-efficiency trade-off compared to the other MLPs; 3) RepMLPNet is the first MLP that seamlessly transfer to Cityscapes semantic segmentation. The code and models are available at https://github.com/DingXiaoH/RepMLP.

View on arXivView PDF

Code Implementations(1)

DingXiaoH/RepMLPOfficial100%
MIT

RepMLPNet: Hierarchical Vision MLP with Re-parameterized Locality (CVPR 2022)

30644PythonMay 5, 20213 years agoMIT

Similar Papers

Cite this paper

@article{ding2021repmlpnet,
  title  = {RepMLPNet: Hierarchical Vision MLP with Re-parameterized Locality},
  author = {Xiaohan Ding and Honghao Chen and Xiangyu Zhang and Jungong Han and Guiguang Ding},
  year   = {2021},
  eprint = {2112.11081},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2112.11081}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2112.11081.svg)](https://codeofpaper.com/paper/2112.11081)

Discussion