Skip to main content
QUICK REVIEW

[Paper Review] Conv2Former: A Simple Transformer-Style ConvNet for Visual Recognition

Qibin Hou, Cheng-Ze Lu|arXiv (Cornell University)|Nov 22, 2022
Advanced Neural Network ApplicationsComputer Science72 citations
TL;DR

Conv2Former replaces self-attention with a convolutional modulation operation to build a Transformer-style ConvNet. It leverages large kernels and achieves strong results on ImageNet, COCO, and ADE20k compared to popular ConvNets and ViTs.

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. 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.

Motivation & Objective

  • Investigate efficient ways to encode spatial information in ConvNets by contrasting ConvNets and Vision Transformers.
  • Propose a simple convolutional modulation operation as a replacement for self-attention.
  • Build a hierarchical ConvNet family (Conv2Former) that leverages large-kernel convolutions for improved performance.
  • Evaluate Conv2Former on ImageNet classification, COCO object detection/segmentation, and ADE20k semantic segmentation.
  • Explore design choices and isotropic (ViT-style) variants to assess flexibility and scalability.

Proposed method

  • Introduce a pyramid-structured Conv2Former with four stages and patch embedding between stages.
  • Replace self-attention with a convolutional modulation block that computes A = DConv_{k×k}(W1 X) and Z = A ⊙ (W2 X).
  • Use large kernel sizes (up to 11×11 or larger) to enable long-range spatial interactions via convolutional modulation.
  • Use depthwise convolutions to generate weighting maps and Hadamard product to modulate value representations, without activations or normalizations before modulation.
  • Dimensionality and depth configurations tuned per model variant (N, T, S, B, L) with 15M–199M parameters; normalization with LayerNorm and GELU activations.
  • Isotropic/ViT-style variants (Conv2Former-IS/IB) to compare with ViT-like architectures.

Experimental results

Research questions

  • RQ1Can convolutional modulation replace self-attention to create a Transformer-style ConvNet that efficiently encodes spatial information?
  • RQ2Do large-kernel convolutions provide consistent performance gains when used as weights in convolutional modulation?
  • RQ3How does Conv2Former compare to state-of-the-art ConvNets and ViTs on ImageNet-1k/22k, as well as downstream tasks like COCO and ADE20k?
  • RQ4What are the effects of kernel size, weighting strategy, and model isotropy on performance?

Key findings

  • Conv2Former achieves competitive to superior ImageNet-1k accuracy across sizes, e.g., Conv2Former-T 83.2% and Conv2Former-S 84.1% (Table 3).
  • With ImageNet-22k pretraining, Conv2Former-S reaches 84.9% and Conv2Former-B reaches 86.2% top-1 accuracy on ImageNet-1k finetuning; Conv2Former-L attains 87.7%.
  • On COCO object detection/instance segmentation (Mask R-CNN/Cascade Mask R-CNN), Conv2Former-T/S/B show consistent AP gains over SwinT and ConvNeXt, e.g., Conv2Former-T improves Mask R-CNN AP_bb to 48.0 and 51.4 with Cascade Mask R-CNN in the reported setups.
  • On ADE20k semantic segmentation with UperNet, Conv2Former variants outperform Swin Transformer and ConvNeXt, e.g., Conv2Former-L reaches 54.3% mIoU (ImageNet-22k pretrain).
  • Ablation shows larger kernels (up to 21×21) yield consistent gains, and Hadamard-product-based fusion outperforms summation or normalization-based fusions.
  • Isotropic Conv2Former variants (Conv2Former-IS/IB) outperform DeiT and ConvNeXt baselines at similar parameter counts, confirming strong ViT-style performance in isotropic settings.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.