Conv2Former: A Simple Transformer-Style ConvNet for Visual Recognition

Qibin Hou, Cheng-Ze Lu, Ming-Ming Cheng, Jiashi Feng
11/22/2022
301 citations
cs.CV
transformer-attention

Official code: HVision-NKU/Conv2Former (189 stars, Python, Apache-2.0, last commit 2025-01-02).

Abstract

This paper does not attempt to design a state-of-the-art method for visual recognition but investigates a more efficient way to make use of convolutions to encode spatial features. By comparing the design principles of the recent convolutional neural networks ConvNets) and Vision Transformers, we propose to simplify the self-attention by leveraging a convolutional modulation operation.

Show full abstract

We show that such a simple approach can better take advantage of the large kernels (>=7x7) nested in convolutional layers. We build a family of hierarchical ConvNets using the proposed convolutional modulation, termed Conv2Former. Our network is simple and easy to follow. Experiments show that our Conv2Former outperforms existent popular ConvNets and vision Transformers, like Swin Transformer and ConvNeXt in all ImageNet classification, COCO object detection and ADE20k semantic segmentation.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
18918Python, ShellNov 21, 20221 years agoApache-2.0

Similar Papers

Cite this paper

@article{hou2022convformer,
  title  = {Conv2Former: A Simple Transformer-Style ConvNet for Visual Recognition},
  author = {Qibin Hou and Cheng-Ze Lu and Ming-Ming Cheng and Jiashi Feng},
  year   = {2022},
  eprint = {2211.11943},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.11943}
}

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

Discussion