VariViT: A Vision Transformer for Variable Image Sizes
Not on the map. Why?
Abstract (arXiv)
Vision Transformers (ViTs) have emerged as the state-of-the-art architecture in representation learning, leveraging self-attention mechanisms to excel in various tasks. ViTs split images into fixed-size patches, constraining them to a predefined size and necessitating pre-processing steps like resizing, padding, or cropping. This poses challenges in medical imaging, particularly with irregularly shaped structures like tumors. A fixed bounding box crop size produces input images with highly variable foreground-to-background ratios. Resizing medical images can degrade information and introduce artefacts, impacting diagnosis. Hence, tailoring variable-sized crops to regions of interest can enhance feature representation capabilities. Moreover, large images are computationally expensive, and smaller sizes risk information loss, presenting a computation-accuracy tradeoff. We propose VariViT, an improved ViT model crafted to handle variable image sizes while maintaining a consistent patch size. VariViT employs a novel positional embedding resizing scheme for a variable number of patches. We also implement a new batching strategy within VariViT to reduce computational complexity, resulting in faster training and inference times. In our evaluations on two 3D brain MRI datasets, VariViT surpasses vanilla ViTs and ResNet in glioma genotype prediction and brain tumor classification. It achieves F1-scores of 75.5% and 76.3%, respectively, learning more discriminative features. Our proposed batching strategy reduces computation time by up to 30% compared to conventional architectures. These findings underscore the efficacy of VariViT in image representation learning. Our code can be found here: https://github.com/Aswathi-Varma/varivit
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 19 of its 30 references that are in the map. First posted on arXiv 16 Feb 2026.
Builds on
19 of 30 references.
References · 19
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
- 2021TransUNet: Transformers Make Strong Encoders for Medical Image Segmentationcited by 1,552
- 2017Accurate, Large Minibatch SGD: Training ImageNet in 1 Hourcited by 1,479
- 2018Self-Attention with Relative Position Representationscited by 1,112
- 2021The RSNA-ASNR-MICCAI BraTS 2021 Benchmark on Brain Tumor Segmentation and Radiogenomic Classificationcited by 507
- 2022Pix2Struct: Screenshot Parsing as Pretraining for Visual Language Understandingcited by 360
- 2022Transformers in Medical Imaging: A Surveycited by 245
- 2023Patch n' Pack: NaViT, a Vision Transformer for any Aspect Ratio and Resolutioncited by 226
- 2021Rethinking and Improving Relative Position Encoding for Vision Transformercited by 206
7 more
- 2022FlexiViT: One Model for All Patch Sizescited by 151
- 2021UTNet: A Hybrid Transformer Architecture for Medical Image Segmentationcited by 116
- 2021The University of California San Francisco Preoperative Diffuse Glioma MRI (UCSF-PDGM) Datasetcited by 42
- 2021Global-Local Transformer for Brain Age Estimationcited by 34
- 2021COVID-VIT: Classification of COVID-19 from CT chest images based on vision transformer modelscited by 27
- 2022Super Vision Transformercited by 13
- 2023ViT-AE++: Improving Vision Transformer Autoencoder for Self-supervised Medical Image Representationscited by 12
Built on by
Citing papers per year: 2026: 1.
1 paper.