arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2110.02178cs.CVcs.AIcs.LG
收藏

MobileViT:轻便、通用、移动友好型视觉Transformer

MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformer

Apple(苹果公司)

Sachin Mehta, Mohammad Rastegari

摘要:

轻量级卷积神经网络(CNN)是移动视觉任务的事实。他们的空间归纳偏差使他们能够在不同的视觉任务中用更少的参数学习表征。然而,这些网络在空间上是局部的。为了学习全局表示,已经采用了基于自我注意力的视觉变换器(ViTs)。与CNN不同,ViT是重量级的。在本文中,我们提出了以下问题:是否有可能结合CNN和ViT的优势,为移动视觉任务构建一个轻量级和低延迟的网络?为此,我们推出MobileViT,一种用于移动设备的轻型通用视觉Transformer。MobileViT提供了一个不同的视角,用于使用Transformers进行全球信息处理,即,Transformers作为convolutions。我们的研究结果表明,MobileViT在不同的任务和数据集上显著优于CNN和基于ViT的网络。在ImageNet-1 k数据集上,MobileViT在大约600万个参数的情况下达到了78.4%的top-1准确率,比MobileNetv 3(基于CNN)和DeIT(基于ViT)在类似数量的参数下分别高出3.2%和6.2%。在MS-COCO目标检测任务中,MobileViT比MobileNetv 3在相同数量的参数下精确5.7%。我们的源代码是开源的,可在https://github.com/apple/ml-cvnets上获得

英文摘要:

Light-weight convolutional neural networks (CNNs) are the de-facto for mobile vision tasks. Their spatial inductive biases allow them to learn representations with fewer parameters across different vision tasks. However, these networks are spatially local. To learn global representations, self-attention-based vision trans-formers (ViTs) have been adopted. Unlike CNNs, ViTs are heavy-weight. In this paper, we ask the following question: is it possible to combine the strengths of CNNs and ViTs to build a light-weight and low latency network for mobile vision tasks? Towards this end, we introduce MobileViT, a light-weight and general-purpose vision transformer for mobile devices. MobileViT presents a different perspective for the global processing of information with transformers, i.e., transformers as convolutions. Our results show that MobileViT significantly outperforms CNN- and ViT-based networks across different tasks and datasets. On the ImageNet-1k dataset, MobileViT achieves top-1 accuracy of 78.4% with about 6 million parameters, which is 3.2% and 6.2% more accurate than MobileNetv3 (CNN-based) and DeIT (ViT-based) for a similar number of parameters. On the MS-COCO object detection task, MobileViT is 5.7% more accurate than MobileNetv3 for a similar number of parameters. Our source code is open-source and available at: https://github.com/apple/ml-cvnets

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

↑