CrossFormer: A Versatile Vision Transformer Hinging on Cross-scale Attention
Not on the map. Why?
Abstract (arXiv)
Transformers have made great progress in dealing with computer vision tasks. However, existing vision transformers do not yet possess the ability of building the interactions among features of different scales, which is perceptually important to visual inputs. The reasons are two-fold: (1) Input embeddings of each layer are equal-scale, so no cross-scale feature can be extracted; (2) to lower the computational cost, some vision transformers merge adjacent embeddings inside the self-attention module, thus sacrificing small-scale (fine-grained) features of the embeddings and also disabling the cross-scale interactions. To this end, we propose Cross-scale Embedding Layer (CEL) and Long Short Distance Attention (LSDA). On the one hand, CEL blends each embedding with multiple patches of different scales, providing the self-attention module itself with cross-scale features. On the other hand, LSDA splits the self-attention module into a short-distance one and a long-distance counterpart, which not only reduces the computational burden but also keeps both small-scale and large-scale features in the embeddings. Through the above two designs, we achieve cross-scale attention. Besides, we put forward a dynamic position bias for vision transformers to make the popular relative position bias apply to variable-sized images. Hinging on the cross-scale attention module, we construct a versatile vision architecture, dubbed CrossFormer, which accommodates variable-sized inputs. Extensive experiments show that CrossFormer outperforms the other vision transformers on image classification, object detection, instance segmentation, and semantic segmentation tasks. The code has been released: https://github.com/cheerss/CrossFormer.
Key facts. Cited by 139 papers in the map (data through 7 Oct 2026). Builds on 42 of its 50 references that are in the map. First posted on arXiv 31 Jul 2021.
Builds on
42 of 50 references.
References · 42
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2014Microsoft COCO: Common Objects in Contextcited by 17,498
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2017Mask R-CNNcited by 7,259
- 2016Layer Normalizationcited by 5,579
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
30 more
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2014Going Deeper with Convolutionscited by 4,231
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,875
- 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,261
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2019MMDetection: Open MMLab Detection Toolbox and Benchmarkcited by 1,379
- 2018Unified Perceptual Parsing for Scene Understandingcited by 1,265
- 2017Random Erasing Data Augmentationcited by 1,235
- 2017ShuffleNet: An Extremely Efficient Convolutional Neural Network for Mobile Devicescited by 1,194
- 2018Self-Attention with Relative Position Representationscited by 1,112
- 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
- 2016Deep Networks with Stochastic Depthcited by 973
- 2021CvT: Introducing Convolutions to Vision Transformerscited by 946
- 2021CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image Classificationcited by 806
- 2019Panoptic Feature Pyramid Networkscited by 644
- 2021Transformer in Transformercited by 632
- 2020Sparse R-CNN: End-to-End Object Detection with Learnable Proposalscited by 494
- 2021Bottleneck Transformers for Visual Recognitioncited by 364
- 2021Co-Scale Conv-Attentional Image Transformerscited by 224
- 2021ViTAE: Vision Transformer Advanced by Exploring Intrinsic Inductive Biascited by 216
- 2021Multi-Scale Vision Longformer: A New Vision Transformer for High-Resolution Image Encodingcited by 207
- 2021RegionViT: Regional-to-Local Attention for Vision Transformerscited by 126
- 2021Shuffle Transformer: Rethinking Spatial Shuffle for Vision Transformercited by 115
- 2019MixConv: Mixed Depthwise Convolutional Kernelscited by 108
- 2021CAT: Cross Attention in Vision Transformercited by 92
- 2021ResT: An Efficient Transformer for Visual Recognitioncited by 79
- 2017Interleaved Group Convolutions for Deep Neural Networkscited by 7
Built on by
Citing papers per year: 2021: 2; 2022: 35; 2023: 44; 2024: 32; 2025: 18; 2026: 8.
139 papers.
Sort:
By area:
- 2022Masked Autoencoders for Point Cloud Self-supervised Learningcited by 456
- 2022ViTPose: Simple Vision Transformer Baselines for Human Pose Estimationcited by 450
- 2022Vision Transformers for Single Image Dehazingcited by 255
- 2022EfficientFormer: Vision Transformers at MobileNet Speedcited by 240
- 2023SCLIP: Rethinking Self-Attention for Dense Vision-Language Inferencecited by 169
- 2022Multi-Agent Reinforcement Learning is a Sequence Modeling Problemcited by 153
- 2023BiFormer: Vision Transformer with Bi-Level Routing Attentioncited by 150
- 2023Dual Aggregation Transformer for Image Super-Resolutioncited by 124
- 2022Rethinking Vision Transformers for MobileNet Size and Speedcited by 121
- 2022ViTAEv2: Vision Transformer Advanced by Exploring Inductive Bias for Image Recognition and Beyondcited by 117
- 2023Swin3D: A Pretrained Transformer Backbone for 3D Indoor Scene Understandingcited by 111
- 2024Efficient Multimodal Large Language Models: A Surveycited by 95
38 more
- 2022Cross Aggregation Transformer for Image Restorationcited by 92
- 2022Accurate Image Restoration with Attention Retractable Transformercited by 85
- 2022Improving Vision Transformers by Revisiting High-frequency Componentscited by 75
- 2023FlatFormer: Flattened Window Attention for Efficient Point Cloud Transformercited by 72
- 2023RMT: Retentive Networks Meet Vision Transformerscited by 68
- 2022ViTPose++: Vision Transformer for Generic Body Pose Estimationcited by 65
- 2022The Devil is in the Labels: Noisy Label Correction for Robust Scene Graph Generationcited by 60
- 2023SparseViT: Revisiting Activation Sparsity for Efficient High-Resolution Vision Transformercited by 60
- 2024Scaling Spike-driven Transformer with Efficient Spike Firing Approximation Trainingcited by 57
- 2023A Comparative Study of Image Restoration Networks for General Backbone Network Designcited by 56
- 2023Cascaded Local Implicit Transformer for Arbitrary-Scale Super-Resolutioncited by 51
- 2023Revisiting Token Pruning for Object Detection and Instance Segmentationcited by 50
- 2023Vision Transformer with Quadrangle Attentioncited by 46
- 2022VSA: Learning Varied-Size Window Attention in Vision Transformerscited by 43
- 2022Vision Transformer with Super Token Samplingcited by 43
- 2024HiT-SR: Hierarchical Transformer for Efficient Image Super-Resolutioncited by 42
- 2024MambaMixer: Efficient Selective State Space Models with Dual Token and Channel Selectioncited by 40
- 2022ScalableViT: Rethinking the Context-oriented Generalization of Vision Transformercited by 36
- 2023LipsFormer: Introducing Lipschitz Continuity to Vision Transformerscited by 33
- 2024Breaking the Low-Rank Dilemma of Linear Attentioncited by 31
- 2025DFormerv2: Geometry Self-Attention for RGBD Semantic Segmentationcited by 30
- 2022Towards Efficient Adversarial Training on Vision Transformerscited by 29
- 2022DynaMixer: A Vision MLP Architecture with Dynamic Mixingcited by 28
- 2023Making Vision Transformers Efficient from A Token Sparsification Viewcited by 28
- 2022EATFormer: Improving Vision Transformer Inspired by Evolutionary Algorithmcited by 27
- 2023Lightweight Vision Transformer with Bidirectional Interactioncited by 25
- 2022Are Deep Neural Networks SMARTer than Second Graders?cited by 24
- 2025OverLoCK: An Overview-first-Look-Closely-next ConvNet with Context-Mixing Dynamic Kernelscited by 24
- 2021Classification-Then-Grounding: Reformulating Video Scene Graphs as Temporal Bipartite Graphscited by 23
- 2023HDFormer: High-order Directed Transformer for 3D Human Pose Estimationcited by 23
- 2023DAT++: Spatially Dynamic Vision Transformer with Deformable Attentioncited by 21
- 2023TransXNet: Learning Both Global and Local Dynamics with a Dual Dynamic Token Mixer for Visual Recognitioncited by 21
- 2024An Efficient and Effective Transformer Decoder-Based Framework for Multi-Task Visual Groundingcited by 21
- 2022NICEST: Noisy Label Correction and Training for Robust Scene Graph Generationcited by 19
- 2023CrossFormer++: A Versatile Vision Transformer Hinging on Cross-scale Attentioncited by 18
- 2025DefMamba: Deformable Visual State Space Modelcited by 18
- 2022TransKD: Transformer Knowledge Distillation for Efficient Semantic Segmentationcited by 17
- 2021Efficient Self-Ensemble for Semantic Segmentationcited by 16
50 most cited of 139 All 139 (JSON)
- 2026TrustFormer: Cross-Temporal and Cross- Dimensional Transformer for Task-Specific Multi-Dimensional Trust Evaluation25 Aug 2026
- 2026Advancing Vision Transformer with Enhanced Spatial Priors20 Apr 2026
- 2026Random Wins All: Rethinking Grouping Strategies for Vision Tokens28 Feb 2026
- 2026TUBO: A Tailored ML Framework for Reliable Network Traffic Forecasting12 Feb 2026
- 2026Parallel Track Transformers: Enabling Fast GPU Inference with Reduced Synchronization7 Feb 2026
- 2026Soft Shadow Diffusion (SSD): Physics-inspired Learning for 3D Computational Periscopy18 Jan 2026
- 2026SoLA-Vision: Fine-grained Layer-wise Linear Softmax Hybrid Attention16 Jan 2026
- 2026How to Build Robust, Scalable Models for GSV-Based Indicators in Neighborhood Research10 Jan 2026
- 2025Cross-modal ultra-scale learning with tri-modalities of renal biopsy images for glomerular multi-disease auxiliary diagnosis17 Dec 2025
- 2025AMD-HookNet++: Evolution of AMD-HookNet with Hybrid CNN-Transformer Feature Enhancement for Glacier Calving Front Segmentation16 Dec 2025
- 2025Focal Modulation and Bidirectional Feature Fusion Network for Medical Image Segmentation23 Oct 2025
- 2025Knowledge-Informed Neural Network for Complex-Valued SAR Image Recognition23 Oct 2025
38 more
- 2025A Fully Transformer Based Multimodal Framework for Explainable Cancer Image Segmentation Using Radiology Reports19 Aug 2025
- 2025A2Mamba: Attention-augmented State Space Models for Visual Recognition22 Jul 2025
- 2025Resolving Token-Space Gradient Conflicts: Token Space Manipulation for Transformer-Based Multi-Task Learning10 Jul 2025
- 2025Robust Visual Localization via Semantic-Guided Multi-Scale Transformer10 Jun 2025
- 2025PIPE: Physics-Informed Position Encoding for Alignment of Satellite Images and Time Series27 May 2025
- 2025Crafting Query-Aware Selective Attention for Single Image Super-Resolution9 Apr 2025
- 2025DefMamba: Deformable Visual State Space Model8 Apr 2025
- 2025DFormerv2: Geometry Self-Attention for RGBD Semantic Segmentation7 Apr 2025
- 2025ATOM: A Framework of Detecting Query-Based Model Extraction Attacks for Graph Neural Networks20 Mar 2025
- 2025KVQ: Boosting Video Quality Assessment via Saliency-guided Local Perception13 Mar 2025
- 2025OverLoCK: An Overview-first-Look-Closely-next ConvNet with Context-Mixing Dynamic Kernels27 Feb 2025
- 2025Selective Task Group Updates for Multi-Task Optimization17 Feb 2025
- 2025Edge Attention Module for Object Classification5 Feb 2025
- 2025HuViDPO:Enhancing Video Generation through Direct Preference Optimization for Human-Centric Alignment2 Feb 2025
- 2024Scaling Spike-driven Transformer with Efficient Spike Firing Approximation Training25 Nov 2024
- 2024Breaking the Low-Rank Dilemma of Linear Attention12 Nov 2024
- 2024Community Research Earth Digital Intelligence Twin (CREDIT)9 Nov 2024
- 2024Scene Graph Generation with Role-Playing Large Language Models20 Oct 2024
- 2024CTA-Net: A CNN-Transformer Aggregation Network for Improving Multi-Scale Feature Extraction15 Oct 2024
- 2024DeBiFormer: Vision Transformer with Deformable Agent Bi-level Routing Attention11 Oct 2024
- 2024Remote Sensing Image Segmentation Using Vision Mamba and Multi-Scale Multi-Frequency Feature Fusion8 Oct 2024
- 2024CBAM-SwinT-BL: Small Rail Surface Defect Detection Method Based on Swin Transformer with Block Level CBAM Enhancement30 Sep 2024
- 2024EFCM: Efficient Fine-tuning on Compressed Models for deployment of large models in medical image analysis18 Sep 2024
- 2024SparX: A Sparse Cross-Layer Connection Mechanism for Hierarchical Vision Mamba and Transformer Networks15 Sep 2024
- 2024Sample-Efficient Diffusion for Text-To-Speech Synthesis1 Sep 2024
- 2024MTMamba++: Enhancing Multi-Task Dense Scene Understanding via Mamba-Based Decoders27 Aug 2024
- 2024Can Transformers Do Enumerative Geometry?27 Aug 2024
- 2024An Efficient and Effective Transformer Decoder-Based Framework for Multi-Task Visual Grounding2 Aug 2024
- 2024Embedding-Free Transformer with Inference Spatial Reduction for Efficient Semantic Segmentation24 Jul 2024
- 2024DuoFormer: Leveraging Hierarchical Visual Representations by Local and Global Attention18 Jul 2024
- 2024HAFormer: Unleashing the Power of Hierarchy-Aware Features for Lightweight Semantic Segmentation10 Jul 2024
- 2024HiT-SR: Hierarchical Transformer for Efficient Image Super-Resolution8 Jul 2024
- 2024SiT: Symmetry-Invariant Transformers for Generalisation in Reinforcement Learning21 Jun 2024
- 2024Semantic Graph Consistency: Going Beyond Patches for Regularizing Self-Supervised Vision Transformers18 Jun 2024
- 2024Geometric Distortion Guided Transformer for Omnidirectional Image Super-Resolution16 Jun 2024
- 2024Fusion of regional and sparse attention in Vision Transformers13 Jun 2024
- 2024Semantic Equitable Clustering: A Simple and Effective Strategy for Clustering Vision Tokens22 May 2024
- 2024Vision Transformer with Sparse Scan Prior22 May 2024
50 newest of 139 All 139 (JSON)
- 2024MambaMixer: Efficient Selective State Space Models with Dual Token and Channel Selectioncited by 40
- 2025DefMamba: Deformable Visual State Space Modelcited by 18
- 2024SparX: A Sparse Cross-Layer Connection Mechanism for Hierarchical Vision Mamba and Transformer Networkscited by 14
- 2024MTMamba++: Enhancing Multi-Task Dense Scene Understanding via Mamba-Based Decoderscited by 10
- 2024Remote Sensing Image Segmentation Using Vision Mamba and Multi-Scale Multi-Frequency Feature Fusioncited by 6
- 2025A2Mamba: Attention-augmented State Space Models for Visual Recognitioncited by 1
- 2025A2Mamba: Attention-augmented State Space Models for Visual Recognition22 Jul 2025
- 2025DefMamba: Deformable Visual State Space Model8 Apr 2025
- 2024Remote Sensing Image Segmentation Using Vision Mamba and Multi-Scale Multi-Frequency Feature Fusion8 Oct 2024
- 2024SparX: A Sparse Cross-Layer Connection Mechanism for Hierarchical Vision Mamba and Transformer Networks15 Sep 2024
- 2024MTMamba++: Enhancing Multi-Task Dense Scene Understanding via Mamba-Based Decoders27 Aug 2024
- 2024MambaMixer: Efficient Selective State Space Models with Dual Token and Channel Selection29 Mar 2024
- 2024Efficient Multimodal Large Language Models: A Surveycited by 95
- 2024Scene Graph Generation with Role-Playing Large Language Modelscited by 16
- 2024Scene Graph Generation with Role-Playing Large Language Models20 Oct 2024
- 2024Efficient Multimodal Large Language Models: A Survey17 May 2024
- 2022Masked Autoencoders for Point Cloud Self-supervised Learningcited by 456
- 2022ViTPose: Simple Vision Transformer Baselines for Human Pose Estimationcited by 450
- 2022Vision Transformers for Single Image Dehazingcited by 255
- 2022EfficientFormer: Vision Transformers at MobileNet Speedcited by 240
- 2023SCLIP: Rethinking Self-Attention for Dense Vision-Language Inferencecited by 169
- 2022Multi-Agent Reinforcement Learning is a Sequence Modeling Problemcited by 153
- 2023BiFormer: Vision Transformer with Bi-Level Routing Attentioncited by 150
- 2023Dual Aggregation Transformer for Image Super-Resolutioncited by 124
- 2022Rethinking Vision Transformers for MobileNet Size and Speedcited by 121
- 2022ViTAEv2: Vision Transformer Advanced by Exploring Inductive Bias for Image Recognition and Beyondcited by 117
- 2023Swin3D: A Pretrained Transformer Backbone for 3D Indoor Scene Understandingcited by 111
- 2022Cross Aggregation Transformer for Image Restorationcited by 92
12 most cited of 127 All 127 (JSON)
- 2026TrustFormer: Cross-Temporal and Cross- Dimensional Transformer for Task-Specific Multi-Dimensional Trust Evaluation25 Aug 2026
- 2026Advancing Vision Transformer with Enhanced Spatial Priors20 Apr 2026
- 2026Random Wins All: Rethinking Grouping Strategies for Vision Tokens28 Feb 2026
- 2026TUBO: A Tailored ML Framework for Reliable Network Traffic Forecasting12 Feb 2026
- 2026Parallel Track Transformers: Enabling Fast GPU Inference with Reduced Synchronization7 Feb 2026
- 2026Soft Shadow Diffusion (SSD): Physics-inspired Learning for 3D Computational Periscopy18 Jan 2026
- 2026SoLA-Vision: Fine-grained Layer-wise Linear Softmax Hybrid Attention16 Jan 2026
- 2026How to Build Robust, Scalable Models for GSV-Based Indicators in Neighborhood Research10 Jan 2026
- 2025Cross-modal ultra-scale learning with tri-modalities of renal biopsy images for glomerular multi-disease auxiliary diagnosis17 Dec 2025
- 2025AMD-HookNet++: Evolution of AMD-HookNet with Hybrid CNN-Transformer Feature Enhancement for Glacier Calving Front Segmentation16 Dec 2025
- 2025Focal Modulation and Bidirectional Feature Fusion Network for Medical Image Segmentation23 Oct 2025
- 2025Knowledge-Informed Neural Network for Complex-Valued SAR Image Recognition23 Oct 2025
12 newest of 127 All 127 (JSON)