CoAtNet: Marrying Convolution and Attention for All Data Sizes
Zihang Dai, Hanxiao Liu, Quoc V. Le, Mingxing Tan

TL;DR
CoAtNet introduces a hybrid model combining convolution and attention mechanisms, achieving state-of-the-art image classification accuracy across various data scales by effectively unifying the strengths of both architectures.
Contribution
This work presents a novel hybrid architecture, CoAtNet, that unifies depthwise convolution and self-attention, improving generalization, capacity, and efficiency in vision models.
Findings
Achieves 86.0% ImageNet top-1 accuracy without extra data.
Matches ViT-huge performance with significantly less pre-training data.
Sets new state-of-the-art with 90.88% accuracy on ImageNet using JFT-3B.
Abstract
Transformers have attracted increasing interests in computer vision, but they still fall behind state-of-the-art convolutional networks. In this work, we show that while Transformers tend to have larger model capacity, their generalization can be worse than convolutional networks due to the lack of the right inductive bias. To effectively combine the strengths from both architectures, we present CoAtNets(pronounced "coat" nets), a family of hybrid models built from two key insights: (1) depthwise Convolution and self-Attention can be naturally unified via simple relative attention; (2) vertically stacking convolution layers and attention layers in a principled way is surprisingly effective in improving generalization, capacity and efficiency. Experiments show that our CoAtNets achieve state-of-the-art performance under different resource constraints across various datasets: Without…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
- 🤗timm/maxvit_base_tf_224.in1kmodel· 2.1k dl· ♡ 12.1k dl♡ 1
- 🤗timm/maxvit_base_tf_384.in1kmodel· 831 dl· ♡ 1831 dl♡ 1
- 🤗timm/maxvit_base_tf_384.in21k_ft_in1kmodel· 521 dl521 dl
- 🤗timm/maxvit_base_tf_512.in1kmodel· 2.8k dl2.8k dl
- 🤗timm/maxvit_base_tf_512.in21k_ft_in1kmodel· 757 dl· ♡ 1757 dl♡ 1
- 🤗timm/maxvit_large_tf_224.in1kmodel· 289 dl· ♡ 1289 dl♡ 1
- 🤗timm/maxvit_large_tf_384.in1kmodel· 376 dl376 dl
- 🤗timm/maxvit_large_tf_384.in21k_ft_in1kmodel· 286 dl286 dl
- 🤗timm/maxvit_large_tf_512.in1kmodel· 955 dl· ♡ 1955 dl♡ 1
- 🤗timm/maxvit_large_tf_512.in21k_ft_in1kmodel· 312 dl312 dl
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Neural Network Applications · Domain Adaptation and Few-Shot Learning · Generative Adversarial Networks and Image Synthesis
MethodsConvolution · Depthwise Convolution
