arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.09283cs.CV
收藏

RepViT:从ViT视角重新审视移动端CNN

RepViT: Revisiting Mobile CNN From ViT Perspective

Tsinghua University(清华大学);BNRist(北京信息科学与技术国家研究中心);The University of Sheffield(谢菲尔德大学)

Ao Wang, Hui Chen, Zijia Lin, Jungong Han, Guiguang Ding

AI总结:

从ViT视角重新设计轻量级CNN,提出RepViT系列,在ImageNet上以1.0ms延迟达到80%+准确率,且RepViT-SAM推理比MobileSAM快近10倍。

摘要:

近期,轻量级视觉Transformer(ViTs)在资源受限的移动设备上展现出优于轻量级卷积神经网络(CNNs)的性能和更低的延迟。研究人员已经发现了轻量级ViTs与轻量级CNNs之间的许多结构联系。然而,它们在块结构、宏观和微观设计上的显著架构差异尚未得到充分研究。在本研究中,我们从ViT视角重新审视轻量级CNN的高效设计,并强调其在移动设备上的广阔前景。具体而言,我们通过整合轻量级ViTs的高效架构设计,逐步增强标准轻量级CNN(即MobileNetV3)的移动友好性。这最终产生了一个新的纯轻量级CNN系列,即RepViT。大量实验表明,RepViT在各种视觉任务中优于现有最先进的轻量级ViTs,并展现出有利的延迟。值得注意的是,在ImageNet上,RepViT在iPhone 12上以1.0毫秒的延迟实现了超过80%的top-1准确率,据我们所知,这是轻量级模型首次达到这一成绩。此外,当RepViT与SAM结合时,我们的RepViT-SAM可以实现比先进的MobileSAM快近10倍的推理速度。代码和模型可在https://github.com/THU-MIG/RepViT获取。

英文摘要:

Recently, lightweight Vision Transformers (ViTs) demonstrate superior performance and lower latency, compared with lightweight Convolutional Neural Networks (CNNs), on resource-constrained mobile devices. Researchers have discovered many structural connections between lightweight ViTs and lightweight CNNs. However, the notable architectural disparities in the block structure, macro, and micro designs between them have not been adequately examined. In this study, we revisit the efficient design of lightweight CNNs from ViT perspective and emphasize their promising prospect for mobile devices. Specifically, we incrementally enhance the mobile-friendliness of a standard lightweight CNN, \ie, MobileNetV3, by integrating the efficient architectural designs of lightweight ViTs. This ends up with a new family of pure lightweight CNNs, namely RepViT. Extensive experiments show that RepViT outperforms existing state-of-the-art lightweight ViTs and exhibits favorable latency in various vision tasks. Notably, on ImageNet, RepViT achieves over 80\% top-1 accuracy with 1.0 ms latency on an iPhone 12, which is the first time for a lightweight model, to the best of our knowledge. Besides, when RepViT meets SAM, our RepViT-SAM can achieve nearly 10$\times$ faster inference than the advanced MobileSAM. Codes and models are available at \url{https://github.com/THU-MIG/RepViT}.

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

↑