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}.
Improving Vision Transformers by Revisiting High-frequency Components
Peng Cheng Laboratory(鹏城实验室);Tsinghua Shenzhen International Graduate School, Tsinghua University(清华大学深圳国际研究生院);School of ECE at Peking University(北京大学电子工程与计算机科学学院);Tencent(腾讯);Sea AI Lab(Sea人工智能实验室)
Transformer模型在处理各种视觉任务中表现出了很好的效果。然而,与训练卷积神经网络(CNN)模型相比,训练视觉Transformer(ViT)模型更加困难,并且依赖于大规模的训练集。为了解释这一现象,我们提出了一个假设,即\textit{ViT models are less effective in capturing the high-frequency components of images than CNN models},并验证了它的频率分析。受这一发现的启发,我们首先从新的频率角度研究了现有技术对改善ViT模型的影响,并发现一些技术(例如,RandAugment)可以归因于更好地使用高频分量。然后,为了弥补ViT模型能力的不足,我们提出了HAT,它通过对抗训练直接增强图像的高频分量。我们表明,HAT可以始终如一地提高各种ViT模型的性能(例如,ViT-B +1.2%,Swin-B +0.5%),特别是将仅使用ImageNet-1 K数据的高级模型VOLO-D5提升至87.3%,并且在分发外数据上也可以保持优势,并转移到下游任务。该代码可从以下网址获取:https://github.com/jiawangbai/HAT。
Revisiting Token Compression for Accelerating ViT-based Sparse Multi-View 3D Object Detectors
PCA Lab, School of Computer Science and Engineering, Nanjing University of Science and Technology(计算机科学与工程学院,南京理工大学PCA实验室);PCA Lab, School of Intelligence Science and Technology, Nanjing University(智能科学与技术学院,南京大学PCA实验室)
Mobile U-ViT: Revisiting large kernel and U-shaped ViT for efficient medical image segmentation
University of Science and Technology of China(中国科学技术大学);Suzhou Institute for Advanced Research, USTC(苏州先进研究院);Shanghai Jiao Tong University(上海交通大学);Harbin Institute of Technology(哈尔滨工业大学);State Grid Hunan ElectricPower Corporation Limited Research Institute(国网湖南电力有限公司研究院)
Scaling Up Your Kernels to 31x31: Revisiting Large Kernel Design in CNNs
Beijing National Research Center for Information Science and Technology (BNRist)(北京信息科学与技术国家研究中心);Tsinghua University(清华大学);MEGVII Technology(旷视科技);Aberystwyth University(阿伯里斯特威斯大学)