Transformed CNNs: recasting pre-trained convolutional layers with self-attention
Not on the map. Why?
Abstract (arXiv)
Vision Transformers (ViT) have recently emerged as a powerful alternative to convolutional networks (CNNs). Although hybrid models attempt to bridge the gap between these two architectures, the self-attention layers they rely on induce a strong computational bottleneck, especially at large spatial resolutions. In this work, we explore the idea of reducing the time spent training these layers by initializing them as convolutional layers. This enables us to transition smoothly from any pre-trained CNN to its functionally identical hybrid model, called Transformed CNN (T-CNN). With only 50 epochs of fine-tuning, the resulting T-CNNs demonstrate significant performance gains over the CNN (+2.2% top-1 on ImageNet-1k for a ResNet50-RS) as well as substantially improved robustness (+11% top-1 on ImageNet-C). We analyze the representations learnt by the T-CNN, providing deeper insights into the fruitful interplay between convolutions and self-attention. Finally, we experiment initializing the T-CNN from a partially trained CNN, and find that it reaches better performance than the corresponding hybrid model trained from scratch, while reducing training time.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 40 of its 55 references that are in the map. First posted on arXiv 10 Jun 2021.
Builds on
40 of 55 references.
References · 40
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,857
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,842
- 2020Rethinking Attention with Performerscited by 1,584
28 more
- 2019Natural Adversarial Examplescited by 1,401
- 2018Self-Attention with Relative Position Representationscited by 1,112
- 2021CvT: Introducing Convolutions to Vision Transformerscited by 946
- 2020Object-Centric Learning with Slot Attentioncited by 865
- 2014Deep Learning in Neural Networks: An Overviewcited by 765
- 2021Going deeper with Image Transformerscited by 759
- 2019VideoBERT: A Joint Model for Video and Language Representation Learningcited by 702
- 2019Stand-Alone Self-Attention in Vision Modelscited by 542
- 2021ConViT: Improving Vision Transformers with Soft Convolutional Inductive Biasescited by 484
- 2021LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inferencecited by 475
- 2018Bag of Tricks for Image Classification with Convolutional Neural Networkscited by 430
- 2021Bottleneck Transformers for Visual Recognitioncited by 364
- 2019Attention Augmented Convolutional Networkscited by 363
- 2021Rethinking Spatial Dimensions of Vision Transformerscited by 361
- 2020Visual Transformers: Token-based Image Representation and Processing for Computer Visioncited by 333
- 2020Exploring Self-attention for Image Recognitioncited by 313
- 2017Relation Networks for Object Detectioncited by 305
- 2019On the Relationship between Self-Attention and Convolutional Layerscited by 299
- 2021Understanding Robustness of Transformers for Image Classificationcited by 250
- 2021Incorporating Convolution Designs into Visual Transformerscited by 248
- 2020Understanding the Difficulty of Training Transformerscited by 210
- 2019Fixing the train-test resolution discrepancycited by 209
- 2020The large learning rate phase of deep learning: the catapult mechanismcited by 206
- 2021Revisiting ResNets: Improved Training and Scaling Strategiescited by 158
- 2018A2-Nets: Double Attention Networkscited by 136
- 2021LambdaNetworks: Modeling Long-Range Interactions Without Attentioncited by 107
- 2019AutoGrow: Automatic Layer Growing in Deep Convolutional Networkscited by 26
- 2019Finding the Needle in the Haystack with Convolutions: on the benefits of architectural biascited by 19
Built on by
Citing papers per year: 2021: 1; 2022: 2; 2023: 0; 2024: 0; 2025: 1.
4 papers.
- 2021Pruning Self-attentions into Convolutional Layers in Single Pathcited by 24
- 2022Towards Flexible Inductive Bias via Progressive Reparameterization Schedulingcited by 4
- 2025Hierarchical Attention for Sparse Volumetric Anomaly Detection in Subclinical Keratoconuscited by 1
- 2022Adaptive Attention Link-based Regularization for Vision Transformerscited by 0
- 2025Hierarchical Attention for Sparse Volumetric Anomaly Detection in Subclinical Keratoconus3 Dec 2025
- 2022Adaptive Attention Link-based Regularization for Vision Transformers25 Nov 2022
- 2022Towards Flexible Inductive Bias via Progressive Reparameterization Scheduling4 Oct 2022
- 2021Pruning Self-attentions into Convolutional Layers in Single Path23 Nov 2021