mlsanityData to 14 Oct 2026

Contextual Transformer Networks for Visual Recognition

arXiv 2107.12292 ↗First posted 26 Jul 2021cs.CV cs.AI cs.LGcited by 90

Not on the map. Why?

Abstract (arXiv)

Transformer with self-attention has led to the revolutionizing of natural language processing field, and recently inspires the emergence of Transformer-style architecture design with competitive results in numerous computer vision tasks. Nevertheless, most of existing designs directly employ self-attention over a 2D feature map to obtain the attention matrix based on pairs of isolated queries and keys at each spatial location, but leave the rich contexts among neighbor keys under-exploited. In this work, we design a novel Transformer-style module, i.e., Contextual Transformer (CoT) block, for visual recognition. Such design fully capitalizes on the contextual information among input keys to guide the learning of dynamic attention matrix and thus strengthens the capacity of visual representation. Technically, CoT block first contextually encodes input keys via a 3×3 convolution, leading to a static contextual representation of inputs. We further concatenate the encoded keys with input queries to learn the dynamic multi-head attention matrix through two consecutive 1×1 convolutions. The learnt attention matrix is multiplied by input values to achieve the dynamic contextual representation of inputs. The fusion of the static and dynamic contextual representations are finally taken as outputs. Our CoT block is appealing in the view that it can readily replace each 3×3 convolution in ResNet architectures, yielding a Transformer-style backbone named as Contextual Transformer Networks (CoTNet). Through extensive experiments over a wide range of applications (e.g., image recognition, object detection and instance segmentation), we validate the superiority of CoTNet as a stronger backbone. Source code is available at urlhttps://github.com/JDAI-CV/CoTNet.

Key facts. Cited by 90 papers in the map (data through 14 Oct 2026). Builds on 55 of its 66 references that are in the map. First posted on arXiv 26 Jul 2021.

Builds on

55 of 66 references.

References · 55

  1. 2017Attention Is All You Needcited by 60,361
  2. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  3. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  4. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  5. 2014Microsoft COCO: Common Objects in Contextcited by 17,608
  6. 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,364
  7. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
  8. 2015Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networkscited by 9,639
  9. 2020End-to-End Object Detection with Transformerscited by 7,414
  10. 2017Mask R-CNNcited by 7,277
  11. 2016Densely Connected Convolutional Networkscited by 6,720
  12. 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,442
38 more
  1. 2017mixup: Beyond Empirical Risk Minimizationcited by 5,183
  2. 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 5,045
  3. 2016Feature Pyramid Networks for Object Detectioncited by 5,036
  4. 2017Squeeze-and-Excitation Networkscited by 4,789
  5. 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
  6. 2014Going Deeper with Convolutionscited by 4,241
  7. 2018Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentationcited by 3,223
  8. 2016Aggregated Residual Transformations for Deep Neural Networkscited by 2,546
  9. 2016Pyramid Scene Parsing Networkcited by 2,479
  10. 2016Xception: Deep Learning with Depthwise Separable Convolutionscited by 2,332
  11. 2017Non-local Neural Networkscited by 2,293
  12. 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,269
  13. 2017Deformable Convolutional Networkscited by 1,488
  14. 2015Spatial Transformer Networkscited by 1,429
  15. 2019Deep High-Resolution Representation Learning for Visual Recognitioncited by 1,420
  16. 2017Cascade R-CNN: Delving into High Quality Object Detectioncited by 1,276
  17. 2018Unified Perceptual Parsing for Scene Understandingcited by 1,271
  18. 2016Semantic Understanding of Scenes through the ADE20K Datasetcited by 1,069
  19. 2021Going deeper with Image Transformerscited by 764
  20. 2021Transformer in Transformercited by 633
  21. 2021Twins: Revisiting the Design of Spatial Attention in Vision Transformerscited by 565
  22. 2019Stand-Alone Self-Attention in Vision Modelscited by 542
  23. 2021ConViT: Improving Vision Transformers with Soft Convolutional Inductive Biasescited by 484
  24. 2019Res2Net: A New Multi-scale Backbone Architecturecited by 470
  25. 2020ResNeSt: Split-Attention Networkscited by 445
  26. 2018Bag of Tricks for Image Classification with Convolutional Neural Networkscited by 431
  27. 2019Selective Kernel Networkscited by 403
  28. 2021Bottleneck Transformers for Visual Recognitioncited by 364
  29. 2019Attention Augmented Convolutional Networkscited by 363
  30. 2021XCiT: Cross-Covariance Image Transformerscited by 338
  31. 2019GCNet: Non-local Networks Meet Squeeze-Excitation Networks and Beyondcited by 331
  32. 2020Exploring Self-attention for Image Recognitioncited by 313
  33. 2018Context Encoding for Semantic Segmentationcited by 290
  34. 2021Co-Scale Conv-Attentional Image Transformerscited by 224
  35. 2019Local Relation Networks for Image Recognitioncited by 210
  36. 2020X-Linear Attention Networks for Image Captioningcited by 198
  37. 2021Revisiting ResNets: Improved Training and Scaling Strategiescited by 158
  38. 2020Disentangled Non-Local Neural Networkscited by 132

50 most cited of 55 All 55 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2021: 7; 2022: 29; 2023: 25; 2024: 17; 2025: 10; 2026: 2.

90 papers.

Sort:

By area:

  1. 2022Wave-ViT: Unifying Wavelet and Transformers for Visual Representation Learningcited by 78
  2. 2023RMT: Retentive Networks Meet Vision Transformerscited by 68
  3. 2022CLIP-TSA: CLIP-Assisted Temporal Self-Attention for Weakly-Supervised Video Anomaly Detectioncited by 67
  4. 2022DearKD: Data-Efficient Early Knowledge Distillation for Vision Transformerscited by 65
  5. 2024VideoStudio: Generating Consistent-Content and Multi-Scene Videoscited by 64
  6. 2024SD-DiT: Unleashing the Power of Self-supervised Discrimination in Diffusion Transformercited by 49
  7. 2023SpectFormer: Frequency and Attention is what you need in a Vision Transformercited by 48
  8. 2022Exploring Structure-aware Transformer over Interaction Proposals for Human-Object Interaction Detectioncited by 47
  9. 2022Behind Every Domain There is a Shift: Adapting Distortion-aware Vision Transformers for Panoramic Semantic Segmentationcited by 46
  10. 2023Control3D: Towards Controllable Text-to-3D Generationcited by 46
  11. 2023ControlStyle: Text-Driven Stylized Image Generation Using Diffusion Priorscited by 40
  12. 2022Hierarchical Local-Global Transformer for Temporal Sentence Groundingcited by 38
38 more
  1. 2023DilateFormer: Multi-Scale Dilated Transformer for Visual Recognitioncited by 34
  2. 2023LipsFormer: Introducing Lipschitz Continuity to Vision Transformerscited by 34
  3. 2022Transforming medical imaging with Transformers? A comparative review of key properties, current progresses, and future perspectivescited by 33
  4. 2022Comprehending and Ordering Semantics for Image Captioningcited by 33
  5. 2021A Style and Semantic Memory Mechanism for Domain Generalizationcited by 32
  6. 2022Transformers in 3D Point Clouds: A Surveycited by 31
  7. 2024TRIP: Temporal Residual Learning with Image Noise Prior for Image-to-Video Diffusion Modelscited by 31
  8. 2024Breaking the Low-Rank Dilemma of Linear Attentioncited by 31
  9. 2021Perceiving and Modeling Density is All You Need for Image Dehazingcited by 30
  10. 2022Dual Vision Transformercited by 29
  11. 2023DiffCR: A Fast Conditional Diffusion Framework for Cloud Removal from Optical Satellite Imagescited by 27
  12. 2021Semi-Supervised Vision Transformerscited by 24
  13. 2024Parameter-Efficient Fine-Tuning for Pre-Trained Vision Models: A Survey and Benchmarkcited by 23
  14. 2022Jigsaw-ViT: Learning Jigsaw Puzzles in Vision Transformercited by 21
  15. 2022Stand-Alone Inter-Frame Attention in Video Modelscited by 19
  16. 2022Deep Convolutional Pooling Transformer for Deepfake Detectioncited by 19
  17. 2022TransKD: Transformer Knowledge Distillation for Efficient Semantic Segmentationcited by 17
  18. 2023Scattering Vision Transformer: Spectral Mixing Matterscited by 17
  19. 20233DStyle-Diffusion: Pursuing Fine-grained Text-driven 3D Stylization with 2D Diffusion Modelscited by 17
  20. 2023Improving Scene Text Image Super-resolution via Dual Prior Modulation Networkcited by 15
  21. 2025LSNet: See Large, Focus Smallcited by 15
  22. 2021Transferrable Contrastive Learning for Visual Domain Adaptationcited by 14
  23. 2021CTIN: Robust Contextual Transformer Network for Inertial Navigationcited by 12
  24. 2022EmbryosFormer: Deformable Transformer and Collaborative Encoding-Decoding for Embryos Stage Development Classificationcited by 12
  25. 2024SmartFRZ: An Efficient Training Framework using Attention-Based Layer Freezingcited by 12
  26. 2024HIRI-ViT: Scaling Vision Transformer with High Resolution Inputscited by 12
  27. 2024Improving Text-guided Object Inpainting with Semantic Pre-inpaintingcited by 12
  28. 2024A Review of Transformer-Based Models for Computer Vision Tasks: Capturing Global Context and Spatial Relationshipscited by 11
  29. 2021OH-Former: Omni-Relational High-Order Transformer for Person Re-Identificationcited by 10
  30. 2022Two-stage Contextual Transformer-based Convolutional Neural Network for Airway Extraction from CT Imagescited by 10
  31. 2022MLP-3D: A MLP-like 3D Architecture with Grouped Time Mixingcited by 9
  32. 2023Multi-site, Multi-domain Airway Tree Modeling (ATM'22): A Public Benchmark for Pulmonary Airway Segmentationcited by 9
  33. 2023The 2023 Video Similarity Dataset and Challengecited by 9
  34. 2022Vision Transformers in Medical Imaging: A Reviewcited by 8
  35. 2021A Low Rank Promoting Prior for Unsupervised Contrastive Learningcited by 7
  36. 20223D Cascade RCNN: High Quality Object Detection in Point Cloudscited by 7
  37. 2022Dynamic Temporal Filtering in Video Modelscited by 7
  38. 2023A Convolutional Vision Transformer for Semantic Segmentation of Side-Scan Sonar Datacited by 7

50 most cited of 90 All 90 (JSON)