Mobile-Former: Bridging MobileNet and Transformer
Yinpeng Chen, Xiyang Dai, Dongdong Chen, Mengchen Liu, Xiaoyi Dong, Lu Yuan, Zicheng Liu
TL;DR
Mobile-Former introduces a parallel MobileNet–Transformer architecture with a lightweight two-way bridge that enables bidirectional fusion of local and global features using very few global tokens. This design achieves superior accuracy under low FLOP budgets on ImageNet and delivers strong object-detection performance, including a faster, end-to-end detector that outperforms DETR with substantially fewer FLOPs and parameters. Across a range of FLOPs (26M–508M), Mobile-Former consistently surpasses efficient CNNs and ViT variants in the low-cost regime. The work demonstrates how a compact transformer and efficient cross-attention bridge can complement MobileNet’s local processing, offering a new design paradigm for efficient vision models and detectors.
Abstract
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.
