Due to the complex attention mechanisms and model design, most existing vision Transformers (ViTs) can not perform as efficiently as convolutional neural networks (CNNs) in realistic industrial deployment scenarios, e.g. TensorRT and CoreML. This poses a distinct challenge: Can a visual neural network be designed to infer as fast as CNNs and perform as powerful as ViTs? Recent works have tried to design CNN-Transformer hybrid architectures to address this issue, yet the overall performance of these works is far away from satisfactory. To end these, we propose a next generation vision Transformer for efficient deployment in realistic industrial scenarios, namely Next-ViT, which dominates both CNNs and ViTs from the perspective of latency/accuracy trade-off. In this work, the Next Convolution Block (NCB) and Next Transformer Block (NTB) are respectively developed to capture local and global information with deployment-friendly mechanisms. Then, Next Hybrid Strategy (NHS) is designed to stack NCB and NTB in an efficient hybrid paradigm, which boosts performance in various downstream tasks. Extensive experiments show that Next-ViT significantly outperforms existing CNNs, ViTs and CNN-Transformer hybrid architectures with respect to the latency/accuracy trade-off across various vision tasks. On TensorRT, Next-ViT surpasses ResNet by 5.4 mAP (from 40.4 to 45.8) on COCO detection and 8.2% mIoU (from 38.8% to 47.0%) on ADE20K segmentation under similar latency. Meanwhile, it achieves comparable performance with CSWin, while the inference speed is accelerated by 3.6x. On CoreML, Next-ViT surpasses EfficientFormer by 4.6 mAP (from 42.6 to 47.2) on COCO detection and 3.5% mIoU (from 45.2% to 48.7%) on ADE20K segmentation under similar latency. Code will be released recently.
翻译:47. 由于关注机制和模型设计的复杂性,大多数现有视觉变异器(ViTs)无法在现实的工业部署情景(如TensorRT和CoreML)中像革命性神经网络(CNNNNNNNNNNNN)那样高效地运行。这提出了截然不同的挑战:视觉神经网络能否像CNNNNNNNNNNB(NCB)和ViTS的功能一样快速运行?最近的一些工程试图设计CNN-Transent混合结构来解决这一问题,然而这些工程的总体绩效远远远不能令人满意。为了结束这些工程,我们提议下一代的视觉变异器变异器(NCNNNNNNNNNNNN) 以现实性工业情景(即NFT) 高效的配置方式部署有效,即NFNFT(NVOO) 和NVADO(NVADRML) 的变异性功能将显著地显示NVADRADRM(NVADR) 和(NVOILADRIL) IMDADADRDRDRDRD(NVI) IMDRD)