CMT: Convolutional Neural Networks Meet Vision Transformers

Jianyuan Guo, Kai Han, Han Wu, Yehui Tang, Xinghao Chen +2 more
7/13/2021
cs.CV

Official code: ggjy/CMT.pytorch (101 stars, last commit 2022-07-01).

Abstract

Vision transformers have been successfully applied to image recognition tasks due to their ability to capture long-range dependencies within an image. However, there are still gaps in both performance and computational cost between transformers and existing convolutional neural networks (CNNs). In this paper, we aim to address this issue and develop a network that can outperform not only the canonical transformers, but also the high-performance convolutional models. We propose a new transformer based hybrid network by taking advantage of transformers to capture long-range dependencies, and of CNNs to model local features. Furthermore, we scale it to obtain a family of models, called CMTs, obtaining much better accuracy and efficiency than previous convolution and transformer based models. In particular, our CMT-S achieves 83.5% top-1 accuracy on ImageNet, while being 14x and 2x smaller on FLOPs than the existing DeiT and EfficientNet, respectively. The proposed CMT-S also generalizes well on CIFAR10 (99.2%), CIFAR100 (91.7%), Flowers (98.7%), and other challenging vision datasets such as COCO (44.3% mAP), with considerably less computational cost.

View on arXivView PDF

Code Implementations(1)

ggjy/CMT.pytorchOfficial100%

CMT Pytorch implementation of our CVPR 2022 paper CMT: Convolutional Neural Networks Meet Vision Transformers (https://arxiv.org/pdf/2107.06263.pdf).

10115PythonMar 4, 20224 years ago

Similar Papers

Cite this paper

@article{guo2021cmt,
  title  = {CMT: Convolutional Neural Networks Meet Vision Transformers},
  author = {Jianyuan Guo and Kai Han and Han Wu and Yehui Tang and Xinghao Chen and Yunhe Wang and Chang Xu},
  year   = {2021},
  eprint = {2107.06263},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2107.06263}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2107.06263.svg)](https://codeofpaper.com/paper/2107.06263)

Discussion