ConTNet: Why not use convolution and transformer at the same time?

Haotian Yan, Zhe Li, Weijian Li, Changhu Wang, Ming Wu +1 more
4/27/2021
101 citations
cs.CV
transformer-attention

Official code: yan-hao-tian/ConTNet (98 stars, Python, last commit 2021-05-25).

Abstract

Although convolutional networks (ConvNets) have enjoyed great success in computer vision (CV), it suffers from capturing global information crucial to dense prediction tasks such as object detection and segmentation. In this work, we innovatively propose ConTNet (ConvolutionTransformer Network), combining transformer with ConvNet architectures to provide large receptive fields.

Show full abstract

Unlike the recently-proposed transformer-based models (e.g., ViT, DeiT) that are sensitive to hyper-parameters and extremely dependent on a pile of data augmentations when trained from scratch on a midsize dataset (e.g., ImageNet1k), ConTNet can be optimized like normal ConvNets (e.g., ResNet) and preserve an outstanding robustness. It is also worth pointing that, given identical strong data augmentations, the performance improvement of ConTNet is more remarkable than that of ResNet. We present its superiority and effectiveness on image classification and downstream tasks. For example, our ConTNet achieves 81.8% top-1 accuracy on ImageNet which is the same as DeiT-B with less than 40% computational complexity. ConTNet-M also outperforms ResNet50 as the backbone of both Faster-RCNN (by 2.6%) and Mask-RCNN (by 3.2%) on COCO2017 dataset. We hope that ConTNet could serve as a useful backbone for CV tasks and bring new ideas for model design

View on arXivView PDF

Code Implementations(1)

This repo contains the code of "ConTNet: Why not use convolution and transformer at the same time?"

9814PythonApr 4, 20215 years ago
convolutiondownstream-tasksimagenettransformer

Similar Papers

Cite this paper

@article{yan2021contnet,
  title  = {ConTNet: Why not use convolution and transformer at the same time?},
  author = {Haotian Yan and Zhe Li and Weijian Li and Changhu Wang and Ming Wu and Chuang Zhang},
  year   = {2021},
  eprint = {2104.13497},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.13497}
}

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/2104.13497.svg)](https://codeofpaper.com/paper/2104.13497)

Discussion