MSPE: Multi-Scale Patch Embedding Prompts Vision Transformers to Any Resolution
Not on the map. Why?
Abstract (arXiv)
Although Vision Transformers (ViTs) have recently advanced computer vision tasks significantly, an important real-world problem was overlooked: adapting to variable input resolutions. Typically, images are resized to a fixed resolution, such as 224x224, for efficiency during training and inference. However, uniform input size conflicts with real-world scenarios where images naturally vary in resolution. Modifying the preset resolution of a model may severely degrade the performance. In this work, we propose to enhance the model adaptability to resolution variation by optimizing the patch embedding. The proposed method, called Multi-Scale Patch Embedding (MSPE), substitutes the standard patch embedding with multiple variable-sized patch kernels and selects the best parameters for different resolutions, eliminating the need to resize the original image. Our method does not require high-cost training or modifications to other parts, making it easy to apply to most ViT models. Experiments in image classification, segmentation, and detection tasks demonstrate the effectiveness of MSPE, yielding superior performance on low-resolution inputs and performing comparably on high-resolution inputs with existing methods.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 43 of its 52 references that are in the map. First posted on arXiv 28 May 2024.
Builds on
43 of 52 references.
References · 43
- 2017Attention Is All You Needcited by 60,361
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2014Microsoft COCO: Common Objects in Contextcited by 17,608
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2020End-to-End Object Detection with Transformerscited by 7,414
- 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,403
- 2017Mask R-CNNcited by 7,277
- 2016Densely Connected Convolutional Networkscited by 6,720
- 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,442
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,183
- 2018MobileNetV2: Inverted Residuals and Linear Bottleneckscited by 4,795
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
31 more
- 2016The Cityscapes Dataset for Semantic Urban Scene Understandingcited by 4,444
- 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,884
- 2016Aggregated Residual Transformations for Deep Neural Networkscited by 2,546
- 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,269
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,962
- 2021ViViT: A Video Vision Transformercited by 1,620
- 2015Spatial Transformer Networkscited by 1,429
- 2019MMDetection: Open MMLab Detection Toolbox and Benchmarkcited by 1,385
- 2020Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformerscited by 1,369
- 2017Random Erasing Data Augmentationcited by 1,239
- 2016Semantic Understanding of Scenes through the ADE20K Datasetcited by 1,069
- 2021Scaling Vision Transformerscited by 999
- 2021PVT v2: Improved Baselines with Pyramid Vision Transformercited by 751
- 2022Exploring Plain Vision Transformer Backbones for Object Detectioncited by 724
- 2020A Survey on Visual Transformercited by 654
- 2021How to train your ViT? Data, Augmentation, and Regularization in Vision Transformerscited by 569
- 2021MViTv2: Improved Multiscale Vision Transformers for Classification and Detectioncited by 519
- 2022ViTPose: Simple Vision Transformer Baselines for Human Pose Estimationcited by 456
- 2022DeiT III: Revenge of the ViTcited by 419
- 2022Pix2Struct: Screenshot Parsing as Pretraining for Visual Language Understandingcited by 366
- 2021AdaViT: Adaptive Tokens for Efficient Vision Transformercited by 362
- 2023Patch n' Pack: NaViT, a Vision Transformer for any Aspect Ratio and Resolutioncited by 229
- 2019Fixing the train-test resolution discrepancycited by 209
- 2022FlexiViT: One Model for All Patch Sizescited by 152
- 2020Resolution Adaptive Networks for Efficient Inferencecited by 146
- 2017An Analysis of Scale Invariance in Object Detection - SNIPcited by 120
- 2022Inception Transformercited by 99
- 2021Multi-Scale High-Resolution Vision Transformer for Semantic Segmentationcited by 92
- 2020Dynamic ReLUcited by 55
- 2021Learning to Resize Images for Computer Vision Taskscited by 45
- 2022ResFormer: Scaling ViTs with Multi-Resolution Trainingcited by 34
Built on by
Citing papers per year: 2025: 4; 2026: 2.
6 papers.
- 2025LATTICE: Democratize High-Fidelity 3D Generation at Scalecited by 44
- 2025FlexiMo: A Flexible Remote Sensing Foundation Modelcited by 24
- 2025ProtoGCD: Unified and Unbiased Prototype Learning for Generalized Category Discoverycited by 19
- 2025NaTex: Seamless Texture Generation as Latent Color Diffusioncited by 7
- 2026Cross-Scale Pansharpening via ScaleFormer and the PanScale Benchmarkcited by 2
- 2026DeltaDorsal: Enhancing Hand Pose Estimation with Dorsal Features in Egocentric Viewscited by 1
- 2026Cross-Scale Pansharpening via ScaleFormer and the PanScale Benchmark28 Feb 2026
- 2026DeltaDorsal: Enhancing Hand Pose Estimation with Dorsal Features in Egocentric Views21 Jan 2026
- 2025LATTICE: Democratize High-Fidelity 3D Generation at Scale24 Nov 2025
- 2025NaTex: Seamless Texture Generation as Latent Color Diffusion20 Nov 2025
- 2025ProtoGCD: Unified and Unbiased Prototype Learning for Generalized Category Discovery2 Apr 2025
- 2025FlexiMo: A Flexible Remote Sensing Foundation Model31 Mar 2025