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

Hire-MLP:基于层次重排的Vision MLP

Hire-MLP: Vision MLP via Hierarchical Rearrangement

Noah’s Ark Lab, Huawei Technologies(华为技术有限公司诺亚方舟实验室);University of Sydney(悉尼大学);Peking University(北京大学)

Jianyuan Guo, Yehui Tang, Kai Han, Xinghao Chen, Han Wu, Chao Xu, Chang Xu, Yunhe Wang

摘要:

以前的视觉MLP(如MLP-Mixer和ResMLP)接受线性展平的图像块作为输入,这使得它们对于不同的输入大小不灵活,并且难以捕获空间信息。这种方法阻止了MLP获得与基于变压器的对应物相当的性能,并阻止它们成为计算机视觉的通用骨干。本文提出了Hire-MLP,一个简单而又有竞争力的视觉MLP架构,它通过\textbf{Hi}的\textbf{re}的顺序排列,包含两个层次的重排。具体而言,区域内重排被提出来捕获空间区域内的局部信息,并且跨区域重排被提出来使得不同区域之间能够进行信息通信,并且通过沿空间方向循环地移动所有令牌来捕获全局上下文。大量实验证明了Hire-MLP作为各种视觉任务的通用主干的有效性。特别是,Hire-MLP在图像分类、目标检测和语义分割任务上取得了有竞争力的结果,例如,ImageNet上的top-1准确率为83.8%,COCO val 2017上的box AP为51.7%,mask AP为44.8%,ADE 20 K上的mIoU为49.9%,超过了之前基于transformer和基于MLP的模型,在准确性和吞吐量方面取得了更好的平衡。代码可在https://github.com/ggjy/Hire-Wave-MLP.pytorch上获得。

英文摘要:

Previous vision MLPs such as MLP-Mixer and ResMLP accept linearly flattened image patches as input, making them inflexible for different input sizes and hard to capture spatial information. Such approach withholds MLPs from getting comparable performance with their transformer-based counterparts and prevents them from becoming a general backbone for computer vision. This paper presents Hire-MLP, a simple yet competitive vision MLP architecture via \textbf{Hi}erarchical \textbf{re}arrangement, which contains two levels of rearrangements. Specifically, the inner-region rearrangement is proposed to capture local information inside a spatial region, and the cross-region rearrangement is proposed to enable information communication between different regions and capture global context by circularly shifting all tokens along spatial directions. Extensive experiments demonstrate the effectiveness of Hire-MLP as a versatile backbone for various vision tasks. In particular, Hire-MLP achieves competitive results on image classification, object detection and semantic segmentation tasks, e.g., 83.8% top-1 accuracy on ImageNet, 51.7% box AP and 44.8% mask AP on COCO val2017, and 49.9% mIoU on ADE20K, surpassing previous transformer-based and MLP-based models with better trade-off for accuracy and throughput. Code is available at https://github.com/ggjy/Hire-Wave-MLP.pytorch.

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

↑