CoAtNet: Marrying Convolution and Attention for All Data Sizes
arXiv:2106.04803
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 extra data, CoAtNet achieves 86.0% ImageNet top-1 accuracy; When pre-trained with 13M images from ImageNet-21K, our CoAtNet achieves 88.56% top-1 accuracy, matching ViT-huge pre-trained with 300M images from JFT-300M while using 23x less data; Notably, when we further scale up CoAtNet with JFT-3B, it achieves 90.88% top-1 accuracy on ImageNet, establishing a new state-of-the-art result.
References in corpus (15)
- An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- mixup: Beyond Empirical Risk Minimization
- Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer
- Transformers in Vision: A Survey
- Gaussian Error Linear Units (GELUs)
- Language Models are Few-Shot Learners
- EfficientNetV2: Smaller Models and Faster Training
- DeepViT: Towards Deeper Vision Transformer
- Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
- High-Performance Large-Scale Image Recognition Without Normalization
- Stand-Alone Self-Attention in Vision Models
- CvT: Introducing Convolutions to Vision Transformers
- Rethinking Attention with Performers
- LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inference
- A Data and Compute Efficient Design for Limited-Resources Deep Learning
Cited by in corpus (52)
- Transformers in Vision: A Survey
- Attention Mechanisms in Computer Vision: A Survey
- A survey of the Vision Transformers and their CNN-Transformer based Variants
- SimVLM: Simple Visual Language Model Pretraining with Weak Supervision
- Florence: A New Foundation Model for Computer Vision
- Large AI Models in Health Informatics: Applications, Challenges, and the Future
- DepthFormer: Exploiting Long-Range Correlation and Local Information for Accurate Monocular Depth Estimation
- Video Transformers: A Survey
- MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformer
- Swin Transformer V2: Scaling Up Capacity and Resolution
- HRFormer: High-Resolution Transformer for Dense Prediction
- TransCAM: Transformer Attention-based CAM Refinement for Weakly Supervised Semantic Segmentation
- A newcomer's guide to deep learning for inverse design in nano-photonics
- Exploring the Synergies of Hybrid CNNs and ViTs Architectures for Computer Vision: A survey
- How to train your ViT? Data, Augmentation, and Regularization in Vision Transformers
- On the Role of ViT and CNN in Semantic Communications: Analysis and Prototype Validation
- SwinTrack: A Simple and Strong Baseline for Transformer Tracking
- A Survey of Visual Transformers
- Grafting Transformer on Automatically Designed Convolutional Neural Network for Hyperspectral Image Classification
- A Practical Deep Learning-Based Acoustic Side Channel Attack on Keyboards
- PSLT: A Light-weight Vision Transformer with Ladder Self-Attention and Progressive Shift
- Efficient Adaptive Ensembling for Image Classification
- Synthetic Data Supervised Salient Object Detection
- Socially Enhanced Situation Awareness from Microblogs using Artificial Intelligence: A Survey
- SynthEnsemble: A Fusion of CNN, Vision Transformer, and Hybrid Models for Multi-Label Chest X-Ray Classification
- OH-Former: Omni-Relational High-Order Transformer for Person Re-Identification
- PVG: Progressive Vision Graph for Vision Recognition
- Spatial Gated Multi-Layer Perceptron for Land Use and Land Cover Mapping
- SimMIM: A Simple Framework for Masked Image Modeling
- Anatomically aware dual-hop learning for pulmonary embolism detection in CT pulmonary angiograms
- Plasma Image Classification Using Cosine Similarity Constrained CNN
- Fearless Luminance Adaptation: A Macro-Micro-Hierarchical Transformer for Exposure Correction
- Analogous to Evolutionary Algorithm: Designing a Unified Sequence Model
- SparX: A Sparse Cross-Layer Connection Mechanism for Hierarchical Vision Mamba and Transformer Networks
- Softmax-free Linear Transformers
- Frequency Disentangled Features in Neural Image Compression
- SmartMem: Layout Transformation Elimination and Adaptation for Efficient DNN Execution on Mobile
- INTERN: A New Learning Paradigm Towards General Vision
- A Cost-Efficient FPGA Implementation of Tiny Transformer Model using Neural ODE
- SIRe-Networks: Convolutional Neural Networks Architectural Extension for Information Preservation via Skip/Residual Connections and Interlaced Auto-Encoders
- Are queries and keys always relevant? A case study on Transformer wave functions
- Adversarial Token Attacks on Vision Transformers
- Parameterization of Cross-Token Relations with Relative Positional Encoding for Vision MLP
- DeltaNN: Assessing the Impact of Computational Environment Parameters on the Performance of Image Recognition Models
- Beijing ZKJ-NPU Speaker Verification System for VoxCeleb Speaker Recognition Challenge 2021
- ADF & TransApp: A Transformer-Based Framework for Appliance Detection Using Smart Meter Consumption Series
- Detecting Unknown DGAs without Context Information
- Activating Frequency and ViT for 3D Point Cloud Quality Assessment without Reference
- COVID-19 Pneumonia Severity Prediction using Hybrid Convolution-Attention Neural Architectures
- Tab-Attention: Self-Attention-based Stacked Generalization for Imbalanced Credit Default Prediction
- SFB-net for cardiac segmentation: Bridging the semantic gap with attention
- Attention is All They Need: Exploring the Media Archaeology of the Computer Vision Research Paper