arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.01820cs.CV
收藏

MOAT:交替移动卷积和注意力带来强大的视觉模型

MOAT: Alternating Mobile Convolution and Attention Brings Strong Vision Models

The Johns Hopkins University(约翰斯·霍普金斯大学);Google Research(谷歌研究院)

Chenglin Yang, Siyuan Qiao, Qihang Yu, Xiaoding Yuan, Yukun Zhu, Alan Yuille, Hartwig Adam, Liang-Chieh Chen

摘要:

本文介绍了MOAT,一个建立在移动卷积之上的神经网络家族(即,反向残差块)和注意力。与当前将移动卷积和Transformer块堆叠在一起的工作不同,我们有效地将它们合并到MOAT块中。从一个标准的Transformer块开始,我们用一个移动卷积块替换它的多层感知器,并在自注意操作之前对其进行重新排序。移动卷积块不仅增强了网络表示能力,而且还产生了更好的下采样特征。我们概念上简单的MOAT网络非常有效,在ImageNet-1 K/ ImageNet-1 K-V2上使用ImageNet 22 K预训练实现了89.1% / 81.5%的top-1准确率。此外,MOAT可以无缝地应用于需要大分辨率输入的下游任务,只需将全局注意力转换为窗口注意力。由于移动卷积可以有效地在像素之间(以及跨窗口)交换本地信息,MOAT不需要额外的窗口移动机制。因此,在COCO目标检测上,MOAT使用227 M模型参数(单尺度推理和硬NMS)实现了59.2%的框AP,在ADE 20 K语义分割上,MOAT使用496 M模型参数(单尺度推理)实现了57.6%的mIoU。最后,通过简单地减少通道大小获得的tiny-MOAT系列也令人惊讶地优于ImageNet上的几个移动特定的基于transformer的模型。微型MOAT系列还以下游任务为基准,作为社区的基线。我们希望我们简单而有效的MOAT将激发更多的卷积和自我注意力的无缝集成。代码是公开的。

英文摘要:

This paper presents MOAT, a family of neural networks that build on top of MObile convolution (i.e., inverted residual blocks) and ATtention. Unlike the current works that stack separate mobile convolution and transformer blocks, we effectively merge them into a MOAT block. Starting with a standard Transformer block, we replace its multi-layer perceptron with a mobile convolution block, and further reorder it before the self-attention operation. The mobile convolution block not only enhances the network representation capacity, but also produces better downsampled features. Our conceptually simple MOAT networks are surprisingly effective, achieving 89.1% / 81.5% top-1 accuracy on ImageNet-1K / ImageNet-1K-V2 with ImageNet22K pretraining. Additionally, MOAT can be seamlessly applied to downstream tasks that require large resolution inputs by simply converting the global attention to window attention. Thanks to the mobile convolution that effectively exchanges local information between pixels (and thus cross-windows), MOAT does not need the extra window-shifting mechanism. As a result, on COCO object detection, MOAT achieves 59.2% box AP with 227M model parameters (single-scale inference, and hard NMS), and on ADE20K semantic segmentation, MOAT attains 57.6% mIoU with 496M model parameters (single-scale inference). Finally, the tiny-MOAT family, obtained by simply reducing the channel sizes, also surprisingly outperforms several mobile-specific transformer-based models on ImageNet. The tiny-MOAT family is also benchmarked on downstream tasks, serving as a baseline for the community. We hope our simple yet effective MOAT will inspire more seamless integration of convolution and self-attention. Code is publicly available.

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

↑