[论文解读] MOAT: Alternating Mobile Convolution and Attention Brings Strong Vision Models
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.
研究动机与目标
- 为视觉任务提供卷积和基于注意力的块的简单而有效整合的动机。
- 通过在 Transformer 块中用 MBConv 取代 MLP 并重新排序以实现更好的下采样,研究微架构设计。
- 在 ImageNet 分类上评估 MOAT 的变体,无论是否进行大规模预训练。
- 评估 MOAT 在需要高分辨率输入的下游任务上的性能(COCO 目标检测和 ADE20K 分割)。
提出的方法
- 定义 MBConv 块和 Transformer 块,强调倒置瓶颈和局部信息处理与全局信息处理。
- 通过将 Transformer 的 MLP 替换为 MBConv(无 SE),并将 MBConv 放在自注意力之前来将下采样的任务交给深度卷积,提出 MOAT。
- 设计基于 MOAT 的元架构,包含卷积干 stem、MBConv 和 MOAT 块,遵循类似 CoAtNet-1 的布局。
- 通过调整块数量和通道数来缩放 MOAT 变体,创建 MOAT-0…MOAT-4 和 tiny-MOAT 变体。
- 在 ImageNet-1K 和 ImageNet-22K 预训练上进行评估,然后迁移到 COCO 和 ADE20K,使用局部窗口注意力处理大输入。
- 与最先进的 ConvNets、ViTs 和混合模型进行比较,以展示参数/计算效率及准确率提升。
实验结果
研究问题
- RQ1单个 MOAT 块是否能在不需要额外下采样模块的情况下有效融合 MBConv 与 Transformer 块的优点?
- RQ2在自注意力前重新排序 MBConv 是否能改善下采样质量和整体表示能力?
- RQ3MOAT 变体在 ImageNet 和下游任务上的准确率与参数/ FLOPs 相比如何缩放?
主要发现
- MOAT 在 22K 预训练后在 ImageNet-1K 上达到 89.1% top-1,并在 ImageNet-1K-V2 上达到 81.5%。
- MOAT 在相同模型规模下在 ImageNet-1K 的有无大规模预训练时,优于竞争的混合模型和纯 ViT/ConvNet 基线。
- 在 COCO 目标检测上,MOAT 以 227M 参数(单尺度,hard NMS)达到 59.2% AP box。
- 在 ADE20K 分割上,MOAT 以 496M 参数(单尺度)达到 57.6% mIoU。
- 通道较小的 tiny-MOAT 变体在 ImageNet 上仍然超越若干移动专用的 Transformer 模型。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。