Skip to main content
QUICK REVIEW

[Paper Review] Rethinking Mobile Block for Efficient Attention-based Models

Jiangning Zhang, Xiangtai Li|arXiv (Cornell University)|Jan 3, 2023
Advanced Neural Network ApplicationsComputer Science19 citations
TL;DR

Introduces Meta Mobile Block (MMB) to unify CNN-like inverted residual blocks with attention modules, yielding iRMB-based EMO models that outperform state-of-the-art lightweight CNN/Transformer methods on ImageNet, COCO, and ADE20K with fewer parameters and FLOPs.

ABSTRACT

This paper focuses on developing modern, efficient, lightweight models for dense predictions while trading off parameters, FLOPs, and performance. Inverted Residual Block (IRB) serves as the infrastructure for lightweight CNNs, but no counterpart has been recognized by attention-based studies. This work rethinks lightweight infrastructure from efficient IRB and effective components of Transformer from a unified perspective, extending CNN-based IRB to attention-based models and abstracting a one-residual Meta Mobile Block (MMB) for lightweight model design. Following simple but effective design criterion, we deduce a modern Inverted Residual Mobile Block (iRMB) and build a ResNet-like Efficient MOdel (EMO) with only iRMB for down-stream tasks. Extensive experiments on ImageNet-1K, COCO2017, and ADE20K benchmarks demonstrate the superiority of our EMO over state-of-the-art methods, e.g., EMO-1M/2M/5M achieve 71.5, 75.1, and 78.4 Top-1 that surpass equal-order CNN-/Attention-based models, while trading-off the parameter, efficiency, and accuracy well: running 2.8-4.0x faster than EdgeNeXt on iPhone14.

Motivation & Objective

  • Motivate the need for lightweight, efficient backbones that balance parameters, FLOPs, and accuracy for mobile/dense prediction tasks.
  • Propose a unified block (MMB) that generalizes inverted residuals and Transformer components for efficiency.
  • Derive a modern Inverted Residual Mobile Block (iRMB) and build a ResNet-like EMO model composed solely of iRMBs.
  • Demonstrate EMO’s superior performance over SoTA lightweight CNN/Transformer models across classification and downstream tasks.

Proposed method

  • Abstract a one-residual Meta Mobile Block (MMB) from the shared structure of FFN and MHSA in Transformers and IRB in MobileNetv2.
  • Instantiate an Inverted Residual Mobile Block (iRMB) as a cascaded DW-Conv and an improved EW-MHSA to model local and long-range dependencies.
  • Introduce Expanded Window MHSA (EW-MHSA) by calculating Q/K from the original feature map and V from an expanded channel via MLP_e, followed by MLP_s to restore channels.
  • Build a ResNet-like 4-phase EMO consisting solely of iRMBs for dense prediction tasks.
  • Validate EMO on ImageNet-1K, COCO 2017, and ADE20K showing competitive Top-1, mAP, and mIoU with lower parameters/FLOPs.

Experimental results

Research questions

  • RQ1Can a lightweight infrastructure inspired by CNNs (IRB) be extended to attention-based models without adding complex modules?
  • RQ2Does a unified Meta Mobile Block (MMB) capture the essential operations of IRB, MHSA, and FFN to enable efficient iRMB design?
  • RQ3How does an iRMB-based EMO backbone perform on classification and dense prediction benchmarks relative to CNN- and Transformer-based lightweight models?
  • RQ4What are the trade-offs in accuracy, parameters, and FLOPs when using EW-MHSA and DW-Conv within iRMB across different scales (1M/2M/5M)?

Key findings

  • EMO-1M/2M/5M achieve 71.5, 75.1, and 78.4 Top-1 on ImageNet-1K, surpassing equal-order CNN-/Attention-based models.
  • EMO-1M/2M/5M with SSDLite achieve 22.0, 25.2, and 27.9 mAP on COCO 2017 while using only 2.3M/3.3M/6.0M parameters and 0.6G/0.9G/1.8G FLOPs.
  • EMO-5M/EMO-6M reach 78.4/79.0 Top-1 on ImageNet-1K with significantly fewer parameters than many NAS-based EfficientNet/ EfficientFormer counterparts.
  • For dense prediction, EMO-based DeepLabv3 achieve 33.5/35.3/37.8 mIoU on ADE20K, outperforming MobileViTv2 variants at similar or lower FLOPs.
  • EMO demonstrates faster throughputs on CPU/GPU and on mobile devices (e.g., 2.8×–4.0× speedups over EdgeNeXt at iPhone14) due to the simple iRMB design.
  • Ablations show EW-MHSA and DW-Conv each contribute substantial gains, with the best results when both are used (78.4 Top-1).

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.