mlsanityData to 7 Oct 2026

Effect of Patch Size on Fine-Tuning Vision Transformers in Two-Dimensional and Three-Dimensional Medical Image Classification

arXiv 2602.18614 ↗First posted 20 Feb 2026cs.CVcited by 0

On the map: Multimodal LLMs / vision-language models → Medical vision-language models

Abstract (arXiv)

Vision Transformers (ViTs) and their variants have become state-of-the-art in many computer vision tasks and are widely used as backbones in large-scale vision and vision-language foundation models. While substantial research has focused on architectural improvements, the impact of patch size, a crucial initial design choice in ViTs, remains underexplored, particularly in medical domains where both two-dimensional (2D) and three-dimensional (3D) imaging modalities exist. In this study, using 12 medical imaging datasets from various imaging modalities (including seven 2D and five 3D datasets), we conduct a thorough evaluation of how different patch sizes affect ViT classification performance. Using a single graphical processing unit (GPU) and a range of patch sizes (1, 2, 4, 7, 14, 28), we fine-tune ViT models and observe consistent improvements in classification performance with smaller patch sizes (1, 2, and 4), which achieve the best results across nearly all datasets. More specifically, our results indicate improvements in balanced accuracy of up to 12.78% for 2D datasets (patch size 2 vs. 28) and up to 23.78% for 3D datasets (patch size 1 vs. 14), at the cost of increased computational expense. Moreover, by applying a straightforward ensemble strategy that fuses the predictions of the models trained with patch sizes 1, 2, and 4, we demonstrate a further boost in performance in most cases, especially for the 2D datasets. Our implementation is publicly available on GitHub: https://github.com/HealMaDe/MedViT

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Medical vision-language models, one of 16 directions in Multimodal LLMs / vision-language models. Builds on 28 of its 43 references that are in the map. First posted on arXiv 20 Feb 2026.

Builds on

28 of 43 references.

References · 28

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  4. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  5. 2016Densely Connected Convolutional Networkscited by 6,691
  6. 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,415
  7. 2017Quo Vadis, Action Recognition? A New Model and the Kinetics Datasetcited by 3,259
  8. 2021Swin Transformer V2: Scaling Up Capacity and Resolutioncited by 1,215
  9. 2021EfficientNetV2: Smaller Models and Faster Trainingcited by 1,127
  10. 2021Scaling Vision Transformerscited by 993
  11. 2021MedMNIST v2 -- A large-scale lightweight benchmark for 2D and 3D biomedical image classificationcited by 682
  12. 2021CoAtNet: Marrying Convolution and Attention for All Data Sizescited by 566
16 more
  1. 2022MedCLIP: Contrastive Learning from Unpaired Medical Images and Textcited by 564
  2. 2023BiomedCLIP: a multimodal biomedical foundation model pretrained from fifteen million scientific image-text pairscited by 506
  3. 2021ConViT: Improving Vision Transformers with Soft Convolutional Inductive Biasescited by 484
  4. 2017Deep Learning for Medical Image Analysiscited by 399
  5. 2022FlexiViT: One Model for All Patch Sizescited by 151
  6. 2022On The Computational Complexity of Self-Attentioncited by 137
  7. 2021TransMed: Transformers Advance Multi-modal Medical Image Classificationcited by 85
  8. 2023Advances in Medical Image Analysis with Vision Transformers: A Comprehensive Reviewcited by 62
  9. 2024An Image is Worth More Than 16x16 Patches: Exploring Transformers on Individual Pixelscited by 32
  10. 2022PatchDropout: Economizing Vision Transformers Using Patch Dropoutcited by 28
  11. 2025Scaling Laws in Patchification: An Image Is Worth 50,176 Tokens And Morecited by 28
  12. 2024WCEbleedGen: A wireless capsule endoscopy dataset and its benchmarking for automatic bleeding classification, detection, and segmentationcited by 5
  13. 2020Pollen Grain Microscopic Image Classification Using an Ensemble of Fine-Tuned Deep Convolutional Neural Networkscited by 4
  14. 2024Evaluating Pre-trained Convolutional Neural Networks and Foundation Models as Feature Extractors for Content-based Medical Image Retrievalcited by 4
  15. 2025ACS-SegNet: An Attention-Based CNN-SegFormer Segmentation Network for Tissue Segmentation in Histopathologycited by 4
  16. 2024Leveraging Medical Foundation Model Features in Graph Neural Network-Based Retrieval of Breast Histopathology Imagescited by 2

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2022Patcher: Patch Transformers with Mixture of Experts for Precise Medical Image Segmentation
  2. 2026ViT-5: Vision Transformers for The Mid-2020s
  3. 2023Efficiently Training Vision Transformers on Structural MRI Scans for Alzheimer's Disease Detection
  4. 2024E3D-GPT: Enhanced 3D Visual Foundation for Medical Vision-Language Model
  5. 2025MedVision: Benchmarking Quantitative Medical Image Analysis
  6. 2024When Do We Not Need Larger Vision Models?
  7. 2026A Mechanistic Analysis of Adversarial Fine-tuning of Vision Transformers
  8. 2026Lost in the Hype: Revealing and Dissecting the Performance Degradation of Medical Multimodal Large Language Models in Image Classification