Skip to main content
QUICK REVIEW

[Paper Review] MoCoViT: Mobile Convolutional Vision Transformer

Hailong Ma, Xin Xia|arXiv (Cornell University)|May 25, 2022
Visual Attention and Saliency DetectionComputer Science14 citations
TL;DR

MoCoViT introduces a lightweight Mobile Convolutional Vision Transformer that combines mobile-friendly convolutional networks with a specialized transformer block for efficient on-device vision tasks. By employing Mobile Self-Attention (MoSA) and Mobile Feed-Forward Network (MoFFN), it achieves 74.5% ImageNet top-1 accuracy at 147M FLOPs—surpassing MobileNetV3 with lower computation and improving GhostNet by 2.1 AP on COCO object detection.

ABSTRACT

Recently, Transformer networks have achieved impressive results on a variety of vision tasks. However, most of them are computationally expensive and not suitable for real-world mobile applications. In this work, we present Mobile Convolutional Vision Transformer (MoCoViT), which improves in performance and efficiency by introducing transformer into mobile convolutional networks to leverage the benefits of both architectures. Different from recent works on vision transformer, the mobile transformer block in MoCoViT is carefully designed for mobile devices and is very lightweight, accomplished through two primary modifications: the Mobile Self-Attention (MoSA) module and the Mobile Feed Forward Network (MoFFN). MoSA simplifies the calculation of the attention map through Branch Sharing scheme while MoFFN serves as a mobile version of MLP in the transformer, further reducing the computation by a large margin. Comprehensive experiments verify that our proposed MoCoViT family outperform state-of-the-art portable CNNs and transformer neural architectures on various vision tasks. On ImageNet classification, it achieves 74.5% top-1 accuracy at 147M FLOPs, gaining 1.2% over MobileNetV3 with less computations. And on the COCO object detection task, MoCoViT outperforms GhostNet by 2.1 AP in RetinaNet framework.

Motivation & Objective

  • To design a vision transformer architecture optimized for mobile devices with low computational cost.
  • To improve accuracy and efficiency over existing portable CNNs and vision transformers in real-world mobile applications.
  • To integrate the strengths of convolutional networks and transformers in a lightweight, mobile-first framework.
  • To reduce FLOPs in attention and feed-forward components without sacrificing performance.

Proposed method

  • Introduces the Mobile Self-Attention (MoSA) module, which uses a Branch Sharing scheme to simplify attention map computation.
  • Proposes the Mobile Feed-Forward Network (MoFFN), a lightweight MLP variant that reduces computation in the feed-forward path.
  • Integrates MoSA and MoFFN into a mobile-optimized transformer block for use in a hybrid convolutional-transformer architecture.
  • Employs a hybrid backbone combining mobile convolutions with the lightweight transformer blocks to balance inductive bias and long-range modeling.
  • Trains the MoCoViT family on ImageNet and fine-tunes on COCO detection, using standard benchmarks for comparison.

Experimental results

Research questions

  • RQ1Can a vision transformer be made efficient enough for mobile deployment without sacrificing accuracy?
  • RQ2How can self-attention and feed-forward components be simplified for mobile hardware while preserving performance?
  • RQ3Can a hybrid mobile convolutional and transformer architecture outperform state-of-the-art portable models on ImageNet and COCO?
  • RQ4What is the trade-off between FLOPs and accuracy when integrating transformer blocks into mobile networks?

Key findings

  • MoCoViT achieves 74.5% top-1 accuracy on ImageNet at only 147M FLOPs, surpassing MobileNetV3 by 1.2% with less computation.
  • On the COCO object detection task using RetinaNet, MoCoViT improves AP by 2.1 points over GhostNet.
  • The Mobile Self-Attention (MoSA) module reduces attention computation through a shared branching mechanism without significant accuracy drop.
  • The Mobile Feed-Forward Network (MoFFN) significantly reduces FLOPs in the MLP path compared to standard feed-forward layers.
  • The MoCoViT family outperforms both state-of-the-art portable CNNs and vision transformers on multiple vision benchmarks.

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.