Skip to main content
QUICK REVIEW

[Paper Review] MOAT: Alternating Mobile Convolution and Attention Brings Strong Vision Models

Chenglin Yang, Siyuan Qiao|arXiv (Cornell University)|Oct 4, 2022
Advanced Neural Network ApplicationsComputer Science22 citations
TL;DR

MOAT merges mobile convolution and self-attention into a single MOAT block, yielding strong vision models across classification, detection, and segmentation with competitive efficiency.

ABSTRACT

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.

Motivation & Objective

  • Motivate a simple yet effective integration of convolutional and attention-based blocks for vision tasks.
  • Investigate micro-architecture design by replacing MLP in Transformer blocks with MBConv and reordering for better downsampling.
  • Evaluate MOAT variants across ImageNet classification with and without large-scale pretraining.
  • Assess MOAT performance on downstream tasks requiring high-resolution inputs (COCO object detection and ADE20K segmentation).

Proposed method

  • Define MBConv blocks and Transformer blocks, highlighting inverted bottleneck and local vs global information processing.
  • Propose MOAT by replacing Transformer MLP with MBConv (without SE) and placing MBConv before self-attention to delegate downsampling to depthwise convolution.
  • Design a MOAT-based meta-architecture with convolutional stem, MBConv, and MOAT blocks, following a layout akin to CoAtNet-1.
  • Scale MOAT variants by adjusting block counts and channel numbers to create MOAT-0…MOAT-4 and tiny-MOAT variants.
  • Evaluate on ImageNet-1K and ImageNet-22K pretraining, then transfer to COCO and ADE20K with local window attention for large inputs.
  • Compare with state-of-the-art ConvNets, ViTs, and hybrids to demonstrate the parameter/compute efficiency and accuracy gains.

Experimental results

Research questions

  • RQ1Can a single MOAT block effectively fuse the strengths of MBConv and Transformer blocks without extra downsampling modules?
  • RQ2Does reordering MBConv before self-attention improve downsampling quality and overall representation capacity?
  • RQ3How do MOAT variants scale in terms of accuracy versus parameters/ FLOPs on ImageNet and downstream tasks?

Key findings

  • MOAT achieves 89.1% top-1 on ImageNet-1K after 22K pretraining and 81.5% on ImageNet-1K-V2.
  • MOAT outperforms competitive hybrids and pure ViT/ConvNet baselines at similar model sizes on ImageNet-1K with and without large-scale pretraining.
  • On COCO object detection, MOAT achieves 59.2% AP box with 227M parameters (single-scale, hard NMS).
  • On ADE20K segmentation, MOAT attains 57.6% mIoU with 496M parameters (single-scale).
  • Tiny-MOAT variants with smaller channel sizes still surpass several mobile-specific transformer models on ImageNet.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.