mlsanityData to 7 Oct 2026

Transformed CNNs: recasting pre-trained convolutional layers with self-attention

arXiv 2106.05795 ↗First posted 10 Jun 2021cs.LGcited by 4

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  4. 2015Distilling the Knowledge in a Neural Networkcited by 10,076
  5. 2020End-to-End Object Detection with Transformerscited by 7,384
  6. 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
  7. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  8. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
  9. 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,857
  10. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  11. 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,842
  12. 2020Rethinking Attention with Performerscited by 1,584
28 more
  1. 2019Natural Adversarial Examplescited by 1,401
  2. 2018Self-Attention with Relative Position Representationscited by 1,112
  3. 2021CvT: Introducing Convolutions to Vision Transformerscited by 946
  4. 2020Object-Centric Learning with Slot Attentioncited by 865
  5. 2014Deep Learning in Neural Networks: An Overviewcited by 765
  6. 2021Going deeper with Image Transformerscited by 759
  7. 2019VideoBERT: A Joint Model for Video and Language Representation Learningcited by 702
  8. 2019Stand-Alone Self-Attention in Vision Modelscited by 542
  9. 2021ConViT: Improving Vision Transformers with Soft Convolutional Inductive Biasescited by 484
  10. 2021LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inferencecited by 475
  11. 2018Bag of Tricks for Image Classification with Convolutional Neural Networkscited by 430
  12. 2021Bottleneck Transformers for Visual Recognitioncited by 364
  13. 2019Attention Augmented Convolutional Networkscited by 363
  14. 2021Rethinking Spatial Dimensions of Vision Transformerscited by 361
  15. 2020Visual Transformers: Token-based Image Representation and Processing for Computer Visioncited by 333
  16. 2020Exploring Self-attention for Image Recognitioncited by 313
  17. 2017Relation Networks for Object Detectioncited by 305
  18. 2019On the Relationship between Self-Attention and Convolutional Layerscited by 299
  19. 2021Understanding Robustness of Transformers for Image Classificationcited by 250
  20. 2021Incorporating Convolution Designs into Visual Transformerscited by 248
  21. 2020Understanding the Difficulty of Training Transformerscited by 210
  22. 2019Fixing the train-test resolution discrepancycited by 209
  23. 2020The large learning rate phase of deep learning: the catapult mechanismcited by 206
  24. 2021Revisiting ResNets: Improved Training and Scaling Strategiescited by 158
  25. 2018A2-Nets: Double Attention Networkscited by 136
  26. 2021LambdaNetworks: Modeling Long-Range Interactions Without Attentioncited by 107
  27. 2019AutoGrow: Automatic Layer Growing in Deep Convolutional Networkscited by 26
  28. 2019Finding the Needle in the Haystack with Convolutions: on the benefits of architectural biascited by 19

Built on by

Cited by year

Citing papers per year: 2021: 1; 2022: 2; 2023: 0; 2024: 0; 2025: 1.

4 papers.