atlas

Research map / Architectures and efficiency / CNN design

RepViT: Revisiting Mobile CNN From ViT Perspective

CVPR 2024 · Architectures and efficiency › CNN design · approach: Compact CNN architectures · 30 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Modernizes MobileNetV3-L step by step with lightweight-ViT design choices (RepViT block, macro and micro changes) to produce RepViT, a family of pure CNNs that beats lightweight ViTs on iPhone 12 latency and ImageNet accuracy, and a RepViT-SAM encoder.

Problem

Lightweight ViTs have recently beaten lightweight CNNs on accuracy and mobile latency, but the architectural differences between the two families (block structure, macro and micro design) have not been systematically examined.

Approach

Start from MobileNetV3-L and incrementally adopt lightweight-ViT designs (separate token/channel mixer with re-parameterized depthwise conv, narrower expansion ratio with wider channels, early-conv stem, deeper separate downsampling, simple classifier, ViT-like stage ratio, 3x3 kernels, cross-block SE placement), measuring on-device latency at each step to yield a pure CNN family.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
modernize MobileNetV3-L into RepViTMobileNetV3-L · ImageNet-1K, 300 epochs, without distillationTop-1 accuracy: 71.5 -> 77.4Helped
use a RepViT block that separates token and channel mixers with structural re-parameterizationMobileNetV3-L · ImageNet-1K, without distillationTop-1 accuracy: 71.5 -> 68.3Hurt
reduce channel-mixer expansion ratio to 2 and increase network widthRepViT block · ImageNet-1K, without distillationTop-1 accuracy: 68.3% -> 73.5%Helped
replace the complex stem with two stride-2 3×3 early convolutionsRepViT · ImageNet-1K, without distillationTop-1 accuracy: 73.5% -> 73.9%Helped
use deeper, separate downsampling layersRepViT · ImageNet-1K, without distillationTop-1 accuracy: 73.9% -> 75.4%Helped
replace the complex classifier with global average pooling and one linear layerRepViT · ImageNet-1K, without distillationTop-1 accuracy: 0.6%Hurt
use stage ratio 1:1:7:1 and deepen the layout to 2:2:14:2RepViT · ImageNet-1K, without distillationTop-1 accuracy: 75.4% -> 76.9%Helped
replace larger convolution kernels with 3×3 convolutionsRepViT · ImageNet-1KTop-1 accuracy: 76.9% -> 76.9%No clear effect
use cross-block SE placementRepViT · ImageNet-1KTop-1 accuracy: 76.9% -> 77.4%Helped
add structural re-parameterization multi-branch topology during training (ablation)RepViT · ImageNet-1KTop-1 accuracy: 78.47% -> 78.74%Helped
add SE layers to the cross-block placement instead of removing all SE (ablation)RepViT-M0.9 · ImageNet-1KTop-1 accuracy: 77.92% -> 78.74%Helped
use cross-block SE rather than SE in every block (ablation)RepViT-M1.5 · ImageNet-1KLatency: 1.58 ms -> 1.52 msHelped

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet-1K MS COCO 2017 ADE20K SA-1B BSDS500

Benchmarks: ImageNet-1K MS COCO 2017 ADE20K BSDS500 SegInW

Metrics: top-1 accuracy latency (ms) on iPhone 12 throughput APbox APmask mIoU ODS OIS AP

Baselines: MobileOne EfficientFormerV2 FastViT SwiftFormer MobileViG EfficientFormer PoolFormer MobileSAM ViT-B-SAM ViT-H-SAM

Builds on: MobileNetV3 MetaFormer RepVGG EfficientFormer SAM

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy