arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2108.05895cs.CVcs.LG
收藏

Mobile-Former:桥接MobileNet和Transformer

Mobile-Former: Bridging MobileNet and Transformer

Microsoft(微软);University of Science and Technology of China(中国科学技术大学)

Yinpeng Chen, Xiyang Dai, Dongdong Chen, Mengchen Liu, Xiaoyi Dong, Lu Yuan, Zicheng Liu

摘要:

我们提出了Mobile-Former,它是MobileNet和Transformer的并行设计,两者之间有一个双向桥。这种结构利用了MobileNet在本地处理方面的优势和Transformer在全局交互方面的优势。该桥梁实现了局部和全局特征的双向融合。与最近关于视觉Transformer的工作不同,Mobile-Former中的Transformer包含非常少的令牌(例如6个或更少的令牌),这些令牌被随机初始化以学习全局先验,从而导致低计算成本。结合所提出的轻量级交叉注意力来建模桥梁,Mobile-Former不仅计算效率高,而且具有更高的表示能力。它在ImageNet分类上的低FLOP范围(从25 M到500 M FLOP)优于MobileNetV 3。例如,Mobile-Former在2.94亿FLOPs时达到了77.9%的top-1精度,比MobileNetV 3提高了1.3%,但节省了17%的计算量。当转移到目标检测时,Mobile-Former在RetinaNet框架中的性能优于MobileNetV 3 8.6 AP。在此基础上,用Mobile-Former代替DETR中的骨干网、编码器和解码器,构建了一个高效的端到端检测器,其性能比DETR提高了1.1AP,但计算量和参数节省了52%和36%.

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑