Conditional Positional Encodings for Vision Transformers
Not on the map. Why?
Abstract (arXiv)
We propose a conditional positional encoding (CPE) scheme for vision Transformers. Unlike previous fixed or learnable positional encodings, which are pre-defined and independent of input tokens, CPE is dynamically generated and conditioned on the local neighborhood of the input tokens. As a result, CPE can easily generalize to the input sequences that are longer than what the model has ever seen during training. Besides, CPE can keep the desired translation-invariance in the image classification task, resulting in improved performance. We implement CPE with a simple Position Encoding Generator (PEG) to get seamlessly incorporated into the current Transformer framework. Built on PEG, we present Conditional Position encoding Vision Transformer (CPVT). We demonstrate that CPVT has visually similar attention maps compared to those with learned positional encodings and delivers outperforming results. Our code is available at https://github.com/Meituan-AutoML/CPVT .
Key facts. Cited by 402 papers in the map (data through 7 Oct 2026). Builds on 39 of its 58 references that are in the map. First posted on arXiv 22 Feb 2021.
Builds on
39 of 58 references.
References · 39
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,415
- 2015Rethinking the Inception Architecture for Computer Visioncited by 5,451
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2020Deformable DETR: Deformable Transformers for End-to-End Object Detectioncited by 3,410
27 more
- 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,875
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,261
- 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,157
- 2020Conformer: Convolution-augmented Transformer for Speech Recognitioncited by 1,838
- 2020Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformerscited by 1,368
- 2017Random Erasing Data Augmentationcited by 1,235
- 2018Self-Attention with Relative Position Representationscited by 1,112
- 2016Deep Networks with Stochastic Depthcited by 973
- 2020Designing Network Design Spacescited by 954
- 2017Revisiting Unreasonable Effectiveness of Data in Deep Learning Eracited by 916
- 2020Pre-Trained Image Processing Transformercited by 891
- 2018Image Transformercited by 770
- 2019Panoptic Feature Pyramid Networkscited by 644
- 2019Stand-Alone Self-Attention in Vision Modelscited by 542
- 2020End-to-End Video Instance Segmentation with Transformerscited by 443
- 2019Attention Augmented Convolutional Networkscited by 363
- 2020Are we done with ImageNet?cited by 329
- 2019On the Relationship between Self-Attention and Convolutional Layerscited by 299
- 2015MXNet: A Flexible and Efficient Machine Learning Library for Heterogeneous Distributed Systemscited by 195
- 2020How Much Position Information Do Convolutional Neural Networks Encode?cited by 171
- 2018QANet: Combining Local Convolution with Global Self-Attention for Reading Comprehensioncited by 164
- 2021LambdaNetworks: Modeling Long-Range Interactions Without Attentioncited by 107
- 2020Learning to Encode Position for Transformer with Continuous Dynamical Modelcited by 61
- 2019Encoding word order in complex embeddingscited by 53
- 2019Transformers with convolutional context for ASRcited by 44
- 2019Convolutional Self-Attention Networkscited by 32
Built on by
Citing papers per year: 2021: 54; 2022: 98; 2023: 70; 2024: 80; 2025: 58; 2026: 42.
402 papers.
Sort:
By area:
- 2021SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformerscited by 2,923
- 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 849
- 2021PVT v2: Improved Baselines with Pyramid Vision Transformercited by 749
- 2023Point Transformer V3: Simpler, Faster, Strongercited by 579
- 2021Twins: Revisiting the Design of Spatial Attention in Vision Transformerscited by 565
- 2022Vision Transformer Adapter for Dense Predictionscited by 564
- 2021TransMIL: Transformer based Correlated Multiple Instance Learning for Whole Slide Image Classificationcited by 549
- 2021CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped Windowscited by 526
- 2022MaxViT: Multi-Axis Vision Transformercited by 476
- 2021A Survey of Transformerscited by 399
- 2021CMT: Convolutional Neural Networks Meet Vision Transformerscited by 310
- 2021Focal Self-attention for Local-Global Interactions in Vision Transformerscited by 286
38 more
- 2022Transformers Learn Shortcuts to Automatacited by 260
- 2022TinyViT: Fast Pretraining Distillation for Small Vision Transformerscited by 232
- 2024Rotary Position Embedding for Vision Transformercited by 226
- 2021Co-Scale Conv-Attentional Image Transformerscited by 224
- 2021ViTAE: Vision Transformer Advanced by Exploring Intrinsic Inductive Biascited by 216
- 2021FaceFormer: Speech-Driven 3D Facial Animation with Transformerscited by 208
- 2022Medical Image Segmentation Review: The success of U-Netcited by 190
- 2024CBraMod: A Criss-Cross Brain Foundation Model for EEG Decodingcited by 188
- 2021Adaptive Token Sampling For Efficient Vision Transformerscited by 181
- 2022DaViT: Dual Attention Vision Transformerscited by 174
- 2024MobileVLM V2: Faster and Stronger Baseline for Vision Language Modelcited by 172
- 2023CROMA: Remote Sensing Representations with Contrastive Radar-Optical Masked Autoencoderscited by 167
- 2021SPViT: Enabling Faster Vision Transformers via Soft Token Pruningcited by 165
- 2023FastViT: A Fast Hybrid Vision Transformer using Structural Reparameterizationcited by 161
- 2022Recurrent Vision Transformers for Object Detection with Event Camerascited by 158
- 2022Scaling Up Your Kernels to 31x31: Revisiting Large Kernel Design in CNNscited by 155
- 2021Not All Images are Worth 16x16 Words: Dynamic Transformers for Efficient Image Recognitioncited by 143
- 2022Stripformer: Strip Transformer for Fast Image Deblurringcited by 139
- 2022Multi-class Token Transformer for Weakly Supervised Semantic Segmentationcited by 138
- 2021SOFT: Softmax-free Transformer with Linear Complexitycited by 128
- 2021RegionViT: Regional-to-Local Attention for Vision Transformerscited by 126
- 2023MobileVLM : A Fast, Strong and Open Vision Language Assistant for Mobile Devicescited by 120
- 2021A Survey of Visual Transformerscited by 117
- 2022EdgeViTs: Competing Light-weight CNNs on Mobile Devices with Vision Transformerscited by 116
- 2021Shuffle Transformer: Rethinking Spatial Shuffle for Vision Transformercited by 115
- 2022MonoDTR: Monocular 3D Object Detection with Depth-Aware Transformercited by 108
- 2022ConvMAE: Masked Convolution Meets Masked Autoencoderscited by 105
- 2023OctFormer: Octree-based Transformers for 3D Point Cloudscited by 105
- 2021MISSFormer: An Effective Medical Image Segmentation Transformercited by 103
- 2021AS-MLP: An Axial Shifted MLP Architecture for Visioncited by 101
- 2024Demystify Mamba in Vision: A Linear Attention Perspectivecited by 101
- 2024TimeSuite: Improving MLLMs for Long Video Understanding via Grounded Tuningcited by 99
- 2022Global Context Vision Transformerscited by 98
- 2023Extracting Motion and Appearance via Inter-Frame Attention for Efficient Video Frame Interpolationcited by 97
- 2022Cross Aggregation Transformer for Image Restorationcited by 92
- 2024MambaIRv2: Attentive State Space Restorationcited by 90
- 2021Scalable Vision Transformers with Hierarchical Poolingcited by 84
- 2021P2T: Pyramid Pooling Transformer for Scene Understandingcited by 84
50 most cited of 402 All 402 (JSON)
- 2026Transolver-σ: Joint Spectral-Physical Subspace Modeling for Neural PDE Solving29 Sep 2026
- 2026VisionHOPE: Visual Backbones as Self-Modifying Learning Systems27 Sep 2026
- 2026StegGNN: Learning Graphical Representation for Image Steganography26 Sep 2026
- 2026LiAuto-MindViT: A Hybrid Vision Backbone with Adaptive Bidirectional Mamba21 Sep 2026
- 2026G-ray: Ray-Level Relative Geometric Position Encoding in Multi-View Vision Transformers under Camera Heterogeneity14 Sep 2026
- 2026ProSR: Semantic-Prototype-Guided Discrete Modeling for Physically Consistent SAR Super-Resolution2 Sep 2026
- 2026nnMNet: Baseline for Martian Terrain Semantic Segmentation30 Aug 2026
- 2026CoDAT: Collaborative Dual-Attention Transformer with Low-Cost Temporal Modeling for Efficient Edge Action Recognition7 Aug 2026
- 2026Chimera: Designing and Chinchilla-Scaling Hybrid Visual Diffusion Transformers30 Jul 2026
- 2026DCVC-MB: Neural B-Frame Video Compression using State Space Models15 Jul 2026
- 20262D Rotary Position Embedding for Scene Text Recognition with Transformers15 Jul 2026
- 2026Active Spatial Guidance: Eliminating Injected Positional Mechanisms in Vision Transformers1 Jul 2026
38 more
- 2026Device Passport: Enabling Spatio-Temporal Pretrained Models to Generalize Across Input Layouts30 Jun 2026
- 2026DPPE: Rethinking Camera-Based Positional Encoding for Scaling Multi-View Transformers30 Jun 2026
- 2026nD-RoPE: A Generalized RoPE for n-Dimensional Position Embedding10 Jun 2026
- 2026Spatial Priors via Space Filling Curves for Small and Limited Data Vision Transformers8 Jun 2026
- 2026End-to-End Context Compression at Scale8 Jun 2026
- 2026Positional Encodings Anchor Spatial Structure in Vision Transformers: A Geometric Perspective on Robustness28 May 2026
- 2026SwInception -- Local Attention Meets Convolutions28 May 2026
- 2026Small Models, Strong Priors: Architectural Inductive Bias for Parameter-Efficient Neural PDE Solvers25 May 2026
- 2026Patch Hierarchical Attention Transformer for Efficient Particle Jet Tagging20 May 2026
- 2026TRACE: Temporal Routing with Autoregressive Cross-channel Experts for EEG Representation Learning12 May 2026
- 2026Can Graphs Help Vision SSMs See Better?11 May 2026
- 2026USEMA: a Scalable Efficient Mamba Like Attention for Medical Image Segmentation11 May 2026
- 2026Prompt-Free and Efficient SAM2 Adaptation for Biomedical Semantic Segmentation via Dual Adapters7 May 2026
- 2026PointTransformerX: Portable and Efficient 3D Point Cloud Processing without Sparse Algorithms27 Apr 2026
- 2026Advancing Vision Transformer with Enhanced Spatial Priors20 Apr 2026
- 2026Hierarchical Mesh Transformers with Topology-Guided Pretraining for Morphometric Analysis of Brain Structures6 Apr 2026
- 2026SPAR: Single-Pass Any-Resolution ViT for Open-vocabulary Segmentation2 Apr 2026
- 2026Beyond MACs: Hardware Efficient Architecture Design for Vision Backbones27 Mar 2026
- 2026VISion On Request: Enhanced VLLM efficiency with sparse, dynamically selected, vision-language interactions24 Mar 2026
- 2026Rank-Factorized Implicit Neural Bias: Scaling Super-Resolution Transformer with FlashAttention6 Mar 2026
- 2026Locality-Attending Vision Transformer5 Mar 2026
- 2026Teacher-Guided Causal Interventions for Image Denoising: Orthogonal Content-Noise Disentanglement in Vision Transformers1 Mar 2026
- 2026Random Wins All: Rethinking Grouping Strategies for Vision Tokens28 Feb 2026
- 2026Positional-aware Spatio-Temporal Network for Large-Scale Traffic Prediction25 Feb 2026
- 2026Enabling Progressive Whole-slide Image Analysis with Multi-scale Pyramidal Network2 Feb 2026
- 2026UV-M3TL: A Unified and Versatile Multimodal Multi-Task Learning Framework for Assistive Driving Perception2 Feb 2026
- 2026Geometry without Position? When Positional Embeddings Help and Hurt Spatial Reasoning29 Jan 2026
- 2026A Unified Masked Jigsaw Puzzle Framework for Vision and Language Models17 Jan 2026
- 2026MHLA: Restoring Expressivity of Linear Attention via Token-Level Multi-Head12 Jan 2026
- 2026WeedRepFormer: Reparameterizable Vision Transformers for Real-Time Waterhemp Segmentation and Gender Classification6 Jan 2026
- 2025Spatiotemporal-Untrammelled Mixture of Experts for Multi-Person Motion Prediction25 Dec 2025
- 2025Vision Transformers are Circulant Attention Learners25 Dec 2025
- 2025Efficient Spike-driven Transformer for High-performance Drone-View Geo-Localization22 Dec 2025
- 2025MambaMIL+: Modeling Long-Term Contextual Patterns for Gigapixel Whole Slide Image19 Dec 2025
- 2025LitePT: Lighter Yet Stronger Point Transformer15 Dec 2025
- 2025HTR-ConvText: Leveraging Convolution and Textual Information for Handwritten Text Recognition4 Dec 2025
- 2025GeoPE:A Unified Geometric Positional Embedding for Structured Tensors4 Dec 2025
- 2025ViT3: Unlocking Test-Time Training in Vision1 Dec 2025
50 newest of 402 All 402 (JSON)
- 2024Demystify Mamba in Vision: A Linear Attention Perspectivecited by 101
- 2024MambaIRv2: Attentive State Space Restorationcited by 90
- 2024SparX: A Sparse Cross-Layer Connection Mechanism for Hierarchical Vision Mamba and Transformer Networkscited by 14
- 2024UV-Mamba: A DCN-Enhanced State Space Model for Urban Village Boundary Identification in High-Resolution Remote Sensing Imagescited by 3
- 2024MLLA-UNet: Mamba-like Linear Attention in an Efficient U-Shape Model for Medical Image Segmentationcited by 2
- 2025FMNet: Frequency-Assisted Mamba-Like Linear Attention Network for Camouflaged Object Detectioncited by 2
- 2026USEMA: a Scalable Efficient Mamba Like Attention for Medical Image Segmentationcited by 0
- 2026Can Graphs Help Vision SSMs See Better?cited by 0
- 2026DCVC-MB: Neural B-Frame Video Compression using State Space Modelscited by 0
- 2026LiAuto-MindViT: A Hybrid Vision Backbone with Adaptive Bidirectional Mambacited by 0
- 2026LiAuto-MindViT: A Hybrid Vision Backbone with Adaptive Bidirectional Mamba21 Sep 2026
- 2026DCVC-MB: Neural B-Frame Video Compression using State Space Models15 Jul 2026
- 2026Can Graphs Help Vision SSMs See Better?11 May 2026
- 2026USEMA: a Scalable Efficient Mamba Like Attention for Medical Image Segmentation11 May 2026
- 2025FMNet: Frequency-Assisted Mamba-Like Linear Attention Network for Camouflaged Object Detection14 Mar 2025
- 2024MambaIRv2: Attentive State Space Restoration22 Nov 2024
- 2024MLLA-UNet: Mamba-like Linear Attention in an Efficient U-Shape Model for Medical Image Segmentation31 Oct 2024
- 2024SparX: A Sparse Cross-Layer Connection Mechanism for Hierarchical Vision Mamba and Transformer Networks15 Sep 2024
- 2024UV-Mamba: A DCN-Enhanced State Space Model for Urban Village Boundary Identification in High-Resolution Remote Sensing Images5 Sep 2024
- 2024Demystify Mamba in Vision: A Linear Attention Perspective26 May 2024
- 2024TEXGen: a Generative Diffusion Model for Mesh Texturescited by 46
- 2025Stochastic Self-Guidance for Training-Free Enhancement of Diffusion Modelscited by 35
- 2025USP: Unified Self-Supervised Pretraining for Image Generation and Understandingcited by 24
- 2025RoPECraft: Training-Free Motion Transfer with Trajectory-Guided RoPE Optimization on Diffusion Transformerscited by 14
- 2026Chimera: Designing and Chinchilla-Scaling Hybrid Visual Diffusion Transformerscited by 3
- 2026Chimera: Designing and Chinchilla-Scaling Hybrid Visual Diffusion Transformers30 Jul 2026
- 2025Stochastic Self-Guidance for Training-Free Enhancement of Diffusion Models18 Aug 2025
- 2025RoPECraft: Training-Free Motion Transfer with Trajectory-Guided RoPE Optimization on Diffusion Transformers19 May 2025
- 2025USP: Unified Self-Supervised Pretraining for Image Generation and Understanding8 Mar 2025
- 2024TEXGen: a Generative Diffusion Model for Mesh Textures22 Nov 2024
- 2024MobileVLM V2: Faster and Stronger Baseline for Vision Language Modelcited by 172
- 2023MobileVLM : A Fast, Strong and Open Vision Language Assistant for Mobile Devicescited by 120
- 2024TimeSuite: Improving MLLMs for Long Video Understanding via Grounded Tuningcited by 99
- 2025Advancing General Multimodal Capability of Vision-language Models with Pyramid-descent Visual Position Encodingcited by 4
- 2026VISion On Request: Enhanced VLLM efficiency with sparse, dynamically selected, vision-language interactionscited by 0
- 2026VISion On Request: Enhanced VLLM efficiency with sparse, dynamically selected, vision-language interactions24 Mar 2026
- 2025Advancing General Multimodal Capability of Vision-language Models with Pyramid-descent Visual Position Encoding19 Jan 2025
- 2024TimeSuite: Improving MLLMs for Long Video Understanding via Grounded Tuning25 Oct 2024
- 2024MobileVLM V2: Faster and Stronger Baseline for Vision Language Model6 Feb 2024
- 2023MobileVLM : A Fast, Strong and Open Vision Language Assistant for Mobile Devices28 Dec 2023
- 2023Lenna: Language Enhanced Reasoning Detection Assistantcited by 29
- 2025AURA: A Fine-Grained Benchmark and Decomposed Metric for Audio-Visual Reasoningcited by 7
- 2025Large Vision Models Can Solve Mental Rotation Problemscited by 3
- 2026Geometry without Position? When Positional Embeddings Help and Hurt Spatial Reasoningcited by 0
- 2026Geometry without Position? When Positional Embeddings Help and Hurt Spatial Reasoning29 Jan 2026
- 2025Large Vision Models Can Solve Mental Rotation Problems18 Sep 2025
- 2025AURA: A Fine-Grained Benchmark and Decomposed Metric for Audio-Visual Reasoning10 Aug 2025
- 2023Lenna: Language Enhanced Reasoning Detection Assistant5 Dec 2023
- 2021SPViT: Enabling Faster Vision Transformers via Soft Token Pruningcited by 165
- 2023Multi-Scale And Token Mergence: Make Your ViT More Efficientcited by 5
- 2026End-to-End Context Compression at Scalecited by 4
- 2026End-to-End Context Compression at Scale8 Jun 2026
- 2023Multi-Scale And Token Mergence: Make Your ViT More Efficient8 Jun 2023
- 2021SPViT: Enabling Faster Vision Transformers via Soft Token Pruning27 Dec 2021
- 2021SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformerscited by 2,923
- 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 849
- 2021PVT v2: Improved Baselines with Pyramid Vision Transformercited by 749
- 2023Point Transformer V3: Simpler, Faster, Strongercited by 579
- 2021Twins: Revisiting the Design of Spatial Attention in Vision Transformerscited by 565
- 2022Vision Transformer Adapter for Dense Predictionscited by 564
- 2021TransMIL: Transformer based Correlated Multiple Instance Learning for Whole Slide Image Classificationcited by 549
- 2021CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped Windowscited by 526
- 2022MaxViT: Multi-Axis Vision Transformercited by 476
- 2021A Survey of Transformerscited by 399
- 2021CMT: Convolutional Neural Networks Meet Vision Transformerscited by 310
- 2021Focal Self-attention for Local-Global Interactions in Vision Transformerscited by 286
12 most cited of 371 All 371 (JSON)
- 2026Transolver-σ: Joint Spectral-Physical Subspace Modeling for Neural PDE Solving29 Sep 2026
- 2026VisionHOPE: Visual Backbones as Self-Modifying Learning Systems27 Sep 2026
- 2026StegGNN: Learning Graphical Representation for Image Steganography26 Sep 2026
- 2026G-ray: Ray-Level Relative Geometric Position Encoding in Multi-View Vision Transformers under Camera Heterogeneity14 Sep 2026
- 2026ProSR: Semantic-Prototype-Guided Discrete Modeling for Physically Consistent SAR Super-Resolution2 Sep 2026
- 2026nnMNet: Baseline for Martian Terrain Semantic Segmentation30 Aug 2026
- 2026CoDAT: Collaborative Dual-Attention Transformer with Low-Cost Temporal Modeling for Efficient Edge Action Recognition7 Aug 2026
- 20262D Rotary Position Embedding for Scene Text Recognition with Transformers15 Jul 2026
- 2026Active Spatial Guidance: Eliminating Injected Positional Mechanisms in Vision Transformers1 Jul 2026
- 2026Device Passport: Enabling Spatio-Temporal Pretrained Models to Generalize Across Input Layouts30 Jun 2026
- 2026DPPE: Rethinking Camera-Based Positional Encoding for Scaling Multi-View Transformers30 Jun 2026
- 2026nD-RoPE: A Generalized RoPE for n-Dimensional Position Embedding10 Jun 2026
12 newest of 371 All 371 (JSON)