[Paper Review] Mobile-Former: Bridging MobileNet and Transformer
Mobile-Former parallelizes MobileNet and a lightweight Transformer with a bidirectional bridge, achieving higher accuracy at similar or lower FLOPs on ImageNet and better object detection performance than MobileNetV3 and DETR baselines.
We present Mobile-Former, a parallel design of MobileNet and transformer with a two-way bridge in between. This structure leverages the advantages of MobileNet at local processing and transformer at global interaction. And the bridge enables bidirectional fusion of local and global features. Different from recent works on vision transformer, the transformer in Mobile-Former contains very few tokens (e.g. 6 or fewer tokens) that are randomly initialized to learn global priors, resulting in low computational cost. Combining with the proposed light-weight cross attention to model the bridge, Mobile-Former is not only computationally efficient, but also has more representation power. It outperforms MobileNetV3 at low FLOP regime from 25M to 500M FLOPs on ImageNet classification. For instance, Mobile-Former achieves 77.9\% top-1 accuracy at 294M FLOPs, gaining 1.3\% over MobileNetV3 but saving 17\% of computations. When transferring to object detection, Mobile-Former outperforms MobileNetV3 by 8.6 AP in RetinaNet framework. Furthermore, we build an efficient end-to-end detector by replacing backbone, encoder and decoder in DETR with Mobile-Former, which outperforms DETR by 1.1 AP but saves 52\% of computational cost and 36\% of parameters.
Motivation & Objective
- Motivate an efficient architecture that combines local feature processing of CNNs with global interactions of Transformers within a parallel design.
- Introduce a light-weight bidirectional bridge that fuses local and global features with minimal computation.
- Demonstrate that a small token-based Transformer can provide significant gains in low-FLOP regimes without excessive cost.
- Show improvements in classification on ImageNet and object detection/ end-to-end DETR-like pipelines.
- Explore ablations to understand the contribution of tokens, dimensionality, and dynamic ReLU in Mobile-Former.
Proposed method
- Present Mobile-Former as a parallel architecture stacking MobileNet blocks and a small-token Transformer (M <= 6, d <= 192) with learnable global tokens.
- Introduce a light-weight cross attention bridge that enables Mobile -> Former and Former -> Mobile interactions while removing Q/K/V projections on the Mobile side to save computation.
- Define the Mobile-Former block with four modules: a Mobile sub-block, a Former sub-block, and two cross-attention bridges (Mobile->Former and Former->Mobile).
- Use spatially-aware dynamic ReLU in the Mobile branch, where parameters are generated from global tokens, including an enhancement that uses all tokens for parameter generation in the head of end-to-end detectors.
- Provide network variants (Mobile-Former-26M to Mobile-Former-508M) and detail the 294M FLOP configuration with six global tokens and dimension 192 for experiments on ImageNet and COCO.
Experimental results
Research questions
- RQ1Can a parallel MobileNet-Transformer design with a lightweight bidirectional bridge outperform conventional CNNs and ViTs at low FLOPs on ImageNet?
- RQ2Does a small-token Transformer suffice for modeling global interactions when fused with MobileNet through an efficient bridge?
- RQ3What is the impact of token count and token dimension on accuracy and efficiency in Mobile-Former?
- RQ4Can Mobile-Former serve as an efficient backbone for RetinaNet and end-to-end DETR-like detectors, with improvements in AP under reduced computational cost?
Key findings
- Mobile-Former achieves 77.9% top-1 accuracy on ImageNet at 294M FLOPs, outperforming MobileNetV3 while saving 17% of computations.
- In object detection, Mobile-Former backbones improve RetinaNet AP by 8.6 points over MobileNetV3 at similar cost.
- An end-to-end detector using Mobile-Former to replace backbone/encoder/decoder in DETR achieves 1.1 AP higher than DETR with 52% fewer FLOPs and 36% fewer parameters.
- Across FLOPs from 25M to 500M, Mobile-Former consistently outperforms both efficient CNNs and vision transformers at low FLOP budgets.
- Ablations show that even a single global token provides strong performance, with gains continuing up to 6 tokens (d=192) before saturation.
- Spatial-aware dynamic ReLU and adapting position embeddings contribute to notable gains in COCO detection (3-component ablation shows cumulative improvements).
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.